This testcase checked event IN_UNMOUNT. IN_UNMOUNT File system containing watched object was unmounted and check filesystem that it can't be unmounted if exist opened inotify descriptor. Example of execution:
Running tests.......
inotify03    0  INFO  :  mount /dev/loop0 to mnt_694 fstype=ext3
inotify03    0  INFO  :  umount /dev/loop0
<<<test_start>>>
tag=inotify03 stime=1229332020
cmdline="inotify03 -D /dev/loop0 -T ext3"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
incrementing stop
inotify03    1  PASS  :  get event: wd=1 mask=2000 cookie=0 len=0
inotify03    2  PASS  :  get event: wd=1 mask=8000 cookie=0 len=0
inotify03    3  PASS  :  inotify_rm_watch (5, 1) return -1 errno=22 : Invalid argument
<<<execution_status>>>
duration=0 termination_type=exited termination_id=0 corefile=no
cutime=0 cstime=0
<<<test_end>>>
kernel: Linux avagin 2.6.25-rc6 #1 SMP Tue Jul 8 13:42:51 MSD 2008 i686 Intel(R) Celeron(R) CPU 2.53GHz GenuineIntel GNU/Linux.
Signed-Off-By: Andrew Vagin <avagin@gmail.com>. Acked-By: CAI Qian <caiqian@cclom.cn>.
2 files changed