From 0d49f1d1def598e2f7b11a6981cf947ade765609 Mon Sep 17 00:00:00 2001
From: "Michael I. Bushnell" <mib@gnu.org>
Date: Wed, 13 Jul 1994 20:30:16 +0000
Subject: entered into RCS

---
 libdiskfs/shutdown.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'libdiskfs')

diff --git a/libdiskfs/shutdown.c b/libdiskfs/shutdown.c
index 32de8306..a7539acb 100644
--- a/libdiskfs/shutdown.c
+++ b/libdiskfs/shutdown.c
@@ -31,13 +31,13 @@ diskfs_shutdown (int flags)
       fsys_goaway (trans->control, (int) arg);
     }
   
-  if (flags & FSYS_GOAWAY_RECURSE)
-    fshelp_translator_iterate (sync_trans, (void *)flags);
-  
   if ((flags & FSYS_GOAWAY_UNLINK)
        && S_ISDIR (diskfs_root_node->dn_stat.st_mode))
     return EBUSY;
-      
+
+  if (flags & FSYS_GOAWAY_RECURSE)
+    fshelp_translator_iterate (sync_trans, (void *)flags);
+  
   /* XXX doesn't handle GOAWAY_FORCE yet */
 
   if (!(flags & FSYS_GOAWAY_NOSYNC))
-- 
cgit v1.2.3