Continue untangling the disklabel. Reorganize struct partinfo and the
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 15 May 2007 17:51:04 +0000 (17:51 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 15 May 2007 17:51:04 +0000 (17:51 +0000)
commit2ec8fb792f39ffa6e85f08fc6f6a365e81d78aba
treec059c4f252e9b09109d686e6b580771830f7bc08
parent98dabdac174e1d49ee182cb542f1bab766a10100
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