• Home
  • Raw
  • Download

Lines Matching refs:opts

715 static void fat_reset_iocharset(struct fat_mount_options *opts)  in fat_reset_iocharset()  argument
717 if (opts->iocharset != fat_default_iocharset) { in fat_reset_iocharset()
719 kfree(opts->iocharset); in fat_reset_iocharset()
720 opts->iocharset = fat_default_iocharset; in fat_reset_iocharset()
947 struct fat_mount_options *opts = &sbi->options; in fat_show_options() local
948 int isvfat = opts->isvfat; in fat_show_options()
950 if (!uid_eq(opts->fs_uid, GLOBAL_ROOT_UID)) in fat_show_options()
952 from_kuid_munged(&init_user_ns, opts->fs_uid)); in fat_show_options()
953 if (!gid_eq(opts->fs_gid, GLOBAL_ROOT_GID)) in fat_show_options()
955 from_kgid_munged(&init_user_ns, opts->fs_gid)); in fat_show_options()
956 seq_printf(m, ",fmask=%04o", opts->fs_fmask); in fat_show_options()
957 seq_printf(m, ",dmask=%04o", opts->fs_dmask); in fat_show_options()
958 if (opts->allow_utime) in fat_show_options()
959 seq_printf(m, ",allow_utime=%04o", opts->allow_utime); in fat_show_options()
967 switch (opts->shortname) { in fat_show_options()
985 if (opts->name_check != 'n') in fat_show_options()
986 seq_printf(m, ",check=%c", opts->name_check); in fat_show_options()
987 if (opts->usefree) in fat_show_options()
989 if (opts->quiet) in fat_show_options()
991 if (opts->showexec) in fat_show_options()
993 if (opts->sys_immutable) in fat_show_options()
996 if (opts->dotsOK) in fat_show_options()
998 if (opts->nocase) in fat_show_options()
1001 if (opts->utf8) in fat_show_options()
1003 if (opts->unicode_xlate) in fat_show_options()
1005 if (!opts->numtail) in fat_show_options()
1007 if (opts->rodir) in fat_show_options()
1010 if (opts->flush) in fat_show_options()
1012 if (opts->tz_set) { in fat_show_options()
1013 if (opts->time_offset) in fat_show_options()
1014 seq_printf(m, ",time_offset=%d", opts->time_offset); in fat_show_options()
1018 if (opts->errors == FAT_ERRORS_CONT) in fat_show_options()
1020 else if (opts->errors == FAT_ERRORS_PANIC) in fat_show_options()
1024 if (opts->nfs == FAT_NFS_NOSTALE_RO) in fat_show_options()
1026 else if (opts->nfs) in fat_show_options()
1028 if (opts->discard) in fat_show_options()
1030 if (opts->dos1xfloppy) in fat_show_options()
1132 int silent, int *debug, struct fat_mount_options *opts) in parse_options() argument
1139 opts->isvfat = is_vfat; in parse_options()
1141 opts->fs_uid = current_uid(); in parse_options()
1142 opts->fs_gid = current_gid(); in parse_options()
1143 opts->fs_fmask = opts->fs_dmask = current_umask(); in parse_options()
1144 opts->allow_utime = -1; in parse_options()
1145 opts->codepage = fat_default_codepage; in parse_options()
1146 fat_reset_iocharset(opts); in parse_options()
1148 opts->shortname = VFAT_SFN_DISPLAY_WINNT|VFAT_SFN_CREATE_WIN95; in parse_options()
1149 opts->rodir = 0; in parse_options()
1151 opts->shortname = 0; in parse_options()
1152 opts->rodir = 1; in parse_options()
1154 opts->name_check = 'n'; in parse_options()
1155 opts->quiet = opts->showexec = opts->sys_immutable = opts->dotsOK = 0; in parse_options()
1156 opts->unicode_xlate = 0; in parse_options()
1157 opts->numtail = 1; in parse_options()
1158 opts->usefree = opts->nocase = 0; in parse_options()
1159 opts->tz_set = 0; in parse_options()
1160 opts->nfs = 0; in parse_options()
1161 opts->errors = FAT_ERRORS_RO; in parse_options()
1164 opts->utf8 = IS_ENABLED(CONFIG_FAT_DEFAULT_UTF8) && is_vfat; in parse_options()
1183 opts->name_check = 's'; in parse_options()
1186 opts->name_check = 'r'; in parse_options()
1189 opts->name_check = 'n'; in parse_options()
1192 opts->usefree = 1; in parse_options()
1196 opts->nocase = 1; in parse_options()
1199 opts->shortname = VFAT_SFN_DISPLAY_WIN95 in parse_options()
1204 opts->quiet = 1; in parse_options()
1207 opts->showexec = 1; in parse_options()
1213 opts->sys_immutable = 1; in parse_options()
1218 opts->fs_uid = make_kuid(current_user_ns(), option); in parse_options()
1219 if (!uid_valid(opts->fs_uid)) in parse_options()
1225 opts->fs_gid = make_kgid(current_user_ns(), option); in parse_options()
1226 if (!gid_valid(opts->fs_gid)) in parse_options()
1232 opts->fs_fmask = opts->fs_dmask = option; in parse_options()
1237 opts->fs_dmask = option; in parse_options()
1242 opts->fs_fmask = option; in parse_options()
1247 opts->allow_utime = option & (S_IWGRP | S_IWOTH); in parse_options()
1252 opts->codepage = option; in parse_options()
1255 opts->flush = 1; in parse_options()
1267 opts->tz_set = 1; in parse_options()
1268 opts->time_offset = option; in parse_options()
1271 opts->tz_set = 1; in parse_options()
1272 opts->time_offset = 0; in parse_options()
1275 opts->errors = FAT_ERRORS_CONT; in parse_options()
1278 opts->errors = FAT_ERRORS_PANIC; in parse_options()
1281 opts->errors = FAT_ERRORS_RO; in parse_options()
1284 opts->nfs = FAT_NFS_STALE_RW; in parse_options()
1287 opts->nfs = FAT_NFS_NOSTALE_RO; in parse_options()
1290 opts->dos1xfloppy = 1; in parse_options()
1295 opts->dotsOK = 1; in parse_options()
1298 opts->dotsOK = 0; in parse_options()
1303 fat_reset_iocharset(opts); in parse_options()
1307 opts->iocharset = iocharset; in parse_options()
1310 opts->shortname = VFAT_SFN_DISPLAY_LOWER in parse_options()
1314 opts->shortname = VFAT_SFN_DISPLAY_WIN95 in parse_options()
1318 opts->shortname = VFAT_SFN_DISPLAY_WINNT in parse_options()
1322 opts->shortname = VFAT_SFN_DISPLAY_WINNT in parse_options()
1326 opts->utf8 = 0; in parse_options()
1329 opts->utf8 = 1; in parse_options()
1332 opts->unicode_xlate = 0; in parse_options()
1335 opts->unicode_xlate = 1; in parse_options()
1338 opts->numtail = 1; /* negated option */ in parse_options()
1341 opts->numtail = 0; /* negated option */ in parse_options()
1344 opts->rodir = 1; in parse_options()
1347 opts->discard = 1; in parse_options()
1368 if (!strcmp(opts->iocharset, "utf8")) { in parse_options()
1375 if (opts->allow_utime == (unsigned short)-1) in parse_options()
1376 opts->allow_utime = ~opts->fs_dmask & (S_IWGRP | S_IWOTH); in parse_options()
1377 if (opts->unicode_xlate) in parse_options()
1378 opts->utf8 = 0; in parse_options()
1379 if (opts->nfs == FAT_NFS_NOSTALE_RO) { in parse_options()