Skip to content

Fix __d_path for lazy unmounts v2

[email protected] linux-fsdevel lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. 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.

Read the v1 thread

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"