Module Name: src
Committed By: jakllsch
Date: Sun Feb 23 15:00:53 UTC 2025
Modified Files:
src/sbin/atactl: atactl.c
Log Message:
atap_logical_align is already what we want, we don't have to subtract it
from the logical blocks per physical block number.
To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 src/sbin/atactl/atactl.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/atactl/atactl.c
diff -u src/sbin/atactl/atactl.c:1.85 src/sbin/atactl/atactl.c:1.86
--- src/sbin/atactl/atactl.c:1.85 Sun Dec 20 10:19:30 2020
+++ src/sbin/atactl/atactl.c Sun Feb 23 15:00:53 2025
@@ -1,4 +1,4 @@
-/* $NetBSD: atactl.c,v 1.85 2020/12/20 10:19:30 jmcneill Exp $ */
+/* $NetBSD: atactl.c,v 1.86 2025/02/23 15:00:53 jakllsch Exp $ */
/*-
* Copyright (c) 1998, 2019 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: atactl.c,v 1.85 2020/12/20 10:19:30 jmcneill Exp $");
+__RCSID("$NetBSD: atactl.c,v 1.86 2025/02/23 15:00:53 jakllsch Exp $");
#endif
@@ -1434,8 +1434,7 @@ device_identify(int argc, char *argv[])
if ((inqbuf->atap_logical_align &
ATA_LA_VALID_MASK) == ATA_LA_VALID) {
printf("First physically aligned sector: %d\n",
- lb_per_pb - (inqbuf->atap_logical_align &
- ATA_LA_MASK));
+ inqbuf->atap_logical_align & ATA_LA_MASK);
}
}
}