From fa08564735ca95d4dd9373545eb202288c14524c Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Tue, 29 Jun 1999 09:00:20 +0000 Subject: 1999-06-29 Thomas Bushnell, BSG * hyper.c (diskfs_readonly_changed): Adjust whether the store should permit writes too. --- ext2fs/hyper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext2fs/hyper.c') diff --git a/ext2fs/hyper.c b/ext2fs/hyper.c index d7536014..6a5e1fd0 100644 --- a/ext2fs/hyper.c +++ b/ext2fs/hyper.c @@ -1,6 +1,6 @@ /* Fetching and storing the hypermetadata (superblock and bg summary info) - Copyright (C) 1994,95,96,99 Free Software Foundation, Inc. + Copyright (C) 1994,95,96,99, 1999 Free Software Foundation, Inc. Written by Miles Bader @@ -192,6 +192,8 @@ diskfs_readonly_changed (int readonly) { allocate_mod_map (); + (*(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)); -- cgit v1.2.3