]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remember to unlock the (optional) vnode in vfs_stdextattrctl(). Failing
authorPoul-Henning Kamp <phk@FreeBSD.org>
Tue, 13 Aug 2002 11:11:51 +0000 (11:11 +0000)
committerPoul-Henning Kamp <phk@FreeBSD.org>
Tue, 13 Aug 2002 11:11:51 +0000 (11:11 +0000)
commit6f211602181f3224a7f391c4ab03605fe56d9d37
tree561fda55b61541b8fd0a59b93051081c61b230e2
parentf0134e3330bba29cc1b94748f293e351109f5605
Remember to unlock the (optional) vnode in vfs_stdextattrctl().  Failing
to do this made the following script hang:

#!/bin/sh
set -ex

extattrctl start /tmp
extattrctl initattr 64 /tmp/EA00
extattrctl enable /tmp user ea00 /tmp/EA00
extattrctl showattr /tmp/EA00

if the filesystem backing /tmp did not support EAs.

The real solution is probably to have the extattrctl syscall do the
unlocking rather than depend on the filesystem to do it.  Considering
that extattrctl is going to be made obsolete anyway, this has dogwash
priority.

Sponsored by: DARPA & NAI Labs.
sys/kern/vfs_default.c