Lines Matching refs:fs
70 static errcode_t get_file(ext2_filsys fs, const char * filename,
84 retval = ext2fs_namei(fs, EXT2_ROOT_INO, EXT2_ROOT_INO,
89 retval = ext2fs_read_inode(fs, ino, &inode);
101 retval = ext2fs_file_open(fs, ino, 0, &e2_file);
232 static int parse_fstab_line(char *line, struct fs_info *fs)
267 fs->device = string_copy(device);
268 fs->mountpt = string_copy(mntpnt);
269 fs->type = string_copy(type);
270 fs->opts = string_copy(opts ? opts : "");
271 fs->freq = freq ? atoi(freq) : -1;
272 fs->passno = passno ? atoi(passno) : -1;
273 fs->flags = 0;
274 fs->next = NULL;
282 static void free_fstab_line(struct fs_info *fs)
284 if (fs->device)
285 fs->device = 0;
286 if (fs->mountpt)
287 fs->mountpt = 0;
288 if (fs->type)
289 fs->type = 0;
290 if (fs->opts)
291 fs->opts = 0;
292 memset(fs, 0, sizeof(struct fs_info));
331 static void get_root_type(ext2_filsys fs)
339 retval = get_file(fs, "/etc/fstab", &file);
364 ext2_filsys fs;
378 retval = ext2fs_open (device_name, open_flag, 0, 0, io_ptr, &fs);
383 get_root_type(fs);
386 return (ext2fs_close (fs) ? 1 : 0);