diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-06-29 09:00:20 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-06-29 09:00:20 +0000 |
commit | fa08564735ca95d4dd9373545eb202288c14524c (patch) | |
tree | 71aecd0f6721fc204641edc1b7e41ff04203cf02 /ext2fs | |
parent | 45e9b9e5b132ab0571210a671695d1d8dcc5f882 (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 'ext2fs')
-rw-r--r-- | ext2fs/ChangeLog | 5 | ||||
-rw-r--r-- | ext2fs/hyper.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/ext2fs/ChangeLog b/ext2fs/ChangeLog index 8f5172ac..4d98dc70 100644 --- a/ext2fs/ChangeLog +++ b/ext2fs/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-06-19 Roland McGrath <roland@baalperazim.frob.com> * pager.c (free_page_buf): Fix type cast. 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 <miles@gnu.org> @@ -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)); |