Home | History | Annotate | Download | only in misc

Lines Matching defs:fs

72 static errcode_t get_file(ext2_filsys fs, const char * filename,
86 retval = ext2fs_namei(fs, EXT2_ROOT_INO, EXT2_ROOT_INO,
91 retval = ext2fs_read_inode(fs, ino, &inode);
103 retval = ext2fs_file_open(fs, ino, 0, &e2_file);
237 static int parse_fstab_line(char *line, struct fs_info *fs)
272 fs->device = string_copy(device);
273 fs->mountpt = string_copy(mntpnt);
274 fs->type = string_copy(type);
275 fs->opts = string_copy(opts ? opts : "");
276 fs->freq = freq ? atoi(freq) : -1;
277 fs->passno = passno ? atoi(passno) : -1;
278 fs->flags = 0;
279 fs->next = NULL;
286 static void free_fstab_line(struct fs_info *fs)
288 if (fs->device)
289 fs->device = 0;
290 if (fs->mountpt)
291 fs->mountpt = 0;
292 if (fs->type)
293 fs->type = 0;
294 if (fs->opts)
295 fs->opts = 0;
296 memset(fs, 0, sizeof(struct fs_info));
336 static void get_root_type(ext2_filsys fs)
344 retval = get_file(fs, "/etc/fstab", &file);
373 ext2_filsys fs;
388 retval = ext2fs_open (device_name, open_flag, 0, 0, io_ptr, &fs);
393 get_root_type(fs);
396 return (ext2fs_close (fs) ? 1 : 0);