summaryrefslogtreecommitdiffstats
path: root/sys/cam/scsi
diff options
context:
space:
mode:
authorsmh <smh@FreeBSD.org>2013-07-03 23:46:30 +0000
committersmh <smh@FreeBSD.org>2013-07-03 23:46:30 +0000
commitc0361090f3b06ca4a549ca5e3da0756d5bcb618a (patch)
treea5255845bddbd3e4613213622176280ce498e05b /sys/cam/scsi
parent44e6cbd7c84212bafefbeafe5c66cc38af64b7b6 (diff)
downloadFreeBSD-src-c0361090f3b06ca4a549ca5e3da0756d5bcb618a.zip
FreeBSD-src-c0361090f3b06ca4a549ca5e3da0756d5bcb618a.tar.gz
Bump disk(9) ABI version to signify the addition of d_delmaxsize by r249940.
Ensure that d_delmaxsize is always set, removing init to 0 which could cause future issues if use cases change. Allow kern.cam.da.X.delete_max (which maps to d_delmaxsize) to be increased up to the calculated max after being reduced. MFC after: 1 day X-MFC-With: r249940
Diffstat (limited to 'sys/cam/scsi')
-rw-r--r--sys/cam/scsi/scsi_da.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c
index e0e33d6..7988309 100644
--- a/sys/cam/scsi/scsi_da.c
+++ b/sys/cam/scsi/scsi_da.c
@@ -1746,7 +1746,7 @@ dadeletemaxsysctl(SYSCTL_HANDLER_ARGS)
return (error);
/* only accept values smaller than the calculated value */
- if (value > softc->disk->d_delmaxsize) {
+ if (value > dadeletemaxsize(softc, softc->delete_method)) {
return (EINVAL);
}
softc->disk->d_delmaxsize = value;
OpenPOWER on IntegriCloud