Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 218711 Details for
Bug 296361
[PATCH] nash mount should support relatime
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch against fedora 7 CVS to add relatime support to nash
mkinitrd-F7-relatime.patch (text/plain), 3.16 KB, created by
Stu Tomlinson
on 2007-10-07 15:20:53 UTC
(
hide
)
Description:
Patch against fedora 7 CVS to add relatime support to nash
Filename:
MIME Type:
Creator:
Stu Tomlinson
Created:
2007-10-07 15:20:53 UTC
Size:
3.16 KB
patch
obsolete
>Index: mkinitrd-6.0.9-relatime.patch >=================================================================== >RCS file: mkinitrd-6.0.9-relatime.patch >diff -N mkinitrd-6.0.9-relatime.patch >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ mkinitrd-6.0.9-relatime.patch 7 Oct 2007 15:19:16 -0000 >@@ -0,0 +1,44 @@ >+diff -up mkinitrd-6.0.9/nash/nash.c.relatime mkinitrd-6.0.9/nash/nash.c >+--- mkinitrd-6.0.9/nash/nash.c.relatime 2007-03-29 18:27:49.000000000 +0100 >++++ mkinitrd-6.0.9/nash/nash.c 2007-10-07 15:59:37.000000000 +0100 >+@@ -101,6 +101,10 @@ >+ #define MS_MOVE 8192 >+ #endif >+ >++#ifndef MS_RELATIME >++#define MS_RELATIME (1<<21) >++#endif >++ >+ #ifndef MNT_FORCE >+ #define MNT_FORCE 0x1 >+ #endif >+@@ -413,6 +417,10 @@ mountCommand(char * cmd, char * end) >+ flags |= MS_NOATIME; >+ else if (!strcmp(start, "atime")) >+ flags &= ~MS_NOATIME; >++ else if (!strcmp(start, "relatime")) >++ flags |= MS_RELATIME; >++ else if (!strcmp(start, "norelatime")) >++ flags &= ~MS_RELATIME; >+ else if (!strcmp(start, "remount")) >+ flags |= MS_REMOUNT; >+ else if (!strcmp(start, "bind")) >+@@ -443,7 +451,7 @@ mountCommand(char * cmd, char * end) >+ } >+ >+ if (_nash_context->testing) { >+- printf("mount %s%s%s-t '%s' '%s' '%s' (%s%s%s%s%s%s%s)\n", >++ printf("mount %s%s%s-t '%s' '%s' '%s' (%s%s%s%s%s%s%s%s)\n", >+ options ? "-o '" : "", >+ options ? options : "", >+ options ? "\' " : "", >+@@ -454,7 +462,8 @@ mountCommand(char * cmd, char * end) >+ (flags & MS_NOEXEC) ? "noexec " : "", >+ (flags & MS_SYNCHRONOUS) ? "sync " : "", >+ (flags & MS_REMOUNT) ? "remount " : "", >+- (flags & MS_NOATIME) ? "noatime " : "" >++ (flags & MS_NOATIME) ? "noatime " : "", >++ (flags & MS_RELATIME) ? "relatime " : "" >+ ); >+ } else { >+ if (!strncmp(fsType, "nfs", 3)) { >Index: mkinitrd.spec >=================================================================== >RCS file: /cvs/pkgs/rpms/mkinitrd/F-7/mkinitrd.spec,v >retrieving revision 1.206 >diff -u -p -u -a -r1.206 mkinitrd.spec >--- mkinitrd.spec 11 Jun 2007 22:16:31 -0000 1.206 >+++ mkinitrd.spec 7 Oct 2007 15:19:17 -0000 >@@ -3,13 +3,14 @@ > Summary: Creates an initial ramdisk image for preloading modules. > Name: mkinitrd > Version: 6.0.9 >-Release: 7.1 >+Release: 8 > License: GPL > Group: System Environment/Base > Source0: mkinitrd-%{version}.tar.bz2 > Patch0: mkinitrd-6.0.9-mdadm.patch > Patch1: mkinitrd-6.0.9-nosegneg.patch > #Patch2: mkinitrd-6.0.9-lstat.patch >+Patch3: mkinitrd-6.0.9-relatime.patch > > ExclusiveOs: Linux > Prereq: dev >@@ -70,6 +71,7 @@ nash shell used by initrd > %patch0 -p0 -b .mdadm > %patch1 -p0 -b .nosegneg > #%patch2 -p1 -b .lstat >+%patch3 -p1 -b .relatime > > %build > make LIB=%{_lib} >@@ -117,6 +119,9 @@ rm -rf $RPM_BUILD_ROOT > %{_libdir}/libbdevid.so.* > > %changelog >+* Sun Oct 7 2007 Stu Tomlinson <stu@nosnilmot.com> - 6.0.9-8 >+- Add relatime support to mount (#296361) >+ > * Mon Jun 11 2007 Peter Jones <pjones@redhat.com> - 6.0.9-7.1 > - Undo the change from -6, it is wrong. >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 296361
: 218711 |
218721
|
328155
|
328162