Home
last modified time | relevance | path

Searched refs:vol (Results 1 – 25 of 31) sorted by relevance

12

/fs/ntfs/
Dsuper.c87 static bool parse_options(ntfs_volume *vol, char *opt) in parse_options() argument
192 ntfs_warning(vol->sb, "Ignoring obsolete option %s.", in parse_options()
196 ntfs_warning(vol->sb, "Option iocharset is " in parse_options()
207 ntfs_error(vol->sb, "NLS character set " in parse_options()
211 ntfs_error(vol->sb, "NLS character set %s not " in parse_options()
220 ntfs_warning(vol->sb, "Option utf8 is no longer " in parse_options()
234 ntfs_error(vol->sb, "Unrecognized mount option %s.", p); in parse_options()
247 ntfs_warning(vol->sb, "Sloppy option given. Ignoring " in parse_options()
252 ntfs_error(vol->sb, "Invalid errors option argument " in parse_options()
258 if (vol->nls_map && vol->nls_map != nls_map) { in parse_options()
[all …]
Dlcnalloc.c36 int ntfs_cluster_free_from_rl_nolock(ntfs_volume *vol, in ntfs_cluster_free_from_rl_nolock() argument
39 struct inode *lcnbmp_vi = vol->lcnbmp_ino; in ntfs_cluster_free_from_rl_nolock()
132 runlist_element *ntfs_cluster_alloc(ntfs_volume *vol, const VCN start_vcn, in ntfs_cluster_alloc() argument
154 BUG_ON(!vol); in ntfs_cluster_alloc()
155 lcnbmp_vi = vol->lcnbmp_ino; in ntfs_cluster_alloc()
167 down_write(&vol->lcnbmp_lock); in ntfs_cluster_alloc()
189 zone_start = vol->data1_zone_pos; in ntfs_cluster_alloc()
191 zone_start = vol->mft_zone_pos; in ntfs_cluster_alloc()
199 } else if (zone == DATA_ZONE && zone_start >= vol->mft_zone_start && in ntfs_cluster_alloc()
200 zone_start < vol->mft_zone_end) { in ntfs_cluster_alloc()
[all …]
Dmft.c39 ntfs_volume *vol = ni->vol; in map_mft_record_page() local
40 struct inode *mft_vi = vol->mft_ino; in map_mft_record_page()
52 index = (u64)ni->mft_no << vol->mft_record_size_bits >> in map_mft_record_page()
54 ofs = (ni->mft_no << vol->mft_record_size_bits) & ~PAGE_MASK; in map_mft_record_page()
63 vol->mft_record_size) { in map_mft_record_page()
65 ntfs_error(vol->sb, "Attempt to read mft record 0x%lx, " in map_mft_record_page()
82 ntfs_error(vol->sb, "Mft record 0x%lx is corrupt. " in map_mft_record_page()
86 NVolSetErrors(vol); in map_mft_record_page()
162 ntfs_error(ni->vol->sb, "Failed with error code %lu.", -PTR_ERR(m)); in map_mft_record()
282 ntfs_error(base_ni->vol->sb, "Found stale extent mft " in map_extent_mft_record()
[all …]
Dquota.c23 bool ntfs_mark_quotas_out_of_date(ntfs_volume *vol) in ntfs_mark_quotas_out_of_date() argument
31 if (NVolQuotaOutOfDate(vol)) in ntfs_mark_quotas_out_of_date()
33 if (!vol->quota_ino || !vol->quota_q_ino) { in ntfs_mark_quotas_out_of_date()
34 ntfs_error(vol->sb, "Quota inodes are not open."); in ntfs_mark_quotas_out_of_date()
37 inode_lock(vol->quota_q_ino); in ntfs_mark_quotas_out_of_date()
38 ictx = ntfs_index_ctx_get(NTFS_I(vol->quota_q_ino)); in ntfs_mark_quotas_out_of_date()
40 ntfs_error(vol->sb, "Failed to get index context."); in ntfs_mark_quotas_out_of_date()
46 ntfs_error(vol->sb, "Quota defaults entry is not " in ntfs_mark_quotas_out_of_date()
49 ntfs_error(vol->sb, "Lookup of quota defaults entry " in ntfs_mark_quotas_out_of_date()
54 ntfs_error(vol->sb, "Quota defaults entry size is invalid. " in ntfs_mark_quotas_out_of_date()
[all …]
Dattrib.c109 ni->vol->cluster_size_bits; in ntfs_map_runlist_nolock()
173 rl = ntfs_mapping_pairs_decompress(ni->vol, a, ni->runlist.rl); in ntfs_map_runlist_nolock()
388 ntfs_error(ni->vol->sb, "Failed with error code %lli.", in ntfs_attr_vcn_to_lcn_nolock()
514 ntfs_error(ni->vol->sb, "Failed with error code %i.", err); in ntfs_attr_find_vcn_nolock()
580 ntfs_volume *vol = ctx->ntfs_ino->vol; in ntfs_attr_find() local
581 ntfschar *upcase = vol->upcase; in ntfs_attr_find()
582 u32 upcase_len = vol->upcase_len; in ntfs_attr_find()
699 ntfs_error(vol->sb, "Inode is corrupt. Run chkdsk."); in ntfs_attr_find()
700 NVolSetErrors(vol); in ntfs_attr_find()
720 int load_attribute_list(ntfs_volume *vol, runlist *runlist, u8 *al_start, in load_attribute_list() argument
[all …]
Dinode.c375 ni->vol = NTFS_SB(sb); in __ntfs_init_inode()
458 ntfs_error(ctx->ntfs_ino->vol->sb, "Corrupt file name " in ntfs_is_extended_system_file()
463 ntfs_error(ctx->ntfs_ino->vol->sb, "Non-resident file " in ntfs_is_extended_system_file()
468 ntfs_error(ctx->ntfs_ino->vol->sb, "File name with " in ntfs_is_extended_system_file()
474 ntfs_error(ctx->ntfs_ino->vol->sb, "Unindexed file " in ntfs_is_extended_system_file()
490 ntfs_error(ctx->ntfs_ino->vol->sb, "Inode hard link count " in ntfs_is_extended_system_file()
526 ntfs_volume *vol = NTFS_SB(vi->i_sb); in ntfs_read_locked_inode() local
538 vi->i_uid = vol->uid; in ntfs_read_locked_inode()
539 vi->i_gid = vol->gid; in ntfs_read_locked_inode()
601 vi->i_mode &= ~vol->dmask; in ntfs_read_locked_inode()
[all …]
Ddir.c70 ntfs_volume *vol = dir_ni->vol; in ntfs_lookup_inode_by_name() local
71 struct super_block *sb = vol->sb; in ntfs_lookup_inode_by_name()
146 CASE_SENSITIVE, vol->upcase, vol->upcase_len)) { in ntfs_lookup_inode_by_name()
191 if (!NVolCaseSensitive(vol) && in ntfs_lookup_inode_by_name()
196 IGNORE_CASE, vol->upcase, vol->upcase_len)) { in ntfs_lookup_inode_by_name()
237 IGNORE_CASE, vol->upcase, vol->upcase_len); in ntfs_lookup_inode_by_name()
256 CASE_SENSITIVE, vol->upcase, vol->upcase_len); in ntfs_lookup_inode_by_name()
406 CASE_SENSITIVE, vol->upcase, vol->upcase_len)) { in ntfs_lookup_inode_by_name()
451 if (!NVolCaseSensitive(vol) && in ntfs_lookup_inode_by_name()
456 IGNORE_CASE, vol->upcase, vol->upcase_len)) { in ntfs_lookup_inode_by_name()
[all …]
Daops.c91 ntfs_error(ni->vol->sb, "Buffer I/O error, logical block " in ntfs_end_buffer_async_read()
172 ntfs_volume *vol; in ntfs_read_block() local
183 vol = ni->vol; in ntfs_read_block()
188 blocksize = vol->sb->s_blocksize; in ntfs_read_block()
189 blocksize_bits = vol->sb->s_blocksize_bits; in ntfs_read_block()
236 bh->b_bdev = vol->sb->s_bdev; in ntfs_read_block()
243 vol->cluster_size_bits; in ntfs_read_block()
245 vol->cluster_size_mask; in ntfs_read_block()
261 bh->b_blocknr = ((lcn << vol->cluster_size_bits) in ntfs_read_block()
303 ntfs_error(vol->sb, "Failed to read from inode 0x%lx, " in ntfs_read_block()
[all …]
Dfile.c327 ntfs_volume *vol = ni->vol; in ntfs_prepare_file_for_write() local
378 end = (pos + iov_iter_count(from) + vol->cluster_size_mask) & in ntfs_prepare_file_for_write()
379 ~(u64)vol->cluster_size_mask; in ntfs_prepare_file_for_write()
577 ntfs_volume *vol; in ntfs_prepare_pages_for_non_resident_write() local
601 vol = ni->vol; in ntfs_prepare_pages_for_non_resident_write()
606 blocksize = vol->sb->s_blocksize; in ntfs_prepare_pages_for_non_resident_write()
607 blocksize_bits = vol->sb->s_blocksize_bits; in ntfs_prepare_pages_for_non_resident_write()
629 cpos = pos >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write()
631 cend = (end + vol->cluster_size - 1) >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write()
650 bh_cpos = bh_pos >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write()
[all …]
Dusnjrnl.c33 bool ntfs_stamp_usnjrnl(ntfs_volume *vol) in ntfs_stamp_usnjrnl() argument
36 if (likely(!NVolUsnJrnlStamped(vol))) { in ntfs_stamp_usnjrnl()
41 page = ntfs_map_page(vol->usnjrnl_max_ino->i_mapping, 0); in ntfs_stamp_usnjrnl()
43 ntfs_error(vol->sb, "Failed to read from " in ntfs_stamp_usnjrnl()
56 i_size_read(vol->usnjrnl_j_ino)); in ntfs_stamp_usnjrnl()
58 cpu_to_sle64(i_size_read(vol->usnjrnl_j_ino)); in ntfs_stamp_usnjrnl()
64 NVolSetUsnJrnlStamped(vol); in ntfs_stamp_usnjrnl()
Dlogfile.c475 ntfs_volume *vol = NTFS_SB(log_vi->i_sb); in ntfs_check_logfile() local
487 if (NVolLogFileEmpty(vol)) in ntfs_check_logfile()
516 ntfs_error(vol->sb, "$LogFile is too small."); in ntfs_check_logfile()
534 ntfs_error(vol->sb, "Error mapping $LogFile " in ntfs_check_logfile()
602 NVolSetLogFileEmpty(vol); in ntfs_check_logfile()
609 ntfs_error(vol->sb, "Did not find any restart pages in " in ntfs_check_logfile()
667 ntfs_volume *vol = NTFS_SB(log_vi->i_sb); in ntfs_is_logfile_clean() local
672 if (NVolLogFileEmpty(vol)) { in ntfs_is_logfile_clean()
679 ntfs_error(vol->sb, "Restart page buffer is invalid. This is " in ntfs_is_logfile_clean()
716 ntfs_volume *vol = log_ni->vol; in ntfs_empty_logfile() local
[all …]
Dnamei.c92 ntfs_volume *vol = NTFS_SB(dir_ino->i_sb); in ntfs_lookup() local
103 uname_len = ntfs_nlstoucs(vol, dent->d_name.name, dent->d_name.len, in ntfs_lookup()
107 ntfs_error(vol->sb, "Failed to convert name to " in ntfs_lookup()
117 dent_inode = ntfs_iget(vol->sb, dent_ino); in ntfs_lookup()
134 ntfs_error(vol->sb, "Found stale reference to inode " in ntfs_lookup()
143 ntfs_error(vol->sb, "ntfs_iget(0x%lx) failed with " in ntfs_lookup()
158 ntfs_error(vol->sb, "ntfs_lookup_ino_by_name() failed with error " in ntfs_lookup()
173 nls_name.len = (unsigned)ntfs_ucstonls(vol, in ntfs_lookup()
204 ntfs_error(vol->sb, "Inode corrupt: No WIN32 " in ntfs_lookup()
227 nls_name.len = (unsigned)ntfs_ucstonls(vol, in ntfs_lookup()
[all …]
Dunistr.c245 int ntfs_nlstoucs(const ntfs_volume *vol, const char *ins, in ntfs_nlstoucs() argument
248 struct nls_table *nls = vol->nls_map; in ntfs_nlstoucs()
275 ntfs_error(vol->sb, "Failed to allocate buffer for converted " in ntfs_nlstoucs()
279 ntfs_error(vol->sb, "Received NULL pointer."); in ntfs_nlstoucs()
284 ntfs_error(vol->sb, "Name using character set %s contains " in ntfs_nlstoucs()
289 ntfs_error(vol->sb, "Name is too long (maximum length for a " in ntfs_nlstoucs()
322 int ntfs_ucstonls(const ntfs_volume *vol, const ntfschar *ins, in ntfs_ucstonls() argument
325 struct nls_table *nls = vol->nls_map; in ntfs_ucstonls()
370 ntfs_error(vol->sb, "Received NULL pointer."); in ntfs_ucstonls()
373 ntfs_error(vol->sb, "Unicode name contains characters that cannot be " in ntfs_ucstonls()
[all …]
Dlcnalloc.h29 extern runlist_element *ntfs_cluster_alloc(ntfs_volume *vol,
99 extern int ntfs_cluster_free_from_rl_nolock(ntfs_volume *vol,
118 static inline int ntfs_cluster_free_from_rl(ntfs_volume *vol, in ntfs_cluster_free_from_rl() argument
123 down_write(&vol->lcnbmp_lock); in ntfs_cluster_free_from_rl()
124 ret = ntfs_cluster_free_from_rl_nolock(vol, rl); in ntfs_cluster_free_from_rl()
125 up_write(&vol->lcnbmp_lock); in ntfs_cluster_free_from_rl()
Dcompress.c468 ntfs_volume *vol = ni->vol; in ntfs_read_compressed_block() local
469 struct super_block *sb = vol->sb; in ntfs_read_compressed_block()
482 vol->cluster_size_bits; in ntfs_read_compressed_block()
488 & ~cb_size_mask) >> vol->cluster_size_bits; in ntfs_read_compressed_block()
490 unsigned int nr_cbs = (end_vcn - start_vcn) << vol->cluster_size_bits in ntfs_read_compressed_block()
498 vol->cluster_size_bits >> PAGE_SHIFT; in ntfs_read_compressed_block()
527 ntfs_error(vol->sb, "Failed to allocate internal buffers."); in ntfs_read_compressed_block()
535 offset = start_vcn << vol->cluster_size_bits >> PAGE_SHIFT; in ntfs_read_compressed_block()
634 block = lcn << vol->cluster_size_bits >> block_size_bits; in ntfs_read_compressed_block()
636 max_block = block + (vol->cluster_size >> block_size_bits); in ntfs_read_compressed_block()
[all …]
Dvolume.h142 static inline int NVol##flag(ntfs_volume *vol) \
144 return test_bit(NV_##flag, &(vol)->flags); \
146 static inline void NVolSet##flag(ntfs_volume *vol) \
148 set_bit(NV_##flag, &(vol)->flags); \
150 static inline void NVolClear##flag(ntfs_volume *vol) \
152 clear_bit(NV_##flag, &(vol)->flags); \
Drunlist.h62 extern runlist_element *ntfs_mapping_pairs_decompress(const ntfs_volume *vol,
72 extern int ntfs_get_size_for_mapping_pairs(const ntfs_volume *vol,
76 extern int ntfs_mapping_pairs_build(const ntfs_volume *vol, s8 *dst,
80 extern int ntfs_rl_truncate_nolock(const ntfs_volume *vol,
83 int ntfs_rl_punch_nolock(const ntfs_volume *vol, runlist *const runlist,
Dcollate.c12 static int ntfs_collate_binary(ntfs_volume *vol, in ntfs_collate_binary() argument
30 static int ntfs_collate_ntofs_ulong(ntfs_volume *vol, in ntfs_collate_ntofs_ulong() argument
87 int ntfs_collate(ntfs_volume *vol, COLLATION_RULE cr, in ntfs_collate() argument
101 return ntfs_do_collate0x0[i](vol, data1, data1_len, in ntfs_collate()
106 return ntfs_do_collate0x1[i](vol, data1, data1_len, in ntfs_collate()
Drunlist.c735 runlist_element *ntfs_mapping_pairs_decompress(const ntfs_volume *vol, in ntfs_mapping_pairs_decompress() argument
753 ntfs_error(vol->sb, "Invalid arguments."); in ntfs_mapping_pairs_decompress()
765 ntfs_error(vol->sb, "Corrupt attribute."); in ntfs_mapping_pairs_decompress()
819 ntfs_error(vol->sb, "Missing length entry in mapping " in ntfs_mapping_pairs_decompress()
828 ntfs_error(vol->sb, "Invalid length in mapping pairs " in ntfs_mapping_pairs_decompress()
864 if (vol->major_ver < 3) { in ntfs_mapping_pairs_decompress()
866 ntfs_error(vol->sb, "lcn delta == -1"); in ntfs_mapping_pairs_decompress()
868 ntfs_error(vol->sb, "lcn == -1"); in ntfs_mapping_pairs_decompress()
873 ntfs_error(vol->sb, "Invalid LCN < -1 in " in ntfs_mapping_pairs_decompress()
894 ntfs_error(vol->sb, "Corrupt mapping pairs array in " in ntfs_mapping_pairs_decompress()
[all …]
Dattrib.h64 extern int load_attribute_list(ntfs_volume *vol, runlist *rl, u8 *al_start,
81 extern int ntfs_attr_size_bounds_check(const ntfs_volume *vol,
83 extern int ntfs_attr_can_be_non_resident(const ntfs_volume *vol,
85 extern int ntfs_attr_can_be_resident(const ntfs_volume *vol,
Dindex.c110 ntfs_volume *vol = idx_ni->vol; in ntfs_index_lookup() local
111 struct super_block *sb = vol->sb; in ntfs_index_lookup()
213 rc = ntfs_collate(vol, idx_ni->itype.index.collation_rule, key, in ntfs_index_lookup()
376 rc = ntfs_collate(vol, idx_ni->itype.index.collation_rule, key, in ntfs_index_lookup()
415 if (old_vcn << vol->cluster_size_bits >> in ntfs_index_lookup()
417 vol->cluster_size_bits >> in ntfs_index_lookup()
Dmft.h65 extern int ntfs_sync_mft_mirror(ntfs_volume *vol, const unsigned long mft_no,
100 extern bool ntfs_may_write_mft_record(ntfs_volume *vol,
104 extern ntfs_inode *ntfs_mft_record_alloc(ntfs_volume *vol, const int mode,
Dntfs.h113 extern int ntfs_nlstoucs(const ntfs_volume *vol, const char *ins,
115 extern int ntfs_ucstonls(const ntfs_volume *vol, const ntfschar *ins,
/fs/afs/
Dproc.c211 struct afs_volume *vol = hlist_entry(v, struct afs_volume, proc_link); in afs_proc_cell_volumes_show() local
220 refcount_read(&vol->ref), vol->vid, in afs_proc_cell_volumes_show()
221 afs_vol_types[vol->type], in afs_proc_cell_volumes_show()
222 vol->name); in afs_proc_cell_volumes_show()
/fs/affs/
Dsuper.c276 char *vol = match_strdup(&args[0]); in parse_options() local
277 if (!vol) in parse_options()
279 strlcpy(volume, vol, 32); in parse_options()
280 kfree(vol); in parse_options()

12