Hi List.
Some people need to say which normal filesystems are network mounted, by
using _netdev as an fstab option.
Attached is a patch that allows this.
Thanks
Roy
diff -ur busybox-1.9.0.orig/util-linux/mount.c busybox-1.9.0/util-linux/mount.c
--- busybox-1.9.0.orig/util-linux/mount.c 2007-12-21 22:00:33.000000000 +0000
+++ busybox-1.9.0/util-linux/mount.c 2008-01-25 15:29:52.000000000 +0000
@@ -50,9 +50,10 @@
// Not real flags, but we want to be able to check for this.
enum {
- MOUNT_USERS = (1<<28)*ENABLE_DESKTOP,
- MOUNT_NOAUTO = (1<<29),
- MOUNT_SWAP = (1<<30),
+ MOUNT_USERS = (1<<28)*ENABLE_DESKTOP,
+ MOUNT_NOAUTO = (1<<29),
+ MOUNT_SWAP = (1<<30),
+ MOUNT_COMMENT = (1<<31)
};
// TODO: more "user" flag compatibility.
// "user" option (from mount manpage):
@@ -76,9 +77,10 @@
USE_FEATURE_MOUNT_FSTAB(
/* "defaults" */ 0,
/* "quiet" 0 - do not filter out, vfat wants to see it */
- /* "noauto" */ MOUNT_NOAUTO,
- /* "sw" */ MOUNT_SWAP,
- /* "swap" */ MOUNT_SWAP,
+ /* "noauto" */ MOUNT_NOAUTO,
+ /* "sw" */ MOUNT_SWAP,
+ /* "swap" */ MOUNT_SWAP,
+ /* "_netdev" */ MOUNT_COMMENT,
USE_DESKTOP(/* "user" */ MOUNT_USERS,)
USE_DESKTOP(/* "users" */ MOUNT_USERS,)
)
@@ -128,6 +130,7 @@
"noauto" "\0"
"sw" "\0"
"swap" "\0"
+ "_netdev" "\0"
USE_DESKTOP("user" "\0")
USE_DESKTOP("users" "\0")
)
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox