From 164936445e8557078a7deba8a64e3271407e6bd8 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 25 Jun 1996 21:30:29 +0000 Subject: (diskfs_truncate): Add call diskfs_check_readonly to clear clean bit. --- ext2fs/truncate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext2fs') diff --git a/ext2fs/truncate.c b/ext2fs/truncate.c index 807bc3a7..5e503b29 100644 --- a/ext2fs/truncate.c +++ b/ext2fs/truncate.c @@ -1,6 +1,6 @@ /* File truncation - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1996 Free Software Foundation, Inc. Written by Miles Bader @@ -271,6 +271,7 @@ diskfs_truncate (struct node *node, off_t length) error_t err; off_t offset; + diskfs_check_readonly (); assert (!diskfs_readonly); if (length >= node->dn_stat.st_size) -- cgit v1.2.3