Lines Matching refs:hsb

230 static int parse_options(char *options, struct hfs_sb_info *hsb)  in parse_options()  argument
237 hsb->s_uid = current_uid(); in parse_options()
238 hsb->s_gid = current_gid(); in parse_options()
239 hsb->s_file_umask = 0133; in parse_options()
240 hsb->s_dir_umask = 0022; in parse_options()
241 hsb->s_type = hsb->s_creator = cpu_to_be32(0x3f3f3f3f); /* == '????' */ in parse_options()
242 hsb->s_quiet = 0; in parse_options()
243 hsb->part = -1; in parse_options()
244 hsb->session = -1; in parse_options()
260 hsb->s_uid = make_kuid(current_user_ns(), (uid_t)tmp); in parse_options()
261 if (!uid_valid(hsb->s_uid)) { in parse_options()
271 hsb->s_gid = make_kgid(current_user_ns(), (gid_t)tmp); in parse_options()
272 if (!gid_valid(hsb->s_gid)) { in parse_options()
282 hsb->s_file_umask = (umode_t)tmp; in parse_options()
283 hsb->s_dir_umask = (umode_t)tmp; in parse_options()
290 hsb->s_file_umask = (umode_t)tmp; in parse_options()
297 hsb->s_dir_umask = (umode_t)tmp; in parse_options()
300 if (match_int(&args[0], &hsb->part)) { in parse_options()
306 if (match_int(&args[0], &hsb->session)) { in parse_options()
312 if (match_fourchar(&args[0], &hsb->s_type)) { in parse_options()
318 if (match_fourchar(&args[0], &hsb->s_creator)) { in parse_options()
324 hsb->s_quiet = 1; in parse_options()
327 if (hsb->nls_disk) { in parse_options()
333 hsb->nls_disk = load_nls(p); in parse_options()
334 if (!hsb->nls_disk) { in parse_options()
342 if (hsb->nls_io) { in parse_options()
348 hsb->nls_io = load_nls(p); in parse_options()
349 if (!hsb->nls_io) { in parse_options()
361 if (hsb->nls_disk && !hsb->nls_io) { in parse_options()
362 hsb->nls_io = load_nls_default(); in parse_options()
363 if (!hsb->nls_io) { in parse_options()
368 hsb->s_dir_umask &= 0777; in parse_options()
369 hsb->s_file_umask &= 0577; in parse_options()