You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changes the type of ntfs_inode::mft_no from unsigned long to u64
to safely handle the full 48-bit range without truncation risk, especially
in preparation for broader VFS inode number type (i_ino:u64) and to
improve consistency with ntfs driver practices.
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
"Out of bounds check failed. Corrupt directory inode 0x%lx or driver bug.",
341
+
"Out of bounds check failed. Corrupt directory inode 0x%llx or driver bug.",
342
342
dir_ni->mft_no);
343
343
goto unm_err_out;
344
344
}
345
345
/* Catch multi sector transfer fixup errors. */
346
346
if (unlikely(!ntfs_is_indx_record(ia->magic))) {
347
347
ntfs_error(sb,
348
-
"Directory index record with vcn 0x%llx is corrupt. Corrupt inode 0x%lx. Run chkdsk.",
349
-
(unsigned long long)vcn, dir_ni->mft_no);
348
+
"Directory index record with vcn 0x%llx is corrupt. Corrupt inode 0x%llx. Run chkdsk.",
349
+
vcn, dir_ni->mft_no);
350
350
goto unm_err_out;
351
351
}
352
352
if (le64_to_cpu(ia->index_block_vcn) !=vcn) {
353
353
ntfs_error(sb,
354
-
"Actual VCN (0x%llx) of index buffer is different from expected VCN (0x%llx). Directory inode 0x%lx is corrupt or driver bug.",
355
-
(unsigned long long)le64_to_cpu(ia->index_block_vcn),
356
-
(unsigned long long)vcn, dir_ni->mft_no);
354
+
"Actual VCN (0x%llx) of index buffer is different from expected VCN (0x%llx). Directory inode 0x%llx is corrupt or driver bug.",
355
+
le64_to_cpu(ia->index_block_vcn),
356
+
vcn, dir_ni->mft_no);
357
357
goto unm_err_out;
358
358
}
359
359
if (le32_to_cpu(ia->index.allocated_size) +0x18!=
360
360
dir_ni->itype.index.block_size) {
361
361
ntfs_error(sb,
362
-
"Index buffer (VCN 0x%llx) of directory inode 0x%lx has a size (%u) differing from the directory specified size (%u). Directory inode is corrupt or driver bug.",
363
-
(unsigned long long)vcn, dir_ni->mft_no,
362
+
"Index buffer (VCN 0x%llx) of directory inode 0x%llx has a size (%u) differing from the directory specified size (%u). Directory inode is corrupt or driver bug.",
0 commit comments