Latest working kernel version: Earliest failing kernel version: Distribution: Hardware Environment: Software Environment: Problem Description: I use ramfs instead of tmpfs for /tmp because I don't use swap on my laptop. Some apps need 1777 mode for /tmp directory, but ramfs does not support 'mode=' mount option. I'll be happy if I shall not invent workarounds for this small, but offensive truble. I think this feature (mode=) will not increase code too much and is not too hard to implement, but will be very usefull. Steps to reproduce:
Reply-To: akpm@linux-foundation.org (switched to email. Please respond via emailed reply-to-all, not via the bugzilla web interface). On Sun, 8 Mar 2009 14:16:13 -0700 (PDT) bugme-daemon@bugzilla.kernel.org wrote: > http://bugzilla.kernel.org/show_bug.cgi?id=12843 > > Summary: add mount option 'mode' to ramfs same as tmpfs > Product: File System > Version: 2.5 > KernelVersion: any > Platform: All > OS/Version: Linux > Tree: Mainline > Status: NEW > Severity: enhancement > Priority: P1 > Component: Other > AssignedTo: fs_other@kernel-bugs.osdl.org > ReportedBy: matimatik@gmail.com > > > Latest working kernel version: > Earliest failing kernel version: > Distribution: > Hardware Environment: > Software Environment: > Problem Description: > > I use ramfs instead of tmpfs for /tmp because I don't use swap on my laptop. > Some apps need 1777 mode for /tmp directory, but ramfs does not support > 'mode=' > mount option. I'll be happy if I shall not invent workarounds for this small, > but offensive truble. I think this feature (mode=) will not increase code too > much and is not too hard to implement, but will be very usefull. > A feature request!
On Mon, Mar 09, 2009 at 02:52:19PM -0700, Andrew Morton wrote: > > (switched to email. Please respond via emailed reply-to-all, not via the > bugzilla web interface). > > On Sun, 8 Mar 2009 14:16:13 -0700 (PDT) > bugme-daemon@bugzilla.kernel.org wrote: > > > http://bugzilla.kernel.org/show_bug.cgi?id=12843 > > > > Summary: add mount option 'mode' to ramfs same as tmpfs > > Product: File System > > Version: 2.5 > > KernelVersion: any > > Platform: All > > OS/Version: Linux > > Tree: Mainline > > Status: NEW > > Severity: enhancement > > Priority: P1 > > Component: Other > > AssignedTo: fs_other@kernel-bugs.osdl.org > > ReportedBy: matimatik@gmail.com > > > > > > Latest working kernel version: > > Earliest failing kernel version: > > Distribution: > > Hardware Environment: > > Software Environment: > > Problem Description: > > > > I use ramfs instead of tmpfs for /tmp because I don't use swap on my > laptop. > > Some apps need 1777 mode for /tmp directory, but ramfs does not support > 'mode=' > > mount option. I'll be happy if I shall not invent workarounds for this > small, > > but offensive truble. I think this feature (mode=) will not increase code > too > > much and is not too hard to implement, but will be very usefull. > > > > A feature request! Hi Avan Anishchuk, The attached patch works for me :-) Thanks, Fengguang
commit c3b1b1cbf002e65a3cabd479e68b5f35886a26db "ramfs: add support for "mode=" mount option"