Code Review
/
stor4nfv.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
initial code repo
[stor4nfv.git]
/
src
/
ceph
/
qa
/
workunits
/
fs
/
misc
/
i_complete_vs_rename.sh
1
#!/bin/sh
2
3
set -e
4
5
mkdir x
6
cd x
7
touch a
8
touch b
9
touch c
10
touch d
11
ls
12
chmod 777 .
13
stat e || true
14
touch f
15
touch g
16
17
# over existing file
18
echo attempting rename over existing file...
19
touch ../xx
20
mv ../xx f
21
ls | grep f || false
22
echo rename over existing file is okay
23
24
# over negative dentry
25
echo attempting rename over negative dentry...
26
touch ../xx
27
mv ../xx e
28
ls | grep e || false
29
echo rename over negative dentry is ok
30
31
echo OK