Lines Matching defs:vol
375 ni->vol = NTFS_SB(sb);
458 ntfs_error(ctx->ntfs_ino->vol->sb, "Corrupt file name "
463 ntfs_error(ctx->ntfs_ino->vol->sb, "Non-resident file "
468 ntfs_error(ctx->ntfs_ino->vol->sb, "File name with "
474 ntfs_error(ctx->ntfs_ino->vol->sb, "Unindexed file "
490 ntfs_error(ctx->ntfs_ino->vol->sb, "Inode hard link count "
526 ntfs_volume *vol = NTFS_SB(vi->i_sb);
538 vi->i_uid = vol->uid;
539 vi->i_gid = vol->gid;
601 vi->i_mode &= ~vol->dmask;
608 vi->i_mode &= ~vol->fmask;
634 (u8 *)ctx->mrec + vol->mft_record_size) {
721 ni->attr_list_rl.rl = ntfs_mapping_pairs_decompress(vol,
731 if ((err = load_attribute_list(vol, &ni->attr_list_rl,
743 (u8*)ctx->mrec + vol->mft_record_size) {
783 ntfs_error(vol->sb, "$INDEX_ROOT attribute is not "
790 ntfs_error(vol->sb, "$INDEX_ROOT attribute name is "
815 if (ir_end > (u8*)ctx->mrec + vol->mft_record_size) {
866 if (vol->cluster_size <= ni->itype.index.block_size) {
867 ni->itype.index.vcn_size = vol->cluster_size;
868 ni->itype.index.vcn_size_bits = vol->cluster_size_bits;
870 ni->itype.index.vcn_size = vol->sector_size;
871 ni->itype.index.vcn_size_bits = vol->sector_size_bits;
920 ntfs_error(vol->sb, "$INDEX_ALLOCATION attribute name "
1035 if (vol->cluster_size > 4096) {
1042 vol->cluster_size);
1083 vol->cluster_size_bits);
1170 ntfs_error(vol->sb, "Failed with error code %i. Marking corrupt "
1174 NVolSetErrors(vol);
1202 ntfs_volume *vol = NTFS_SB(vi->i_sb);
1257 if (vol->cluster_size > 4096) {
1262 vol->cluster_size);
1317 ntfs_error(vol->sb, "Attribute name is placed after "
1346 ntfs_error(vol->sb, "Attribute name is placed after "
1365 vol->cluster_size_bits);
1421 ntfs_error(vol->sb, "Failed with error code %i while reading attribute "
1428 NVolSetErrors(vol);
1468 ntfs_volume *vol = NTFS_SB(vi->i_sb);
1515 ntfs_error(vol->sb, "$INDEX_ROOT attribute is not resident.");
1521 ntfs_error(vol->sb, "$INDEX_ROOT attribute name is placed "
1537 if (ir_end > (u8*)ctx->mrec + vol->mft_record_size) {
1576 if (vol->cluster_size <= ni->itype.index.block_size) {
1577 ni->itype.index.vcn_size = vol->cluster_size;
1578 ni->itype.index.vcn_size_bits = vol->cluster_size_bits;
1580 ni->itype.index.vcn_size = vol->sector_size;
1581 ni->itype.index.vcn_size_bits = vol->sector_size_bits;
1621 ntfs_error(vol->sb, "$INDEX_ALLOCATION attribute name is "
1708 NVolSetErrors(vol);
1752 ntfs_volume *vol = NTFS_SB(sb);
1779 ni->itype.index.block_size = vol->mft_record_size;
1780 ni->itype.index.block_size_bits = vol->mft_record_size_bits;
1783 vol->mft_ino = vi;
1786 if (vol->mft_record_size > 64 * 1024) {
1788 vol->mft_record_size);
1791 i = vol->mft_record_size;
1801 block = vol->mft_lcn << vol->cluster_size_bits >>
1803 nr_blocks = vol->mft_record_size >> sb->s_blocksize_bits;
1819 if (le32_to_cpu(m->bytes_allocated) != vol->mft_record_size) {
1821 le32_to_cpu(m->bytes_allocated), vol->mft_record_size);
1826 if (post_read_mst_fixup((NTFS_RECORD*)m, vol->mft_record_size)) {
1910 ni->attr_list_rl.rl = ntfs_mapping_pairs_decompress(vol,
1921 if ((err = load_attribute_list(vol, &ni->attr_list_rl,
1935 (u8*)ctx->mrec + vol->mft_record_size) {
2041 nrl = ntfs_mapping_pairs_decompress(vol, a, ni->runlist.rl);
2062 >> vol->cluster_size_bits;
2074 if ((vi->i_size >> vol->mft_record_size_bits) >=
2225 ntfs_error(ni->vol->sb, "Clearing dirty extent inode! "
2306 ntfs_volume *vol = NTFS_SB(root->d_sb);
2309 seq_printf(sf, ",uid=%i", from_kuid_munged(&init_user_ns, vol->uid));
2310 seq_printf(sf, ",gid=%i", from_kgid_munged(&init_user_ns, vol->gid));
2311 if (vol->fmask == vol->dmask)
2312 seq_printf(sf, ",umask=0%o", vol->fmask);
2314 seq_printf(sf, ",fmask=0%o", vol->fmask);
2315 seq_printf(sf, ",dmask=0%o", vol->dmask);
2317 seq_printf(sf, ",nls=%s", vol->nls_map->charset);
2318 if (NVolCaseSensitive(vol))
2320 if (NVolShowSystemFiles(vol))
2322 if (!NVolSparseEnabled(vol))
2325 if (on_errors_arr[i].val & vol->on_errors)
2328 seq_printf(sf, ",mft_zone_multiplier=%i", vol->mft_zone_multiplier);
2361 ntfs_volume *vol = ni->vol;
2425 new_alloc_size = (new_size + vol->cluster_size - 1) &
2426 ~(s64)vol->cluster_size_mask;
2458 err = ntfs_attr_size_bounds_check(vol, ni->type, new_size);
2461 ntfs_error(vol->sb, "Truncate would cause the "
2471 ntfs_error(vol->sb, "Inode 0x%lx has unknown "
2495 if (new_size < vol->mft_record_size &&
2563 ntfs_error(vol->sb, "Cannot truncate inode 0x%lx, attribute "
2574 ntfs_error(vol->sb, "Not enough space in the mft record/on "
2578 ntfs_error(vol->sb, "This attribute type may not be "
2616 old_alloc_size >> vol->cluster_size_bits >
2622 ntfs_error(vol->sb, "Cannot truncate inode 0x%lx, "
2697 vol->cluster_size_bits, -1, ctx);
2701 ntfs_error(vol->sb, "Failed to release cluster(s) (error code "
2704 NVolSetErrors(vol);
2708 err = ntfs_rl_truncate_nolock(vol, &ni->runlist,
2709 new_alloc_size >> vol->cluster_size_bits);
2717 ntfs_error(vol->sb, "Failed to %s (error code %li).%s",
2726 mp_size = ntfs_get_size_for_mapping_pairs(vol, ni->runlist.rl, 0, -1);
2728 ntfs_error(vol->sb, "Cannot shrink allocation of inode 0x%lx, "
2748 err = ntfs_mapping_pairs_build(vol, (u8*)a +
2752 ntfs_error(vol->sb, "Cannot shrink allocation of inode 0x%lx, "
2762 vol->cluster_size_bits) - 1);
2769 vol->cluster_size_bits;
2830 NVolSetErrors(vol);
2846 NVolSetErrors(vol);
3095 NVolSetErrors(ni->vol);