Advertisement
cheako

Test for overlayfs bug.

Jun 5th, 2012
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. #!/bin/bash
  2. (
  3. set -e
  4. mkdir -p /mnt/test /tmp/usr
  5. mount none /mnt/test -t overlayfs -o lowerdir=/usr,upperdir=/tmp/usr
  6. /mnt/test/bin/tail -f /dev/null&
  7. ls -lart /proc/$!/exe
  8. kill $!
  9. umount /mnt/test
  10. rmdir /mnt/test /tmp/usr
  11. )
  12.  
  13. # If a red broken link to /bin/tail is printed then the bug exists. If the link points to /mnt/test/bin/tail then there is no bug in the currently running kernel.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement