From a5e9859b29350c64f24328098c90fa10d936d26a Mon Sep 17 00:00:00 2001 From: "(none)!yura" <(none)!yura> Date: Fri, 8 Oct 2004 17:07:08 +0000 Subject: [PATCH] fix to previous patch: forgot to mark inode dirty (Logical change 1.597) --- libntfs/attrib.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libntfs/attrib.c b/libntfs/attrib.c index d881bbda..1dcdba66 100644 --- a/libntfs/attrib.c +++ b/libntfs/attrib.c @@ -3164,7 +3164,7 @@ static int ntfs_resident_attr_resize(ntfs_attr *na, const s64 newsize) while (!ntfs_attr_lookup(AT_UNUSED, NULL, 0, 0, 0, NULL, 0, ctx)) { ntfs_attr *tna; ATTR_RECORD *a; - + a = ctx->attr; if (a->non_resident) continue; @@ -3190,6 +3190,7 @@ static int ntfs_resident_attr_resize(ntfs_attr *na, const s64 newsize) ntfs_attr_close(tna); continue; } + ntfs_inode_mark_dirty(ctx->ntfs_ino); ntfs_attr_close(tna); ntfs_attr_put_search_ctx(ctx); return ntfs_resident_attr_resize(na, newsize); @@ -3200,13 +3201,13 @@ static int ntfs_resident_attr_resize(ntfs_attr *na, const s64 newsize) Dprintf("%s(): Attribute lookup failed.\n", __FUNCTION__); goto put_err_out; } - + /* We can't move out attribute list. */ if (na->type == AT_ATTRIBUTE_LIST) { err = ENOSPC; goto put_err_out; } - + /* * Move the attribute to a new mft record, creating an attribute list * attribute or modifying it if it is already present.