Lines Matching refs:hsb
223 static int parse_options(char *options, struct hfs_sb_info *hsb) in parse_options() argument
230 hsb->s_uid = current_uid(); in parse_options()
231 hsb->s_gid = current_gid(); in parse_options()
232 hsb->s_file_umask = 0133; in parse_options()
233 hsb->s_dir_umask = 0022; in parse_options()
234 hsb->s_type = hsb->s_creator = cpu_to_be32(0x3f3f3f3f); /* == '????' */ in parse_options()
235 hsb->s_quiet = 0; in parse_options()
236 hsb->part = -1; in parse_options()
237 hsb->session = -1; in parse_options()
253 hsb->s_uid = make_kuid(current_user_ns(), (uid_t)tmp); in parse_options()
254 if (!uid_valid(hsb->s_uid)) { in parse_options()
264 hsb->s_gid = make_kgid(current_user_ns(), (gid_t)tmp); in parse_options()
265 if (!gid_valid(hsb->s_gid)) { in parse_options()
275 hsb->s_file_umask = (umode_t)tmp; in parse_options()
276 hsb->s_dir_umask = (umode_t)tmp; in parse_options()
283 hsb->s_file_umask = (umode_t)tmp; in parse_options()
290 hsb->s_dir_umask = (umode_t)tmp; in parse_options()
293 if (match_int(&args[0], &hsb->part)) { in parse_options()
299 if (match_int(&args[0], &hsb->session)) { in parse_options()
305 if (match_fourchar(&args[0], &hsb->s_type)) { in parse_options()
311 if (match_fourchar(&args[0], &hsb->s_creator)) { in parse_options()
317 hsb->s_quiet = 1; in parse_options()
320 if (hsb->nls_disk) { in parse_options()
326 hsb->nls_disk = load_nls(p); in parse_options()
327 if (!hsb->nls_disk) { in parse_options()
335 if (hsb->nls_io) { in parse_options()
341 hsb->nls_io = load_nls(p); in parse_options()
342 if (!hsb->nls_io) { in parse_options()
354 if (hsb->nls_disk && !hsb->nls_io) { in parse_options()
355 hsb->nls_io = load_nls_default(); in parse_options()
356 if (!hsb->nls_io) { in parse_options()
361 hsb->s_dir_umask &= 0777; in parse_options()
362 hsb->s_file_umask &= 0577; in parse_options()