summaryrefslogtreecommitdiff
path: root/ext2fs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-06-25 21:30:29 +0000
committerMiles Bader <miles@gnu.org>1996-06-25 21:30:29 +0000
commit164936445e8557078a7deba8a64e3271407e6bd8 (patch)
tree9a59dcfbc7879c67e09c43fd2e2a3ab5ef75e0f8 /ext2fs
parenta59257d79726138c9584c5a684eff9fb5fdd3953 (diff)
(diskfs_truncate): Add call diskfs_check_readonly to clear clean bit.
Diffstat (limited to 'ext2fs')
-rw-r--r--ext2fs/truncate.c3
1 files changed, 2 insertions, 1 deletions
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 <miles@gnu.ai.mit.edu>
@@ -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)