git: disk - add flag to use underlying psize

Alex Hornung alexh at
Mon Feb 27 14:03:16 PST 2012

commit c6bbf777a7a31be27ec52711c50e15bbb88f0e6b
Author: Alex Hornung <ahornung at>
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
     * 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

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(-)

DragonFly BSD source repository

More information about the Commits mailing list