Lines Matching refs:vol

119 	ntfs_volume *vol = walk->dir->vol;  in ntfs_allocate_index_block()  local
122 allocation = ntfs_find_attr(walk->dir, vol->at_index_allocation, I30); in ntfs_allocate_index_block()
126 error = ntfs_create_attr(walk->dir, vol->at_index_allocation, in ntfs_allocate_index_block()
131 error = ntfs_create_attr(walk->dir, vol->at_bitmap, I30, bmp, in ntfs_allocate_index_block()
136 bitmap = ntfs_find_attr(walk->dir, vol->at_bitmap, I30); in ntfs_allocate_index_block()
153 error = ntfs_read_attr(walk->dir, vol->at_bitmap, I30, 0, &io); in ntfs_allocate_index_block()
173 error = ntfs_read_attr(walk->dir, vol->at_bitmap, I30, i, &io); in ntfs_allocate_index_block()
184 error = ntfs_write_attr(walk->dir, vol->at_bitmap, I30, i, &io); in ntfs_allocate_index_block()
195 if (walk->newblock * vol->cluster_size >= size) { in ntfs_allocate_index_block()
199 int nr_fix = (s1 >> vol->sector_size) + 1; in ntfs_allocate_index_block()
252 ntfs_volume *vol = walk->dir->vol; in ntfs_index_writeback() local
262 error = ntfs_write_attr(walk->dir, vol->at_index_root, I30, 0, in ntfs_index_writeback()
267 a = ntfs_find_attr(walk->dir, vol->at_index_root, I30); in ntfs_index_writeback()
281 error = ntfs_write_attr(walk->dir, vol->at_index_allocation, in ntfs_index_writeback()
282 I30, (__s64)block << vol->cluster_size_bits, in ntfs_index_writeback()
298 ntfs_volume *vol = walk->dir->vol; in ntfs_split_record() local
313 newbuf = ntfs_malloc(vol->index_record_size); in ntfs_split_record()
319 io.size = vol->index_record_size; in ntfs_split_record()
321 error = ntfs_read_attr(walk->dir, vol->at_index_allocation, I30, in ntfs_split_record()
322 (__s64)walk->newblock << vol->cluster_size_bits, &io); in ntfs_split_record()
325 if (io.size != vol->index_record_size) { in ntfs_split_record()
391 blocksize = walk->dir->vol->mft_record_size; in ntfs_dir_insert()
432 ra = ntfs_find_attr(ino, ino->vol->at_index_root, I30); in ntfs_split_indexroot()
435 bsize = ino->vol->mft_record_size; in ntfs_split_indexroot()
442 error = ntfs_read_attr(ino, ino->vol->at_index_root, I30, 0, &io); in ntfs_split_indexroot()
454 index = ntfs_malloc(ino->vol->index_record_size); in ntfs_split_indexroot()
468 io.size = ino->vol->index_record_size; in ntfs_split_indexroot()
469 error = ntfs_read_attr(ino, ino->vol->at_index_allocation, I30, in ntfs_split_indexroot()
470 (__s64)walk.newblock << ino->vol->cluster_size_bits, &io); in ntfs_split_indexroot()
504 static inline unsigned short ntfs_my_toupper(ntfs_volume *vol, ntfs_u16 x) in ntfs_my_toupper() argument
507 if (x >= vol->upcase_length) in ntfs_my_toupper()
509 return vol->upcase[x]; in ntfs_my_toupper()
519 ntfs_volume *vol = walk->dir->vol; in ntfs_my_strcmp() local
521 if (ntfs_my_toupper(vol, NTFS_GETU16(name + i)) != in ntfs_my_strcmp()
522 ntfs_my_toupper(vol, NTFS_GETU16(walk->name + i))) in ntfs_my_strcmp()
530 if (ntfs_my_toupper(vol, NTFS_GETU16(name + i)) < in ntfs_my_strcmp()
531 ntfs_my_toupper(vol, NTFS_GETU16(walk->name + i))) in ntfs_my_strcmp()
556 error = ntfs_read_attr(walk->dir, walk->dir->vol->at_index_allocation, in ntfs_getdir_record()
557 I30, (__s64)block << walk->dir->vol->cluster_size_bits, &io); in ntfs_getdir_record()
746 int length = walk->dir->vol->mft_record_size; in ntfs_getdir()
757 error = ntfs_read_attr(walk->dir, walk->dir->vol->at_index_root, I30, in ntfs_getdir()
798 ntfs_volume *vol; in ntfs_getdir_unsorted() local
808 vol = ino->vol; in ntfs_getdir_unsorted()
809 if (!vol) { in ntfs_getdir_unsorted()
819 buf = ntfs_malloc(io.size = vol->mft_record_size); in ntfs_getdir_unsorted()
824 err = ntfs_read_attr(ino, vol->at_index_root, I30, 0, &io); in ntfs_getdir_unsorted()
848 err = ntfs_read_attr(ino, vol->at_index_allocation, I30, ib_ofs, in ntfs_getdir_unsorted()
898 attr = ntfs_find_attr(ino, vol->at_bitmap, I30); in ntfs_getdir_unsorted()
918 err = ntfs_read_attr(ino, vol->at_bitmap, I30, 0, &io); in ntfs_getdir_unsorted()
921 attr = ntfs_find_attr(ino, vol->at_index_allocation, I30); in ntfs_getdir_unsorted()
1017 error = ntfs_decodeuni(dir->vol, name, namelen, &walk.name,
1037 name_attr = ntfs_find_attr(ino, vol->at_file_name, 0);
1059 NTFS_PUTU32(data + 8, ino->vol->index_record_size); in ntfs_add_index_root()
1060 NTFS_PUTU32(data + 0xC, ino->vol->index_clusters_per_record); in ntfs_add_index_root()
1077 return ntfs_create_attr(ino, ino->vol->at_index_root, name, in ntfs_add_index_root()