freebsd-dev/sys/fs/ntfs
Ed Schouten 29d4cb241b Don't enforce unique device minor number policy anymore.
Except for the case where we use the cloner library (clone_create() and
friends), there is no reason to enforce a unique device minor number
policy. There are various drivers in the source tree that allocate unr
pools and such to provide minor numbers, without using them themselves.

Because we still need to support unique device minor numbers for the
cloner library, introduce a new flag called D_NEEDMINOR. All cdevsw's
that are used in combination with the cloner library should be marked
with this flag to make the cloning work.

This means drivers can now freely use si_drv0 to store their own flags
and state, making it effectively the same as si_drv1 and si_drv2. We
still keep the minor() and dev2unit() routines around to make drivers
happy.

The NTFS code also used the minor number in its hash table. We should
not do this anymore. If the si_drv0 field would be changed, it would no
longer end up in the same list.

Approved by:	philip (mentor)
2008-06-11 18:55:19 +00:00
..
ntfs_compr.c
ntfs_compr.h
ntfs_iconv.c
ntfs_ihash.c Don't enforce unique device minor number policy anymore. 2008-06-11 18:55:19 +00:00
ntfs_ihash.h
ntfs_inode.h
ntfs_subr.c lockinit() can't accept LK_EXCLUSIVE as an initializaiton flag, so just 2008-05-15 21:39:25 +00:00
ntfs_subr.h Fix an integer overflow and allow access to files larger than 4GB on 2006-11-20 19:28:36 +00:00
ntfs_vfsops.c VOP_LOCK1() (and so VOP_LOCK()) and VOP_UNLOCK() are only used in 2008-01-13 14:44:15 +00:00
ntfs_vfsops.h make M_NTFSMNT and ntfs_calccfree() static 2005-02-10 12:09:49 +00:00
ntfs_vnops.c VOP_LOCK1() (and so VOP_LOCK()) and VOP_UNLOCK() are only used in 2008-01-13 14:44:15 +00:00
ntfs.h Do not declare M_NTFSMNT with extern linkage here, since 2005-09-11 15:57:07 +00:00
ntfsmount.h