summaryrefslogtreecommitdiff
path: root/ufs
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-06-29 09:00:20 +0000
committerThomas Bushnell <thomas@gnu.org>1999-06-29 09:00:20 +0000
commitfa08564735ca95d4dd9373545eb202288c14524c (patch)
tree71aecd0f6721fc204641edc1b7e41ff04203cf02 /ufs
parent45e9b9e5b132ab0571210a671695d1d8dcc5f882 (diff)
1999-06-29 Thomas Bushnell, BSG <tb@mit.edu>
* hyper.c (diskfs_readonly_changed): Adjust whether the store should permit writes too.
Diffstat (limited to 'ufs')
-rw-r--r--ufs/ChangeLog5
-rw-r--r--ufs/hyper.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/ufs/ChangeLog b/ufs/ChangeLog
index 16ae4238..7b0fee70 100644
--- a/ufs/ChangeLog
+++ b/ufs/ChangeLog
@@ -1,3 +1,8 @@
+1999-06-29 Thomas Bushnell, BSG <tb@mit.edu>
+
+ * hyper.c (diskfs_readonly_changed): Adjust whether the store
+ should permit writes too.
+
1999-05-02 Roland McGrath <roland@baalperazim.frob.com>
* main.c (main): Remove bogus uninitialized variable ERR.
diff --git a/ufs/hyper.c b/ufs/hyper.c
index 2a43bfed..c5101141 100644
--- a/ufs/hyper.c
+++ b/ufs/hyper.c
@@ -1,5 +1,5 @@
/* Fetching and storing the hypermetadata (superblock and cg summary info).
- Copyright (C) 1994, 95, 96, 97, 98 Free Software Foundation, Inc.
+ Copyright (C) 1994, 95, 96, 97, 98, 1999 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -396,6 +396,8 @@ copy_sblock ()
void
diskfs_readonly_changed (int readonly)
{
+ (*(readonly ? store_set_flags : store_clear_flags)) (store, STORE_READONLY);
+
vm_protect (mach_task_self (),
(vm_address_t)disk_image, store->size,
0, VM_PROT_READ | (readonly ? 0 : VM_PROT_WRITE));