Added debian/ from 1:1.10.2-1 debian package
[busybox4maemo] / debian / patches / mount-relatime.patch
1 --- busybox.orig/util-linux/mount.c
2 +++ busybox/util-linux/mount.c
3 @@ -26,6 +26,9 @@
4  /* For FEATURE_MOUNT_LABEL only */
5  #include "volume_id.h"
6  #endif
7 +#ifndef MS_RELATIME
8 +#define MS_RELATIME    (1 << 21)
9 +#endif
10  
11  /* Needed for nfs support only */
12  #include <sys/utsname.h>
13 @@ -136,6 +139,8 @@
14                 /* "noatime"     */ MS_NOATIME,
15                 /* "diratime"    */ ~MS_NODIRATIME,
16                 /* "nodiratime"  */ MS_NODIRATIME,
17 +               /* "relatime"    */ MS_RELATIME,
18 +               /* "norelatime"  */ ~MS_RELATIME,
19                 /* "loud"        */ ~MS_SILENT,
20  
21                 // action flags
22 @@ -186,6 +191,8 @@
23                 "noatime" "\0"
24                 "diratime" "\0"
25                 "nodiratime" "\0"
26 +               "relatime" "\0"
27 +               "norelatime" "\0"
28                 "loud" "\0"
29  
30                 // action flags