Skip to content

Commit

Permalink
1999-06-29 Thomas Bushnell, BSG <[email protected]>
Browse files Browse the repository at this point in the history
	* hyper.c (diskfs_readonly_changed): Adjust whether the store
	should permit writes too.
  • Loading branch information
Thomas Bushnell committed Jun 29, 1999
1 parent 45e9b9e commit fa08564
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 173 deletions.
5 changes: 5 additions & 0 deletions ext2fs/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
1999-06-29 Thomas Bushnell, BSG <[email protected]>

* hyper.c (diskfs_readonly_changed): Adjust whether the store
should permit writes too.

1999-06-19 Roland McGrath <[email protected]>

* pager.c (free_page_buf): Fix type cast.
Expand Down
4 changes: 3 additions & 1 deletion ext2fs/hyper.c
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
Expand Down Expand Up @@ -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));

Expand Down
2 changes: 2 additions & 0 deletions libdiskfs/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
1999-06-29 Thomas Bushnell, BSG <[email protected]>

* dev-globals.c, dev-io.c, dev-open.c: Files removed.

* lookup.c (diskfs_lookup): If we get an error from
fshelp_checkdirmod, clear *NP as well as returning the error.
Use diskfs_nrele instead of diskfs_nput in case *NP and DP are
Expand Down
46 changes: 0 additions & 46 deletions libdiskfs/dev-globals.c

This file was deleted.

59 changes: 0 additions & 59 deletions libdiskfs/dev-io.c

This file was deleted.

66 changes: 0 additions & 66 deletions libdiskfs/dev-open.c

This file was deleted.

5 changes: 5 additions & 0 deletions ufs/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
1999-06-29 Thomas Bushnell, BSG <[email protected]>

* hyper.c (diskfs_readonly_changed): Adjust whether the store
should permit writes too.

1999-05-02 Roland McGrath <[email protected]>

* main.c (main): Remove bogus uninitialized variable ERR.
Expand Down
4 changes: 3 additions & 1 deletion ufs/hyper.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit fa08564

Please sign in to comment.