diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-08-10 01:59:02 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-08-10 01:59:02 +0200 |
commit | 85d430f637b926602b97d08b9aa91c0fe0e09311 (patch) | |
tree | 7eb8b4578610ae2d6060597910374a0841438aa8 /debian/patches/libdiskfs_sync.patch | |
parent | 5890907019cff9a3ee335ea0320c249d212bd500 (diff) |
Fix sync at shutdown
* patches/libdiskfs_sync.patch: New patch to fix sync at shutdown.
Diffstat (limited to 'debian/patches/libdiskfs_sync.patch')
-rw-r--r-- | debian/patches/libdiskfs_sync.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/libdiskfs_sync.patch b/debian/patches/libdiskfs_sync.patch new file mode 100644 index 00000000..19e45170 --- /dev/null +++ b/debian/patches/libdiskfs_sync.patch @@ -0,0 +1,16 @@ +Set diskfs stores as readonly on shutdown before enabling RPCs again. + +diff --git a/libdiskfs/init-startup.c b/libdiskfs/init-startup.c +index bf1acf2..700a26e 100644 +--- a/libdiskfs/init-startup.c ++++ b/libdiskfs/init-startup.c +@@ -148,6 +148,9 @@ diskfs_S_startup_dosync (mach_port_t handle) + diskfs_set_hypermetadata (1, 1); + _diskfs_diskdirty = 0; + ++ diskfs_readonly = 1; ++ diskfs_readonly_changed (1); ++ + ports_resume_class_rpcs (diskfs_protid_class); + } + |