Home
last modified time | relevance | path

Searched refs:vol (Results 1 – 25 of 41) 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
381 end = (pos + iov_iter_count(from) + vol->cluster_size_mask) & in ntfs_prepare_file_for_write()
382 ~(u64)vol->cluster_size_mask; in ntfs_prepare_file_for_write()
580 ntfs_volume *vol; in ntfs_prepare_pages_for_non_resident_write() local
604 vol = ni->vol; in ntfs_prepare_pages_for_non_resident_write()
609 blocksize = vol->sb->s_blocksize; in ntfs_prepare_pages_for_non_resident_write()
610 blocksize_bits = vol->sb->s_blocksize_bits; in ntfs_prepare_pages_for_non_resident_write()
632 cpos = pos >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write()
634 cend = (end + vol->cluster_size - 1) >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write()
653 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()
517 ntfs_error(vol->sb, "$LogFile is too small."); in ntfs_check_logfile()
535 ntfs_error(vol->sb, "Error mapping $LogFile " in ntfs_check_logfile()
603 NVolSetLogFileEmpty(vol); in ntfs_check_logfile()
610 ntfs_error(vol->sb, "Did not find any restart pages in " in ntfs_check_logfile()
668 ntfs_volume *vol = NTFS_SB(log_vi->i_sb); in ntfs_is_logfile_clean() local
673 if (NVolLogFileEmpty(vol)) { in ntfs_is_logfile_clean()
680 ntfs_error(vol->sb, "Restart page buffer is invalid. This is " in ntfs_is_logfile_clean()
717 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,
/fs/cifs/
Dfs_context.c28 cifs_parse_smb_version(char *value, struct smb_vol *vol, bool is_smb3) in cifs_parse_smb_version() argument
44 vol->ops = &smb1_operations; in cifs_parse_smb_version()
45 vol->vals = &smb1_values; in cifs_parse_smb_version()
56 vol->ops = &smb20_operations; in cifs_parse_smb_version()
57 vol->vals = &smb20_values; in cifs_parse_smb_version()
68 vol->ops = &smb21_operations; in cifs_parse_smb_version()
69 vol->vals = &smb21_values; in cifs_parse_smb_version()
72 vol->ops = &smb30_operations; in cifs_parse_smb_version()
73 vol->vals = &smb30_values; in cifs_parse_smb_version()
76 vol->ops = &smb30_operations; /* currently identical with 3.0 */ in cifs_parse_smb_version()
[all …]
Dconnect.c1336 cifs_parse_devname(const char *devname, struct smb_vol *vol) in cifs_parse_devname() argument
1365 vol->UNC = kstrndup(devname, pos - devname, GFP_KERNEL); in cifs_parse_devname()
1366 if (!vol->UNC) in cifs_parse_devname()
1369 convert_delimiter(vol->UNC, '\\'); in cifs_parse_devname()
1379 vol->prepath = kstrdup(pos, GFP_KERNEL); in cifs_parse_devname()
1380 if (!vol->prepath) in cifs_parse_devname()
1388 struct smb_vol *vol, bool is_smb3) in cifs_parse_mount_options() argument
1407 struct sockaddr *dstaddr = (struct sockaddr *)&vol->dstaddr; in cifs_parse_mount_options()
1414 memset(vol, 0, sizeof(*vol)); in cifs_parse_mount_options()
1421 memset(vol->source_rfc1001_name, 0x20, RFC1001_NAME_LEN); in cifs_parse_mount_options()
[all …]
Ddfs_cache.c1143 static int dup_vol(struct smb_vol *vol, struct smb_vol *new) in dup_vol() argument
1145 memcpy(new, vol, sizeof(*new)); in dup_vol()
1147 if (vol->username) { in dup_vol()
1148 new->username = kstrndup(vol->username, strlen(vol->username), in dup_vol()
1153 if (vol->password) { in dup_vol()
1154 new->password = kstrndup(vol->password, strlen(vol->password), in dup_vol()
1159 if (vol->UNC) { in dup_vol()
1160 cifs_dbg(FYI, "%s: vol->UNC: %s\n", __func__, vol->UNC); in dup_vol()
1161 new->UNC = kstrndup(vol->UNC, strlen(vol->UNC), GFP_KERNEL); in dup_vol()
1165 if (vol->domainname) { in dup_vol()
[all …]
Dsess.c179 struct smb_vol vol = {NULL}; in cifs_ses_add_channel() local
209 vol.nosharesock = true; in cifs_ses_add_channel()
212 vol.domainauto = ses->domainAuto; in cifs_ses_add_channel()
213 vol.domainname = ses->domainName; in cifs_ses_add_channel()
214 vol.username = ses->user_name; in cifs_ses_add_channel()
215 vol.password = ses->password; in cifs_ses_add_channel()
216 vol.sectype = ses->sectype; in cifs_ses_add_channel()
217 vol.sign = ses->sign; in cifs_ses_add_channel()
222 vol.UNC = unc; in cifs_ses_add_channel()
223 vol.prepath = ""; in cifs_ses_add_channel()
[all …]
Dfs_context.h27 int cifs_parse_smb_version(char *value, struct smb_vol *vol, bool is_smb3);
38 int cifs_parse_cache_flavor(char *value, struct smb_vol *vol);
56 int cifs_parse_security_flavors(char *value, struct smb_vol *vol);

12