2 # This is just for the record.
3 # This test is not run.
12 On a VFAT file system with coreutils-5.0.90, `mv FOO foo' removes the
13 sole copy of the file named by both the source and destination arguments.
15 Demonstrate the problem, as root:
18 && dd if=/dev/zero of=1 bs=8192 count=50 \
19 && mkdir mnt && mkfs -t vfat 1 \
20 && mount -oloop 1 mnt && cd mnt \
21 && printf something important > foo \
23 test -f FOO && echo PASS-1 || echo FAIL-1
26 test -f FOO && echo PASS-2 || echo FAIL-2
28 And in case you actually do the above, you can do this to clean up:
30 cd /tmp && umount /tmp/mnt && rm -r 1 mnt
32 Hey! Can't create hard links on vfat.
33 The above `ln' evokes an `operation not permitted' failure.
35 This demonstrates the same thing with file system type `umsdos'
39 && dd if=/dev/zero of=1 bs=8192 count=50 \
40 && mkdir mnt && mkfs -t msdos 1 \
41 && mount -t umsdos -oloop 1 mnt && cd mnt \
42 && printf something important > foo \
44 test -f FOO && echo PASS-1 || echo FAIL-1
47 test -f FOO && echo PASS-2 || echo FAIL-2