#
a70f355b |
| 21-Aug-2021 |
andvar <andvar@NetBSD.org> |
fix typos in sys/dev/dm code comments and documentation. also remove some trailing space in documentation.
|
#
aecedc2e |
| 20-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Fix "table" output format of dm-linear and dm-stripe
The existing "table" output showing device file path of pdev is not compatible with dm in Linux kernel (and also DragonFlyBSD). It should be
dm: Fix "table" output format of dm-linear and dm-stripe
The existing "table" output showing device file path of pdev is not compatible with dm in Linux kernel (and also DragonFlyBSD). It should be showing "major:minor" instead.
taken-from: DragonFlyBSD
show more ...
|
#
46f14759 |
| 15-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Style cleanups (no functional changes)
|
#
e5fc4400 |
| 13-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Fix memory leak in dm_pdev_rem()
Need to free dmp regardless of dm_pdev_rem() return value. taken-from: DragonFlyBSD
|
#
5a52f2af |
| 08-Dec-2019 |
mlelstv <mlelstv@NetBSD.org> |
Switch to vn_bdev_open* functions.
|
#
b794fcf3 |
| 07-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Fix strange pointer declarations
Should be "type *name" or "type* name", but not "type * name". taken-from: DragonFlyBSD
|
#
312beb09 |
| 07-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Simplify list eviction code
taken-from: DragonFlyBSD
|
#
997f8393 |
| 06-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Remove trailing whitespace
|
#
bde056c2 |
| 04-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Minor fixes/cleanups
|
#
9dea6936 |
| 04-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: style + whitespace + indentation fixes
No functional changes.
|
#
6664a499 |
| 03-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Make global dm locks static
These are all per-file locks which protect dev/pdev/target structure. taken-from: DragonFlyBSD
|
#
2991ea0d |
| 03-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Include <sys/vnode.h> in dm.h
dm.h already depends on vnode, so have dm.h include <sys/vnode.h> instead of other .c files.
taken-from: DragonFlyBSD
|
#
c6a1f11f |
| 01-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Fix race on pdev create
List lookup and insert need to be atomic. https://github.com/DragonFlyBSD/DragonFlyBSD/commit/ac816675c8321309b49d6a335f95c5388036803f
take-from: DragonFlyBSD
|
#
249cf593 |
| 05-Jan-2018 |
christos <christos@NetBSD.org> |
use some size_t, add whitespace between functions, rcsids.
|
#
fd34ea77 |
| 01-Jun-2017 |
chs <chs@NetBSD.org> |
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()
al
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.
show more ...
|
#
75268cff |
| 23-Dec-2010 |
mlelstv <mlelstv@NetBSD.org> |
make dm aware of physical sector sizes.
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. W
make dm aware of physical sector sizes.
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@
show more ...
|
#
8f6ed30d |
| 19-Nov-2010 |
dholland <dholland@NetBSD.org> |
Introduce struct pathbuf. This is an abstraction to hold a pathname and the metadata required to interpret it. Callers of namei must now create a pathbuf and pass it to NDINIT (instead of a string an
Introduce struct pathbuf. This is an abstraction to hold a pathname and the metadata required to interpret it. Callers of namei must now create a pathbuf and pass it to NDINIT (instead of a string and a uio_seg), then destroy the pathbuf after the namei session is complete.
Update all namei call sites accordingly. Add a pathbuf(9) man page and update namei(9).
The pathbuf interface also now appears in a couple of related additional places that were passing string/uio_seg pairs that were later fed into NDINIT. Update other call sites accordingly.
show more ...
|
#
293fc006 |
| 04-Jan-2010 |
haad <haad@NetBSD.org> |
Indent files remove unnecessary blank lines, white spaces and KNFize code.
|
#
22c533e1 |
| 03-Jan-2010 |
haad <haad@NetBSD.org> |
Replace aprint_Verbose with aprint_debug to shutup unnecessary logs.
|
#
76a0c0e7 |
| 09-Sep-2009 |
haad <haad@NetBSD.org> |
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 t
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@.
show more ...
|
#
df7f595e |
| 18-Mar-2009 |
cegger <cegger@NetBSD.org> |
Ansify function definitions w/o arguments. Generated with sed.
|
#
c9d0c62a |
| 19-Dec-2008 |
haad <haad@NetBSD.org> |
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 b
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@.
show more ...
|