tag 460824 patch user [EMAIL PROTECTED] usertag 460824 origin-ubuntu ubuntu-patch hardy thanks
On Tue, Jan 15, 2008 at 05:58:37AM +0100, Frans Pop wrote: > I can easily reproduce this from a debug shell: > # mount /dev/hda1 /mnt/ -t ext3 -o relatime > mount: Mounting /dev/hda1 on /mnt/ failed: Invalid argument > # dmesg > EXT3-fs: Unrecognized mount option "relatime" or missing value The attached patch adds support for the relatime and norelatime mount options, fixing this bug. (util-linux has similar code already.) Please apply. Thanks, -- Colin Watson [EMAIL PROTECTED]
diff -u busybox-1.1.3/util-linux/mount.c busybox-1.1.3/util-linux/mount.c --- busybox-1.1.3/util-linux/mount.c +++ busybox-1.1.3/util-linux/mount.c @@ -47,6 +47,9 @@ #ifndef MS_SILENT #define MS_SILENT 32768 #endif +#ifndef MS_RELATIME +#define MS_RELATIME 2097152 +#endif // Not real flags, but we want to be able to check for this. #define MOUNT_NOAUTO (1<<29) @@ -80,6 +83,8 @@ {"noatime", MS_NOATIME}, {"diratime", ~MS_NODIRATIME}, {"nodiratime", MS_NODIRATIME}, + {"relatime", MS_RELATIME}, + {"norelatime", ~MS_RELATIME}, {"loud", ~MS_SILENT}, // action flags