summaryrefslogtreecommitdiff
path: root/sys/dev/dm/dm_target_error.c
AgeCommit message (Collapse)Author
2010-05-18Add support for DIOCCACHESYNC ioctl for dm devices. Add new sync functionhaad
pointer to dm_target_t because that is the only part of dm which know real block device. disk_ioctl_switch parses whole device table and for every entry it calls particular sync routine which propagates DIOCCACHESYNC to real disk. While I was here implement some KNF fixes and remove unneeded symbols from dm.h. Problem reported on port-xen@ by Hugo Silva.
2010-01-04Indent files remove unnecessary blank lines, white spaces and KNFize code.haad
2009-12-01Revert my commit which have added knowledge about dm targets to libdevmapper,haad
this breaks abstraction. Because only lvmtools/lvmlib and device-mapper can have knowledge about target mapping and libdevmapper only passes requests from lvmtools to kernel and back. Bump major library and driver version. Requested by: yamt@
2009-06-05Parse dm param string in libdevmapper and not in a dm target init function.haad
Create proplib param dictionary entry in libdevmapper and pass it to dm in dm_ioctl dict. Param target is then passed to target init function, where is parse. I like this aproach much better than passing char **argv and trusting to user input. I have bumped minor lib/driver version. XXX. Add more sanity checks in kernel.
2009-02-19Add support for autoloading of device-mapper targets modules. Addhaad
dm_target_autoload function which tries to load target module. Fix two deadlocks in dm_table_load_ioctl error path(I forgot to call dm_dev_unbusy).
2009-01-14Add dm module as dependency and remove module_hold/module_rele calls.haad
2009-01-02Properly register dm_target_* modules with module framework.haad
2008-12-21Add support for loading dm targets as separate modules. All targets excepthaad
linear can be loaded as module. Module is not loaded when there is target with similar name already. Zero and error targets aresimple examples how can be all future targets written to support dynamic loading. Target can't be unloaded until there is at least one user.
2008-12-19Add infrastructure needed to load device-mapper targets as modules.haad
Targets wasn't converted yet and at least snapshot target will be converted in a near future.
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@.