Remember to check the DE_WHITEOUT flag in the case where a cloned

device is hidden by a devfs(8) rule.

Spotted by:	 Adam Nowacki <ptnowak@bsk.vectranet.pl>
This commit is contained in:
Poul-Henning Kamp 2003-10-20 15:08:10 +00:00
parent a89ec7140f
commit 8b285b9088
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121281

View File

@ -385,10 +385,15 @@ devfs_lookupx(ap)
devfs_populate(dmp);
dde = devfs_itode(dmp, cdev->si_inode);
if (dde != NULL && *dde != DE_DELETED && *dde != NULL) {
de = *dde;
goto found;
}
if (dde == NULL || *dde == NULL || *dde == DE_DELETED)
goto notfound;
if ((*dde)->de_flags & DE_WHITEOUT)
goto notfound;
de = *dde;
goto found;
notfound: