]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfstest generic/280: wait for setquota to finish before umount
authorGuangyu Sun <guangyu.sun@oracle.com>
Thu, 24 Oct 2013 17:56:21 +0000 (17:56 +0000)
committerRich Johnston <rjohnston@sgi.com>
Tue, 3 Dec 2013 14:58:14 +0000 (08:58 -0600)
commit527eeb43e5c7cfd642d81bc3c12e746d2a3733ff
treea50a4fabc252832559e9b93f8281bff28625b78d
parent0a7f216b7962fd15e0fd749110776ca69b718932
xfstest generic/280: wait for setquota to finish before umount

While running xfstest 280, we occasionally got such error:

  setquota: Cannot set quota for user 0 from kernel on
  /dev/mapper/xfstests-disk1: No such device
  setquota: Cannot write quota for 0 on /dev/mapper/xfstests-disk1: No such
  device

setquota calls syscall quotactl, and the kernel will wait for the filesystem
to unfreeze and then performs command. Then kernel will double check if the
device is still mounted. If not, an ENODEV will be thrown.

While in the testcase, unfreeze and umount might be so close that the device
got umounted before quotactl is performed.

Reported-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
Signed-off-by: Guangyu Sun <guangyu.sun@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redaht.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
tests/generic/280