struct rb_root ra_root = RB_ROOT;
struct file_ra_state *ra;
- ntfs_debug("Entering for inode 0x%lx, fpos 0x%llx.",
- vdir->i_ino, actor->pos);
+ ntfs_debug("Entering for inode 0x%llx, fpos 0x%llx.",
+ ndir->mft_no, actor->pos);
if (file->private_data) {
private = file->private_data;
int err, ret;
struct ntfs_attr na;
- ntfs_debug("Entering for inode 0x%lx.", vi->i_ino);
+ ntfs_debug("Entering for inode 0x%llx.", ni->mft_no);
if (NVolShutdown(vol))
return -EIO;
ntfs_debug("Done.");
else
ntfs_warning(vi->i_sb,
- "Failed to f%ssync inode 0x%lx. Error %u.",
- datasync ? "data" : "", vi->i_ino, -ret);
+ "Failed to f%ssync inode 0x%llx. Error %u.",
+ datasync ? "data" : "", ni->mft_no, -ret);
inode_unlock(vi);
return ret;
}
static int ntfs_read_locked_inode(struct inode *vi)
{
struct ntfs_volume *vol = NTFS_SB(vi->i_sb);
- struct ntfs_inode *ni;
+ struct ntfs_inode *ni = NTFS_I(vi);
struct mft_record *m;
struct attr_record *a;
struct standard_information *si;
dev_t dev = 0;
bool vol_err = true;
- ntfs_debug("Entering for i_ino 0x%lx.", vi->i_ino);
+ ntfs_debug("Entering for i_ino 0x%llx.", ni->mft_no);
if (uid_valid(vol->uid)) {
vi->i_uid = vol->uid;
*/
if (vi->i_ino != FILE_MFT)
ntfs_init_big_inode(vi);
- ni = NTFS_I(vi);
m = map_mft_record(ni);
if (IS_ERR(m)) {
} else {
if (vi->i_ino == FILE_MFT)
goto skip_attr_list_load;
- ntfs_debug("Attribute list found in inode 0x%lx.", vi->i_ino);
+ ntfs_debug("Attribute list found in inode 0x%llx.", ni->mft_no);
NInoSetAttrList(ni);
a = ctx->attr;
if (a->flags & ATTR_COMPRESSION_MASK) {
goto unm_err_out;
}
ntfs_warning(vi->i_sb,
- "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.",
- vi->i_ino);
+ "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.",
+ ni->mft_no);
}
/* Now allocate memory for the attribute list. */
ni->attr_list_size = (u32)ntfs_attr_size(a);
err_out:
if (err != -EOPNOTSUPP && err != -ENOMEM && vol_err == true) {
ntfs_error(vol->sb,
- "Failed with error code %i. Marking corrupt inode 0x%lx as bad. Run chkdsk.",
- err, vi->i_ino);
+ "Failed with error code %i. Marking corrupt inode 0x%llx as bad. Run chkdsk.",
+ err, ni->mft_no);
NVolSetErrors(vol);
}
return err;
struct ntfs_attr_search_ctx *ctx;
int err = 0;
- ntfs_debug("Entering for i_ino 0x%lx.", vi->i_ino);
+ ntfs_debug("Entering for i_ino 0x%llx.", ni->mft_no);
ntfs_init_big_inode(vi);
u8 *ir_end, *index_end;
int err = 0;
- ntfs_debug("Entering for i_ino 0x%lx.", vi->i_ino);
+ ntfs_debug("Entering for i_ino 0x%llx.", ni->mft_no);
lockdep_assert_held(&base_ni->mrec_lock);
ntfs_init_big_inode(vi);
ntfs_commit_inode(vi);
if (NInoDirty(ni)) {
- ntfs_debug("Failed to commit dirty inode 0x%lx. Losing data!",
- vi->i_ino);
+ ntfs_debug("Failed to commit dirty inode 0x%llx. Losing data!",
+ ni->mft_no);
NInoClearAttrListDirty(ni);
NInoClearDirty(ni);
}
/* Update the creation times if they have changed. */
nt = utc2ntfs(ni->i_crtime);
if (si->creation_time != nt) {
- ntfs_debug("Updating creation time for inode 0x%lx: old = 0x%llx, new = 0x%llx",
- vi->i_ino, le64_to_cpu(si->creation_time),
+ ntfs_debug("Updating creation time for inode 0x%llx: old = 0x%llx, new = 0x%llx",
+ ni->mft_no, le64_to_cpu(si->creation_time),
le64_to_cpu(nt));
si->creation_time = nt;
modified = true;
/* Update the access times if they have changed. */
nt = utc2ntfs(inode_get_mtime(vi));
if (si->last_data_change_time != nt) {
- ntfs_debug("Updating mtime for inode 0x%lx: old = 0x%llx, new = 0x%llx",
- vi->i_ino, le64_to_cpu(si->last_data_change_time),
+ ntfs_debug("Updating mtime for inode 0x%llx: old = 0x%llx, new = 0x%llx",
+ ni->mft_no, le64_to_cpu(si->last_data_change_time),
le64_to_cpu(nt));
si->last_data_change_time = nt;
modified = true;
nt = utc2ntfs(inode_get_ctime(vi));
if (si->last_mft_change_time != nt) {
- ntfs_debug("Updating ctime for inode 0x%lx: old = 0x%llx, new = 0x%llx",
- vi->i_ino, le64_to_cpu(si->last_mft_change_time),
+ ntfs_debug("Updating ctime for inode 0x%llx: old = 0x%llx, new = 0x%llx",
+ ni->mft_no, le64_to_cpu(si->last_mft_change_time),
le64_to_cpu(nt));
si->last_mft_change_time = nt;
modified = true;
}
nt = utc2ntfs(inode_get_atime(vi));
if (si->last_access_time != nt) {
- ntfs_debug("Updating atime for inode 0x%lx: old = 0x%llx, new = 0x%llx",
- vi->i_ino,
+ ntfs_debug("Updating atime for inode 0x%llx: old = 0x%llx, new = 0x%llx",
+ ni->mft_no,
le64_to_cpu(si->last_access_time),
le64_to_cpu(nt));
si->last_access_time = nt;
int err = 0;
bool need_iput = false;
- ntfs_debug("Entering for %sinode 0x%lx.", NInoAttr(ni) ? "attr " : "",
- vi->i_ino);
+ ntfs_debug("Entering for %sinode 0x%llx.", NInoAttr(ni) ? "attr " : "",
+ ni->mft_no);
if (NVolShutdown(ni->vol))
return -EIO;
unsigned long dent_ino;
int uname_len;
- ntfs_debug("Looking up %pd in directory inode 0x%lx.",
- dent, dir_ino->i_ino);
+ ntfs_debug("Looking up %pd in directory inode 0x%llx.",
+ dent, NTFS_I(dir_ino)->mft_no);
/* Convert the name of the dentry to Unicode. */
uname_len = ntfs_nlstoucs(vol, dent->d_name.name, dent->d_name.len,
&uname, NTFS_MAX_NAME_LEN);
unsigned long parent_ino;
int err;
- ntfs_debug("Entering for inode 0x%lx.", vi->i_ino);
+ ntfs_debug("Entering for inode 0x%llx.", ni->mft_no);
/* Get the mft record of the inode belonging to the child dentry. */
mrec = map_mft_record(ni);
if (IS_ERR(mrec))
unmap_mft_record(ni);
if (err == -ENOENT)
ntfs_error(vi->i_sb,
- "Inode 0x%lx does not have a file name attribute. Run chkdsk.",
- vi->i_ino);
+ "Inode 0x%llx does not have a file name attribute. Run chkdsk.",
+ ni->mft_no);
return ERR_PTR(err);
}
attr = ctx->attr;