[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [PATCH] mount: don't pass option "auto" to kernel
From:       Andreas Oberritter <obi () opendreambox ! org>
Date:       2013-04-22 9:54:42
Message-ID: 1366624482-16399-1-git-send-email-obi () opendreambox ! org
[Download RAW message or body]

Fixes the following error if "auto" is set in fs options:
| EXT3-fs (sda1): error: unrecognized mount option "auto" or missing value
| EXT4-fs (sda1): Unrecognized mount option "auto" or missing value
| XFS (sda1): unknown mount option [auto].

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
---
Applies on top of "mount: don't pass option "nofail" to the kernel"

 util-linux/mount.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/util-linux/mount.c b/util-linux/mount.c
index 624ca06..bc26119 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -222,6 +222,7 @@ static const int32_t mount_options[] = {
 	IF_FEATURE_MOUNT_FSTAB(
 		/* "defaults" */ 0,
 		/* "quiet" 0 - do not filter out, vfat wants to see it */
+		/* "auto" */ 0,
 		/* "noauto" */ MOUNT_NOAUTO,
 		/* "nofail" */ 0,
 		/* "sw"     */ MOUNT_SWAP,
@@ -282,6 +283,7 @@ static const char mount_option_str[] =
 	IF_FEATURE_MOUNT_FSTAB(
 		"defaults\0"
 		// "quiet\0" - do not filter out, vfat wants to see it
+		"auto\0"
 		"noauto\0"
 		"nofail\0"
 		"sw\0"
-- 
1.7.10.4

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic