Continue untangling the disklabel. Reorganize struct partinfo and the
commite4d11a85a44f270b69988bc8c0f3e7b60811fbd8
authordillon <dillon>
Tue, 15 May 2007 17:51:04 +0000 (15 17:51 +0000)
committerdillon <dillon>
Tue, 15 May 2007 17:51:04 +0000 (15 17:51 +0000)
treeea7a8aa78031b3f5897fe02be9d5e1999ac25f54
parenta31ecf450665324da1a2da3b912e81bf46a07579
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.
14 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/disklabel32.h
sys/sys/ndisklabel.h
sys/vfs/gnu/ext2fs/ext2_vfsops.c
sys/vfs/msdosfs/msdosfs_vfsops.c
sys/vfs/ufs/ffs_vfsops.c