diff options
Diffstat (limited to 'ext2fs/truncate.c')
-rw-r--r-- | ext2fs/truncate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext2fs/truncate.c b/ext2fs/truncate.c index 5e503b29..d55740b1 100644 --- a/ext2fs/truncate.c +++ b/ext2fs/truncate.c @@ -297,6 +297,8 @@ diskfs_truncate (struct node *node, off_t length) rwlock_writer_lock (&node->dn->alloc_lock); + RECORD_LAST (node->dn, LAST_TRUNCATE, length); + /* Update the size on disk; fsck will finish freeing blocks if necessary should we crash. */ node->dn_stat.st_size = length; |