summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/init-startup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libdiskfs/init-startup.c b/libdiskfs/init-startup.c
index cf2a64d7..58fcbe9b 100644
--- a/libdiskfs/init-startup.c
+++ b/libdiskfs/init-startup.c
@@ -29,6 +29,10 @@ diskfs_startup_diskfs (mach_port_t bootstrap)
mach_port_t realnode;
struct port_info *newpi;
+ if (! diskfs_readonly)
+ /* Change to writable mode. */
+ diskfs_readonly_changed (0);
+
if (bootstrap != MACH_PORT_NULL)
{
_diskfs_ncontrol_ports++;