bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH hurd] yyy fix remount


From: Justus Winter
Subject: [PATCH hurd] yyy fix remount
Date: Sun, 12 Jul 2015 01:28:35 +0200

---
 libdiskfs/remount.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/libdiskfs/remount.c b/libdiskfs/remount.c
index 1ed622f..2b5d351 100644
--- a/libdiskfs/remount.c
+++ b/libdiskfs/remount.c
@@ -21,6 +21,7 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
 
 #include "priv.h"
+#include "libpager/priv.h"
 
 /* Re-read all incore data structures from disk.  This will only work if
    DISKFS_READONLY is true.  DISKFS_FSYS_LOCK should be held while calling
@@ -37,10 +38,16 @@ diskfs_remount ()
   if (err)
     return err;
 
+  err = ports_inhibit_class_rpcs (_pager_class);
+  if (err)
+    goto out;
+
   err = diskfs_reload_global_state ();
   if (!err)
     err = diskfs_node_iterate (diskfs_node_reload);
 
+  ports_resume_class_rpcs (_pager_class);
+ out:
   ports_resume_class_rpcs (diskfs_protid_class);
 
   return err;
-- 
2.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]