The NetBSD Project

CVS log for src/sys/dev/dm/dm_pdev.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / dm

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Aug 21 22:23:33 2021 UTC (3 years, 8 months ago) by andvar
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3 lines
fix typos in sys/dev/dm code comments and documentation.
also remove some trailing space in documentation.

Revision 1.10.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:03 2020 UTC (5 years ago) by martin
Branches: phil-wifi
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +32 -25 lines
Merge changes from current as of 20200406

Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri Dec 20 16:16:36 2019 UTC (5 years, 4 months ago) by tkusumi
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +6 -2 lines
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

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun Dec 15 14:39:42 2019 UTC (5 years, 4 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +5 -3 lines
dm: Style cleanups (no functional changes)

Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Dec 13 15:49:22 2019 UTC (5 years, 4 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +5 -3 lines
dm: Fix memory leak in dm_pdev_rem()

Need to free dmp regardless of dm_pdev_rem() return value.
taken-from: DragonFlyBSD

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Dec 8 12:14:40 2019 UTC (5 years, 4 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +4 -4 lines
Switch to vn_bdev_open* functions.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Dec 7 15:28:39 2019 UTC (5 years, 4 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -4 lines
dm: Fix strange pointer declarations

Should be "type *name" or "type* name", but not "type * name".
taken-from: DragonFlyBSD

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Dec 7 06:26:31 2019 UTC (5 years, 4 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +8 -8 lines
dm: Simplify list eviction code

taken-from: DragonFlyBSD

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Dec 6 16:46:14 2019 UTC (5 years, 4 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +5 -6 lines
dm: Remove trailing whitespace

Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed Dec 4 16:55:30 2019 UTC (5 years, 4 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3 lines
dm: Minor fixes/cleanups

Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Dec 4 15:31:12 2019 UTC (5 years, 4 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -3 lines
dm: style + whitespace + indentation fixes

No functional changes.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Dec 3 16:22:01 2019 UTC (5 years, 4 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3 lines
dm: Make global dm locks static

These are all per-file locks which protect dev/pdev/target structure.
taken-from: DragonFlyBSD

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Dec 3 15:47:38 2019 UTC (5 years, 4 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -3 lines
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

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Dec 1 16:33:33 2019 UTC (5 years, 4 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +7 -5 lines
dm: Fix race on pdev create

List lookup and insert need to be atomic.
https://github.com/DragonFlyBSD/DragonFlyBSD/commit/ac816675c8321309b49d6a335f95c5388036803f

take-from: DragonFlyBSD

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Jan 5 14:22:26 2018 UTC (7 years, 3 months ago) by christos
Branches: MAIN
CVS tags: phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, jdolecek-ncqfixes-base, jdolecek-ncqfixes, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +44 -34 lines
use some size_t, add whitespace between functions, rcsids.

Revision 1.8.18.1: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:00 2017 UTC (7 years, 4 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +2 -5 lines
update from HEAD

Revision 1.8.36.1: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:02 2017 UTC (7 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +2 -5 lines
Sync with HEAD

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Jun 1 02:45:09 2017 UTC (7 years, 10 months ago) by chs
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -5 lines
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.

Revision 1.6.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:07 2011 UTC (14 years, 1 month ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +12 -2 lines
sync with head

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Dec 23 14:58:13 2010 UTC (14 years, 4 months ago) by mlelstv
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, localcount-20160914, khorben-n900, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, jdolecek-ncq-base, jdolecek-ncq, cherry-xenmp-base, cherry-xenmp, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Branch point for: tls-maxphys, nick-nhusb
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -1 lines
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@

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Nov 19 06:44:40 2010 UTC (14 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +11 -2 lines
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.

Revision 1.3.2.4: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:26 2010 UTC (15 years, 1 month ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.3.2.3: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.3: +32 -41 lines
sync with head

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Jan 4 00:19:08 2010 UTC (15 years, 3 months ago) by haad
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip
Branch point for: rmind-uvmplock
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +31 -40 lines
Indent files remove unnecessary blank lines, white spaces and KNFize code.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Jan 3 12:53:00 2010 UTC (15 years, 3 months ago) by haad
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -3 lines
Replace aprint_Verbose with aprint_debug to shutup unnecessary logs.

Revision 1.3.2.3: download - view: text, markup, annotated - select for diffs
Wed Sep 16 13:37:46 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.3.2.2: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.2: +2 -2 lines
sync with head

Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Sep 9 22:38:49 2009 UTC (15 years, 7 months ago) by haad
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, matt-premerge-20091211, jym-xensuspend-nbase
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
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@.

Revision 1.2.6.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:19:16 2009 UTC (15 years, 11 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +2 -2 lines
Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:36 2009 UTC (15 years, 11 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.1: +246 -0 lines
sync with head.

Revision 1.2.4.3: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:35:21 2009 UTC (15 years, 11 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.2.4.2: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.4.2: +2 -2 lines
Sync with HEAD.

Revision 1.3.2.1
Wed Mar 18 10:22:39 2009 UTC (16 years, 1 month ago) by yamt
Branches: yamt-nfs-mp
FILE REMOVED
Changes since revision 1.3: +0 -246 lines
file dm_pdev.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:36 +0000

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Mar 18 10:22:39 2009 UTC (16 years, 1 month ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-base
Branch point for: yamt-nfs-mp
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2 lines
Ansify function definitions w/o arguments. Generated with sed.

Revision 1.2.4.2: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:17:53 2009 UTC (16 years, 3 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.2.4.1: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.4.1: +246 -0 lines
Sync with HEAD.

Revision 1.2.2.2: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:53 2009 UTC (16 years, 3 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.2.2.1: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.2.1: +246 -0 lines
Sync with HEAD.

Revision 1.2.4.1
Fri Dec 19 15:24:03 2008 UTC (16 years, 4 months ago) by skrll
Branches: nick-hppapmap
FILE REMOVED
Changes since revision 1.2: +0 -246 lines
file dm_pdev.c was added on branch nick-hppapmap on 2009-01-19 13:17:53 +0000

Revision 1.2.2.1
Fri Dec 19 15:24:03 2008 UTC (16 years, 4 months ago) by mjf
Branches: mjf-devfs2
FILE REMOVED
Changes since revision 1.2: +0 -246 lines
file dm_pdev.c was added on branch mjf-devfs2 on 2009-01-17 13:28:53 +0000

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Dec 19 15:24:03 2008 UTC (16 years, 4 months ago) by haad
Branches: MAIN
CVS tags: nick-hppapmap-base2, mjf-devfs2-base
Branch point for: nick-hppapmap, mjf-devfs2, jym-xensuspend
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +246 -0 lines
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@.

Revision 1.1.2.13: download - view: text, markup, annotated - select for diffs
Wed Nov 5 13:45:02 2008 UTC (16 years, 5 months ago) by haad
Branches: haad-dm
Diff to: previous 1.1.2.12: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.12: +2 -2 lines
Fix copyright in TNF licenses.

Revision 1.1.2.12: download - view: text, markup, annotated - select for diffs
Sun Nov 2 00:02:32 2008 UTC (16 years, 5 months ago) by haad
Branches: haad-dm
Diff to: previous 1.1.2.11: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.11: +16 -16 lines
Use typedef in all structures in dm driver and use them in source code.
No functional change expected.

Revision 1.1.2.11: download - view: text, markup, annotated - select for diffs
Thu Oct 16 23:26:42 2008 UTC (16 years, 6 months ago) by haad
Branches: haad-dm
Diff to: previous 1.1.2.10: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.10: +33 -20 lines
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.

Revision 1.1.2.10: download - view: text, markup, annotated - select for diffs
Thu Sep 11 13:40:47 2008 UTC (16 years, 7 months ago) by haad
Branches: haad-dm
Diff to: previous 1.1.2.9: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.9: +1 -27 lines
Add new dm_target_*_deps function which will get all dependiences from
selected target. It is used to get device dependencies during
dm_table_deps_ioctl. Remove dm_dev::pdevs list which was really hard to
manage and wasn't use for anything usefull.

Revision 1.1.2.9: download - view: text, markup, annotated - select for diffs
Mon Sep 8 11:34:01 2008 UTC (16 years, 7 months ago) by haad
Branches: haad-dm
Diff to: previous 1.1.2.8: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.8: +24 -7 lines
Add new version of snapshot code for nowonlyinitial configuration of
snapshots (parsing parameters strings and opening devices was added).

Fixonebug in dm_pdev where was one SLIST_ENTRY used to for global
pdev list and for per device pdev list. This bug was hidden for a
long time because I haven't used devices with more than one pdev.

Revision 1.1.2.8: download - view: text, markup, annotated - select for diffs
Wed Sep 3 22:50:17 2008 UTC (16 years, 7 months ago) by haad
Branches: haad-dm
Diff to: previous 1.1.2.7: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.7: +5 -39 lines
Simplify locking remove mutexes from pdev, target part of dm and only allow
one ioctl command to be in driver at time. Ioctl interface of dm device is
not performance critical so I don't need to paralelize dm driver so much.

Add new dev_type --> DM_DELETING_DEV which is set to device during
dm_device_remove_ioctl. To disable any incoming IO which will come in time
window between geting a rw_lock and removing device from global dev list.

XXX. I can't remove mutex from dm_dev.c also because dm_lookup_minor is
called from device-mapper and not from dm_ioctl.c

Revision 1.1.2.7: download - view: text, markup, annotated - select for diffs
Thu Aug 28 21:53:42 2008 UTC (16 years, 7 months ago) by haad
Branches: haad-dm
Diff to: previous 1.1.2.6: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.6: +27 -2 lines
Add dm_pdev_lookup_name_list which is used to lookup pdev in device pdev list.

Add new reference counter to struct pdev which is used from device pdev list.
When pdev is inserted from target_init routine increment device pdev list ref_cnt
and remove pdev from list only when this ref. counter is 0.

Avoid problem when to tables with same device can remove pdev from this list.

Revision 1.1.2.6: download - view: text, markup, annotated - select for diffs
Wed Aug 20 16:04:01 2008 UTC (16 years, 8 months ago) by haad
Branches: haad-dm
Diff to: previous 1.1.2.5: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.5: +10 -8 lines
Fix memory leak and use vn_close to close pdev vnode in dm_pdev_rem.

With this change dmsetup remove works again.

Revision 1.1.2.5: download - view: text, markup, annotated - select for diffs
Tue Aug 19 23:42:11 2008 UTC (16 years, 8 months ago) by haad
Branches: haad-dm
Diff to: previous 1.1.2.4: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.4: +44 -25 lines
Add dm_pdev_destroy routine. Change behaviour of dm_pdev_decr to decrement
only reference counter for one dm_pdev and not for all pdevs in a list.

Change dm_pdev_rem to static because it is only used in dm.pdev.c. Add note
to comment that dm_pdev_rem must be called with held pdev mutex.

Revision 1.1.2.4: download - view: text, markup, annotated - select for diffs
Tue Aug 19 13:30:36 2008 UTC (16 years, 8 months ago) by haad
Branches: haad-dm
Diff to: previous 1.1.2.3: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.3: +2 -0 lines
Add $NetBSD$ tag to all dm driver sources.

Revision 1.1.2.3: download - view: text, markup, annotated - select for diffs
Tue Jul 29 22:27:54 2008 UTC (16 years, 8 months ago) by haad
Branches: haad-dm
Diff to: previous 1.1.2.2: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.2: +14 -5 lines
Fix locking issues  find by @blymn. dm_pdev_insert dmp->ref_cnt was
incremented without held mutex. Hold mutex during dm_pdev_decr run.

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Fri Jul 11 12:40:31 2008 UTC (16 years, 9 months ago) by haad
Branches: haad-dm
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.1: +17 -15 lines
KNFize my sources add space after comma in function parameters.
Wrap to 80 chars per line.

Revision 1.1.2.1: download - view: text, markup, annotated - select for diffs
Mon Jul 7 14:45:53 2008 UTC (16 years, 9 months ago) by haad
Branches: haad-dm
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +217 -0 lines
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.

Revision 1.1
Mon Jul 7 14:45:53 2008 UTC (16 years, 9 months ago) by haad
Branches: MAIN
CVS tags: simonb-wapbl-nbase, simonb-wapbl-base, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: haad-dm
FILE REMOVED
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.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>