Home | History | Annotate | Download | only in dm
History log of /src/sys/dev/dm/dm_dev.c
RevisionDateAuthorComments
 1.19  21-Aug-2021  andvar fix typos in sys/dev/dm code comments and documentation.
also remove some trailing space in documentation.
 1.18  08-Jul-2020  thorpej Adapt to proplib API chanages.
 1.17  31-Dec-2019  tkusumi dm: Remove unnecessary inlining

These two don't really need to be inlined.
 1.16  15-Dec-2019  tkusumi dm: Style cleanups (no functional changes)
 1.15  14-Dec-2019  tkusumi dm: Remove void casts of function calls

Use of void casts in dm is not consistent, just get rid of them.
 1.14  07-Dec-2019  tkusumi dm: Fix strange pointer declarations

Should be "type *name" or "type* name", but not "type * name".
taken-from: DragonFlyBSD
 1.13  04-Dec-2019  tkusumi dm: style + whitespace + indentation fixes

No functional changes.
 1.12  03-Dec-2019  tkusumi dm: Make global dm locks static

These are all per-file locks which protect dev/pdev/target structure.
taken-from: DragonFlyBSD
 1.11  05-Jan-2018  christos branches: 1.11.4;
use some size_t, add whitespace between functions, rcsids.
 1.10  01-Jun-2017  chs remove checks for failure after memory allocation calls that cannot fail:

kmem_alloc() with KM_SLEEP
kmem_zalloc() with KM_SLEEP
percpu_alloc()
pserialize_create()
psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.
 1.9  18-Oct-2014  snj branches: 1.9.2;
src is too big these days to tolerate superfluous apostrophes. It's
"its", people!
 1.8  04-Jan-2010  haad branches: 1.8.22;
Indent files remove unnecessary blank lines, white spaces and KNFize code.
 1.7  29-Dec-2009  haad Add private lock to dm_dev_t used for mutual exclusion for diks(9) api
routines. This change fixes PR kern/42532.
 1.6  09-Sep-2009  haad Fix bug in kmem_alloc/kmem_free of params string. Params string was
allocated with length DM_MAX_PARAMS_SIZE and released with strlen + 1 size.

Disable KM_NOSLEEP allocation because we do not need them here there is
nothing critical in ioctl part of dm driver.

Bug reported by jak@.
 1.5  13-Apr-2009  haad branches: 1.5.2;
Destroy locks in dm_dev_free, do not allocate struct disk twice.
 1.4  18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.3  06-Mar-2009  haad Fix lvm lvrename command. There was bug in dm_dev_lookup where
dm_dev_lookup_name was called with device uuid. Remove dm_dev_t:dk_label is
it not used anymore.
 1.2  19-Dec-2008  haad branches: 1.2.2; 1.2.4; 1.2.6;
Merge the haad-dm branch to -current. This branch adds LVM functionality to
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@.
 1.1  07-Jul-2008  haad branches: 1.1.2;
Add dmgetdefaultdisklabel to get virtual disklabel for Logical Volume device. Add snapshot targets (snapshot, snapshot-origin), add dm_type to dm_dev structure to identify type of device. e.g. we can have mirrored disk device with snapshot on them and spare disk on them. When driver want to work with snapshot devices, it looks to upcalls list and finds all DM_SNAPSHOT devices.
 1.1.2.15  03-Dec-2008  haad Fix several memory leaks in proplib library handling. Rework dm_cmd_to_fun
function to use prop_string_t.
 1.1.2.14  05-Nov-2008  haad Fix copyright in TNF licenses.
 1.1.2.13  02-Nov-2008  haad Use typedef in all structures in dm driver and use them in source code.
No functional change expected.
 1.1.2.12  16-Oct-2008  haad Be consistent when calling struct dm_dev. Use name dmv when possible.
Change DISABLE_DEV macro to inline function.
 1.1.2.11  16-Oct-2008  haad Rewrite locking in dm driver for last time. Replace rwlock with mutex/cv.
Move table lists to separate structure called table_head and access them
through dm_table interface. Thx go@, rmind@ and Dusan Bernat for help and
suggestions.
 1.1.2.10  26-Sep-2008  haad Rework disklabel stuff once again, do not allocate nw disklabel struct
every time DIOCGPART is called. Recreate disklabel after resume so it
contains correct table. Do not leak device when I want to create device
with name which already exists.

XXX: dm_dev_resume_ioctl and dmgetdisklabel is broken I need to completly
rework locking here soon.
 1.1.2.9  10-Sep-2008  haad Introduce new dm_dev_lookup and use it to lookup for device name, uuid and
minor number in device global list.
 1.1.2.8  08-Sep-2008  haad Small code style fixes suggested by rmind@.
 1.1.2.7  05-Sep-2008  haad Rework handling of disklabel stuff. Remove disklabel from dstruct dm_dev
and generate it dynamicaly for every call. Withthese changes using -F and
-s options when creating file-system with newfs is not needed anymore.
 1.1.2.6  28-Aug-2008  haad Remove dm_dev_free from dm_dev_remove. When removing device from system
I have to write lock device rw_lock(disable all IO on device) remove
device from global list of devices and only after destroing lock I can
free device structure.

Fix lockdebug panic.
 1.1.2.5  19-Aug-2008  haad Add dm_target_destroy and dm_dev_destroy functions these functions
are used to free all devices and targets. So I will not leak any memory
after kmod unload.
 1.1.2.4  19-Aug-2008  haad Add $NetBSD$ tag to all dm driver sources.
 1.1.2.3  19-Jul-2008  haad *** empty log message ***
 1.1.2.2  11-Jul-2008  haad KNFize my sources add space after comma in function parameters.
Wrap to 80 chars per line.
 1.1.2.1  07-Jul-2008  haad Import of device-mapper driver. This driver is BSD rewrite of linux dm driver.
For now only error, linear and zero targets are supported. This driver uses NetBSD
specific ioctl protocola based on proplib.

I was able to create logical volume (with lvm2tools lvcreate utility) with this
version of driver, newfs it and mount it.
 1.2.6.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.2.4.3  28-Apr-2009  skrll Sync with HEAD.
 1.2.4.2  19-Jan-2009  skrll Sync with HEAD.
 1.2.4.1  19-Dec-2008  skrll file dm_dev.c was added on branch nick-hppapmap on 2009-01-19 13:17:53 +0000
 1.2.2.2  17-Jan-2009  mjf Sync with HEAD.
 1.2.2.1  19-Dec-2008  mjf file dm_dev.c was added on branch mjf-devfs2 on 2009-01-17 13:28:53 +0000
 1.5.2.4  11-Mar-2010  yamt sync with head
 1.5.2.3  16-Sep-2009  yamt sync with head
 1.5.2.2  04-May-2009  yamt sync with head.
 1.5.2.1  13-Apr-2009  yamt file dm_dev.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:36 +0000
 1.8.22.1  03-Dec-2017  jdolecek update from HEAD
 1.9.2.1  28-Aug-2017  skrll Sync with HEAD
 1.11.4.1  08-Apr-2020  martin Merge changes from current as of 20200406

RSS XML Feed