daily pastebin goal
63%
SHARE
TWEET

Test for overlayfs bug.

cheako Jun 5th, 2012 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top