[BusyBox] forget my previous mail

Christian Bahls c.bahls at it-netservice.de
Mon Apr 2 15:33:49 UTC 2001


so this are both patches .. they were linewrapped last time ..
 - the usage should be changed as outlined below, because
   the special is not always a file as well as the mountpoint
   doesn't have to be a directory (kernel >=2.4.0)
 - the bind feature seems to an option to me .. so use it with -o bind
   not with --bind ad util-linux do ..

Yours
  Christian Bahls

PATCHES:

--- old/busybox-0.50/usage.h    Fri Mar 16 09:06:30 2001
+++ usage.h     Sun Apr  1 14:22:51 2001
@@ -1050,7 +1050,7 @@
   #define USAGE_MTAB(a)
 #endif
 #define mount_trivial_usage \
-       "[flags] device directory [-o options,more-options]"
+       "[flags] something somewhere [-o options,more-options]"
 #define mount_full_usage \
        "Mount a filesystem\n\n" \
        "Flags:\n"  \
@@ -1067,6 +1067,7 @@
        "Options for use with the \"-o\" flag:\n" \
        "\tasync/sync:\tWrites are asynchronous / synchronous.\n" \
        "\tatime/noatime:\tEnable / disable updates to inode access times.\n" \
+       "\tbind:\t\tUse the bind feature of mount() provided by kernel 2.4\n"\
        "\tdev/nodev:\tAllow use of special device files / disallow them.\n" \
        "\texec/noexec:\tAllow use of executable files / disallow them.\n" \
        USAGE_MOUNT_LOOP( \
--- old/busybox-0.50/mount.c    Wed Mar 14 18:30:44 2001
+++ mount.c     Sun Apr  1 14:11:24 2001
@@ -69,6 +69,7 @@
        S_IMMUTABLE = 512,     /* Immutable file */
        MS_NOATIME = 1024,    /* Do not update access times. */
        MS_NODIRATIME = 2048,    /* Do not update directory access times */
+       MS_BIND = 4096,     /* use the new bind feature of mount in 2.4.* */
 };


@@ -115,6 +116,7 @@
        {"rw", ~MS_RDONLY, 0},
        {"suid", ~MS_NOSUID, 0},
        {"sync", ~0, MS_SYNCHRONOUS},
+       {"bind", ~0, MS_BIND},
        {0, 0, 0}
 };





More information about the busybox mailing list