Fix __d_path for lazy unmounts v2
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 1 patch 0 repliesNew
Patches in v1 No applies recorded yet
The patch the cover letter announces is not in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Patch 0/1] Fix __d_path for lazy unmounts v2
Second iteration of the __d_path patch
Fixes
* formating problem - while(dentry
* the assignment where comparison should be used
Tests to exercise the behavior and test for regressions follows
---
#!/bin/bash
#simple script to test behavior of lazily unmounted bind mount
DIR1=mktemp -d /tmp/foo.XXXXXXXXXX
DIR2=mktemp -d /tmp/test.XXXXXXXXXX
mkdir "$DIR2/bar"
mount --bind "$DIR2" "$DIR1"
cd "$DIR1/bar"
echo "Before umount -l"/bin/pwd
umount -l "$DIR1"
echo "After umount -l"/bin/pwd
echo "After cd .."
cd ../bin/pwd
rm -rf "$DIR1" "$DIR2"