From: john.johansen on
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"

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/