Vasanth Ragavendran: > > It might work, however the plink.c which contains a O_CLOEXEC defined in > fcntl.h creates problem. i guess the location of this file containing > O_CLOEXEC differs from architecture to architecture (i'm not too sure of > this though)
If you mean that your /usr/include/fcntl.h (or its sub-included files) doesn't define O_CLOEXEC, then I am afraid it is violating some standards and I cannot support such system. I thought you are using glibc since your cross-compiler is gcc, isn't it? > /etc/mtab file and these values are the same when i do a "cat /proc/mount". > > rootfs on / type rootfs (rw) > /proc on /proc type proc (rw,relatime) > tmpfs on /tmp type tmpfs (rw,relatime) > /dev/mtdblock2 on /tmp/jffs2 type jffs2 (rw,relatime) > /dev/loop0 on /tmp/sqfsh type squashfs (ro,relatime) > aufs on /aufs type aufs (rw,relatime,si=c50d032a) Actually it is not same. Your previous post showed aufs on / ... br:/tmp/rw=rw:/tmp/sqfsh=rr) The difference is the branch path in the aufs entry. That is why I asked about the module parameter 'brs'. > After this i do a move to tmp location inside /aufs folder. the move is > successful and again mount(8) or cat /proc/mount returns these ::: > tmpfs on /aufs/tmp type tmpfs (rw,relatime) > /dev/mtdblock2 on /aufs/tmp/jffs2 type jffs2 (rw,relatime) > /dev/loop0 on /aufs/tmp/sqfsh type squashfs (ro,relatime) ::: Ok, that is correct. > before in /tmp. then i do a umount /proc. > And then i do a switch root to /aufs and here comes the problem again. the > mount(8) or cat /proc/mount in the aufs filesystem returns these ::: > tmpfs /tmp tmpfs rw,relatime 0 0 > /dev/mtdblock2 /tmp/jffs2 jffs2 rw,relatime 0 0 > /dev/loop0 /tmp/sqfsh squashfs ro,relatime 0 0 ::: Ok, that is correct too. > it still seems to have the old mount values and further the mount -o move > which was performed during the initramfs doesn't seem to be reflected which > are highlighted again above. and /tmp in the aufs filesystem doesn't > contain anything. now this is working correct? i'm doubtful. Why do you think /proc/mount is incorrect. It is absolutely correct since you have run switch_root, right? J. R. Okajima ------------------------------------------------------------------------------ Systems Optimization Self Assessment Improve efficiency and utilization of IT resources. Drive out cost and improve service delivery. Take 5 minutes to use this Systems Optimization Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/