Author: mav
Date: Mon Nov 25 03:39:13 2019
New Revision: 355079
URL: https://svnweb.freebsd.org/changeset/base/355079
Log:
MFC r354999: Fix off-by-one error in HPA/AMA maximum reporting.
Before my refactoring the code reported value as maximum number of sectors,
adding one to the maximum sector number returned by respective command.
While this difference is somewhat confusing, restore previous behavior.
Modified:
stable/11/sbin/camcontrol/camcontrol.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sbin/camcontrol/camcontrol.c
==============================================================================
--- stable/11/sbin/camcontrol/camcontrol.c Mon Nov 25 03:38:49 2019
(r355078)
+++ stable/11/sbin/camcontrol/camcontrol.c Mon Nov 25 03:39:13 2019
(r355079)
@@ -1813,7 +1813,7 @@ atahpa_proc_resp(struct cam_device *device, union ccb
if (hpasize != NULL) {
if (retval == 2 || retval == 6)
return (1);
- *hpasize = lba;
+ *hpasize = lba + 1;
}
return (0);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"