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:48:44 -0400

ext2fs patch: (with ChangeLog entry)

cvs server: Diffing .
Index: ChangeLog
===================================================================
RCS file: /cvsroot/hurd/hurd/ext2fs/ChangeLog,v
retrieving revision 1.86
diff --unified -w -i -r1.86 ChangeLog
--- ChangeLog   1 Aug 2002 00:59:41 -0000       1.86
+++ ChangeLog   10 Sep 2002 02:48:16 -0000
@@ -1,3 +1,8 @@
+2002-09-09  David Walter  <address@hidden>
+
+       * ext2fs.c (main): external symbol diskfs_mount_point added, test
+       for a non-bootstrapping filesystem and call to diskfs_notify_mtab added
+
 2002-07-31  Roland McGrath  <address@hidden>
 
        * dir.c (diskfs_direnter_hard): Fix test in last change.

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]