Continue untangling the disklabel. Reorganize struct partinfo and the
commit3b8e9eb9e52c8fd673115d7fb002ffc3a7ebebd5
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 15 May 2007 17:51:04 +0000 (15 17:51 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 15 May 2007 17:51:04 +0000 (15 17:51 +0000)
treeabe0ffad3efaccc0a76927e23b5884b2685b828f
parentdb23d98c319b3f802d26e8a03259c8d358c583cd
Continue untangling the disklabel.  Reorganize struct partinfo and the
DIOCGPART ioctl to extract the required information directly, and fix
the DIOCGPART ioctl direction so userland can use it.

This removes numerous disklabel references, particularly from the filesystem
code which was doing silly indirections just to figure out the sector size.

NOTE: The absolute byte offset of the slice or partition (relative to the
base of the raw disk) is also made available, but is not currently used
by the kernel.
13 files changed:
sys/dev/disk/ata/atapi-cd.c
sys/dev/disk/ccd/ccd.c
sys/dev/disk/mcd/mcd.c
sys/dev/disk/scd/scd.c
sys/dev/raid/vinum/vinumio.c
sys/dev/raid/vinum/vinumioctl.c
sys/dev/raid/vinum/vinumvar.h
sys/kern/subr_diskslice.c
sys/sys/disklabel.h
sys/sys/ndisklabel.h
sys/vfs/gnu/ext2fs/ext2_vfsops.c
sys/vfs/msdosfs/msdosfs_vfsops.c
sys/vfs/ufs/ffs_vfsops.c