Lines Matching defs:mnt
40 struct mntent *mnt;
43 while (((mnt = getmntent(fs_file)) != NULL) &&
44 !((strcmp(mnt->mnt_type, MNTTYPE_42) == 0) ||
45 (strcmp(mnt->mnt_type, MNTTYPE_SWAP) == 0) ||
46 (strcmp(mnt->mnt_type, MNTTYPE_IGNORE) == 0)))
48 if (mnt == NULL)
50 fs->fs_spec = mnt->mnt_fsname;
51 fs->fs_file = mnt->mnt_dir;
52 if (strcmp(mnt->mnt_type, MNTTYPE_IGNORE) == 0) {
53 strcpy(mnt->mnt_opts, FSTAB_XX);
54 } else if (strcmp(mnt->mnt_type, MNTTYPE_SWAP) == 0) {
55 strcpy(mnt->mnt_opts, FSTAB_SW);
56 } else if (hasmntopt(mnt, MNTOPT_RO)) {
57 strcpy(mnt->mnt_opts, FSTAB_RO);
58 } else if (hasmntopt(mnt, MNTOPT_QUOTA)) {
59 strcpy(mnt->mnt_opts, FSTAB_RQ);
61 strcpy(mnt->mnt_opts, FSTAB_RW);
63 fs->fs_type = mnt->mnt_opts;
64 fs->fs_freq = mnt->mnt_freq;
65 fs->fs_passno = mnt->mnt_passno;