freebsd-dev/sys/fs
Andriy Gapon 8e94193e58 make path matching in devfs rules consistent and sane (and safer)
Before this change path matching had the following features:
- for device nodes the patterns were matched against full path
- in the above case '/' in a path could be matched by a wildcard
- for directories and links only the last component was matched

So, for example, a pattern like 're*' could match the following entries:
- re0 device
- responder/u0 device
- zvol/recpool directory

Although it was possible to work around this behavior (once it was spotted
and understood), it was very confusing and contrary to documentation.

Now we always match a full path for all types of devfs entries (devices,
directories, links) and a '/' has to be matched explicitly.
This behavior follows the shell globbing rules.

This change is originally developed by Jaakko Heinonen.
Many thanks!

PR:		kern/122838
Submitted by:	jh
MFC after:	4 weeks
2013-07-26 14:25:58 +00:00
..
cd9660 Add currently unused flag argument to the cluster_read(), 2013-03-14 20:28:26 +00:00
deadfs The deadfs VOPs for vop_ioctl and vop_bmap call itself recursively, 2012-09-13 13:05:45 +00:00
devfs make path matching in devfs rules consistent and sane (and safer) 2013-07-26 14:25:58 +00:00
ext2fs ext2fs: Return EINVAL for negative uio_offset as in UFS. 2013-07-25 19:37:49 +00:00
fdescfs Fix several typos 2013-05-12 16:43:26 +00:00
fifofs I am comparing current pipe code with the one in 8.3-STABLE r236165, 2012-07-31 05:48:35 +00:00
fuse fuse: revert kernel_header update. 2013-07-24 20:21:29 +00:00
msdosfs The fsync(2) call should sync the vnode in such way that even after 2013-05-02 20:00:11 +00:00
nandfs - Convert the bufobj lock to rwlock. 2013-05-31 00:43:41 +00:00
nfs The NFSv4 server incorrectly assumed that the high order words of 2013-07-20 22:35:32 +00:00
nfsclient Add support for host-based (Kerberos 5 service principal) initiator 2013-07-09 01:05:28 +00:00
nfsserver - Convert the bufobj lock to rwlock. 2013-05-31 00:43:41 +00:00
nullfs The tvp vnode on rename is usually unlinked. Drop the cached null 2013-07-04 19:01:18 +00:00
procfs Relax the vm object locking. Use a read lock. 2013-06-05 17:00:10 +00:00
pseudofs Complete MPSAFE VFS interface and remove MNTK_MPSAFE flag. 2012-11-09 18:02:25 +00:00
smbfs - Fix double frees/user after free. 2013-07-03 10:31:45 +00:00
tmpfs tmpfs works perfectly fine with -o union -- there is no reason to exclude it 2013-07-23 14:48:37 +00:00
udf Add currently unused flag argument to the cluster_read(), 2013-03-14 20:28:26 +00:00
unionfs r16312 is not any longer real since many years (likely since when VFS 2012-11-19 22:43:45 +00:00