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
This improves log accuracy for NTFS debugging and removes unnecessary
reliance on the VFS i_ino field ahead of the core VFS type change.
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
"Failed to undo partial resident to non-resident attribute conversion. Truncating inode 0x%lx, attribute type 0x%x from %i bytes to %i bytes to maintain metadata consistency. THIS MEANS YOU ARE LOSING %i BYTES DATA FROM THIS %s.",
1912
-
vi->i_ino,
1911
+
"Failed to undo partial resident to non-resident attribute conversion. Truncating inode 0x%llx, attribute type 0x%x from %i bytes to %i bytes to maintain metadata consistency. THIS MEANS YOU ARE LOSING %i BYTES DATA FROM THIS %s.",
@@ -682,7 +682,7 @@ static int ntfs_read_locked_inode(struct inode *vi)
682
682
dev_tdev=0;
683
683
boolvol_err= true;
684
684
685
-
ntfs_debug("Entering for i_ino 0x%lx.", vi->i_ino);
685
+
ntfs_debug("Entering for i_ino 0x%llx.", ni->mft_no);
686
686
687
687
if (uid_valid(vol->uid)) {
688
688
vi->i_uid=vol->uid;
@@ -704,7 +704,6 @@ static int ntfs_read_locked_inode(struct inode *vi)
704
704
*/
705
705
if (vi->i_ino!=FILE_MFT)
706
706
ntfs_init_big_inode(vi);
707
-
ni=NTFS_I(vi);
708
707
709
708
m=map_mft_record(ni);
710
709
if (IS_ERR(m)) {
@@ -804,7 +803,7 @@ static int ntfs_read_locked_inode(struct inode *vi)
804
803
} else {
805
804
if (vi->i_ino==FILE_MFT)
806
805
goto skip_attr_list_load;
807
-
ntfs_debug("Attribute list found in inode 0x%lx.", vi->i_ino);
806
+
ntfs_debug("Attribute list found in inode 0x%llx.", ni->mft_no);
808
807
NInoSetAttrList(ni);
809
808
a=ctx->attr;
810
809
if (a->flags&ATTR_COMPRESSION_MASK) {
@@ -820,8 +819,8 @@ static int ntfs_read_locked_inode(struct inode *vi)
820
819
goto unm_err_out;
821
820
}
822
821
ntfs_warning(vi->i_sb,
823
-
"Resident attribute list attribute in inode 0x%lx is marked encrypted/sparse which is not true. However, Windows allows this and chkdsk does not detect or correct it so we will just ignore the invalid flags and pretend they are not set.",
824
-
vi->i_ino);
822
+
"Resident attribute list attribute in inode 0x%llx is marked encrypted/sparse which is not true. However, Windows allows this and chkdsk does not detect or correct it so we will just ignore the invalid flags and pretend they are not set.",
823
+
ni->mft_no);
825
824
}
826
825
/* Now allocate memory for the attribute list. */
827
826
ni->attr_list_size= (u32)ntfs_attr_size(a);
@@ -1225,8 +1224,8 @@ static int ntfs_read_locked_inode(struct inode *vi)
1225
1224
err_out:
1226
1225
if (err!=-EOPNOTSUPP&&err!=-ENOMEM&&vol_err== true) {
1227
1226
ntfs_error(vol->sb,
1228
-
"Failed with error code %i. Marking corrupt inode 0x%lx as bad. Run chkdsk.",
1229
-
err, vi->i_ino);
1227
+
"Failed with error code %i. Marking corrupt inode 0x%llx as bad. Run chkdsk.",
0 commit comments