summaryrefslogtreecommitdiff
path: root/sys/dev/dm/dm_table.c
AgeCommit message (Collapse)Author
2011-08-27add function to get the inactive table size (for during target init)ahoka
2010-12-23make dm aware of physical sector sizes.mlelstv
For aggregates of multiple disks we use the largest sector size from all disks. For standard power-of-2 sizes this is the same as the least common multiple. We still require proper alignment of the targets in the mapping table. ok by haad@
2010-01-04Indent files remove unnecessary blank lines, white spaces and KNFize code.haad
2009-10-23Reduce a noise from a debug printf to debug leveljoerg
2009-06-27Some fixes for dm(4).jakllsch
- Limit accesses to the size of the volume. This fixes a KASSERT in physio_biodone(). - Change dm_table_size() to return the size of the volume in DEV_BSIZE units. It was reporting it in DEV_BSIZE^2 units. - Remove a bit of trailing whitespace. ok haad
2008-12-19Merge the haad-dm branch to -current. This branch adds LVM functionality tohaad
the base NetBSD system. It uses Linux LVM2 tools and our BSD licensed device-mapper driver. The device-mapper driver can be used to create virtual block devices which maps virtual blocks to real with target mapping called target. Currently these targets are available a linear, zero, error and a snapshot (this is work in progress and doesn't work yet). The lvm2tools adds lvm and dmsetup binary to based system, where the lvm tool is used to manage and administer whole LVM and the dmestup is used to communicate iwith device-mapper kernel driver. With these tools also a libdevmapper library is instaled to the base system. Building of tools and driver is currently disable and can be enabled with MKLVM=yes in mk.conf. I will add sets lists and rc.d script soon. Oked by agc@ and cube@.