CVS log for src/sys/dev/dm/device-mapper.c
Up to [cvs.NetBSD.org] / src / sys / dev / dm
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.64.10.1: download - view: text, markup, annotated - select for diffs
Wed Nov 4 23:21:49 2026 UTC (11 days, 6 hours ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +3 -3
lines
Sync with HEAD
Revision 1.64.12.1: download - view: text, markup, annotated - select for diffs
Thu Dec 18 18:31:00 2025 UTC (10 months, 4 weeks ago) by martin
Branches: netbsd-11
CVS tags: 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
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +3 -3
lines
Pull up following revision(s) (requested by mlelstv in ticket #131):
sys/dev/dm/device-mapper.c: revision 1.65
Use xdevice_name for DIOCGWEDGEINFO answer to align with the registered
disk name. getdisksize() relies on it to find the disk structure.
Fixes PR 59674.
Revision 1.65: download - view: text, markup, annotated - select for diffs
Mon Sep 29 12:50:27 2025 UTC (13 months, 2 weeks ago) by mlelstv
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102,
HEAD
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -3
lines
Use xdevice_name for DIOCGWEDGEINFO answer to align with the registered
disk name. getdisksize() relies on it to find the disk structure.
Fixes PR 59674.
Pullup -11.
Revision 1.64: download - view: text, markup, annotated - select for diffs
Thu Mar 31 19:30:15 2022 UTC (4 years, 7 months ago) by pgoyette
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20250801,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
netbsd-11-base,
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
Branch point for: perseant-exfatfs,
netbsd-11
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +14 -11
lines
For device modules that provide both auto-config and /dev/xxx
interfaces, make sure that initialization and destruction
follow the proper sequence. This is triggered by the recent
changes to the devsw stuff; per riastradh@ the required call
sequence is:
devsw_attach()
config_init_component() or config_cf*_attach()
...
config_fini_component() or config_cf*_detach()
devsw_detach()
While here, add a few missing calls to some of the detach
routines.
Testing of these changes has been limited to:
1. compile without build break
2. no related test failures from atf
3. modload/modunload work as well as
before.
No functional device testing done, since I don't have any
of these devices. Let me know of any damage I might cause
here!
XXX Some of the modules affected by this commit are already
XXX broken; see kern/56772. This commit does not break
any additional modules (as far as I know).
Revision 1.63: download - view: text, markup, annotated - select for diffs
Mon Mar 28 10:38:00 2022 UTC (4 years, 7 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +4 -3
lines
Media size is in bytes (off_t), not sectors.
Revision 1.61.6.1: download - view: text, markup, annotated - select for diffs
Thu May 13 00:47:30 2021 UTC (5 years, 6 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61: +48 -1
lines
Sync with HEAD.
Revision 1.62: download - view: text, markup, annotated - select for diffs
Fri May 7 09:54:43 2021 UTC (5 years, 6 months ago) by hannken
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-futex2-base,
thorpej-futex2,
thorpej-cfargs2-base,
thorpej-cfargs2,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +48 -1
lines
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)
Revision 1.61: download - view: text, markup, annotated - select for diffs
Wed Jul 8 15:07:13 2020 UTC (6 years, 4 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-futex-base,
thorpej-futex,
thorpej-cfargs-base,
thorpej-cfargs
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +2 -2
lines
Adapt to proplib API chanages.
Revision 1.39.4.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:03 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.39.4.1: preferred, colored; branchpoint 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39.4.1: +94 -104
lines
Merge changes from current as of 20200406
Revision 1.40.4.1: download - view: text, markup, annotated - select for diffs
Tue Jan 21 18:22:51 2020 UTC (6 years, 9 months ago) by martin
Branches: netbsd-9
CVS tags: 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
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +6 -3
lines
Pull up following revision(s) (requested by maya in ticket #641):
sys/dev/dm/device-mapper.c: revision 1.60
dm(8) doesn't cause problems on suspend, don't block it.
Tested by Matthias Petermann, thanks!
Revision 1.59.2.1: download - view: text, markup, annotated - select for diffs
Fri Jan 17 21:47:30 2020 UTC (6 years, 10 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59: +6 -1
lines
Sync with head.
Revision 1.60: download - view: text, markup, annotated - select for diffs
Thu Jan 16 07:18:08 2020 UTC (6 years, 10 months ago) by maya
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
is-mlppp-base,
is-mlppp,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh,
ad-namecache-base3,
ad-namecache-base2,
ad-namecache-base1
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +6 -1
lines
dm(8) doesn't cause problems on suspend, don't block it.
Tested by Matthias Petermann, thanks!
Revision 1.59: download - view: text, markup, annotated - select for diffs
Sun Dec 22 13:16:09 2019 UTC (6 years, 10 months ago) by tkusumi
Branches: MAIN
CVS tags: ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +4 -7
lines
dm: Make numsec/secsize arguments in dm_table_disksize() optional
Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun Dec 22 12:28:54 2019 UTC (6 years, 10 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +5 -1
lines
dm: Add missing "ioctl called" debug prints
Revision 1.57: download - view: text, markup, annotated - select for diffs
Thu Dec 19 15:57:46 2019 UTC (6 years, 10 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +10 -24
lines
dm: Refactor dmioctl()
More readable without dm_ioctl_switch() as a separate function.
Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu Dec 19 15:34:54 2019 UTC (6 years, 10 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +6 -7
lines
dm: u_{int,long} -> unsigned {int,long}
Revision 1.55: 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.54: preferred, colored
Changes since revision 1.54: +21 -1
lines
dm: Rename dm specific atoi() to atoi64()
This is uint64_t version, not sys/lib/libsa/atoi.c.
Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun Dec 15 14:39:42 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +15 -33
lines
dm: Style cleanups (no functional changes)
Revision 1.53: 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.52: preferred, colored
Changes since revision 1.52: +3 -2
lines
dm: Make targets' ->sync() optional
Apparently some targets have nothing to sync, so make it optional.
Revision 1.52: 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.51: preferred, colored
Changes since revision 1.51: +3 -3
lines
dm: "unsigned" -> "unsigned int" for consistency
Use either one, but not both.
Revision 1.51: 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.50: preferred, colored
Changes since revision 1.50: +1 -3
lines
dm: Move extern declaration of global variables to dm.h
Revision 1.50: download - view: text, markup, annotated - select for diffs
Sat Dec 14 10:49:30 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +4 -5
lines
dm: Remove void casts of function calls
Use of void casts in dm is not consistent, just get rid of them.
Revision 1.49: download - view: text, markup, annotated - select for diffs
Wed Dec 11 14:03:37 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +2 -2
lines
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
Revision 1.48: download - view: text, markup, annotated - select for diffs
Mon Dec 9 15:54:59 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -6
lines
dm: Fix error handling in dmioctl()
Looks like cleanup_exit label is in a wrong place.
Should skip prop_dictionary_copyout_ioctl() on error.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat Dec 7 16:13:39 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +9 -10
lines
dm: Fix indentation
Revision 1.46: download - view: text, markup, annotated - select for diffs
Fri Dec 6 16:33:47 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -4
lines
dm: Fix typos in comments/messages
taken-from: DragonFlyBSD
Revision 1.45: 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.44: preferred, colored
Changes since revision 1.44: +5 -3
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.44: download - view: text, markup, annotated - select for diffs
Wed Dec 4 16:55:30 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -3
lines
dm: Minor fixes/cleanups
Revision 1.43: download - view: text, markup, annotated - select for diffs
Wed Dec 4 15:31:12 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +7 -19
lines
dm: style + whitespace + indentation fixes
No functional changes.
Revision 1.42: 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.41: preferred, colored
Changes since revision 1.41: +13 -2
lines
dm: Doesn't need to expose struct cmd_function in a header
Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Dec 2 15:17:43 2019 UTC (6 years, 11 months ago) by tkusumi
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +2 -1
lines
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
Revision 1.39.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:07 2019 UTC (7 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +37 -1
lines
Sync with HEAD
Revision 1.39.2.1: download - view: text, markup, annotated - select for diffs
Sat Oct 20 06:58:31 2018 UTC (8 years ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39: +37 -1
lines
Sync with head
Revision 1.38.10.1: download - view: text, markup, annotated - select for diffs
Sat Oct 13 17:09:41 2018 UTC (8 years, 1 month ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +37 -1
lines
Pull up following revision(s) (requested by mlelstv in ticket #1055):
sys/dev/dm/device-mapper.c: revision 1.40
Add ioctls to query geometry.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Sat Oct 6 14:59:11 2018 UTC (8 years, 1 month ago) by mlelstv
Branches: MAIN
CVS tags: phil-wifi-20191119,
phil-wifi-20190609,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
netbsd-9-base,
netbsd-9-0-RC1,
isaki-audio2-base,
isaki-audio2
Branch point for: netbsd-9
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +37 -1
lines
Add ioctls to query geometry.
Revision 1.29.2.3: 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.29.2.2: preferred, colored; branchpoint 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29.2.2: +26 -29
lines
update from HEAD
Revision 1.39: download - view: text, markup, annotated - select for diffs
Sat Oct 28 04:53:55 2017 UTC (9 years ago) by riastradh
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
phil-wifi-base,
pgoyette-compat-base,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
jdolecek-ncqfixes-base,
jdolecek-ncqfixes
Branch point for: phil-wifi,
pgoyette-compat
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +1 -3
lines
Kill some more extern struct cfdriver declarations.
Down with externs in .c!
Revision 1.38.8.2: download - view: text, markup, annotated - select for diffs
Sat Apr 29 11:12:14 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.38.8.1: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.8.1: +1 -2
lines
Remove more unnecessary #include for sys/localcount.h
Revision 1.38.8.1: download - view: text, markup, annotated - select for diffs
Thu Apr 27 05:36:35 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +5 -1
lines
Restore all work from the former pgoyette-localcount branch (which is
now abandoned doe to cvs merge botch).
The branch now builds, and installs via anita. There are still some
problems (cgd is non-functional and all atf tests time-out) but they
will get resolved soon.
Revision 1.35.2.3: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:55:40 2016 UTC (10 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.35.2.2: preferred, colored; branchpoint 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35.2.2: +7 -7
lines
Sync with HEAD
Revision 1.38.2.3: download - view: text, markup, annotated - select for diffs
Tue Jul 26 05:54:39 2016 UTC (10 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.38.2.2: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.2.2: +3 -3
lines
Rename LOCALCOUNT_INITIALIZER to DEVSW_MODULE_INIT. This better describes
what we're doing, and why.
Revision 1.38.2.2: download - view: text, markup, annotated - select for diffs
Tue Jul 19 06:26:59 2016 UTC (10 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.38.2.1: preferred, colored; branchpoint 1.38: preferred, colored
Changes since revision 1.38.2.1: +3 -11
lines
Instead of repeatedly typing the conditional initialization of the
.d_localcount members in the various {b,c}devsw, define an initializer
macro and use it. This also removes the need for defining new symbols
for each 'struct localcount'.
As suggested by riastradh@
Revision 1.38.2.1: download - view: text, markup, annotated - select for diffs
Mon Jul 18 03:49:59 2016 UTC (10 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +13 -1
lines
Rump drivers are always installed via devsw_attach() so we need to
always allocate a 'struct localcount' for these drivers whenever they
are built as modules.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Mon Jul 11 11:31:50 2016 UTC (10 years, 4 months ago) by msaitoh
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
nick-nhusb-base-20170204,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
netbsd-8-base,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: prg-localcount2,
pgoyette-localcount,
netbsd-8
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +24 -24
lines
KNF. No functional change.
Revision 1.35.2.2: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:05:57 2015 UTC (11 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.35.2.1: preferred, colored; branchpoint 1.35: preferred, colored
Changes since revision 1.35.2.1: +19 -19
lines
Sync with HEAD
Revision 1.37: download - view: text, markup, annotated - select for diffs
Thu Aug 20 14:40:17 2015 UTC (11 years, 2 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20160907,
nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319,
nick-nhusb-base-20151226,
nick-nhusb-base-20150921
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -2
lines
include "ioconf.h" to get the 'void <driver>attach(int count);' prototype.
Revision 1.35.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:08 2015 UTC (11 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +1 -3
lines
Sync with HEAD
Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed Dec 31 08:24:50 2014 UTC (11 years, 10 months ago) by mlelstv
Branches: MAIN
CVS tags: nick-nhusb-base-20150606,
nick-nhusb-base-20150406
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +1 -3
lines
disk_blocksize and disk_set_info relay the same information
to the disk subsystem.
Make disk_set_info also set blocksize shift values.
Remove every call to disk_blocksize.
Keep disk_blocksize for ABI compatibility, make it also set dg_secsize.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Oct 2 21:01:38 2014 UTC (12 years, 1 month ago) by justin
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -2
lines
devmajor_t not int
Revision 1.29.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:36 2014 UTC (12 years, 2 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.29.2.1: preferred, colored; branchpoint 1.29: preferred, colored
Changes since revision 1.29.2.1: +4 -6
lines
Rebase to HEAD as of a few days ago.
Revision 1.32.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.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +3 -1
lines
Rebase.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Jul 25 08:10:36 2014 UTC (12 years, 3 months ago) by dholland
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.33: preferred, colored
Changes since revision 1.33: +2 -1
lines
Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Fri Jul 25 08:02:19 2014 UTC (12 years, 3 months ago) by dholland
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -1
lines
Add d_discard to all struct bdevsw instances I could find.
I've set them all to nodiscard. Some of them (wd, dk, vnd, ld,
raidframe, maybe cgd) should be implemented for real.
Revision 1.28.8.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.28.8.1: preferred, colored; branchpoint 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28.8.1: +10 -22
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.30.2.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.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +3 -7
lines
sync with head
Revision 1.32: download - view: text, markup, annotated - select for diffs
Sat Dec 28 19:25:07 2013 UTC (12 years, 10 months ago) by pgoyette
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.31: preferred, colored
Changes since revision 1.31: +2 -2
lines
Make dksubr.c into a module, and make the cgd and dm modules depend on
it.
Now that cgd is completely modularized, descend into modules/cgd to
actually create the module.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Fri Oct 18 19:56:30 2013 UTC (13 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -6
lines
remove unused variables
Revision 1.29.2.1: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:16 2013 UTC (13 years, 4 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +8 -16
lines
resync from head
Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed May 29 00:47:48 2013 UTC (13 years, 5 months ago) by christos
Branches: MAIN
CVS tags: riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2
Branch point for: rmind-smpnet
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +8 -16
lines
phase 1 of disk geometry cleanup:
- centralize the geometry -> plist code so that we don't have
n useless copies of it.
Revision 1.28.8.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:30 2012 UTC (14 years, 7 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3
lines
sync with head
Revision 1.28.12.1: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:33:25 2012 UTC (14 years, 7 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +3 -3
lines
sync to latest -current.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Mar 13 18:40:30 2012 UTC (14 years, 8 months ago) by elad
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
khorben-n900,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base10,
agc-symver-base,
agc-symver
Branch point for: tls-maxphys
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3
lines
Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with
something meaningful. All relevant documentation has been updated or
written.
Most of these changes were brought up in the following messages:
http://mail-index.netbsd.org/tech-kern/2012/01/18/msg012490.html
http://mail-index.netbsd.org/tech-kern/2012/01/19/msg012502.html
http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012728.html
Thanks to christos, manu, njoly, and jmmv for input.
Huge thanks to pgoyette for spinning these changes through some build
cycles and ATF.
Revision 1.20.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:07 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.20.2.1: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.2.1: +40 -30
lines
sync with head
Revision 1.28: 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: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
rmind-uvmplock-nbase,
rmind-uvmplock-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,
matt-mips64-premerge-20101231,
jruoho-x86intr-base,
jruoho-x86intr,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
jmcneill-usbmp-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: yamt-pagecache,
jmcneill-usbmp
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +25 -19
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.27: 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.26: preferred, colored
Changes since revision 1.26: +12 -9
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.26: download - view: text, markup, annotated - select for diffs
Mon Dec 6 09:12:23 2010 UTC (15 years, 11 months ago) by haad
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -3
lines
I have forgot to fix dm_dev_counter here, too.
Revision 1.15.2.4: 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.15.2.3: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.2.3: +1 -2
lines
Sync with HEAD.
Revision 1.25: 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.24: preferred, colored
Changes since revision 1.24: +1 -2
lines
Add old file describing locking schema used in dm driver.
Revision 1.15.2.3: download - view: text, markup, annotated - select for diffs
Fri Oct 22 07:21:54 2010 UTC (16 years ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.15.2.2: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.2.2: +2 -0
lines
Sync with HEAD (-D20101022).
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Oct 9 12:56:06 2010 UTC (16 years, 1 month ago) by haad
Branches: MAIN
CVS tags: uebayasi-xip-base3
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -1
lines
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.
Revision 1.15.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:46:06 2010 UTC (16 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.15.2.1: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.2.1: +30 -0
lines
Sync with HEAD.
Revision 1.6.2.6: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:20 2010 UTC (16 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.6.2.5: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.2.5: +67 -30
lines
sync with head.
Revision 1.20.2.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:19 2010 UTC (16 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +63 -30
lines
sync with head
Revision 1.23: download - view: text, markup, annotated - select for diffs
Tue May 18 15:10:38 2010 UTC (16 years, 6 months ago) by haad
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base2
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +31 -1
lines
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.
Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:10 2010 UTC (16 years, 6 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +61 -38
lines
Sync with HEAD.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri Mar 26 15:46:04 2010 UTC (16 years, 7 months ago) by jakllsch
Branches: MAIN
CVS tags: uebayasi-xip-base1
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +5 -1
lines
Fix build of i386 ALL kernel with patch from Greg A. Woods in PR/43056.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Mar 23 15:09:45 2010 UTC (16 years, 7 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +29 -30
lines
Rework module/builtin code so it works in both cases.
(Tested recently in the module case, slightly less recently as builtin.)
<haad> [if it works] go for it
Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Mar 12 16:26:26 2010 UTC (16 years, 8 months ago) by haad
Branches: MAIN
Branch point for: rmind-uvmplock
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +5 -1
lines
Disable disk_ioctl_switch fo device-mapper control device.
Revision 1.6.2.5: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:26 2010 UTC (16 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.6.2.4: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.2.4: +195 -80
lines
sync with head
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Feb 27 00:31:57 2010 UTC (16 years, 8 months ago) by jakllsch
Branches: MAIN
CVS tags: yamt-nfs-mp-base9
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +6 -3
lines
Use RUN_ONCE(9) again. (Everyone happy now?)
Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri Feb 26 23:52:43 2010 UTC (16 years, 8 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +9 -12
lines
Use correct prototype for dmattach().
Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Feb 25 23:37:39 2010 UTC (16 years, 8 months ago) by haad
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +34 -38
lines
Fix device-mapper to work in builtin case. This commit fixes
PR: 42799
REwork fix commited by jak@ to be more readable and remove unneeded ifdef _MODULE.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Feb 25 20:48:58 2010 UTC (16 years, 8 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +40 -20
lines
Be sure to config_cfattach_attach() in dmattach().
Loosely based on patch from Brian Brombacher,
with other inspriation from vnd(4).
This should fix PR kern/42799.
While here, a few prototype, style and namespace pollution-related changes.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Jan 8 00:27:48 2010 UTC (16 years, 10 months ago) by pooka
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +8 -5
lines
Fix this for non-module (which, i guess, is only i386/ALL).
XXX: autoconfusion vs. modules is an intolerable mess of stepping
on each others' toes.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Jan 3 22:55:25 2010 UTC (16 years, 10 months ago) by haad
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +6 -10
lines
Refactor dmioctl to by cleaner and to copyout dictionary in case when something
went wrong.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Jan 3 22:44:10 2010 UTC (16 years, 10 months ago) by haad
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +39 -52
lines
KNF police, remove unnecessary whitespaces and tabulators. Refactor dmioctl
to not use prop_dictionary_copy* functions if NetBSD_DM_IOCTL command was
not called on device. If disk_ioctl returms anything else then ENOTTY exit
from dmioctl.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Jan 3 22:22:23 2010 UTC (16 years, 10 months ago) by haad
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +113 -9
lines
Hook device-mapper to autoconf framework. Add dm_attach, dm_match and dm_detach
routines used by autoconf users. Change dm_dev_remove_ioctl to call dm_detach.
This should be primary used by kernel to disable devices during shutdown of
system with nested disk devices.
Requested by dyoung@.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Dec 29 23:37:47 2009 UTC (16 years, 10 months ago) by haad
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +10 -4
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.10: download - view: text, markup, annotated - select for diffs
Sun Dec 6 14:33:46 2009 UTC (16 years, 11 months ago) by haad
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +6 -3
lines
Add support for DM_QUERY_INACTIVE_TABLE_FLAG to dm_table_status and dm_table_deps
this flag was introduced to dm->lvm protocol in 4.16.0 version of it. Restore
vrsion check functionality and sent back actual kernel driver version.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Oct 16 21:23:08 2009 UTC (17 years, 1 month ago) by joerg
Branches: MAIN
CVS tags: jym-xensuspend-nbase
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2
lines
Don't spam the console with debug messages.
Revision 1.5.2.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.5.2.1: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.1: +50 -70
lines
Sync with HEAD.
Revision 1.6.2.4: download - view: text, markup, annotated - select for diffs
Sat Jul 18 14:53:00 2009 UTC (17 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.6.2.3: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.2.3: +10 -2
lines
sync with head.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Jun 27 16:10:25 2009 UTC (17 years, 4 months ago) by jakllsch
Branches: MAIN
CVS tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
jymxensuspend-base
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +10 -2
lines
Some fixes for dm(4).
- Limit accesses to the size of the volume.
This fixes a KASSERT in physio_biodone().
- Change dm_table_size() to return the size of the volume in
DEV_BSIZE units. It was reporting it in DEV_BSIZE^2 units.
- Remove a bit of trailing whitespace.
ok haad
Revision 1.6.2.3: download - view: text, markup, annotated - select for diffs
Sat Jun 20 07:20:20 2009 UTC (17 years, 5 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.6.2.2: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.2.2: +41 -69
lines
sync with head
Revision 1.7: 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-base5
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +41 -69
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.5.2.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.5: preferred, colored
Changes since revision 1.5: +44 -26
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.6.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.6.2.1: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.2.1: +558 -0
lines
sync with head.
Revision 1.4.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.4.4.3: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.4.3: +44 -26
lines
Sync with HEAD.
Revision 1.6.2.1
Mon Apr 6 22:58:10 2009 UTC (17 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
FILE REMOVED
Changes since revision 1.6: +0 -558
lines
file device-mapper.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:36 +0000
Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Apr 6 22:58:10 2009 UTC (17 years, 7 months ago) by haad
Branches: MAIN
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.5: preferred, colored
Changes since revision 1.5: +44 -26
lines
Use functions from disk(9) framework. Initialize disk/disklabel during
dm_device_create_ioctl, before calling dmgetdisklabel.
Use disk_busy/disk_unbusy in dmstrategy to display LVM LV's in iostat
output.
Revision 1.4.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.4.4.2: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.2: +2 -2
lines
Sync with HEAD.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Jan 22 04:56:06 2009 UTC (17 years, 9 months ago) by agc
Branches: MAIN
CVS tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2
lines
Move back to printing the minor device as a 32-bit entity
Revision 1.4.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.4.4.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.1: +540 -0
lines
Sync with HEAD.
Revision 1.4.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.4.2.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.1: +540 -0
lines
Sync with HEAD.
Revision 1.4.4.1
Fri Jan 16 00:46:12 2009 UTC (17 years, 10 months ago) by skrll
Branches: nick-hppapmap
FILE REMOVED
Changes since revision 1.4: +0 -540
lines
file device-mapper.c was added on branch nick-hppapmap on 2009-01-19 13:17:52 +0000
Revision 1.4.2.1
Fri Jan 16 00:46:12 2009 UTC (17 years, 10 months ago) by mjf
Branches: mjf-devfs2
FILE REMOVED
Changes since revision 1.4: +0 -540
lines
file device-mapper.c was added on branch mjf-devfs2 on 2009-01-17 13:28:53 +0000
Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Jan 16 00:46:12 2009 UTC (17 years, 10 months ago) by haad
Branches: MAIN
CVS tags: mjf-devfs2-base
Branch point for: nick-hppapmap,
mjf-devfs2
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +15 -15
lines
Disable unloading of dm driver when there are any devices defined. This means
that we have to run lvm vgchange -a n before modunload in NetBSD.
We really need to disable module unloading only for mounted devices, I have
to look at vfs_hooks for mount/umount calls and find way how to mark devices
as mounted in dm driver.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Jan 11 11:44:23 2009 UTC (17 years, 10 months ago) by haad
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2
lines
Fix aprint_debug after christos-time_t merge.
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: +540 -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.17: download - view: text, markup, annotated - select for diffs
Wed Dec 3 00:10:41 2008 UTC (17 years, 11 months ago) by haad
Branches: haad-dm
Diff to: previous 1.1.2.16: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.16: +24 -28
lines
Fix several memory leaks in proplib library handling. Rework dm_cmd_to_fun
function to use prop_string_t.
Revision 1.1.2.16: 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.15: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.15: +2 -2
lines
Fix copyright in TNF licenses.
Revision 1.1.2.15: 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.14: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.14: +11 -15
lines
Use typedef in all structures in dm driver and use them in source code.
No functional change expected.
Revision 1.1.2.14: download - view: text, markup, annotated - select for diffs
Thu Oct 16 23:26:41 2008 UTC (18 years, 1 month 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: +60 -134
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.13: 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.12: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.12: +70 -87
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.12: 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.11: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.11: +13 -20
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.11: 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.10: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.10: +42 -43
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.10: 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.9: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.9: +64 -33
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.9: download - view: text, markup, annotated - select for diffs
Tue Aug 19 23:38:25 2008 UTC (18 years, 3 months ago) by haad
Branches: haad-dm
Diff to: previous 1.1.2.8: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.8: +7 -1
lines
Use dm_*_destroy routines in dmdestroy, I will not leak any memory after
kmod unload anymore.
Revision 1.1.2.8: download - view: text, markup, annotated - select for diffs
Tue Aug 19 16:32:20 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: +15 -2
lines
Fix device-mapper driver loading ask kmod. Register driver with devsw_attach
and deregister with devsw_detach.
Revision 1.1.2.7: 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.6: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.6: +2 -0
lines
Add $NetBSD$ tag to all dm driver sources.
Revision 1.1.2.6: download - view: text, markup, annotated - select for diffs
Sun Aug 3 21:47:39 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: +38 -57
lines
Add support for new kernel modules. Remove old LKM code. Device-mapper driver
can be now built as kmod.
Revision 1.1.2.5: download - view: text, markup, annotated - select for diffs
Tue Jul 29 22:21:12 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: +0 -3
lines
Fix pasto.
Revision 1.1.2.4: 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.3: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.3: +8 -0
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.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: +67 -22
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: +34 -24
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: +554 -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.
CVSweb <webmaster@jp.NetBSD.org>