• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/xnu-2782.1.97/bsd/hfs/

Lines Matching defs:args

93 /* for parsing boot-args */
150 static int hfs_changefs(struct mount *mp, struct hfs_mount_args *args);
167 int hfs_mountfs(struct vnode *devvp, struct mount *mp, struct hfs_mount_args *args, int journal_replay_only, vfs_context_t context);
231 struct hfs_mount_args args;
235 if ((retval = copyin(data, (caddr_t)&args, sizeof(args)))) {
500 retval = hfs_changefs(mp, &args);
510 retval = hfs_mountfs(devvp, mp, &args, 0, context);
562 struct hfs_changefs_cargs *args;
566 args = (struct hfs_changefs_cargs *)cargs;
569 vcb = HFSTOVCB(args->hfsmp);
571 lockflags = hfs_systemfile_lock(args->hfsmp, SFL_CATALOG, HFS_SHARED_LOCK);
572 error = cat_lookup(args->hfsmp, &cp->c_desc, 0, 0, &cndesc, &cnattr, NULL, NULL);
573 hfs_systemfile_unlock(args->hfsmp, lockflags);
578 if (args->namefix)
586 if (args->permswitch || args->permfix) {
596 if (args->namefix) {
602 cp->c_desc.cd_encoding = args->hfsmp->hfs_encoding;
612 hfs_changefs(struct mount *mp, struct hfs_mount_args *args)
660 if (args->hfs_timezone.tz_minuteswest != VNOVAL) {
661 gTimeZone = args->hfs_timezone;
665 if ((args->hfs_uid != (uid_t)VNOVAL) && (hfsmp->hfs_uid != args->hfs_uid)) {
666 hfsmp->hfs_uid = args->hfs_uid;
670 if ((args->hfs_gid != (gid_t)VNOVAL) && (hfsmp->hfs_gid != args->hfs_gid)) {
671 hfsmp->hfs_gid = args->hfs_gid;
675 if (args->hfs_mask != (mode_t)VNOVAL) {
676 if (hfsmp->hfs_dir_mask != (args->hfs_mask & ALLPERMS)) {
677 hfsmp->hfs_dir_mask = args->hfs_mask & ALLPERMS;
678 hfsmp->hfs_file_mask = args->hfs_mask & ALLPERMS;
679 if ((args->flags != VNOVAL) && (args->flags & HFSFSMNT_NOXONFILES))
680 hfsmp->hfs_file_mask = (args->hfs_mask & DEFFILEMODE);
689 (args->hfs_encoding != (u_int32_t)VNOVAL) &&
690 (hfsmp->hfs_encoding != args->hfs_encoding)) {
692 retval = hfs_getconverter(args->hfs_encoding, &get_unicode_func, &get_hfsname_func);
708 hfsmp->hfs_encoding = args->hfs_encoding;
750 vcb->volumeNameEncodingHint = args->hfs_encoding;
770 struct hfs_reload_cargs *args;
773 args = (struct hfs_reload_cargs *)cargs;
796 lockflags = hfs_systemfile_lock(args->hfsmp, SFL_CATALOG, HFS_SHARED_LOCK);
797 args->error = cat_idlookup(args->hfsmp, cp->c_fileid, 0, 0, &desc, &cp->c_attr, datafork);
798 hfs_systemfile_unlock(args->hfsmp, lockflags);
799 if (args->error) {
834 struct hfs_reload_cargs args;
850 args.hfsmp = hfsmp;
851 args.error = 0;
859 vnode_iterate(mountp, VNODE_RELOAD | VNODE_WAIT, hfs_reload_callback, (void *)&args);
861 if (args.error)
862 return (args.error);
1209 hfs_mountfs(struct vnode *devvp, struct mount *mp, struct hfs_mount_args *args,
1236 if (args == NULL) {
1237 /* only hfs_mountroot passes us NULL as the 'args' argument */
1455 if (args) {
1456 hfsmp->hfs_uid = (args->hfs_uid == (uid_t)VNOVAL) ? UNKNOWNUID : args->hfs_uid;
1458 hfsmp->hfs_gid = (args->hfs_gid == (gid_t)VNOVAL) ? UNKNOWNGID : args->hfs_gid;
1461 if (args->hfs_mask != (mode_t)VNOVAL) {
1462 hfsmp->hfs_dir_mask = args->hfs_mask & ALLPERMS;
1463 if (args->flags & HFSFSMNT_NOXONFILES) {
1464 hfsmp->hfs_file_mask = (args->hfs_mask & DEFFILEMODE);
1466 hfsmp->hfs_file_mask = args->hfs_mask & ALLPERMS;
1472 if ((args->flags != (int)VNOVAL) && (args->flags & HFSFSMNT_WRAPPER))
1541 if (args) {
1542 hfsmp->hfs_encoding = args->hfs_encoding;
1543 HFSTOVCB(hfsmp)->volumeNameEncodingHint = args->hfs_encoding;
1546 gTimeZone = args->hfs_timezone;
1671 if (args != NULL && (args->flags & HFSFSMNT_EXTENDED_ARGS) &&
1672 args->journal_disable) {
1692 if ((retval = hfs_early_journal_init(hfsmp, vhp, args, embeddedOffset, mdb_offset, mdbp, cred)) == 0) {
1770 retval = hfs_MountHFSPlusVolume(hfsmp, vhp, embeddedOffset, disksize, p, args, cred);
1805 if (hfs_early_journal_init(hfsmp, vhp, args, embeddedOffset, mdb_offset, mdbp, cred) == 0) {
1859 retval = hfs_MountHFSPlusVolume(hfsmp, vhp, embeddedOffset, disksize, p, args, cred);
1898 if (args) {
2455 struct hfs_sync_cargs *args;
2458 args = (struct hfs_sync_cargs *)cargs;
2468 error = hfs_fsync(vp, args->waitfor, 0, args->p);
2471 args->error = error;
2496 struct hfs_sync_cargs args;
2516 args.cred = kauth_cred_get();
2517 args.waitfor = waitfor;
2518 args.p = p;
2519 args.error = 0;
2525 vnode_iterate(mp, 0, hfs_sync_callback, (void *)&args);
2527 if (args.error)
2528 allerror = args.error;
4585 struct hfs_mount_args *args = NULL;
4602 MALLOC(args, struct hfs_mount_args *, sizeof(struct hfs_mount_args), M_TEMP, M_WAITOK);
4603 if (args == NULL) {
4607 bzero(args, sizeof(struct hfs_mount_args));
4609 retval = hfs_mountfs(devvp, mp, args, 1, context);
4623 if (args) {
4624 FREE(args, M_TEMP);