From dc82702dc9e1f15045863fdbc562778c530c477c Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Sun, 12 Jul 2015 01:24:48 +0200 Subject: [PATCH hurd] yyy fix remount --- 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