[package] busybox: update to v1.14.4 (closes: #5619)
[openwrt-10.03/.git] / package / busybox / patches / 480-mount_union.patch
1 --- a/util-linux/mount.c
2 +++ b/util-linux/mount.c
3 @@ -42,6 +42,10 @@
4  #define MS_DIRSYNC      128     // Directory modifications are synchronous
5  #endif
6  
7 +#ifndef MS_UNION
8 +#define MS_UNION       0x100   /* 256: Mount on top of a union */
9 +#endif
10 +
11  
12  #if defined(__dietlibc__)
13  // 16.12.2006, Sampo Kellomaki (sampo@iki.fi)
14 @@ -152,6 +156,7 @@ static const int32_t mount_options[] = {
15                 /* "rslave"      */ MS_SLAVE|MS_RECURSIVE,
16                 /* "rprivate"    */ MS_SLAVE|MS_RECURSIVE,
17                 /* "runbindable" */ MS_UNBINDABLE|MS_RECURSIVE,
18 +               /* "union"       */ MS_UNION,
19         )
20  
21         // Always understood.
22 @@ -206,6 +211,7 @@ static const char mount_option_str[] =
23                 "rslave\0"
24                 "rprivate\0"
25                 "runbindable\0"
26 +               "union" "\0"
27         )
28  
29         // Always understood.