summaryrefslogtreecommitdiff
path: root/ufs/sizes.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-06-24 21:24:12 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-06-24 21:24:12 +0000
commit41e7ae8cc4056eb04dd7cd65002b079d3d7d2cb1 (patch)
treea8adaee97af82694bf4196448a5c55e4dc94554b /ufs/sizes.c
parentb3a2a116f9e9199f2138d5add98780d8cf0fb24d (diff)
(diskfs_truncate): Call diskfs_check_readonly.
(diskfs_grow): Likewise.
Diffstat (limited to 'ufs/sizes.c')
-rw-r--r--ufs/sizes.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ufs/sizes.c b/ufs/sizes.c
index f98ceb94..39717384 100644
--- a/ufs/sizes.c
+++ b/ufs/sizes.c
@@ -49,6 +49,7 @@ diskfs_truncate (struct node *np,
if (length >= np->dn_stat.st_size)
return 0;
+ diskfs_check_readonly ();
assert (!diskfs_readonly);
/* First check to see if this is a kludged symlink; if so
@@ -469,6 +470,7 @@ diskfs_grow (struct node *np,
if (end <= np->allocsize)
return 0;
+ diskfs_check_readonly ();
assert (!diskfs_readonly);
/* This reference will ensure that NP->dn->fileinfo stays allocated. */