I do believe your test case is not testing what the patch solves.
The problem I was trying to solve was that after autofs mounted a location, hald would stat that mount
on a regular basis, preventing the autofs auto-unmount timeouts from expiring and unmounting the
mount.
A proper test would be:
$ df | grep '/net/some.nfs.server/foo'
(expected: nothing)
$ ls -l /net/some.nfs.server/foo
$ df | grep '/net/some.nfs.server/foo'
(expected: mount info for /net/some.nfs.server/foo)
$ sleep 120 (or whatever your autofs timeout is)
$ df | grep '/net/some.nfs.server/foo'
(expected: nothing)
I do believe your test case is not testing what the patch solves.
The problem I was trying to solve was that after autofs mounted a location, hald would stat that mount
on a regular basis, preventing the autofs auto-unmount timeouts from expiring and unmounting the
mount.
A proper test would be:
$ df | grep '/net/some. nfs.server/ foo' nfs.server/ foo nfs.server/ foo' nfs.server/ foo) nfs.server/ foo'
(expected: nothing)
$ ls -l /net/some.
$ df | grep '/net/some.
(expected: mount info for /net/some.
$ sleep 120 (or whatever your autofs timeout is)
$ df | grep '/net/some.
(expected: nothing)