/third_party/ntfs-3g/libntfs-3g/ |
D | dir.c | 249 u64 ntfs_inode_lookup_by_name(ntfs_inode *dir_ni, in ntfs_inode_lookup_by_name() argument 255 ntfs_volume *vol = dir_ni->vol; in ntfs_inode_lookup_by_name() 269 if (!dir_ni || !dir_ni->mrec || !uname || uname_len <= 0) { in ntfs_inode_lookup_by_name() 274 ctx = ntfs_attr_get_search_ctx(dir_ni, NULL); in ntfs_inode_lookup_by_name() 282 "%lld", (unsigned long long)dir_ni->mft_no); in ntfs_inode_lookup_by_name() 313 (unsigned long long)dir_ni->mft_no); in ntfs_inode_lookup_by_name() 325 dir_ni->mft_no)) { in ntfs_inode_lookup_by_name() 372 ia_na = ntfs_attr_open(dir_ni, AT_INDEX_ALLOCATION, NTFS_INDEX_I30, 4); in ntfs_inode_lookup_by_name() 375 (unsigned long long)dir_ni->mft_no); in ntfs_inode_lookup_by_name() 433 (unsigned long long)dir_ni->mft_no); in ntfs_inode_lookup_by_name() [all …]
|
D | xattrs.c | 484 ntfs_inode *ni, ntfs_inode *dir_ni, in ntfs_xattr_system_getxattr() argument 565 if (dir_ni) in ntfs_xattr_system_getxattr() 566 res = ntfs_get_ntfs_dos_name(ni, dir_ni, value, size); in ntfs_xattr_system_getxattr() 611 ntfs_inode *ni, ntfs_inode *dir_ni, in ntfs_xattr_system_setxattr() argument 694 if (dir_ni) in ntfs_xattr_system_setxattr() 696 res = ntfs_set_ntfs_dos_name(ni, dir_ni, value, in ntfs_xattr_system_setxattr() 741 ntfs_inode *ni, ntfs_inode *dir_ni) in ntfs_xattr_system_removexattr() argument 792 if (ni && dir_ni) { in ntfs_xattr_system_removexattr() 793 if (ntfs_remove_ntfs_dos_name(ni,dir_ni)) in ntfs_xattr_system_removexattr()
|
D | object_id.c | 191 ntfs_inode *dir_ni; in open_object_id_index() local 195 dir_ni = ntfs_inode_open(vol, FILE_Extend); in open_object_id_index() 197 if (dir_ni) { in open_object_id_index() 198 inum = ntfs_inode_lookup_by_mbsname(dir_ni,"$ObjId"); in open_object_id_index() 201 ntfs_inode_close(dir_ni); in open_object_id_index()
|
D | reparse.c | 131 static u64 ntfs_fix_file_name(ntfs_inode *dir_ni, ntfschar *uname, in ntfs_fix_file_name() argument 134 ntfs_volume *vol = dir_ni->vol; in ntfs_fix_file_name() 150 icx = ntfs_index_ctx_get(dir_ni, NTFS_INDEX_I30, 4); in ntfs_fix_file_name() 1024 ntfs_inode *dir_ni; in open_reparse_index() local 1028 dir_ni = ntfs_inode_open(vol, FILE_Extend); in open_reparse_index() 1030 if (dir_ni) { in open_reparse_index() 1031 inum = ntfs_inode_lookup_by_mbsname(dir_ni,"$Reparse"); in open_reparse_index() 1034 ntfs_inode_close(dir_ni); in open_reparse_index()
|
D | inode.c | 794 static int ntfs_inode_sync_file_name(ntfs_inode *ni, ntfs_inode *dir_ni) in ntfs_inode_sync_file_name() argument 837 if (dir_ni) in ntfs_inode_sync_file_name() 838 index_ni = dir_ni; in ntfs_inode_sync_file_name() 855 if ((ni != index_ni) && !dir_ni in ntfs_inode_sync_file_name() 907 if ((ni != index_ni) && !dir_ni in ntfs_inode_sync_file_name() 950 static int ntfs_inode_sync_in_dir(ntfs_inode *ni, ntfs_inode *dir_ni) in ntfs_inode_sync_in_dir() argument 975 ntfs_inode_sync_file_name(ni, dir_ni)) { in ntfs_inode_sync_in_dir() 1087 int ntfs_inode_close_in_dir(ntfs_inode *ni, ntfs_inode *dir_ni) in ntfs_inode_close_in_dir() argument 1091 res = ntfs_inode_sync_in_dir(ni, dir_ni); in ntfs_inode_close_in_dir()
|
D | security.c | 2555 ntfs_inode *dir_ni, mode_t mode, BOOL isdir) in inherit_posix() argument 2569 cached = fetch_cache(scx,dir_ni); in inherit_posix() 2583 securattr = getsecurityattr(scx->vol, dir_ni); in inherit_posix() 2610 if (!test_nino_flag(dir_ni, v3_Extensions) in inherit_posix() 2614 securattr, dir_ni); in inherit_posix() 2620 if (test_nino_flag(dir_ni, v3_Extensions)) { in inherit_posix() 2621 enter_cache(scx, dir_ni, uid, in inherit_posix() 2648 uid_t uid, gid_t gid, ntfs_inode *dir_ni, in ntfs_alloc_securid() argument 2668 pxdesc = inherit_posix(scx, dir_ni, mode, isdir); in ntfs_alloc_securid() 2731 ntfs_inode *dir_ni, mode_t mode) in ntfs_set_inherited_posix() argument [all …]
|
D | index.c | 1960 int ntfs_index_remove(ntfs_inode *dir_ni, in ntfs_index_remove() argument 1967 icx = ntfs_index_ctx_get(dir_ni, NTFS_INDEX_I30, 4); in ntfs_index_remove()
|
/third_party/ntfs-3g/include/ntfs-3g/ |
D | dir.h | 62 extern u64 ntfs_inode_lookup_by_name(ntfs_inode *dir_ni, 64 extern u64 ntfs_inode_lookup_by_mbsname(ntfs_inode *dir_ni, const char *name); 65 extern void ntfs_inode_update_mbsname(ntfs_inode *dir_ni, const char *name, 70 extern ntfs_inode *ntfs_create(ntfs_inode *dir_ni, le32 securid, 72 extern ntfs_inode *ntfs_create_device(ntfs_inode *dir_ni, le32 securid, 74 extern ntfs_inode *ntfs_create_symlink(ntfs_inode *dir_ni, le32 securid, 79 ntfs_inode *ni, ntfs_inode *dir_ni, const ntfschar *name, 82 extern int ntfs_link(ntfs_inode *ni, ntfs_inode *dir_ni, const ntfschar *name, 109 extern int ntfs_readdir(ntfs_inode *dir_ni, s64 *pos, 115 int ntfs_get_ntfs_dos_name(ntfs_inode *ni, ntfs_inode *dir_ni, [all …]
|
D | xattrs.h | 87 ntfs_inode *ni, ntfs_inode *dir_ni, 91 ntfs_inode *ni, ntfs_inode *dir_ni, 95 ntfs_inode *ni, ntfs_inode *dir_ni);
|
D | plugin.h | 160 ntfs_inode *(*create)(ntfs_inode *dir_ni, const REPARSE_POINT *reparse, 171 int (*link)(ntfs_inode *dir_ni, const REPARSE_POINT *reparse, 179 int (*unlink)(ntfs_inode *dir_ni, const REPARSE_POINT *reparse,
|
D | security.h | 238 uid_t uid, gid_t gid, ntfs_inode *dir_ni, 257 ntfs_inode *dir_ni, BOOL fordir); 267 ntfs_inode *dir_ni, mode_t mode);
|
D | index.h | 154 extern int ntfs_index_remove(ntfs_inode *dir_ni, ntfs_inode *ni,
|
D | inode.h | 185 extern int ntfs_inode_close_in_dir(ntfs_inode *ni, ntfs_inode *dir_ni);
|
/third_party/ntfs-3g/src/ |
D | lowntfs-3g.c | 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() [all …]
|
D | ntfs-3g.c | 329 const char *path, ntfs_inode *dir_ni, in ntfs_allowed_dir_access() argument 346 if (dir_ni) in ntfs_allowed_dir_access() 347 allowed = ntfs_real_allowed_access(scx, dir_ni, in ntfs_allowed_dir_access() 408 const char *path, ntfs_inode *dir_ni, in ntfs_allowed_real_dir_access() argument 416 if (dir_ni) in ntfs_allowed_real_dir_access() 417 allowed = ntfs_real_allowed_access(scx, dir_ni, accesstype); in ntfs_allowed_real_dir_access() 442 ntfs_inode *dir_ni; in get_parent_dir() local 447 dir_ni = (ntfs_inode*)NULL; in get_parent_dir() 452 dir_ni = ntfs_pathname_to_inode(ctx->vol, in get_parent_dir() 458 return (dir_ni); in get_parent_dir() [all …]
|
/third_party/ntfs-3g/ntfsprogs/ |
D | ntfscp.c | 807 static ntfs_inode *ntfs_new_file(ntfs_inode *dir_ni, in ntfs_new_file() argument 823 ni = ntfs_create(dir_ni, const_cpu_to_le32(0), ufilename, ufilename_len, S_IFREG); in ntfs_new_file() 936 ntfs_inode *dir_ni; in main() local 957 dir_ni = ntfs_pathname_to_inode(vol, NULL, in main() 962 dir_ni = ntfs_inode_open(vol, FILE_root); in main() 964 if (dir_ni) { in main() 965 if (!(dir_ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)) { in main() 972 ntfs_inode_close(dir_ni); in main() 977 ni = ntfs_new_file(dir_ni, filename); in main() 978 ntfs_inode_close(dir_ni); in main() [all …]
|