# moves dirs in a way that a new dir becomes the parent of the same inode's | |
# former parent | |
mkdir $1 /1 | |
mkdir $2 /1/2 | |
mkdir $3 /1/2/3 | |
mkfile $4 /1/2/3/4 | |
snapshot | |
unlink /1/2/3/4 | |
rmdir /1/2/3 | |
rmdir /1/2 | |
remount | |
mkdir $5 /1/5 | |
mkdir $4 /1/5/4.1 | |
mkdir $3 /1/5/4.1/3.1 | |
snapshot |