• Home
  • Raw
  • Download

Lines Matching refs:dir_ni

379 	ntfs_inode *dir_ni;  in ntfs_fuse_inode_lookup()  local
382 dir_ni = ntfs_inode_open(ctx->vol, INODE(parent)); in ntfs_fuse_inode_lookup()
383 if (dir_ni) { in ntfs_fuse_inode_lookup()
385 inum = ntfs_inode_lookup_by_mbsname(dir_ni, name); in ntfs_fuse_inode_lookup()
391 if (ntfs_inode_close(dir_ni) in ntfs_fuse_inode_lookup()
413 ntfs_inode *dir_ni, fuse_ino_t ino, in ntfs_allowed_dir_access() argument
420 allowed = ntfs_allowed_access(scx, dir_ni, accesstype); in ntfs_allowed_dir_access()
1032 ntfs_inode *dir_ni; in ntfs_fuse_lookup() local
1037 dir_ni = ntfs_inode_open(ctx->vol, INODE(parent)); in ntfs_fuse_lookup()
1038 if (dir_ni) { in ntfs_fuse_lookup()
1044 && !ntfs_allowed_access(&security,dir_ni,S_IEXEC)) { in ntfs_fuse_lookup()
1045 ntfs_inode_close(dir_ni); in ntfs_fuse_lookup()
1051 iref = ntfs_inode_lookup_by_mbsname(dir_ni, in ntfs_fuse_lookup()
1058 ok = !ntfs_inode_close(dir_ni) in ntfs_fuse_lookup()
2345 ntfs_inode *dir_ni = NULL, *ni; in ntfs_fuse_create() local
2370 dir_ni = ntfs_inode_open(ctx->vol, INODE(parent)); in ntfs_fuse_create()
2371 if (!dir_ni) { in ntfs_fuse_create()
2379 dir_ni, &gid, &dsetgid)) { in ntfs_fuse_create()
2382 ntfs_allowed_create(&security, dir_ni, &gid, &dsetgid); in ntfs_fuse_create()
2404 dir_ni, S_ISDIR(type)); in ntfs_fuse_create()
2409 dir_ni, perm, S_ISDIR(type)); in ntfs_fuse_create()
2416 if (dir_ni->flags & FILE_ATTR_REPARSE_POINT) { in ntfs_fuse_create()
2422 ops = select_reparse_plugin(ctx, dir_ni, &reparse); in ntfs_fuse_create()
2424 ni = (*ops->create)(dir_ni, reparse, in ntfs_fuse_create()
2439 ni = ntfs_create_device(dir_ni, securid, in ntfs_fuse_create()
2450 ni = ntfs_create_symlink(dir_ni, in ntfs_fuse_create()
2456 ni = ntfs_create(dir_ni, securid, uname, in ntfs_fuse_create()
2471 dir_ni, perm) < 0) in ntfs_fuse_create()
2495 ntfs_inode_update_mbsname(dir_ni, name, ni->mft_no); in ntfs_fuse_create()
2506 if (ntfs_inode_close_in_dir(ni, dir_ni)) in ntfs_fuse_create()
2508 ntfs_fuse_update_times(dir_ni, NTFS_UPDATE_MCTIME); in ntfs_fuse_create()
2518 if (ntfs_inode_close(dir_ni)) in ntfs_fuse_create()
2588 ntfs_inode *dir_ni = NULL, *ni; in ntfs_fuse_newlink() local
2614 dir_ni = ntfs_inode_open(ctx->vol, INODE(newparent)); in ntfs_fuse_newlink()
2615 if (!dir_ni) { in ntfs_fuse_newlink()
2623 && !ntfs_allowed_access(&security,dir_ni,S_IWRITE + S_IEXEC)) in ntfs_fuse_newlink()
2630 if (dir_ni->flags & FILE_ATTR_REPARSE_POINT) { in ntfs_fuse_newlink()
2635 res = CALL_REPARSE_PLUGIN(dir_ni, link, in ntfs_fuse_newlink()
2644 if (ntfs_link(ni, dir_ni, uname, uname_len)) { in ntfs_fuse_newlink()
2649 ntfs_inode_update_mbsname(dir_ni, newname, ni->mft_no); in ntfs_fuse_newlink()
2659 ntfs_fuse_update_times(dir_ni, NTFS_UPDATE_MCTIME); in ntfs_fuse_newlink()
2666 if (ntfs_inode_close(dir_ni)) in ntfs_fuse_newlink()
2692 ntfs_inode *dir_ni = NULL, *ni = NULL; in ntfs_fuse_rm() local
2712 dir_ni = ntfs_inode_open(ctx->vol, INODE(parent)); in ntfs_fuse_rm()
2713 if (!dir_ni) { in ntfs_fuse_rm()
2724 iref = ntfs_inode_lookup_by_mbsname(dir_ni, name); in ntfs_fuse_rm()
2753 res = ntfs_inode_close(dir_ni); in ntfs_fuse_rm()
2756 dir_ni = (ntfs_inode*)NULL; in ntfs_fuse_rm()
2761 dir_ni = ntfs_inode_open(ctx->vol, INODE(parent)); in ntfs_fuse_rm()
2762 if (!dir_ni) { in ntfs_fuse_rm()
2778 && !ntfs_allowed_dir_access(&security, dir_ni, ino, ni, in ntfs_fuse_rm()
2823 gref = ntfs_inode_lookup_by_mbsname(dir_ni, ghostname); in ntfs_fuse_rm()
2826 ntfs_delete(ctx->vol, (char*)NULL, gni, dir_ni, in ntfs_fuse_rm()
2829 dir_ni = (ntfs_inode*)NULL; in ntfs_fuse_rm()
2831 if (ntfs_inode_close(dir_ni)) { in ntfs_fuse_rm()
2835 dir_ni = (ntfs_inode*)NULL; in ntfs_fuse_rm()
2843 dir_ni = ntfs_inode_open(ctx->vol, INODE(parent)); in ntfs_fuse_rm()
2844 if (!dir_ni) { in ntfs_fuse_rm()
2857 if (dir_ni->flags & FILE_ATTR_REPARSE_POINT) { in ntfs_fuse_rm()
2862 res = CALL_REPARSE_PLUGIN(dir_ni, unlink, (char*)NULL, in ntfs_fuse_rm()
2868 if (ntfs_delete(ctx->vol, (char*)NULL, ni, dir_ni, in ntfs_fuse_rm()
2872 ni = dir_ni = NULL; in ntfs_fuse_rm()
2876 if (ntfs_inode_close(dir_ni) && !res) in ntfs_fuse_rm()
3321 ntfs_inode *dir_ni; in ntfs_check_access_xattr() local
3367 dir_ni = ntfs_dir_parent_inode(ni); in ntfs_check_access_xattr()
3368 if (dir_ni) { in ntfs_check_access_xattr()
3370 dir_ni, acctype)) in ntfs_check_access_xattr()
3372 if (ntfs_inode_close(dir_ni)) in ntfs_check_access_xattr()
3542 ntfs_inode *dir_ni; local
3579 dir_ni = ntfs_dir_parent_inode(ni);
3581 dir_ni = (ntfs_inode*)NULL;
3583 attr, ni, dir_ni, value, size);
3584 if (dir_ni && ntfs_inode_close(dir_ni))
3602 dir_ni = ntfs_dir_parent_inode(ni);
3604 dir_ni = (ntfs_inode*)NULL;
3606 attr, ni, dir_ni, value, size);
3607 if (dir_ni && ntfs_inode_close(dir_ni))
3724 ntfs_inode *dir_ni; local
3758 dir_ni = ntfs_dir_parent_inode(ni);
3760 dir_ni = (ntfs_inode*)NULL;
3762 attr, ni, dir_ni, value, size, flags);
3792 dir_ni = ntfs_dir_parent_inode(ni);
3794 dir_ni = (ntfs_inode*)NULL;
3796 attr, ni, dir_ni, value, size, flags);
3974 ntfs_inode *dir_ni; local
4005 dir_ni = ntfs_dir_parent_inode(ni);
4007 dir_ni = (ntfs_inode*)NULL;
4009 attr, ni, dir_ni);
4039 dir_ni = ntfs_dir_parent_inode(ni);
4041 dir_ni = (ntfs_inode*)NULL;
4043 attr, ni, dir_ni);