mirror of
https://github.com/ceph/ceph
synced 2024-12-26 13:33:57 +00:00
6fb971ffdb
Signed-off-by: Sage Weil <sage@newdream.net>
32 lines
423 B
Bash
Executable File
32 lines
423 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
mkdir x
|
|
cd x
|
|
touch a
|
|
touch b
|
|
touch c
|
|
touch d
|
|
ls
|
|
chmod 777 .
|
|
stat e || true
|
|
touch f
|
|
touch g
|
|
|
|
# over existing file
|
|
echo attempting rename over existing file...
|
|
touch ../xx
|
|
mv ../xx f
|
|
ls | grep f || false
|
|
echo rename over existing file is okay
|
|
|
|
# over negative dentry
|
|
echo attempting rename over negative dentry...
|
|
touch ../xx
|
|
mv ../xx e
|
|
ls | grep e || false
|
|
echo rename over negative dentry is ok
|
|
|
|
echo OK
|