Lines Matching refs:vol

102 		ntfs_volume *vol;
107 vol = ni->vol;
109 na->name, na->name_len, NVolCaseSensitive(vol),
110 vol->upcase, vol->upcase_len))
125 * @vol: ntfs volume to which @ni belongs.
133 static inline void __ntfs_inode_init(ntfs_volume *vol, ntfs_inode *ni)
135 ni->vol = vol;
145 ni->block_size = vol->sector_size;
146 ni->block_size_shift = vol->sector_size_shift;
151 ni->uid = vol->uid;
152 ni->gid = vol->gid;
189 * @vol: ntfs volume to which @ni belongs.
205 errno_t ntfs_inode_init(ntfs_volume *vol, ntfs_inode *ni, const ntfs_attr *na)
216 __ntfs_inode_init(vol, ni);
346 .vnfs_mp = ni->vol->mp, /* Mount of volume. */
411 * @vol: mounted ntfs volume
459 errno_t ntfs_inode_get(ntfs_volume *vol, ino64_t mft_no, const BOOL is_system,
477 ni = ntfs_inode_hash_get(vol, &na);
625 ntfs_error(vol->mp, "Failed to get index "
720 ni = ntfs_inode_hash_lookup(base_ni->vol, &na);
830 ni = ntfs_inode_hash_get(base_ni->vol, &na);
932 ntfs_error(ni->vol->mp, "Failed to truncate "
1101 ni = ntfs_inode_hash_get(base_ni->vol, &na);
1191 ni = ntfs_inode_hash_get(base_ni->vol, &na);
1203 ntfs_error(base_ni->vol->mp, "Found stale extent mft "
1244 ntfs_volume *vol;
1250 vol = ctx->ni->vol;
1256 ntfs_error(vol->mp, "Hard link count is zero.");
1272 ntfs_error(vol->mp, "Filename is non-resident.");
1276 ntfs_error(vol->mp, "Filename has invalid flags.");
1280 ntfs_error(vol->mp, "Filename is not indexed.");
1287 a_end > (u8*)ctx->m + vol->mft_record_size) {
1288 ntfs_error(vol->mp, "Filename attribute is corrupt.");
1299 ntfs_error(vol->mp, "Failed to lookup filename attribute.");
1303 ntfs_error(vol->mp, "Hard link count does not match number of "
1333 ntfs_warning(ni->vol->mp, "AFP_AfpInfo data attribute of "
1413 ntfs_error(ni->vol->mp, "Failed to get $DATA/AFP_AfpInfo "
1420 ntfs_error(ni->vol->mp, "Failed to read AfpInfo from "
1552 ntfs_warning(ni->vol->mp, "Inode 0x%llx is encrypted thus "
1567 ntfs_error(ni->vol->mp, "Failed to read AFP_AfpInfo "
1589 ntfs_error(ni->vol->mp, "Failed to get or create "
1617 if (ni->vol->major_ver >= 2) {
1638 ntfs_warning(ni->vol->mp, "Failed to set size of "
1664 ntfs_error(ni->vol->mp, "Failed to map AfpInfo data of "
1704 * called are @ni->vol, pointing to the mounted ntfs volume, and @ni->mft_no,
1714 ntfs_volume *vol = ni->vol;
1725 ntfs_error(vol->mp, "Failed to map mft record.");
1732 ntfs_error(vol->mp, "Failed to get attribute search context.");
1737 ntfs_error(vol->mp, "Inode is not in use.");
1742 ntfs_error(vol->mp, "Inode is an extent inode.");
1759 ntfs_error(vol->mp, "Inode had been deleted.");
1776 ni->mode &= ~vol->dmask;
1788 ni->mode &= ~vol->fmask;
1807 ntfs_error(vol->mp, "Standard information "
1810 ntfs_error(vol->mp, "Failed to lookup "
1815 ntfs_error(vol->mp, "Standard information attribute "
1825 vol->mft_record_size)
1844 ntfs_error(vol->mp, "Failed to lookup attribute list "
1853 ntfs_error(vol->mp, "Attribute list attribute is "
1859 ntfs_error(vol->mp, "Non-resident attribute "
1864 ntfs_warning(vol->mp, "Resident attribute list "
1879 ntfs_error(vol->mp, "Not enough memory to allocate "
1887 ntfs_error(vol->mp, "Attribute list has non "
1895 err = ntfs_mapping_pairs_decompress(vol, a,
1898 ntfs_error(vol->mp, "Mapping pairs "
1903 err = ntfs_rl_read(vol, &ni->attr_list_rl,
1907 ntfs_error(vol->mp, "Failed to load attribute "
1919 (u8*)ctx->m + vol->mft_record_size) {
1920 ntfs_error(vol->mp, "Resident attribute list "
1956 ntfs_error(vol->mp, "Failed to lookup data "
1980 ntfs_error(vol->mp, "Data attribute is missing.");
1988 if (!NVolCompressionEnabled(vol)) {
1989 ntfs_error(vol->mp, "Found compressed "
1997 ntfs_error(vol->mp, "Found unknown "
2008 ntfs_error(vol->mp, "Found encrypted and "
2020 ntfs_error(vol->mp, "Found "
2034 ntfs_error(vol->mp, "Found "
2049 vol->
2064 ntfs_error(vol->mp, "First extent of data "
2082 vol->mft_record_size) {
2083 ntfs_error(vol->mp, "Resident data attribute "
2144 ntfs_error(vol->mp, "Failed to lookup AfpInfo "
2171 (u8*)ctx->m + vol->mft_record_size ||
2173 ntfs_error(vol->mp, "Resident AfpInfo "
2184 ntfs_error(vol->mp, "AfpInfo attribute is corrupt.");
2215 ntfs_warning(vol->mp, "AfpInfo is compressed, "
2227 err = ntfs_mapping_pairs_decompress(vol, a, &ai_runlist);
2229 ntfs_error(vol->mp, "Mapping pairs decompression "
2234 err = ntfs_rl_read(vol, &ai_runlist, (u8*)&ai, ai_size,
2237 ntfs_error(vol->mp, "Failed to load AfpInfo (error "
2282 ntfs_warning(vol->mp, "Treating %s symbolic "
2314 ntfs_error(vol->mp, "Failed (error %d) for inode 0x%llx. Run chkdsk.",
2317 NVolSetErrors(vol);
2365 ntfs_volume *vol = ni->vol;
2449 ntfs_error(vol->mp, "Failed to map base mft record.");
2456 ntfs_error(vol->mp, "Failed to get attribute search context.");
2466 ntfs_error(vol->mp, "Failed to lookup attribute "
2487 if (ntfs_attr_can_be_resident(vol, ni->type)) {
2488 ntfs_warning(vol->mp, "Attribute type 0x%x cannot be "
2505 ntfs_error(vol->mp, "Failed to %s mft_no 0x%llx "
2535 if (vol->major_ver >= 2) {
2576 ntfs_error(vol->mp, "Found compressed "
2582 if (!NVolCompressionEnabled(vol)) {
2583 ntfs_error(vol->mp, "Found compressed data "
2591 ntfs_error(vol->mp, "Found unknown "
2600 ntfs_error(vol->mp, "Found mst protected attribute "
2611 ntfs_error(vol->mp, "Found encrypted non-data "
2617 ntfs_error(vol->mp, "Found mst protected attribute "
2624 ntfs_error(vol->mp, "Found encrypted and compressed "
2637 ntfs_error(vol->mp, "Attribute name is placed after "
2642 ntfs_error(vol->mp, "Found mst protected attribute "
2652 (u8*)ctx->m + vol->mft_record_size) {
2653 ntfs_error(vol->mp, "Resident attribute is corrupt.");
2666 ntfs_error(vol->mp, "Attribute name is placed after "
2673 ntfs_error(vol->mp, "Found non-standard "
2684 ntfs_error(vol->mp, "Found non-standard "
2697 vol->cluster_size_shift);
2708 ntfs_error(vol->mp, "First extent of attribute has "
2738 ntfs_error(vol->mp, "Failed to allocated internal "
2769 ntfs_error(vol->mp, "Failed (error %d) for attribute inode "
2776 NVolSetErrors(vol);
2807 ntfs_volume *vol = ni->vol;
2831 ntfs_error(vol->mp, "Failed to map base mft record.");
2838 ntfs_error(vol->mp, "Failed to get attribute search context.");
2847 ntfs_error(vol->mp, "$INDEX_ROOT attribute is "
2850 ntfs_error(vol->mp, "Failed to lookup index root "
2857 ntfs_error(vol->mp, "Index root attribute is not resident.");
2863 ntfs_error(vol->mp, "Index root attribute name is placed "
2878 ntfs_error(vol->mp, "Found encrypted and "
2888 ntfs_error(vol->mp, "Found compressed/encrypted/sparse index "
2895 if (ir_end > (u8*)ctx->m + vol->mft_record_size ||
2898 ntfs_error(vol->mp, "Index root attribute is corrupt.");
2903 ntfs_error(vol->mp, "Indexed attribute is not the "
2908 ntfs_error(vol->mp, "Index collation rule is not "
2913 ntfs_error(vol->mp, "Index type is not 0 (type is 0x%x).",
2922 ntfs_error(vol->mp, "Index block size (%u) is not a power of "
2927 ntfs_error(vol->mp, "Index block size (%u) > PAGE_SIZE (%u) "
2934 ntfs_error(vol->mp, "Index block size (%u) < NTFS_BLOCK_SIZE "
2942 if (vol->cluster_size <= ni->block_size) {
2943 ni->vcn_size = vol->cluster_size;
2944 ni->vcn_size_shift = vol->cluster_size_shift;
2946 ni->vcn_size = vol->sector_size;
2947 ni->vcn_size_shift = vol->sector_size_shift;
2954 ntfs_error(vol->mp, "Failed to lookup index "
2959 ntfs_error(vol->mp, "Index allocation attribute is "
2976 ntfs_error(vol->mp, "Index allocation attribute is "
2986 ntfs_error(vol->mp, "Index allocation attribute name "
2992 ntfs_error(vol->mp, "Index allocation attribute is "
2997 ntfs_error(vol->mp, "Index allocation attribute is "
3002 ntfs_error(vol->mp, "Index allocation attribute is "
3007 ntfs_error(vol->mp, "First extent of index allocation "
3024 if (ni->allocated_size & vol->cluster_size_mask ||
3027 ntfs_error(vol->mp, "$INDEX_ALLOCATION attribute "
3045 ntfs_error(vol->mp, "Failed to get bitmap attribute.");
3050 ntfs_error(vol->mp, "Bitmap attribute is compressed "
3059 ntfs_error(vol->mp, "Index bitmap too small (0x%llx) "
3088 ntfs_error(vol->mp, "Failed to allocated internal "
3118 ntfs_error(vol->mp, "Failed (error %d) for index inode 0x%llx, "
3123 NVolSetErrors(vol);
3136 ntfs_volume *vol = ni->vol;
3194 lck_mtx_lock(&vol->inodes_lock);
3201 if (LIST_EMPTY(&vol->inodes) && NVolPostponedRelease(vol)) {
3202 NVolClearPostponedRelease(vol);
3205 lck_mtx_unlock(&vol->inodes_lock);
3215 ntfs_do_postponed_release(vol);
3272 ntfs_warning(ni->vol->mp, "Failed to reclaim "
3346 ntfs_volume *vol = ni->vol;
3356 if (ni == vol->mft_ni || ni == vol->mftmirr_ni) {
3359 ni == vol->mft_ni ? "" : "Mirr");
3377 ntfs_error(vol->mp, "Failed (ntfs_"
3383 ntfs_error(vol->mp, "Syncing compressed file "
3393 ntfs_error(vol->mp, "Syncing encrypted file "
3415 ntfs_warning(vol->mp, "resident and "
3430 ntfs_error(vol->mp, "ubc_msync() of data for mft_no 0x%llx "
3463 ntfs_volume *vol = ni->vol;
3492 ntfs_error(vol->mp, "Failed to map mft record.");
3499 ntfs_error(vol->mp, "Failed to get attribute search context.");
3711 ntfs_error(vol->mp, ies,
3720 ntfs_error(vol->mp, "Non-resident filename attribute "
3735 ntfs_error(vol->mp, ies,
3806 err = ntfs_inode_get(vol, dir_mft_no, FALSE,
3811 ntfs_error(vol->mp, ies,
3860 ntfs_error(vol->mp, ies,
3962 NVolSetErrors(vol);
3963 ntfs_error(vol->mp, "Failed (error %d). Run chkdsk.", err);
4178 ntfs_warning(ni->vol->mp, "Not enough memory to sync inode.");
4180 NVolSetErrors(ni->vol);
4181 ntfs_error(ni->vol->mp, "Failed to sync mft_no 0x%llx (error "
4259 res_size = utf8_to_ntfs(ni->vol, (u8*)vn_name,
4270 ntfs_warning(ni->vol->mp, "Failed to "
4279 NVolSetErrors(ni->vol);
4294 ntfs_error(ni->vol->mp, "Failed to map mft record (error %d).",
4304 ntfs_error(ni->vol->mp, "Failed to allocate search context "
4319 ntfs_error(ni->vol->mp, "Failed to find a valid filename "
4328 ntfs_error(ni->vol->mp, "Found corrupt filename attribute in "
4331 NVolSetErrors(ni->vol);
4373 res_size = ntfs_to_utf8(ni->vol, (ntfschar*)&fn->filename,
4377 ntfs_warning(ni->vol->mp, "Failed to convert name of "
4450 ntfs_volume *vol;
4465 vol = child_ni->vol;
4466 root_ni = vol->root_ni;
4527 ntfs_error(vol->mp, "Failed to determine "
4535 err = ntfs_inode_get(vol, MREF(mref), FALSE,
4538 ntfs_error(vol->mp, "Failed to obtain parent "
4585 ntfs_error(ni->vol->mp, "Parent mft_no 0x%llx has been deleted. "