The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.57: download - view: text, markup, annotated - select for diffs
Sun Jan 14 07:56:53 2024 UTC (2 years, 10 months ago) by mlelstv
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102, perseant-exfatfs-base-20250801, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-11-base, netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6, netbsd-11-0-RC5, netbsd-11-0-RC4, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, netbsd-11, HEAD
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +8 -5 lines
Avoid leaving a configured device without resources.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu Oct 13 06:10:48 2022 UTC (4 years, 1 month ago) by andvar
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-2-RELEASE, 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
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +3 -3 lines
s/exaple/example/

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sat Aug 21 22:23:33 2021 UTC (5 years, 2 months ago) by andvar
Branches: MAIN
CVS tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +6 -6 lines
fix typos in sys/dev/dm code comments and documentation.
also remove some trailing space in documentation.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Fri Aug 20 20:25:27 2021 UTC (5 years, 2 months ago) by andvar
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -3 lines
fix various typos in comments and log messages.

Revision 1.50.6.2: download - view: text, markup, annotated - select for diffs
Sun Aug 1 22:42:22 2021 UTC (5 years, 3 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.50.6.1: preferred, colored; branchpoint 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50.6.1: +5 -5 lines
Sync with HEAD.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sat Jul 24 21:31:37 2021 UTC (5 years, 3 months ago) by andvar
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3 lines
Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889.
Also fixed some additional typos in comments, found on review of same files or typos.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Mon Jun 21 03:16:43 2021 UTC (5 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +4 -4 lines
fix proplib deprecation

Revision 1.50.6.1: download - view: text, markup, annotated - select for diffs
Thu May 13 00:47:30 2021 UTC (5 years, 6 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +20 -13 lines
Sync with HEAD.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Fri May 7 09:53:39 2021 UTC (5 years, 6 months ago) by hannken
Branches: MAIN
CVS tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +20 -13 lines
Make sure the unit number of device-mapper devices matches their minor number.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Wed Jul 8 15:07:13 2020 UTC (6 years, 4 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +44 -34 lines
Adapt to proplib API chanages.

Revision 1.32.4.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:03 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.32.4.1: preferred, colored; branchpoint 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32.4.1: +116 -77 lines
Merge changes from current as of 20200406

Revision 1.49: download - view: text, markup, annotated - select for diffs
Mon Dec 23 16:17:35 2019 UTC (6 years, 10 months ago) by tkusumi
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, 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.48: preferred, colored
Changes since revision 1.48: +6 -4 lines
dm: Make target's ->table() optional

Since ->info() (counter part of ->table() in the original dm design
in Linux kernel in .status where both INFO and TABLE are optional)
is an optional handler, make ->table() optional as well. Some
targets don't have anything to do in ->table() just as in ->info().

taken-from: DragonFlyBSD

Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat Dec 21 11:59:03 2019 UTC (6 years, 10 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +35 -3 lines
dm: Remove target's ->deps() by implementing deps in dm core

Retrieving device dependencies doesn't need to be target specific.
The reason it currently needs ->deps() is because dm core doesn't
have data structure that allows table to walk through target's
underlying devices. Add struct dm_mapping to be able to do this,
and remove ->deps()'s from targets which basically do the same thing.

    =====(A) before this commit
    table
        |                                     [dm core]
    -------------------------------------------------------
        |           pdev      pdev      pdev  [dm targets]
        v          ^         ^         ^
        target----/---------/---------/
        (void*)

    =====(B) this commit
    table---->mapping-->mapping-->mapping-->...
        |           |         |         |
        |           v         v         v     [dm core]
    -------------------------------------------------------
        |           pdev      pdev      pdev  [dm targets]
        v          ^         ^         ^
        target----/---------/---------/
        (void*)

taken-from: DragonFlyBSD

Revision 1.47: download - view: text, markup, annotated - select for diffs
Thu Dec 19 16:27:39 2019 UTC (6 years, 10 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +11 -12 lines
dm: Minor dm_ioctl.c fixes (indentation/typo/type/etc)

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

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun Dec 15 05:56:02 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -3 lines
dm: Rename targets' ->status() to ->table() given ->info() exists

Since now that dm targets in NetBSD have ->info() for "status",
->status() should be renamed to ->table() for "table",
given how dm target status was originally designed in Linux kernel.

taken-from: DragonFlyBSD

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sat Dec 14 17:15:54 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +15 -11 lines
dm: Don't try to implement "status" as subset of "table"

The way dm_table_status_ioctl() implements "status" and "table" is
not compatible with Linux kernel. Some targets have different outputs
that "status" can't be implemented as subset of "table".

Add ->info() handler to sync with "status" behavior in Linux kernel.
Some targets which currently exist in NetBSD (I think striped)
as well as some minor targets that I plan to port to NetBSD
can/should implement ->info(), but will do that in a different commit.

taken-from: DragonFlyBSD

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sat Dec 14 14:43:38 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +4 -4 lines
dm: Make dm_dbg_print_flags() take uint32_t flag

which comes from prop_dictionary_get_uint32() result.
taken-from: DragonFlyBSD

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sat Dec 14 11:20:51 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -3 lines
dm: Move extern declaration of global variables to dm.h

Revision 1.41: download - view: text, markup, annotated - select for diffs
Thu Dec 12 16:28:24 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +39 -9 lines
dm: Make target's ->init() take parsed argc and argv

This gets rid of the same parser code in each target using strsep(3).
taken-from: DragonFlyBSD

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun Dec 8 04:41:02 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -4 lines
dm: Refactor target's ->init() i/f

Take dm_table_entry_t* instead of void**.
Remove dm_dev_t* unneeded by target code.
No functional change, but for future changes.

taken-from: DragonFlyBSD

Revision 1.39: download - view: text, markup, annotated - select for diffs
Fri Dec 6 16:33:47 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +4 -4 lines
dm: Fix typos in comments/messages

taken-from: DragonFlyBSD

Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Dec 5 15:52:39 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +2 -13 lines
dm: Remove unneeded dm_get_version_ioctl()

"version" is implemented and handled in userspace,
hence dm ioctl doesn't need to support it.

taken-from: DragonFlyBSD

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

No functional changes.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Tue Dec 3 15:47:38 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +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.35: download - view: text, markup, annotated - select for diffs
Sun Dec 1 06:53:31 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -3 lines
dm: Remove unused dm_dev::dev_type

Given OOP-like architecture of dm target device structure,
dm_dev doesn't need to have self contained target type field,
and in fact this is unused.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sat Nov 30 05:35:57 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +8 -2 lines
dm: Always initialize target's status string

Explicitly clear status string to prevent dmsetup(8) from
printing binary junk to stdout. Similar change has been
applied to DragonFlyBSD since 2015.

https://github.com/DragonFlyBSD/DragonFlyBSD/commit/a6cf54187fd7c3e994c573215806ec03572c038e

taken-from: DragonFlyBSD

Revision 1.32.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:07 2019 UTC (7 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +7 -4 lines
Sync with HEAD

Revision 1.32.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:30 2018 UTC (7 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +7 -4 lines
Sync with HEAD, resolve a couple of conflicts

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Nov 11 10:21:11 2018 UTC (8 years ago) by mlelstv
Branches: MAIN
CVS tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, netbsd-9-base, netbsd-9-5-RELEASE, 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, isaki-audio2-base, isaki-audio2
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +7 -4 lines
Only _if_ an inactive table has been loaded, make it active when resuming.
Fixes lvrename operation.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Jan 5 14:22:05 2018 UTC (8 years, 10 months ago) by christos
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-base, 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, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi, pgoyette-compat
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +16 -3 lines
PR/52900: Tomohiro Kusumi: Fix kernel panic when target's ->init() failed
Reliably unbusy the target in the *all* the destroy routines, so ioctl
does not need to do it.

Revision 1.26.12.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:00 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.26.12.1: preferred, colored; branchpoint 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26.12.1: +6 -12 lines
update from HEAD

Revision 1.29.2.2: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:02 2017 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.29.2.1: preferred, colored; branchpoint 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29.2.1: +2 -8 lines
Sync with HEAD

Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Jun 1 02:45:09 2017 UTC (9 years, 5 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.30: preferred, colored
Changes since revision 1.30: +2 -8 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.30.8.1: download - view: text, markup, annotated - select for diffs
Wed May 17 01:44:17 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +5 -2 lines
At suggestion of chuq@, modify config_attach_pseudo() to return with a
reference held on the device.

Adapt callers to expect the reference to exist, and to ensure that the
reference is released.

Revision 1.29.2.1: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:07 2015 UTC (11 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -2 lines
Sync with HEAD

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun May 10 14:08:54 2015 UTC (11 years, 6 months ago) by christos
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, 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, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: prg-localcount2
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -2 lines
CID 976256: Help coverity understand that when the list is empty the head
is NULL.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu Oct 2 21:29:44 2014 UTC (12 years, 1 month ago) by justin
Branches: MAIN
CVS tags: nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +5 -5 lines
Call prop_dictionary_get_uint32 with uint32_t

Revision 1.26.12.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:36 2014 UTC (12 years, 2 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +6 -6 lines
Rebase to HEAD as of a few days ago.

Revision 1.26.2.1: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:20 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26: +6 -6 lines
sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.26.16.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:36 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26: +6 -6 lines
sync with head

Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue Dec 24 22:14:07 2013 UTC (12 years, 10 months ago) by mlelstv
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, 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
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +5 -1 lines
release proplib iterator in failure paths.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Oct 18 19:56:30 2013 UTC (13 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -6 lines
remove unused variables

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Aug 27 17:07:49 2011 UTC (15 years, 2 months ago) by ahoka
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, 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, khorben-n900, 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, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys, rmind-smpnet
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -1 lines
- add a function to get the inactive table's size
- some whitespace fix from emacs...

Revision 1.24.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:07:47 2011 UTC (15 years, 5 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24: +2 -2 lines
Sync with HEAD.

Revision 1.21.2.3: download - view: text, markup, annotated - select for diffs
Tue May 31 03:04:35 2011 UTC (15 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.21.2.2: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.2.2: +1 -1 lines
sync with head

Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue May 24 15:23:41 2011 UTC (15 years, 5 months ago) by joerg
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -2 lines
Fix logic error

Revision 1.21.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:07 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.21.2.1: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.1: +5 -5 lines
sync with head

Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Dec 6 09:03:40 2010 UTC (15 years, 11 months ago) by haad
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -3 lines
We don't need 64 bit variable for dm_device coutner, too.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Dec 6 08:54:49 2010 UTC (15 years, 11 months ago) by haad
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3 lines
Add comment about dm_dev minor, and change it to 32bit value we realy not
going to use so much device minor numbers.

Revision 1.20.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:46:06 2010 UTC (16 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.20.2.1: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.2.1: +1 -1 lines
Sync with HEAD.

Revision 1.11.2.6: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:20 2010 UTC (16 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.11.2.5: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.2.5: +2 -2 lines
sync with head.

Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:19 2010 UTC (16 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -2 lines
sync with head

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue May 18 15:01:17 2010 UTC (16 years, 6 months ago) by haad
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -2 lines
Fix typo in comment.

Revision 1.20.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:10 2010 UTC (16 years, 6 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3 lines
Sync with HEAD.

Revision 1.11.2.5: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:26 2010 UTC (16 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.11.2.4: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.2.4: +209 -198 lines
sync with head

Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Feb 25 20:48:58 2010 UTC (16 years, 8 months ago) by jakllsch
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, uebayasi-xip-base1
Branch point for: rmind-uvmplock
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3 lines
Be sure to config_cfattach_attach() in dmattach().
Loosely based on patch from Brian Brombacher,
with other inspriation from vnd(4).

This should fix PR kern/42799.

While here, a few prototype, style and namespace pollution-related changes.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Jan 4 00:19:08 2010 UTC (16 years, 10 months ago) by haad
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +158 -174 lines
Indent files remove unnecessary blank lines, white spaces and KNFize code.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Jan 3 22:22:23 2010 UTC (16 years, 10 months ago) by haad
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +29 -25 lines
Hook device-mapper to autoconf framework. Add dm_attach, dm_match and dm_detach
routines used by autoconf users. Change dm_dev_remove_ioctl to call dm_detach.

This should be primary used by kernel to disable devices during shutdown of
system with nested disk devices.

Requested by dyoung@.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Dec 29 23:37:48 2009 UTC (16 years, 10 months ago) by haad
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -1 lines
Add private lock to dm_dev_t used for mutual exclusion for diks(9) api
routines. This change fixes PR kern/42532.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Dec 6 14:33:46 2009 UTC (16 years, 11 months ago) by haad
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +25 -10 lines
Add support for DM_QUERY_INACTIVE_TABLE_FLAG to dm_table_status and dm_table_deps
this flag was introduced to dm->lvm protocol in 4.16.0 version of it. Restore
vrsion check functionality and sent back actual kernel driver version.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Dec 5 01:21:41 2009 UTC (16 years, 11 months ago) by haad
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
Fix bug in dm_table_resume_ioctl where dmv->flags was sent back to libdevmapper
except flags variable. This fixes weird behaviour, when worng links to
devices in /dev/mapper were created after lvrename/lvresize.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Dec 1 23:12:10 2009 UTC (16 years, 11 months ago) by haad
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +13 -6 lines
Revert my commit which have added knowledge about dm targets to libdevmapper,
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@

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

Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Sep 9 22:38:49 2009 UTC (17 years, 2 months ago) by haad
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, jym-xensuspend-nbase
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -3 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.6.6.2: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:31:46 2009 UTC (17 years, 3 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.6.6.1: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.6.1: +8 -13 lines
Sync with HEAD.

Revision 1.11.2.3: download - view: text, markup, annotated - select for diffs
Sat Jun 20 07:20:21 2009 UTC (17 years, 5 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.11.2.2: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.2.2: +8 -13 lines
sync with head

Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Jun 5 21:52:31 2009 UTC (17 years, 5 months ago) by haad
Branches: MAIN
CVS tags: yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +4 -2 lines
Add support for DIOCGDISKINFO to disk like device drivers. Change
partutil.c::getdiskinfo to use it to get disk geometry info.
Use DIOCGWEDGEINFO ioctl to get information about partition size, if disk
driver doesn't support it use old DIOCGDINFO. This patch adds support for
wedge like devices(lvm logical volumes, ZFS zvol partitions) to newfs and
other tools.

No objections on tech-userlevel@.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Jun 5 19:56:40 2009 UTC (17 years, 5 months ago) by haad
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +5 -12 lines
Parse dm param string in libdevmapper and not in a dm target init function.
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.

Revision 1.6.6.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:19:16 2009 UTC (17 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +21 -21 lines
Sync with HEAD.

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

Revision 1.11.2.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:36 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.11.2.1: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.2.1: +971 -0 lines
sync with head.

Revision 1.6.4.4: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:35:21 2009 UTC (17 years, 6 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.6.4.3: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.4.3: +10 -15 lines
Sync with HEAD.

Revision 1.11.2.1
Mon Apr 13 18:51:54 2009 UTC (17 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
FILE REMOVED
Changes since revision 1.11: +0 -971 lines
file dm_ioctl.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:36 +0000

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Apr 13 18:51:54 2009 UTC (17 years, 7 months ago) by haad
Branches: MAIN
CVS tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Branch point for: yamt-nfs-mp
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -12 lines
Destroy locks in dm_dev_free, do not allocate struct disk twice.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Apr 6 22:58:10 2009 UTC (17 years, 7 months ago) by haad
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +11 -7 lines
Use functions from disk(9) framework. Initialize disk/disklabel during
dm_device_create_ioctl, before calling dmgetdisklabel.
Use disk_busy/disk_unbusy in dmstrategy to display LVM LV's in iostat
output.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Mar 8 02:07:38 2009 UTC (17 years, 8 months ago) by agc
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2 lines
Fix tyop in previous.

Revision 1.6.4.3: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:30:44 2009 UTC (17 years, 8 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.6.4.2: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.4.2: +12 -7 lines
Sync with HEAD.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Feb 20 11:12:30 2009 UTC (17 years, 8 months ago) by haad
Branches: MAIN
CVS tags: nick-hppapmap-base2
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -1 lines
Release tables before we drop reference on device, now creating device with
nonexistent target fails and not ends with deadlock.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Feb 19 23:07:33 2009 UTC (17 years, 8 months ago) by haad
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +10 -7 lines
Add support for autoloading of device-mapper targets modules. Add
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).

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

Revision 1.6.2.2: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:53 2009 UTC (17 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.6.2.1: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.2.1: +971 -0 lines
Sync with HEAD.

Revision 1.6.4.1
Fri Jan 16 00:46:12 2009 UTC (17 years, 10 months ago) by skrll
Branches: nick-hppapmap
FILE REMOVED
Changes since revision 1.6: +0 -971 lines
file dm_ioctl.c was added on branch nick-hppapmap on 2009-01-19 13:17:53 +0000

Revision 1.6.2.1
Fri Jan 16 00:46:12 2009 UTC (17 years, 10 months ago) by mjf
Branches: mjf-devfs2
FILE REMOVED
Changes since revision 1.6: +0 -971 lines
file dm_ioctl.c was added on branch mjf-devfs2 on 2009-01-17 13:28:53 +0000

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Jan 16 00:46:12 2009 UTC (17 years, 10 months ago) by haad
Branches: MAIN
CVS tags: mjf-devfs2-base
Branch point for: nick-hppapmap, mjf-devfs2, jym-xensuspend
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +20 -3 lines
Disable unloading of dm driver when there are any devices defined. This means
that we have to run lvm vgchange -a n before modunload in NetBSD.

We really need to disable module unloading only for mounted devices, I have
to look at vfs_hooks for mount/umount calls and find way how to mark devices
as mounted in dm driver.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Jan 11 11:54:52 2009 UTC (17 years, 10 months ago) by haad
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -3 lines
Use 64bit long minor nuber in dm_dev structure.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Dec 21 00:53:27 2008 UTC (17 years, 10 months ago) by haad
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -2 lines
Fix error path in target_init call. When initializing target fails i have
to release table before I try to destroy it and I haveto unbusy device, too.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Dec 19 16:30:41 2008 UTC (17 years, 11 months ago) by haad
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -3 lines
Add infrastructure needed to load device-mapper targets as modules.
Targets wasn't converted yet and at least snapshot target will be converted
in a near future.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Dec 19 15:24:03 2008 UTC (17 years, 11 months ago) by haad
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +952 -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.23: download - view: text, markup, annotated - select for diffs
Wed Dec 3 00:10:41 2008 UTC (17 years, 11 months ago) by haad
Branches: haad-dm
Diff to: previous 1.1.2.22: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.22: +34 -28 lines
Fix several memory leaks in proplib library handling. Rework dm_cmd_to_fun
function to use prop_string_t.

Revision 1.1.2.22: download - view: text, markup, annotated - select for diffs
Wed Nov 5 13:45:02 2008 UTC (18 years ago) by haad
Branches: haad-dm
Diff to: previous 1.1.2.21: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.21: +5 -22 lines
Fix copyright in TNF licenses.

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

Revision 1.1.2.20: download - view: text, markup, annotated - select for diffs
Wed Oct 29 02:04:32 2008 UTC (18 years ago) by haad
Branches: haad-dm
Diff to: previous 1.1.2.19: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.19: +36 -23 lines
Fix locking in dm_table_load_ioctl. With new locking architecture is not
allowed to call write table operation (dm_table_destroy,
dm_table_switch_tables) after dm_table_get_entry call. Because after
after table_get_entry call we are holding table reference counter and
writer table functions will sleep while reference counter is 0.

Revision 1.1.2.19: download - view: text, markup, annotated - select for diffs
Thu Oct 16 23:26:42 2008 UTC (18 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.1.2.18: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.18: +161 -159 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.18: download - view: text, markup, annotated - select for diffs
Fri Sep 26 22:57:13 2008 UTC (18 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.1.2.17: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.17: +28 -17 lines
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.

Revision 1.1.2.17: download - view: text, markup, annotated - select for diffs
Mon Sep 22 09:11:38 2008 UTC (18 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.1.2.16: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.16: +19 -15 lines
Fix bug where I tried to prop_object_release null object which caused weird
atuvm panic. Change init functions to failed when they receive params string
== NULL when they need some data.

Revision 1.1.2.16: download - view: text, markup, annotated - select for diffs
Thu Sep 11 13:40:48 2008 UTC (18 years, 2 months ago) by haad
Branches: haad-dm
Diff to: previous 1.1.2.15: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.15: +5 -32 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.15: download - view: text, markup, annotated - select for diffs
Wed Sep 10 18:43:27 2008 UTC (18 years, 2 months ago) by haad
Branches: haad-dm
Diff to: previous 1.1.2.14: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.14: +22 -32 lines
Introduce new dm_dev_lookup and use it to lookup for device name, uuid and
minor number in device global list.

Revision 1.1.2.14: download - view: text, markup, annotated - select for diffs
Mon Sep 8 11:34:01 2008 UTC (18 years, 2 months ago) by haad
Branches: haad-dm
Diff to: previous 1.1.2.13: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.13: +31 -50 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.13: download - view: text, markup, annotated - select for diffs
Fri Sep 5 01:04:23 2008 UTC (18 years, 2 months ago) by haad
Branches: haad-dm
Diff to: previous 1.1.2.12: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.12: +1 -2 lines
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.

Revision 1.1.2.12: download - view: text, markup, annotated - select for diffs
Wed Sep 3 22:50:17 2008 UTC (18 years, 2 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: +19 -46 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.11: download - view: text, markup, annotated - select for diffs
Thu Aug 28 22:06:34 2008 UTC (18 years, 2 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: +210 -155 lines
Add new parameters to netbsd proplib protocol. Fix flags manipulation
in our driver it should behaves like linux now. Fix other minor protocol
differences.

Revision 1.1.2.10: download - view: text, markup, annotated - select for diffs
Wed Aug 20 16:01:37 2008 UTC (18 years, 3 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: +19 -9 lines
Fix bug reported by blymn@, after failed dm_target_*_init I haven't cleaned
tables properly and therefore after next try I get panic.

Fix dm_dev_remove_ioctl to properly remove pdevs from a device list.

Revision 1.1.2.9: download - view: text, markup, annotated - select for diffs
Tue Aug 19 23:46:59 2008 UTC (18 years, 3 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: +7 -8 lines
Remove unnecessary call of dm_pdev_rem in dm_table_load. Change dm_dev_remove
to call dm_pdev_decr for all devices in pdev list.

Because target config contains pdevs I have to decrement them in
dm_target_*_destroy.

Revision 1.1.2.8: download - view: text, markup, annotated - select for diffs
Tue Aug 19 13:30:36 2008 UTC (18 years, 3 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: +2 -0 lines
Add $NetBSD$ tag to all dm driver sources.

Revision 1.1.2.7: download - view: text, markup, annotated - select for diffs
Sat Aug 2 23:02:25 2008 UTC (18 years, 3 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: +7 -4 lines
Fix dm_table_status_ioctl error path. When there is no active table ioctl
routine have to return.

Revision 1.1.2.6: download - view: text, markup, annotated - select for diffs
Mon Jul 28 23:42:09 2008 UTC (18 years, 3 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: +97 -32 lines
Add basic synchronization between dmstrategy routine and ioctl functions.
Dmstrategy locks, per dev rwlock for reading and all struct dm_dev changing
routines in dm_ioctl(such as dm_table_resume_ioctl, dm_dev_remove_ioctl),
have to lock it for writing.
Modify comments and ad description to each function about locking which
I think should be used there. I want to use mutex for synchronization of
different ioctl calls on same device. e.g. we can't remove table from
inactive slot when there is dm_table_status_ioctl runnning.

Revision 1.1.2.5: download - view: text, markup, annotated - select for diffs
Mon Jul 28 22:39:32 2008 UTC (18 years, 3 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: +104 -26 lines
Add status function to targets. This function is called from dm_table_status_ioctl,
when DM_STATUS_TABLE_FLAG is specified and it's purpose is construct params string.
Which can be sent back to libdevmapper.

Add adding removing of the DM_SUSPENDED_FLAG flag in dm_dev_suspend/resume ioctls.

Revision 1.1.2.4: download - view: text, markup, annotated - select for diffs
Tue Jul 22 23:36:06 2008 UTC (18 years, 3 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: +15 -33 lines
Change parsing of parameter string. Remove knowledge about pramaer string
from dm_table_load_ioctl and move it to target_init routines. Parameter
string is targets specific and therefore only target routine know how to
parse it correctly. Remove unneeded parameter from dm_target_*_init(argc)
and change dm target routines accordingly.

Simplify dm_table_load_ioctl and move pdev inserting code to target init
funstions.

Revision 1.1.2.3: download - view: text, markup, annotated - select for diffs
Sat Jul 19 12:20:44 2008 UTC (18 years, 4 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: +5 -0 lines
*** empty log message ***

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Fri Jul 11 12:40:31 2008 UTC (18 years, 4 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: +104 -84 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 (18 years, 4 months ago) by haad
Branches: haad-dm
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +798 -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 (18 years, 4 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>