The NetBSD Project

CVS log for src/sys/dev/dm/dm.h

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.56: 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: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, 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, 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, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +3 -3 lines
fix typos in sys/dev/dm code comments and documentation.
also remove some trailing space in documentation.

Revision 1.27.20.1: 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.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +86 -120 lines
Merge changes from current as of 20200406

Revision 1.54.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 25 22:38:45 2020 UTC (6 years, 9 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54: +8 -8 lines
Sync with head.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Tue Jan 21 16:27:53 2020 UTC (6 years, 9 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
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +8 -8 lines
dm: #if0 target's ->upcall() handler

This is part of NetBSD's dm design, but unimplemented
(all handlers return 0) and also unused.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun Jan 5 08:08:26 2020 UTC (6 years, 10 months ago) by tkusumi
Branches: MAIN
CVS tags: ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +13 -1 lines
dm: Add dm-delay target

Ported from DragonFlyBSD, but this target had originally existed in
Linux kernel. See below for details.
https://www.kernel.org/doc/Documentation/device-mapper/delay.txt

Due to "tick" in hz(9) not working (which results in dmdlthread spinning
forever in _submit_queue() without dp extracted from delayed list
and queued into submit list), this hasn't been hooked to dm.kmod yet.

taken-from: DragonFlyBSD

Revision 1.53: download - view: text, markup, annotated - select for diffs
Thu Jan 2 06:22:23 2020 UTC (6 years, 10 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +12 -1 lines
dm: Add dm-flakey target

Ported from DragonFlyBSD, but this target had originally existed in
Linux kernel. See below for details.
https://www.kernel.org/doc/Documentation/device-mapper/dm-flakey.txt

Due to two technical issues, this hasn't been hooked to dm.kmod yet.
1) "tick" in hz(9) not working.
2) Unable to use ->b_private in nestiobuf callback when it's already
 used for mbp (see HAS_BUF_PRIV2).

taken-from: DragonFlyBSD

Revision 1.52: 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
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +7 -9 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.51: download - view: text, markup, annotated - select for diffs
Sat Dec 21 16:00:29 2019 UTC (6 years, 10 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +4 -2 lines
dm: Fix dm-stripe's "status" output format

As mentioned in "dm: Don't try to implement "status" as subset of "table"",
dm-stripe in NetBSD doesn't have correct "status" output format.
Implement ->info() to sync with Linux kernel.

Note that num_error for stripe device isn't implemented yet.

taken-from: DragonFlyBSD

Revision 1.50: 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.49: preferred, colored
Changes since revision 1.49: +11 -6 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.49: download - view: text, markup, annotated - select for diffs
Fri Dec 20 16:16:36 2019 UTC (6 years, 10 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +2 -1 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.48: download - view: text, markup, annotated - select for diffs
Mon Dec 16 15:59:04 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +8 -23 lines
dm: Cleanup dm.h (remove unneeded comments, etc)

Revision 1.47: download - view: text, markup, annotated - select for diffs
Mon Dec 16 14:26:23 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +17 -1 lines
dm: Enable dm-error and dm-zero target

Add these two targets to dm.kmod.
These are generally available in Linux and DragonFlyBSD,
so enable them in NetBSD as well.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sun Dec 15 16:14:27 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -4 lines
dm: Rename dm specific atoi() to atoi64()

This is uint64_t version, not sys/lib/libsa/atoi.c.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun Dec 15 10:12:45 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +2 -2 lines
dm: Make targets' ->sync() optional

Apparently some targets have nothing to sync, so make it optional.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun Dec 15 09:42:29 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +4 -8 lines
dm: Make targets' ->secsize() optional

and make a caller assume secsize 0 if ->secsize not present.
This allows a dummy function to be removed which was added in
"dm: Add dummy target ->sync()/->secsize() to prevent panic on modload(8)".

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Dec 15 09:22:28 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +7 -7 lines
dm: "unsigned" -> "unsigned int" for consistency

Use either one, but not both.

Revision 1.42: 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.41: preferred, colored
Changes since revision 1.41: +5 -5 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.41: 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.40: preferred, colored
Changes since revision 1.40: +3 -2 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.40: 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.39: preferred, colored
Changes since revision 1.39: +4 -1 lines
dm: Move extern declaration of global variables to dm.h

Revision 1.39: 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.38: preferred, colored
Changes since revision 1.38: +5 -4 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.38: download - view: text, markup, annotated - select for diffs
Sun Dec 8 14:59:42 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +8 -1 lines
dm: Add dummy target ->sync()/->secsize() to prevent panic on modload(8)

dm_target_insert() has assertions to ensure targets implement all handlers.
Adding dummy ones at least prevents panic on modload(8).

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Dec 8 10:50:21 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +1 -40 lines
dm: Move targets specific structs to .c files

These don't need to be defined and exposed in dm.h.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Dec 8 10:35:53 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -2 lines
dm: Unbreak compilation of kernel modules

The dm kernel modules (MK_DM_TARGETS enabled in sys/modules/dm/Makefile)
have been broken. Unbreak the build.

Revision 1.35: 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.34: preferred, colored
Changes since revision 1.34: +4 -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.34: download - view: text, markup, annotated - select for diffs
Sat Dec 7 15:28:39 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -4 lines
dm: Fix strange pointer declarations

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

Revision 1.33: 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.32: preferred, colored
Changes since revision 1.32: +1 -2 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.32: download - view: text, markup, annotated - select for diffs
Wed Dec 4 16:54:03 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -3 lines
dm: Comment out unused dm_dev fields documented in sys/dev/dm/doc

Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue Dec 3 16:09:13 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +1 -6 lines
dm: Remove unused macro MAX_TARGET_STRING_LEN

that was added but never used in both NetBSD and DragonFlyBSD.
taken-from: DragonFlyBSD

Revision 1.30: 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.29: preferred, colored
Changes since revision 1.29: +2 -1 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.29: download - view: text, markup, annotated - select for diffs
Tue Dec 3 15:36:00 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +1 -14 lines
dm: Doesn't need to expose struct cmd_function in a header

Revision 1.28: 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.27: preferred, colored
Changes since revision 1.27: +1 -16 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.24.2.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.24.2.1: preferred, colored; branchpoint 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24.2.1: +1 -1 lines
update from HEAD

Revision 1.27: download - view: text, markup, annotated - select for diffs
Thu Oct 2 21:58:16 2014 UTC (12 years, 1 month ago) by justin
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, 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, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, 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, nick-nhusb, 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, 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, localcount-20160914, jdolecek-ncqfixes-base, jdolecek-ncqfixes, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -2 lines
dm_target_t reference count is modified with atomic_{inc,dec}_32 so should
be uint_32_t not int

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

Revision 1.25.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:54:51 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +3 -1 lines
Rebase.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Jun 14 07:39:00 2014 UTC (12 years, 5 months ago) by hannken
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-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
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -1 lines
Change dk_lookup() to return an anonymous vnode not associated with
any file system.  Change all consumers of dk_lookup() to get the
device from "v_rdev" instead of VOP_GETATTR() as specfs does not
support VOP_GETATTR().  Devices obtained with dk_lookup() will no
longer disappear on forced unmounts.

Fix for PR kern/48849 (root mirror raid fails on shutdown)

Welcome to 6.99.44

Revision 1.23.2.2: 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.23.2.1: preferred, colored; branchpoint 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23.2.1: +2 -2 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.24.4.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.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24: +2 -2 lines
sync with head

Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Dec 9 09:35:16 2013 UTC (12 years, 11 months ago) by wiz
Branches: MAIN
CVS tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -2 lines
Fix typo ("then" instead of "than")

Revision 1.23.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:20:55 2012 UTC (14 years ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -2 lines
sync with head

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Jul 28 00:43:22 2012 UTC (14 years, 3 months ago) by matt
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -2 lines
Fix -fno-common found by building i386/conf/ALL

Revision 1.23: 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-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, 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, 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
Branch point for: yamt-pagecache
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +16 -15 lines
- add a function to get the inactive table's size
- some whitespace fix from emacs...

Revision 1.17.4.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.17.4.1: preferred, colored; branchpoint 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.4.1: +25 -5 lines
sync with head

Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Dec 23 20:07:13 2010 UTC (15 years, 10 months ago) by christos
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +4 -2 lines
Now that we have allowed operator to access the control node, make sure
that he cannot cause damage, by only allowing the superuser to do ioctls
that can cause damage.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Dec 23 14:58:13 2010 UTC (15 years, 10 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +8 -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.20: 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.19: preferred, colored
Changes since revision 1.19: +2 -2 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.17.2.2: download - view: text, markup, annotated - select for diffs
Sat Nov 6 08:08:29 2010 UTC (16 years ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.17.2.1: preferred, colored; branchpoint 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.2.1: +14 -3 lines
Sync with HEAD.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Oct 23 21:18:54 2010 UTC (16 years ago) by haad
Branches: MAIN
CVS tags: uebayasi-xip-base4
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +14 -3 lines
Add old file describing locking schema used in dm driver.

Revision 1.17.2.1: 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.17: preferred, colored
Changes since revision 1.17: +6 -41 lines
Sync with HEAD.

Revision 1.12.2.5: 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.12.2.4: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.2.4: +6 -41 lines
sync with head.

Revision 1.17.4.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.17: preferred, colored
Changes since revision 1.17: +6 -41 lines
sync with head

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue May 18 15:10:41 2010 UTC (16 years, 6 months ago) by haad
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base3, uebayasi-xip-base2
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +6 -41 lines
Add multi device strip support written by Guillermo Amaral and reviewed by me.

Revision 1.12.2.4: 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.12.2.3: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.3: +16 -11 lines
sync with head

Revision 1.17: 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
CVS tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +5 -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.16: download - view: text, markup, annotated - select for diffs
Sun Dec 6 14:31:16 2009 UTC (16 years, 11 months ago) by haad
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -3 lines
Make our driver version equal to linux driver.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Dec 1 23:12:09 2009 UTC (16 years, 11 months ago) by haad
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +11 -11 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.8.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.8.6.1: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.6.1: +13 -11 lines
Sync with HEAD.

Revision 1.12.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.12.2.2: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.2: +13 -11 lines
sync with head

Revision 1.14: 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-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base, jym-xensuspend-nbase
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -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.13: 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.12: preferred, colored
Changes since revision 1.12: +12 -10 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.8.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.8: preferred, colored
Changes since revision 1.8: +14 -2 lines
Sync with HEAD.

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

Revision 1.12.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.12.2.1: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.1: +374 -0 lines
sync with head.

Revision 1.8.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.8.4.3: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.4.3: +5 -2 lines
Sync with HEAD.

Revision 1.12.2.1
Wed Mar 25 23:35:54 2009 UTC (17 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
FILE REMOVED
Changes since revision 1.12: +0 -374 lines
file dm.h was added on branch yamt-nfs-mp on 2009-05-04 08:12:36 +0000

Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Mar 25 23:35:54 2009 UTC (17 years, 7 months ago) by dyoung
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.11: preferred, colored
Changes since revision 1.11: +3 -1 lines
It is only by chance that this gets the prop_array_t definition that it
needs, so explicitly #include <prop/proplib.h>.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Mar 6 16:17:29 2009 UTC (17 years, 8 months ago) by haad
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -2 lines
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.

Revision 1.8.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.8.4.2: preferred, colored; branchpoint 1.8: preferred, colored
Changes since revision 1.8.4.2: +10 -1 lines
Sync with HEAD.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Mar 1 23:15:56 2009 UTC (17 years, 8 months ago) by haad
Branches: MAIN
CVS tags: nick-hppapmap-base2
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +9 -1 lines
Add initial support for striping target, hardcode maximal number of stripes
to 2 for now. strategy routine must be written, for now only parsing and
support routines are available. This is work in progress code and should be
taken very carefully.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Feb 19 23:07:32 2009 UTC (17 years, 8 months ago) by haad
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -1 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.8.4.2: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:17:52 2009 UTC (17 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.8.4.1: preferred, colored; branchpoint 1.8: preferred, colored
Changes since revision 1.8.4.1: +362 -0 lines
Sync with HEAD.

Revision 1.8.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.8.2.1: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.2.1: +362 -0 lines
Sync with HEAD.

Revision 1.8.4.1
Fri Jan 16 11:19:02 2009 UTC (17 years, 10 months ago) by skrll
Branches: nick-hppapmap
FILE REMOVED
Changes since revision 1.8: +0 -362 lines
file dm.h was added on branch nick-hppapmap on 2009-01-19 13:17:52 +0000

Revision 1.8.2.1
Fri Jan 16 11:19:02 2009 UTC (17 years, 10 months ago) by mjf
Branches: mjf-devfs2
FILE REMOVED
Changes since revision 1.8: +0 -362 lines
file dm.h was added on branch mjf-devfs2 on 2009-01-17 13:28:53 +0000

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Jan 16 11:19:02 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.7: preferred, colored
Changes since revision 1.7: +2 -1 lines
Add struct disk to dm_dev so our LV will beshowed in iostat output.

Revision 1.7: 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.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
Use 64bit long minor nuber in dm_dev structure.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Jan 2 11:03:24 2009 UTC (17 years, 10 months ago) by haad
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +9 -1 lines
Add stubs for mirror target, too. This target does nothing for now, but lvm
tools support mirror target and trying to create LV with mirrorred backend
caused panic in dm_table_load_ioctl.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Jan 2 00:42:31 2009 UTC (17 years, 10 months ago) by haad
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +9 -1 lines
Add stripe target functions stubs. Stripe target must be present in dm driver
because without it lvm2tools will not create LVsi and eventualy panic system.

Problem reported by agc@.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Dec 21 00:59:39 2008 UTC (17 years, 10 months ago) by haad
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -1 lines
Add support for loading dm targets as separate modules. All targets except
linear can be loaded as module. Module is not loaded when there is target
with similar name already. Zero and error targets aresimple examples how
can be all future targets written to support dynamic loading. Target can't
be unloaded until there is at least one user.

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: +5 -2 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: +341 -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.20: 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.19: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.19: +3 -3 lines
Fix copyright in TNF licenses.

Revision 1.1.2.19: 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.18: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.18: +80 -77 lines
Use typedef in all structures in dm driver and use them in source code.
No functional change expected.

Revision 1.1.2.18: 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.17: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.17: +48 -37 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.17: 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.16: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.16: +6 -1 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.16: download - view: text, markup, annotated - select for diffs
Thu Sep 11 13:40:47 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: +9 -9 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: +2 -4 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: +14 -8 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 -3 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: +7 -6 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 21:53:42 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: +9 -6 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.10: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:45:47 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: +22 -9 lines
Add initial portion of snapshot code. Divide snapshot code into 2 parts

snapshot-origin and snapshot

First target is used to inform all snapshots about writes to master device.
Snapshot targets implements exception store for changed blocks.

This is how linux does snapshots on lvm2 devices if we want to use lvm2tools,
for snapshots I have to keep this as much compatible as possible to linux.

Change atoi from static to public function now it can be used with other
targets, too.

Revision 1.1.2.9: download - view: text, markup, annotated - select for diffs
Tue Aug 19 23:36:18 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: +5 -3 lines
Add dm_*_destroy functions and change type of argument in dm_pdev_decr.

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 22:58:32 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: +2 -0 lines
Add status functions for zero, error targets these routines are not needed
here, but I want to be consistent (I already define dm_target_*_init).

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: +3 -1 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: +13 -4 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: +5 -5 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: +19 -3 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: +4 -2 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: +268 -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>