CVS commit: src/sys/dev/dm

2021-06-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jun 21 03:16:43 UTC 2021

Modified Files:
src/sys/dev/dm: dm_ioctl.c

Log Message:
fix proplib deprecation


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/dev/dm/dm_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2021-05-07 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Fri May  7 09:54:43 UTC 2021

Modified Files:
src/sys/dev/dm: device-mapper.c

Log Message:
Track the number of cdev and bdev opens and fail dm_detach()
on open devices unless detach is forced.

PR kern/54969 (Disk cache is no longer flushed on shutdown)


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/sys/dev/dm/device-mapper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2021-05-07 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Fri May  7 09:53:39 UTC 2021

Modified Files:
src/sys/dev/dm: dm_ioctl.c

Log Message:
Make sure the unit number of device-mapper devices matches their minor number.


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/dev/dm/dm_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2020-07-08 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Jul  8 15:07:13 UTC 2020

Modified Files:
src/sys/dev/dm: device-mapper.c dm_dev.c dm_ioctl.c dm_target.c

Log Message:
Adapt to proplib API chanages.


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/sys/dev/dm/device-mapper.c
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/dm/dm_dev.c
cvs rdiff -u -r1.49 -r1.50 src/sys/dev/dm/dm_ioctl.c
cvs rdiff -u -r1.40 -r1.41 src/sys/dev/dm/dm_target.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2020-01-21 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Tue Jan 21 16:27:53 UTC 2020

Modified Files:
src/sys/dev/dm: dm.h dm_target.c dm_target_delay.c dm_target_error.c
dm_target_flakey.c dm_target_linear.c dm_target_mirror.c
dm_target_snapshot.c dm_target_stripe.c dm_target_zero.c

Log Message:
dm: #if0 target's ->upcall() handler

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


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.39 -r1.40 src/sys/dev/dm/dm_target.c
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/dm/dm_target_delay.c
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/dm/dm_target_error.c
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/dm/dm_target_flakey.c
cvs rdiff -u -r1.36 -r1.37 src/sys/dev/dm/dm_target_linear.c
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/dm/dm_target_mirror.c
cvs rdiff -u -r1.37 -r1.38 src/sys/dev/dm/dm_target_snapshot.c
cvs rdiff -u -r1.43 -r1.44 src/sys/dev/dm/dm_target_stripe.c
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/dm/dm_target_zero.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2020-01-15 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Thu Jan 16 07:18:08 UTC 2020

Modified Files:
src/sys/dev/dm: device-mapper.c

Log Message:
dm(8) doesn't cause problems on suspend, don't block it.

Tested by Matthias Petermann, thanks!


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/sys/dev/dm/device-mapper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2020-01-05 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sun Jan  5 08:11:10 UTC 2020

Modified Files:
src/sys/dev/dm: dm_target_flakey.c

Log Message:
dm: Add "Copyright (c) 2015 The DragonFly Project." to dm-flakey

which I missed in my initial dm-flakey commit.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/dm/dm_target_flakey.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2020-01-05 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sun Jan  5 08:08:26 UTC 2020

Modified Files:
src/sys/dev/dm: dm.h dm_target.c
Added Files:
src/sys/dev/dm: dm_target_delay.c

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.38 -r1.39 src/sys/dev/dm/dm_target.c
cvs rdiff -u -r0 -r1.1 src/sys/dev/dm/dm_target_delay.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2020-01-01 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Thu Jan  2 06:22:23 UTC 2020

Modified Files:
src/sys/dev/dm: dm.h dm_target.c
Added Files:
src/sys/dev/dm: dm_target_flakey.c

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.37 -r1.38 src/sys/dev/dm/dm_target.c
cvs rdiff -u -r0 -r1.1 src/sys/dev/dm/dm_target_flakey.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-31 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Tue Dec 31 10:30:30 UTC 2019

Modified Files:
src/sys/dev/dm: dm_dev.c dm_table.c

Log Message:
dm: Remove unnecessary inlining

These two don't really need to be inlined.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/dm/dm_dev.c
cvs rdiff -u -r1.18 -r1.19 src/sys/dev/dm/dm_table.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-28 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sat Dec 28 15:38:16 UTC 2019

Modified Files:
src/sys/dev/dm: dm_target_linear.c

Log Message:
dm: Fix typo in comment dklinear -> linear


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/dm/dm_target_linear.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-23 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Mon Dec 23 16:17:36 UTC 2019

Modified Files:
src/sys/dev/dm: dm.h dm_ioctl.c dm_target.c dm_target_error.c
dm_target_zero.c

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.48 -r1.49 src/sys/dev/dm/dm_ioctl.c
cvs rdiff -u -r1.36 -r1.37 src/sys/dev/dm/dm_target.c
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/dm/dm_target_error.c
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/dm/dm_target_zero.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-22 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sun Dec 22 13:16:10 UTC 2019

Modified Files:
src/sys/dev/dm: device-mapper.c dm_table.c

Log Message:
dm: Make numsec/secsize arguments in dm_table_disksize() optional


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/sys/dev/dm/device-mapper.c
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/dm/dm_table.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-22 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sun Dec 22 12:28:54 UTC 2019

Modified Files:
src/sys/dev/dm: device-mapper.c

Log Message:
dm: Add missing "ioctl called" debug prints


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/sys/dev/dm/device-mapper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-21 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sat Dec 21 16:00:30 UTC 2019

Modified Files:
src/sys/dev/dm: dm.h dm_target.c dm_target_stripe.c

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/dm/dm_target.c
cvs rdiff -u -r1.42 -r1.43 src/sys/dev/dm/dm_target_stripe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-21 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sat Dec 21 11:59:03 UTC 2019

Modified Files:
src/sys/dev/dm: dm.h dm_ioctl.c dm_table.c dm_target.c
dm_target_error.c dm_target_linear.c dm_target_mirror.c
dm_target_snapshot.c dm_target_stripe.c dm_target_zero.c

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.47 -r1.48 src/sys/dev/dm/dm_ioctl.c
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/dm/dm_table.c
cvs rdiff -u -r1.34 -r1.35 src/sys/dev/dm/dm_target.c \
src/sys/dev/dm/dm_target_linear.c
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/dm/dm_target_error.c
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/dm/dm_target_mirror.c
cvs rdiff -u -r1.36 -r1.37 src/sys/dev/dm/dm_target_snapshot.c
cvs rdiff -u -r1.41 -r1.42 src/sys/dev/dm/dm_target_stripe.c
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/dm/dm_target_zero.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-20 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Fri Dec 20 16:16:36 UTC 2019

Modified Files:
src/sys/dev/dm: dm.h dm_pdev.c dm_target_linear.c dm_target_stripe.c

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/dm/dm_pdev.c
cvs rdiff -u -r1.33 -r1.34 src/sys/dev/dm/dm_target_linear.c
cvs rdiff -u -r1.40 -r1.41 src/sys/dev/dm/dm_target_stripe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-19 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Thu Dec 19 16:27:39 UTC 2019

Modified Files:
src/sys/dev/dm: dm_ioctl.c

Log Message:
dm: Minor dm_ioctl.c fixes (indentation/typo/type/etc)


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/sys/dev/dm/dm_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-19 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Thu Dec 19 15:57:46 UTC 2019

Modified Files:
src/sys/dev/dm: device-mapper.c

Log Message:
dm: Refactor dmioctl()

More readable without dm_ioctl_switch() as a separate function.


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/sys/dev/dm/device-mapper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-19 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Thu Dec 19 15:34:54 UTC 2019

Modified Files:
src/sys/dev/dm: device-mapper.c dm_target.c

Log Message:
dm: u_{int,long} -> unsigned {int,long}


To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/sys/dev/dm/device-mapper.c
cvs rdiff -u -r1.33 -r1.34 src/sys/dev/dm/dm_target.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-18 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Wed Dec 18 14:31:35 UTC 2019

Modified Files:
src/sys/dev/dm: dm_target_error.c dm_target_linear.c dm_target_stripe.c
dm_target_zero.c

Log Message:
dm: Test # of args in target's ->init()

The # of args is part of target's spec.
Both Linux kernel and DragonFlyBSD test argc on ctr/init.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/dev/dm/dm_target_error.c
cvs rdiff -u -r1.32 -r1.33 src/sys/dev/dm/dm_target_linear.c
cvs rdiff -u -r1.39 -r1.40 src/sys/dev/dm/dm_target_stripe.c
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/dm/dm_target_zero.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-16 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Mon Dec 16 15:59:05 UTC 2019

Modified Files:
src/sys/dev/dm: dm.h

Log Message:
dm: Cleanup dm.h (remove unneeded comments, etc)


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/dev/dm/dm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-15 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sun Dec 15 16:14:27 UTC 2019

Modified Files:
src/sys/dev/dm: device-mapper.c dm.h dm_target_linear.c
dm_target_snapshot.c dm_target_stripe.c

Log Message:
dm: Rename dm specific atoi() to atoi64()

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


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/dev/dm/device-mapper.c
cvs rdiff -u -r1.45 -r1.46 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/dm/dm_target_linear.c
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/dm/dm_target_snapshot.c
cvs rdiff -u -r1.38 -r1.39 src/sys/dev/dm/dm_target_stripe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-15 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sun Dec 15 14:39:43 UTC 2019

Modified Files:
src/sys/dev/dm: device-mapper.c dm_dev.c dm_ioctl.c dm_pdev.c
dm_table.c dm_target.c dm_target_error.c dm_target_linear.c
dm_target_mirror.c dm_target_snapshot.c dm_target_stripe.c
dm_target_zero.c

Log Message:
dm: Style cleanups (no functional changes)


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/sys/dev/dm/device-mapper.c
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/dm/dm_dev.c src/sys/dev/dm/dm_table.c
cvs rdiff -u -r1.45 -r1.46 src/sys/dev/dm/dm_ioctl.c
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/dm/dm_pdev.c
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/dm/dm_target.c
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/dm/dm_target_error.c
cvs rdiff -u -r1.30 -r1.31 src/sys/dev/dm/dm_target_linear.c
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/dm/dm_target_mirror.c
cvs rdiff -u -r1.34 -r1.35 src/sys/dev/dm/dm_target_snapshot.c
cvs rdiff -u -r1.37 -r1.38 src/sys/dev/dm/dm_target_stripe.c
cvs rdiff -u -r1.25 -r1.26 src/sys/dev/dm/dm_target_zero.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-15 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sun Dec 15 10:12:45 UTC 2019

Modified Files:
src/sys/dev/dm: device-mapper.c dm.h dm_target.c dm_target_error.c
dm_target_snapshot.c dm_target_zero.c

Log Message:
dm: Make targets' ->sync() optional

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


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/sys/dev/dm/device-mapper.c
cvs rdiff -u -r1.44 -r1.45 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.30 -r1.31 src/sys/dev/dm/dm_target.c
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/dm/dm_target_error.c
cvs rdiff -u -r1.33 -r1.34 src/sys/dev/dm/dm_target_snapshot.c
cvs rdiff -u -r1.24 -r1.25 src/sys/dev/dm/dm_target_zero.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-15 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sun Dec 15 09:42:29 UTC 2019

Modified Files:
src/sys/dev/dm: dm.h dm_table.c dm_target.c dm_target_error.c
dm_target_mirror.c dm_target_snapshot.c dm_target_zero.c

Log Message:
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)".


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/dm/dm_table.c
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/dm/dm_target.c
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/dm/dm_target_error.c
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/dm/dm_target_mirror.c
cvs rdiff -u -r1.32 -r1.33 src/sys/dev/dm/dm_target_snapshot.c
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/dm/dm_target_zero.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-15 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sun Dec 15 09:22:29 UTC 2019

Modified Files:
src/sys/dev/dm: device-mapper.c dm.h dm_table.c dm_target_linear.c
dm_target_stripe.c

Log Message:
dm: "unsigned" -> "unsigned int" for consistency

Use either one, but not both.


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/dev/dm/device-mapper.c
cvs rdiff -u -r1.42 -r1.43 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/dm/dm_table.c
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/dm/dm_target_linear.c
cvs rdiff -u -r1.36 -r1.37 src/sys/dev/dm/dm_target_stripe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-14 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sun Dec 15 05:56:02 UTC 2019

Modified Files:
src/sys/dev/dm: dm.h dm_ioctl.c dm_target.c dm_target_error.c
dm_target_linear.c dm_target_mirror.c dm_target_snapshot.c
dm_target_stripe.c dm_target_zero.c

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.44 -r1.45 src/sys/dev/dm/dm_ioctl.c
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/dm/dm_target.c \
src/sys/dev/dm/dm_target_linear.c
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/dm/dm_target_error.c
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/dm/dm_target_mirror.c
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/dm/dm_target_snapshot.c
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/dm/dm_target_stripe.c
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/dm/dm_target_zero.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-14 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sat Dec 14 17:15:54 UTC 2019

Modified Files:
src/sys/dev/dm: dm.h dm_ioctl.c

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.43 -r1.44 src/sys/dev/dm/dm_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-14 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sat Dec 14 14:43:38 UTC 2019

Modified Files:
src/sys/dev/dm: dm_ioctl.c

Log Message:
dm: Make dm_dbg_print_flags() take uint32_t flag

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


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/dev/dm/dm_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-14 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sat Dec 14 11:20:51 UTC 2019

Modified Files:
src/sys/dev/dm: device-mapper.c dm.h dm_ioctl.c

Log Message:
dm: Move extern declaration of global variables to dm.h


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/dev/dm/device-mapper.c
cvs rdiff -u -r1.39 -r1.40 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.41 -r1.42 src/sys/dev/dm/dm_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-14 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sat Dec 14 10:49:30 UTC 2019

Modified Files:
src/sys/dev/dm: device-mapper.c dm_dev.c dm_table.c dm_target.c

Log Message:
dm: Remove void casts of function calls

Use of void casts in dm is not consistent, just get rid of them.


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sys/dev/dm/device-mapper.c
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/dm/dm_dev.c
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/dm/dm_table.c
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/dm/dm_target.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-14 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sat Dec 14 10:02:35 UTC 2019

Modified Files:
src/sys/dev/dm: dm_target_error.c dm_target_linear.c dm_target_mirror.c
dm_target_snapshot.c dm_target_stripe.c dm_target_zero.c

Log Message:
dm: Remove unconditional debug prints in targets' ->strategy()

Having debug prints in ->strategy() by default just to tell ->strategy()
is called is overkill.
taken-from: DragonFlyBSD


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/dm/dm_target_error.c
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/dm/dm_target_linear.c
cvs rdiff -u -r1.18 -r1.19 src/sys/dev/dm/dm_target_mirror.c
cvs rdiff -u -r1.30 -r1.31 src/sys/dev/dm/dm_target_snapshot.c
cvs rdiff -u -r1.34 -r1.35 src/sys/dev/dm/dm_target_stripe.c
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/dm/dm_target_zero.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-13 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Fri Dec 13 16:15:54 UTC 2019

Modified Files:
src/sys/dev/dm: dm_target.c

Log Message:
dm: Don't KASSERT() target handlers

Having assertions here causes panic if target is missing anything
as shown in "dm: Add dummy target ->sync()/->secsize() to prevent panic on 
modload(8)".
Instead just return EINVAL if a handler(s) isn't implemented.

taken-from: DragonFlyBSD


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/dm/dm_target.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-13 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Fri Dec 13 15:49:22 UTC 2019

Modified Files:
src/sys/dev/dm: dm_pdev.c

Log Message:
dm: Fix memory leak in dm_pdev_rem()

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


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/dm/dm_pdev.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-12 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Thu Dec 12 16:28:24 UTC 2019

Modified Files:
src/sys/dev/dm: dm.h dm_ioctl.c dm_target_error.c dm_target_linear.c
dm_target_mirror.c dm_target_snapshot.c dm_target_stripe.c
dm_target_zero.c

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.40 -r1.41 src/sys/dev/dm/dm_ioctl.c
cvs rdiff -u -r1.18 -r1.19 src/sys/dev/dm/dm_target_error.c
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/dm/dm_target_linear.c
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/dm/dm_target_mirror.c
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/dm/dm_target_snapshot.c
cvs rdiff -u -r1.33 -r1.34 src/sys/dev/dm/dm_target_stripe.c
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/dm/dm_target_zero.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-11 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Wed Dec 11 14:03:37 UTC 2019

Modified Files:
src/sys/dev/dm: device-mapper.c

Log Message:
dm: Revert "Fix error handling in dmioctl()" for now

This change seems to break "deps" in dm ioctl(2) for linear target.
Revert the change, will revisit later.
https://mail-index.netbsd.org/current-users/2019/12/11/msg037179.html


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/dev/dm/device-mapper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-09 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Mon Dec  9 16:06:19 UTC 2019

Modified Files:
src/sys/dev/dm: dm_target_linear.c

Log Message:
dm: Silence aprint_normal() in dm_target_linear_status()

dm_target_linear_status() shouldn't print this debug message by default
on dmsetup "table" ioctl/command.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/dev/dm/dm_target_linear.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-09 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Mon Dec  9 15:54:59 UTC 2019

Modified Files:
src/sys/dev/dm: device-mapper.c

Log Message:
dm: Fix error handling in dmioctl()

Looks like cleanup_exit label is in a wrong place.
Should skip prop_dictionary_copyout_ioctl() on error.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/dev/dm/device-mapper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-09 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Mon Dec  9 15:30:42 UTC 2019

Modified Files:
src/sys/dev/dm: dm_target_stripe.c

Log Message:
dm: Correct target name "stripe" -> "striped"

Sync with Linux kernel.
The file name is "stripe", but the target name is "striped".
DragonFlyBSD also follows this.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/dev/dm/dm_target_stripe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-08 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sun Dec  8 14:59:42 UTC 2019

Modified Files:
src/sys/dev/dm: dm.h dm_target_error.c dm_target_mirror.c
dm_target_snapshot.c dm_target_zero.c

Log Message:
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).


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/dm/dm_target_error.c
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/dm/dm_target_mirror.c
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/dm/dm_target_snapshot.c
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/dm/dm_target_zero.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-08 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sun Dec  8 10:50:21 UTC 2019

Modified Files:
src/sys/dev/dm: dm.h dm_target_mirror.c dm_target_snapshot.c
dm_target_stripe.c

Log Message:
dm: Move targets specific structs to .c files

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


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/dm/dm_target_mirror.c
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/dm/dm_target_snapshot.c
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/dm/dm_target_stripe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-08 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sun Dec  8 10:35:53 UTC 2019

Modified Files:
src/sys/dev/dm: dm.h dm_target.c dm_target_snapshot.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.25 -r1.26 src/sys/dev/dm/dm_target.c
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/dm/dm_target_snapshot.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-07 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sun Dec  8 04:41:02 UTC 2019

Modified Files:
src/sys/dev/dm: dm.h dm_ioctl.c dm_target_error.c dm_target_linear.c
dm_target_mirror.c dm_target_snapshot.c dm_target_stripe.c
dm_target_zero.c

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.39 -r1.40 src/sys/dev/dm/dm_ioctl.c
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/dm/dm_target_error.c
cvs rdiff -u -r1.24 -r1.25 src/sys/dev/dm/dm_target_linear.c
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/dm/dm_target_mirror.c
cvs rdiff -u -r1.25 -r1.26 src/sys/dev/dm/dm_target_snapshot.c
cvs rdiff -u -r1.30 -r1.31 src/sys/dev/dm/dm_target_stripe.c
cvs rdiff -u -r1.18 -r1.19 src/sys/dev/dm/dm_target_zero.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-07 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sat Dec  7 16:13:39 UTC 2019

Modified Files:
src/sys/dev/dm: device-mapper.c

Log Message:
dm: Fix indentation


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/sys/dev/dm/device-mapper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-07 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sat Dec  7 15:28:39 UTC 2019

Modified Files:
src/sys/dev/dm: dm.h dm_dev.c dm_pdev.c dm_table.c dm_target.c
dm_target_error.c dm_target_linear.c dm_target_mirror.c
dm_target_snapshot.c dm_target_stripe.c dm_target_zero.c
src/sys/dev/dm/doc: locking.txt

Log Message:
dm: Fix strange pointer declarations

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


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/dm/dm_dev.c \
src/sys/dev/dm/dm_target_mirror.c
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/dm/dm_pdev.c \
src/sys/dev/dm/dm_target_zero.c
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/dm/dm_table.c
cvs rdiff -u -r1.24 -r1.25 src/sys/dev/dm/dm_target.c \
src/sys/dev/dm/dm_target_snapshot.c
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/dm/dm_target_error.c
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/dm/dm_target_linear.c
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/dm/dm_target_stripe.c
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/dm/doc/locking.txt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-06 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sat Dec  7 06:26:31 UTC 2019

Modified Files:
src/sys/dev/dm: dm_pdev.c dm_table.c dm_target.c

Log Message:
dm: Simplify list eviction code

taken-from: DragonFlyBSD


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/dm/dm_pdev.c
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/dm/dm_table.c
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/dm/dm_target.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-06 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Fri Dec  6 16:46:14 UTC 2019

Modified Files:
src/sys/dev/dm: dm_pdev.c dm_target_linear.c dm_target_zero.c
netbsd-dm.h

Log Message:
dm: Remove trailing whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/dm/dm_pdev.c
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/dm/dm_target_linear.c
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/dm/dm_target_zero.c
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/dm/netbsd-dm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-06 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Fri Dec  6 16:33:47 UTC 2019

Modified Files:
src/sys/dev/dm: device-mapper.c dm_ioctl.c dm_target_stripe.c

Log Message:
dm: Fix typos in comments/messages

taken-from: DragonFlyBSD


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/sys/dev/dm/device-mapper.c
cvs rdiff -u -r1.38 -r1.39 src/sys/dev/dm/dm_ioctl.c
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/dm/dm_target_stripe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-06 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Fri Dec  6 16:11:59 UTC 2019

Modified Files:
src/sys/dev/dm: dm_target.c dm_target_error.c dm_target_mirror.c
dm_target_snapshot.c dm_target_stripe.c dm_target_zero.c

Log Message:
dm: Don't ignore dm_target_alloc() argument

dm_target_alloc() is supposed to be copying the name argument to its ->name.
taken-from: DragonFlyBSD


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/dm/dm_target.c
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/dm/dm_target_error.c
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/dm/dm_target_mirror.c
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/dm/dm_target_snapshot.c
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/dm/dm_target_stripe.c
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/dm/dm_target_zero.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-05 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Thu Dec  5 16:59:43 UTC 2019

Modified Files:
src/sys/dev/dm: dm_table.c dm_target_error.c dm_target_linear.c
dm_target_mirror.c dm_target_snapshot.c dm_target_stripe.c
dm_target_zero.c

Log Message:
dm: Make dm core set config to NULL after destroy

Just let dm core do this instead of having a comment expecting each
target to do the right thing.

taken-from: DragonFlyBSD


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/dm/dm_table.c
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/dm/dm_target_error.c
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/dm/dm_target_linear.c
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/dm/dm_target_mirror.c
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/dm/dm_target_snapshot.c
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/dm/dm_target_stripe.c
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/dm/dm_target_zero.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-05 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Thu Dec  5 15:52:39 UTC 2019

Modified Files:
src/sys/dev/dm: device-mapper.c dm.h dm_ioctl.c

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/dev/dm/device-mapper.c
cvs rdiff -u -r1.32 -r1.33 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.37 -r1.38 src/sys/dev/dm/dm_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-04 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Wed Dec  4 16:55:30 UTC 2019

Modified Files:
src/sys/dev/dm: device-mapper.c dm_pdev.c

Log Message:
dm: Minor fixes/cleanups


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sys/dev/dm/device-mapper.c
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/dm/dm_pdev.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-04 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Wed Dec  4 16:54:03 UTC 2019

Modified Files:
src/sys/dev/dm: dm.h

Log Message:
dm: Comment out unused dm_dev fields documented in sys/dev/dm/doc


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/dm/dm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-04 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Wed Dec  4 15:31:12 UTC 2019

Modified Files:
src/sys/dev/dm: device-mapper.c dm_dev.c dm_ioctl.c dm_pdev.c
dm_table.c dm_target.c

Log Message:
dm: style + whitespace + indentation fixes

No functional changes.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/dev/dm/device-mapper.c
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/dm/dm_dev.c
cvs rdiff -u -r1.36 -r1.37 src/sys/dev/dm/dm_ioctl.c
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/dm/dm_pdev.c
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/dm/dm_table.c
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/dm/dm_target.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-03 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Tue Dec  3 16:22:01 UTC 2019

Modified Files:
src/sys/dev/dm: dm_dev.c dm_pdev.c dm_target.c

Log Message:
dm: Make global dm locks static

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


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/dm/dm_dev.c
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/dm/dm_pdev.c
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/dm/dm_target.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-03 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Tue Dec  3 16:09:13 UTC 2019

Modified Files:
src/sys/dev/dm: dm.h

Log Message:
dm: Remove unused macro MAX_TARGET_STRING_LEN

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


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/dev/dm/dm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-03 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Tue Dec  3 15:47:38 UTC 2019

Modified Files:
src/sys/dev/dm: dm.h dm_ioctl.c dm_pdev.c dm_target_linear.c
dm_target_snapshot.c dm_target_stripe.c

Log Message:
dm: Include  in dm.h

dm.h already depends on vnode, so have dm.h include 
instead of other .c files.

taken-from: DragonFlyBSD


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/dm/dm_ioctl.c
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/dm/dm_pdev.c
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/dm/dm_target_linear.c
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/dm/dm_target_snapshot.c
cvs rdiff -u -r1.25 -r1.26 src/sys/dev/dm/dm_target_stripe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-03 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Tue Dec  3 15:36:00 UTC 2019

Modified Files:
src/sys/dev/dm: device-mapper.c dm.h

Log Message:
dm: Doesn't need to expose struct cmd_function in a header


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/sys/dev/dm/device-mapper.c
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/dm/dm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-03 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Tue Dec  3 15:03:15 UTC 2019

Modified Files:
src/sys/dev/dm: netbsd-dm.h

Log Message:
dm: Remove unused macro DM_CMD_LEN

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


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/dm/netbsd-dm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-02 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Mon Dec  2 16:10:34 UTC 2019

Modified Files:
src/sys/dev/dm: dm_target_linear.c

Log Message:
dm: Remove misleading comment on linear target arg

The offset arg is mandatory.
Remove code and comment that makes it sounds like it's optional.

taken-from: DragonFlyBSD


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/dm/dm_target_linear.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-02 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Mon Dec  2 15:17:43 UTC 2019

Modified Files:
src/sys/dev/dm: device-mapper.c

Log Message:
dm: Add a comment on race window on unload

There is a minor race window on unload vs device creation
that can cause panic.
https://github.com/DragonFlyBSD/DragonFlyBSD/commit/53a07f3ae7313aa58948a60f46428bfc2254dc3c

taken-from: DragonFlyBSD


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/dev/dm/device-mapper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-12-01 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sun Dec  1 16:33:33 UTC 2019

Modified Files:
src/sys/dev/dm: dm_pdev.c

Log Message:
dm: Fix race on pdev create

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

take-from: DragonFlyBSD


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/dm/dm_pdev.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2019-11-30 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Sun Dec  1 06:53:32 UTC 2019

Modified Files:
src/sys/dev/dm: dm.h dm_ioctl.c dm_target_error.c dm_target_linear.c
dm_target_mirror.c dm_target_snapshot.c dm_target_stripe.c
dm_target_zero.c
src/sys/dev/dm/doc: locking.txt

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.34 -r1.35 src/sys/dev/dm/dm_ioctl.c
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/dm/dm_target_error.c
cvs rdiff -u -r1.18 -r1.19 src/sys/dev/dm/dm_target_linear.c
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/dm/dm_target_mirror.c
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/dm/dm_target_snapshot.c
cvs rdiff -u -r1.24 -r1.25 src/sys/dev/dm/dm_target_stripe.c
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/dm/dm_target_zero.c
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/dm/doc/locking.txt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2018-11-11 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Sun Nov 11 10:21:11 UTC 2018

Modified Files:
src/sys/dev/dm: dm_ioctl.c

Log Message:
Only _if_ an inactive table has been loaded, make it active when resuming.
Fixes lvrename operation.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/dev/dm/dm_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2018-10-06 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Sat Oct  6 14:59:11 UTC 2018

Modified Files:
src/sys/dev/dm: device-mapper.c

Log Message:
Add ioctls to query geometry.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/dev/dm/device-mapper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2018-01-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jan  5 14:22:27 UTC 2018

Modified Files:
src/sys/dev/dm: dm_dev.c dm_pdev.c dm_table.c dm_target.c
dm_target_error.c dm_target_mirror.c dm_target_stripe.c
dm_target_zero.c

Log Message:
use some size_t, add whitespace between functions, rcsids.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/dm/dm_dev.c
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/dm/dm_pdev.c \
src/sys/dev/dm/dm_target_mirror.c
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/dm/dm_table.c
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/dm/dm_target.c
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/dm/dm_target_error.c
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/dm/dm_target_stripe.c
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/dm/dm_target_zero.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2018-01-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jan  5 14:22:05 UTC 2018

Modified Files:
src/sys/dev/dm: dm_ioctl.c dm_target_linear.c dm_target_snapshot.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/dm/dm_ioctl.c
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/dm/dm_target_linear.c
cvs rdiff -u -r1.18 -r1.19 src/sys/dev/dm/dm_target_snapshot.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2017-06-04 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Sun Jun  4 08:54:38 UTC 2017

Modified Files:
src/sys/dev/dm: dm_target_linear.c dm_target_snapshot.c

Log Message:
more dependiences -> dependencies


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/dm/dm_target_linear.c
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/dm/dm_target_snapshot.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm/doc

2017-06-04 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Sun Jun  4 08:52:42 UTC 2017

Modified Files:
src/sys/dev/dm/doc: design.txt

Log Message:
more dependiences -> dependencies


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/dm/doc/design.txt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2017-06-04 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Sun Jun  4 08:50:27 UTC 2017

Modified Files:
src/sys/dev/dm: netbsd-dm.h

Log Message:
fix typo in comment


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/dm/netbsd-dm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2015-05-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun May 10 14:08:55 UTC 2015

Modified Files:
src/sys/dev/dm: dm_ioctl.c

Log Message:
CID 976256: Help coverity understand that when the list is empty the head
is NULL.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/dm/dm_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2014-10-02 Thread Justin Cormack
Module Name:src
Committed By:   justin
Date:   Thu Oct  2 21:58:16 UTC 2014

Modified Files:
src/sys/dev/dm: dm.h

Log Message:
dm_target_t reference count is modified with atomic_{inc,dec}_32 so should
be uint_32_t not int


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/dm/dm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2014-10-02 Thread Justin Cormack
Module Name:src
Committed By:   justin
Date:   Thu Oct  2 21:29:44 UTC 2014

Modified Files:
src/sys/dev/dm: dm_ioctl.c

Log Message:
Call prop_dictionary_get_uint32 with uint32_t


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/dm/dm_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2014-08-19 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 19 14:43:28 UTC 2014

Modified Files:
src/sys/dev/dm: dm_target_stripe.c

Log Message:
cleanup properly on error.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/dm/dm_target_stripe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2014-08-18 Thread Alistair G. Crooks
Module Name:src
Committed By:   agc
Date:   Mon Aug 18 17:16:42 UTC 2014

Modified Files:
src/sys/dev/dm: dm_target_stripe.c

Log Message:
Avoid a memory leak - from maxv


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/dm/dm_target_stripe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2014-08-18 Thread Alistair G. Crooks
Module Name:src
Committed By:   agc
Date:   Mon Aug 18 17:16:19 UTC 2014

Modified Files:
src/sys/dev/dm: dm_target_snapshot.c

Log Message:
Avoid a memory leak - from maxv


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/dm/dm_target_snapshot.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2013-12-24 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Tue Dec 24 22:14:07 UTC 2013

Modified Files:
src/sys/dev/dm: dm_ioctl.c

Log Message:
release proplib iterator in failure paths.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/dm/dm_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2013-10-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Oct 18 19:56:30 UTC 2013

Modified Files:
src/sys/dev/dm: device-mapper.c dm_ioctl.c

Log Message:
remove unused variables


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/dev/dm/device-mapper.c
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/dm/dm_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2012-08-07 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Tue Aug  7 16:11:11 UTC 2012

Modified Files:
src/sys/dev/dm: dm_target_stripe.c

Log Message:
Fix problem reported by jym on current-user@ patch was provided by mhitch@.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/dm/dm_target_stripe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2012-01-04 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Wed Jan  4 16:05:53 UTC 2012

Modified Files:
src/sys/dev/dm: dm_target_stripe.c

Log Message:
Fix wrong KASSERT, reported by mhitch@.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/dm/dm_target_stripe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2011-12-11 Thread Alistair G. Crooks
Module Name:src
Committed By:   agc
Date:   Sun Dec 11 22:53:26 UTC 2011

Modified Files:
src/sys/dev/dm: dm_target_zero.c

Log Message:
fixup comments - no functional change


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/dm/dm_target_zero.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2011-08-28 Thread Adam Hoka
Module Name:src
Committed By:   ahoka
Date:   Sun Aug 28 07:22:48 UTC 2011

Modified Files:
src/sys/dev/dm: dm_target.c

Log Message:
readd assertions noew with the correct struct
im wondering why the module cflags didnt warn about this obvious typo


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/dm/dm_target.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2011-08-27 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sat Aug 27 23:31:12 UTC 2011

Modified Files:
src/sys/dev/dm: dm_target.c

Log Message:
Revert last, assertions on undefined variables don't make sense.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/dm/dm_target.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2011-08-27 Thread Adam Hoka
Module Name:src
Committed By:   ahoka
Date:   Sat Aug 27 17:10:05 UTC 2011

Modified Files:
src/sys/dev/dm: dm_table.c

Log Message:
add function to get the inactive table size (for during target init)


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/dm/dm_table.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2011-08-27 Thread Adam Hoka
Module Name:src
Committed By:   ahoka
Date:   Sat Aug 27 17:09:10 UTC 2011

Modified Files:
src/sys/dev/dm: dm_target_stripe.c

Log Message:
be consistent and define secsize here as well (though this seems unused?)
some white' from emacs


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/dm/dm_target_stripe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2011-08-27 Thread Adam Hoka
Module Name:src
Committed By:   ahoka
Date:   Sat Aug 27 17:07:50 UTC 2011

Modified Files:
src/sys/dev/dm: dm.h dm_ioctl.c

Log Message:
- add a function to get the inactive table's size
- some whitespace fix from emacs...


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.25 -r1.26 src/sys/dev/dm/dm_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2011-08-27 Thread Adam Hoka
Module Name:src
Committed By:   ahoka
Date:   Sat Aug 27 17:06:08 UTC 2011

Modified Files:
src/sys/dev/dm: dm_target.c

Log Message:
Add a sanity check for missing functions in dmt


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/dm/dm_target.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2011-06-02 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Thu Jun  2 17:49:40 UTC 2011

Modified Files:
src/sys/dev/dm: dm_target_stripe.c

Log Message:
Fix simple typo which made stripe target not working very at all. Issue
found by mhitch@.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/dm/dm_target_stripe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2011-05-24 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue May 24 15:23:42 UTC 2011

Modified Files:
src/sys/dev/dm: dm_ioctl.c

Log Message:
Fix logic error


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/dev/dm/dm_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2010-12-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Dec 23 20:07:13 UTC 2010

Modified Files:
src/sys/dev/dm: device-mapper.c dm.h

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/dm/device-mapper.c
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/dm/dm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2010-12-23 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Thu Dec 23 14:58:14 UTC 2010

Modified Files:
src/sys/dev/dm: device-mapper.c dm.h dm_pdev.c dm_table.c dm_target.c
dm_target_linear.c dm_target_snapshot.c dm_target_stripe.c

Log Message:
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@


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/dm/device-mapper.c
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/dm/dm_pdev.c
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/dm/dm_table.c
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/dm/dm_target.c
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/dm/dm_target_linear.c
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/dm/dm_target_snapshot.c
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/dm/dm_target_stripe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2010-12-06 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Mon Dec  6 09:12:23 UTC 2010

Modified Files:
src/sys/dev/dm: device-mapper.c

Log Message:
I have forgot to fix dm_dev_counter here, too.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/dev/dm/device-mapper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2010-12-06 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Mon Dec  6 09:03:41 UTC 2010

Modified Files:
src/sys/dev/dm: dm_ioctl.c

Log Message:
We don't need 64 bit variable for dm_device coutner, too.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/dm/dm_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2010-12-06 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Mon Dec  6 08:54:49 UTC 2010

Modified Files:
src/sys/dev/dm: dm.h dm_ioctl.c

Log Message:
Add comment about dm_dev minor, and change it to 32bit value we realy not
going to use so much device minor numbers.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/dm/dm_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2010-11-14 Thread Masao Uebayashi
Module Name:src
Committed By:   uebayasi
Date:   Mon Nov 15 05:54:38 UTC 2010

Modified Files:
src/sys/dev/dm: dm_target_stripe.c

Log Message:
curlwp needs sys/lwp.h.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/dm/dm_target_stripe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2010-11-14 Thread Masao Uebayashi
Module Name:src
Committed By:   uebayasi
Date:   Mon Nov 15 05:53:29 UTC 2010

Modified Files:
src/sys/dev/dm: dm_target_linear.c

Log Message:
curlwp needs sys/lwp.h.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/dm/dm_target_linear.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2010-10-23 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sat Oct 23 21:18:55 UTC 2010

Modified Files:
src/sys/dev/dm: device-mapper.c dm.h dm_target_stripe.c
Added Files:
src/sys/dev/dm/doc: locking.txt

Log Message:
Add old file describing locking schema used in dm driver.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/dev/dm/device-mapper.c
cvs rdiff -u -r1.18 -r1.19 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/dm/dm_target_stripe.c
cvs rdiff -u -r0 -r1.1 src/sys/dev/dm/doc/locking.txt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2010-10-09 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Sat Oct  9 12:56:07 UTC 2010

Modified Files:
src/sys/dev/dm: device-mapper.c

Log Message:
In rome do as romans do. If I will get EEXIST from devsw_attach don't exit and
continue. This unbreaks usage of libdm in RUMP.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/dm/device-mapper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dm

2010-05-18 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Tue May 18 15:10:41 UTC 2010

Modified Files:
src/sys/dev/dm: device-mapper.c dm.h dm_target.c dm_target_error.c
dm_target_linear.c dm_target_mirror.c dm_target_snapshot.c
dm_target_stripe.c dm_target_zero.c

Log Message:
Add support for DIOCCACHESYNC ioctl for dm devices. Add new sync function
pointer to dm_target_t because that is the only part of dm which know real
block device. disk_ioctl_switch parses whole device table and for every
entry it calls particular sync routine which propagates DIOCCACHESYNC
to real disk.

While I was here implement some KNF fixes and remove unneeded symbols from
dm.h.

Problem reported on port-xen@ by Hugo Silva.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/dm/device-mapper.c
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/dm/dm_target.c \
src/sys/dev/dm/dm_target_snapshot.c
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/dm/dm_target_error.c \
src/sys/dev/dm/dm_target_zero.c
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/dm/dm_target_linear.c \
src/sys/dev/dm/dm_target_stripe.c
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/dm/dm_target_mirror.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



  1   2   >