diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-06 21:47:24 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-06 21:56:22 +0100 |
commit | 34c5115a7fb2adb7562b5638264112f5d83bf6cf (patch) | |
tree | 97131a45674d17173324ea495174d91820d45671 | |
parent | 696c38ddca99f6d40ee6c4bd1d253a987989bd95 (diff) | |
download | busybox-w32-34c5115a7fb2adb7562b5638264112f5d83bf6cf.tar.gz busybox-w32-34c5115a7fb2adb7562b5638264112f5d83bf6cf.tar.bz2 busybox-w32-34c5115a7fb2adb7562b5638264112f5d83bf6cf.zip |
mount: implement -o nosymfollow, remove bogus -o union
The (1 << 8) MS_ flag is MS_NOSYMFOLLOW, not MS_UNION.
As far as I see in git history of kernel and util-linux,
MS_UNION did not ever exist.
Why did it appear in our tree in 2009?...
function old new delta
mount_option_str 379 385 +6
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | util-linux/mount.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c index 25d884a24..2eadee88b 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c | |||
@@ -188,8 +188,8 @@ | |||
188 | #ifndef MS_DIRSYNC | 188 | #ifndef MS_DIRSYNC |
189 | # define MS_DIRSYNC (1 << 7) // Directory modifications are synchronous | 189 | # define MS_DIRSYNC (1 << 7) // Directory modifications are synchronous |
190 | #endif | 190 | #endif |
191 | #ifndef MS_UNION | 191 | #ifndef MS_NOSYMFOLLOW |
192 | # define MS_UNION (1 << 8) | 192 | # define MS_NOSYMFOLLOW (1 << 8) |
193 | #endif | 193 | #endif |
194 | #ifndef MS_BIND | 194 | #ifndef MS_BIND |
195 | # define MS_BIND (1 << 12) | 195 | # define MS_BIND (1 << 12) |
@@ -368,13 +368,13 @@ static const int32_t mount_options[] ALIGN4 = { | |||
368 | /* "nostrictatime"*/ ~MS_STRICTATIME, | 368 | /* "nostrictatime"*/ ~MS_STRICTATIME, |
369 | /* "lazytime" */ MS_LAZYTIME, | 369 | /* "lazytime" */ MS_LAZYTIME, |
370 | /* "nolazytime" */ ~MS_LAZYTIME, | 370 | /* "nolazytime" */ ~MS_LAZYTIME, |
371 | /* "nosymfollow" */ MS_NOSYMFOLLOW, | ||
371 | /* "mand" */ MS_MANDLOCK, | 372 | /* "mand" */ MS_MANDLOCK, |
372 | /* "nomand" */ ~MS_MANDLOCK, | 373 | /* "nomand" */ ~MS_MANDLOCK, |
373 | /* "loud" */ ~MS_SILENT, | 374 | /* "loud" */ ~MS_SILENT, |
374 | 375 | ||
375 | // action flags | 376 | // action flags |
376 | /* "rbind" */ MS_BIND|MS_RECURSIVE, | 377 | /* "rbind" */ MS_BIND|MS_RECURSIVE, |
377 | /* "union" */ MS_UNION, | ||
378 | /* "bind" */ MS_BIND, | 378 | /* "bind" */ MS_BIND, |
379 | /* "move" */ MS_MOVE, | 379 | /* "move" */ MS_MOVE, |
380 | /* "shared" */ MS_SHARED, | 380 | /* "shared" */ MS_SHARED, |
@@ -430,13 +430,13 @@ static const char mount_option_str[] ALIGN1 = | |||
430 | "nostrictatime""\0" | 430 | "nostrictatime""\0" |
431 | "lazytime" "\0" | 431 | "lazytime" "\0" |
432 | "nolazytime" "\0" | 432 | "nolazytime" "\0" |
433 | "nosymfollow" "\0" | ||
433 | "mand" "\0" | 434 | "mand" "\0" |
434 | "nomand" "\0" | 435 | "nomand" "\0" |
435 | "loud" "\0" | 436 | "loud" "\0" |
436 | 437 | ||
437 | // action flags | 438 | // action flags |
438 | "rbind\0" | 439 | "rbind\0" |
439 | "union\0" | ||
440 | "bind\0" | 440 | "bind\0" |
441 | "move\0" | 441 | "move\0" |
442 | "make-shared\0" | 442 | "make-shared\0" |