bug-hurd
[Top][All Lists]
Advanced

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

mtab: libdiskfs / ext2fs support changes


From: David Walter
Subject: mtab: libdiskfs / ext2fs support changes
Date: Mon, 09 Sep 2002 22:46:35 -0400

ext2fs patch:


cvs server: Diffing ../ext2fs
Index: ext2fs.c
===================================================================
RCS file: /cvsroot/hurd/hurd/ext2fs/ext2fs.c,v
retrieving revision 1.55
diff --unified -w -i -r1.55 ext2fs.c
--- ext2fs.c    2 Jun 2002 21:40:56 -0000       1.55
+++ ext2fs.c    10 Sep 2002 02:24:24 -0000
@@ -55,6 +55,7 @@
 struct store_parsed *store_parsed;
 
 char *diskfs_disk_name;
+extern char*diskfs_mount_point;
 
 #ifdef EXT2FS_DEBUG
 int ext2_debug_flag;
@@ -73,7 +74,6 @@
    "Use alternate superblock location (1kb blocks)"},
   {0}
 };
-
 /* Parse a command line option.  */
 static error_t
 parse_opt (int key, char *arg, struct argp_state *state)
@@ -198,8 +198,20 @@
   /* Now that we are all set up to handle requests, and diskfs_root_node is
      set properly, it is safe to export our fsys control port to the
      outside world.  */
   diskfs_startup_diskfs (bootstrap, 0);
 
+  /* Prototype for internal routine diskfs_notify_mtab */
+  void diskfs_notify_mtab(char*);
+  /*
+    notify mtab when this is not a root/bootstrapping filesystem.
+
+    diskfs_init_main sets the bootstrap port to 0 if this is a
+    bootstrap filesystem, we have a catch 22 with the bootstrap
+    avoided by mtab automagically self inserting '/'. Until the root
+    filesystem is active there is no _PATH_MOUNTED to write */
+  if (bootstrap) 
+     diskfs_notify_mtab(0);
+  
   /* and so we die, leaving others to do the real work.  */
   cthread_exit (0);
   /* NOTREACHED */

-- 
/^\
\ /     ASCII RIBBON CAMPAIGN
 X        AGAINST HTML MAIL
/ \





reply via email to

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