test case for overwriting empty dir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Review by David revealed a bug introduced by commit

  38e813db61c3 (ovl: get rid of PURE type)

and fixed 15 commits later by

  5cf5b477f0ca (ovl: opaque cleanup)

Here's a test script (output should be "bar" not "bar foo"):

cd /tmp/
mkdir test
cd test
mkdir -p lower/dir1 upper work mnt
touch lower/dir1/foo
mount -t overlay overlay -olowerdir=lower,upperdir=upper,workdir=work mnt
mkdir mnt/dir2
touch mnt/dir2/bar
rm mnt/dir1/foo
mv -T mnt/dir2 mnt/dir1
umount mnt
mount -t overlay overlay -olowerdir=lower,upperdir=upper,workdir=work mnt
ls mnt/dir1
umount mnt
rm -r lower upper work mnt
cd /tmp
rmdir test

Can someone please make a proper testcase for this, if there isn't one already?

Thanks,
Miklos
--
To unsubscribe from this list: send the line "unsubscribe linux-unionfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Devel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux