James Burry:
> I tried the aufs-4.4 Linux tree from git (
> git://github.com/sfjro/aufs4-linux.git
> <https://github.com/sfjro/aufs4-linux.git>)
>
> I still see these "text file busy" errors. The errors happen in a chroot
> environment of the aufs mountpoint.

I've tried aufs4.4 too, and succeeded.
What is the difference between my test case and yours?
The branch filesystems?

(from /proc/mounts)
/dev/ram1 /dev/shm/ro ext2 ro,relatime,errors=continue,user_xattr,acl 0 0
/dev/ram0 /dev/shm/rw ext3 rw,relatime,stripe=4,data=ordered 0 0
none /dev/shm/u aufs rw,relatime,si=17c4456a52bd9806 0 0

(cat /sys/fs/aufs/br[01])
/dev/shm/rw=rw
/dev/shm/ro=ro

$ cd /dev/shm/u
$ stat -f . ../rw

  File: "."
    ID: 0        Namelen: 242     Type: UNKNOWN (0x61756673)
Block size: 1024       Fundamental block size: 1024
Blocks: Total: 6907       Free: 6839       Available: 6430
Inodes: Total: 2048       Free: 2016
  File: "../rw"
    ID: d79306e023c4a4a7 Namelen: 255     Type: ext2/ext3
Block size: 1024       Fundamental block size: 1024
Blocks: Total: 6907       Free: 6839       Available: 6430
Inodes: Total: 2048       Free: 2016

$ ldd /bin/sh /bin/bash /bin/chmod /usr/bin/ldd |
> fgrep -v 'not a dynamic' |
> sort | uniq |
> awk '
> NF == 1 {sub(/:$/, ""); print}
> NF == 4 {print $3}
> NF == 2 {print $1}
> ' |
> xargs -ri cp -ipu --parent \{\} ../rw/

$ cat << EOF > a.sh
> #!/bin/sh
> echo success
> EOF

$ sudo chroot . sh -c "chmod +x a.sh && ./a.sh"
success


J. R. Okajima

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140

Reply via email to