OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Kenneth R Westerback (krwcvs.openbsd.org)
Date: Mon Dec 20 2010 - 11:47:49 CST


CVSROOT: /cvs
Module name: src
Changes by: krwcvs.openbsd.org 2010/12/20 10:47:49

Modified files:
        sys/dev : softraid.c

Log message:
READ CAPACITY and READ CAPACITY 16 commands report the last valid
logical block address, not the size of the device. Adjust softraid's
handling of the commands accordingly.

Fixes panics when newfs'ing the 'c' partition of a softraid volume
(one shouldn't newfs 'c' partitions of any device). Reported by
Andreas Bartlet via tech. Fix tested by Andreas.

ok marco. functionally identical diff developed by dlg