git: disk - add flag to use underlying psize
Alex Hornung
alexh at crater.dragonflybsd.org
Mon Feb 27 14:03:16 PST 2012
commit c6bbf777a7a31be27ec52711c50e15bbb88f0e6b
Author: Alex Hornung <ahornung at gmail.com>
Date: Mon Feb 27 21:54:09 2012 +0000
disk - add flag to use underlying psize
* If the top (disk subsystem) psize fails, try again with the
underlying raw device psize if the DSO_RAWPSIZE flag is set for the
disk.
* This allows for disk devices and slices without a proper disklabel to
return a correct psize, which in turn allows the device to be used
for swap.
* Previously that behaviour was integrated with the DSO_DEVICEMAPPER
flag.
Summary of changes:
sys/dev/disk/dm/device-mapper.c | 2 +-
sys/kern/subr_disk.c | 2 +-
sys/sys/disk.h | 4 ++++
3 files changed, 6 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c6bbf777a7a31be27ec52711c50e15bbb88f0e6b
--
DragonFly BSD source repository
More information about the Commits
mailing list