[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1266970329-28068-1-git-send-email-john.johansen@canonical.com>
Date: Tue, 23 Feb 2010 16:12:08 -0800
From: john.johansen@...onical.com
To: linux-kernel@...r.kernel.org
Cc: linux-fsdevel-owner@...r.kernel.org
Subject: [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"
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists