[arch-releng] [PATCH] Mount tmpfs filesystems with mode=0755

Gerardo Exequiel Pozzi vmlinuz386 at yahoo.com.ar
Fri Jul 9 11:11:32 EDT 2010


  On 07/09/2010 04:13 AM, Thomas Bächler wrote:
> Am 09.07.2010 01:49, schrieb Gerardo Exequiel Pozzi:
>> If I understand corretly, please fix me if I am wrong, but.the problem
>> is that mounts will be overlapped(*) with aufs mount stack, so at least
>> one mountpoint must be unreacheable, this is where sqfs images are
>> mounted /tmpfs (and /tmpfs.sqfs if copytoram is used).
>> (*) http://bugs.archlinux.org/task/17182
>> "Aufs rejects the branch which is an ancestor or a descendant of another
>> branch. It is called overlapped. When the branch is loopback-mounted
>> directory, aufs also checks the source fs-image file of loopback device.
>> If the source file is a descendant of another branch, it will be
>> rejected too" http://aufs.sourceforge.net/aufs2/man.html
> I don't think this is the case here. You are not mounting an aufs branch
> inside another one, but you are moving an AUFS branch into the AUFS
> mount point itself. To me, it seems like AUFS and the Linux VFS should
> be able to handle that. I haven't tested it though.
>
> What the bug report stated is different: You nested two branches into
> each other - if AUFS uses the whole directory as a branch instead of
> just the mount point, I can understand why that would fail.
>
Seems to work moving all to /new_root/somedir... I have a dude why are 
interested in doing that?
(nothing left except /new_root , hehe)

https://gist.github.com/468957/7284f470b968064a8342060e64d3784f6658a42c

------------------------------------------------------------
(copytoram=n)
tmpfs on /new_root/aufs/rw_branch type tmpfs 
(rw,relatime,size=383696k,mode=755)
none on /new_root type aufs (rw,relatime,si=ddcbbff9)
/dev/disk/by-label/ARCH_201007 on /new_root/bootmnt type udf 
(ro,relatime,utf8)
/dev/loop0 on /new_root/aufs/ro_branch/overlay type squashfs (ro,relatime)
/dev/loop1 on /new_root/aufs/ro_branch/root-image type squashfs 
(ro,relatime)

(on shutdown)
umount: /dev/loop1 busy - remounted read-only
umount: /dev/loop0 busy - remounted read-only
umount: /dev/disk/by-label/ARCH_201007 busy - remounted read-only
umount: /aufs/rw_branch: device is busy.

------------------------------------------------------------
(copytoram=y)
tmpfs on /new_root/aufs/rw_branch type tmpfs 
(rw,relatime,size=383696k,mode=755)
none on /new_root type aufs (rw,relatime,si=88cacedb)
tmpfs on /new_root/copyonram type tmpfs (rw,relatime,size=383696k,mode=755)
/dev/loop0 on /new_root/aufs/ro_branch/overlay type squashfs (ro,relatime)
/dev/loop1 on /new_root/aufs/ro_branch/root-image type squashfs 
(ro,relatime)

(on shutdown)
umount: /dev/loop1 busy - remounted read-only
umount: /dev/loop0 busy - remounted read-only
umount: /copyonram: device is busy.
umount: /aufs/rw_branch: device is busy.
------------------------------------------------------------


-- 
Gerardo Exequiel Pozzi
\cos^2\alpha + \sin^2\alpha = 1




More information about the arch-releng mailing list