diff options
author | mav <mav@FreeBSD.org> | 2009-11-17 21:08:12 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2009-11-17 21:08:12 +0000 |
commit | d7467cf96f33efc83201cc223377081805eaf08d (patch) | |
tree | 1c48e8194477cb06b1a409f33ccbe25a8280ce86 /sbin | |
parent | 3a0f5977351f0a587f6cbe30ac15d8f28595feb4 (diff) | |
download | FreeBSD-src-d7467cf96f33efc83201cc223377081805eaf08d.zip FreeBSD-src-d7467cf96f33efc83201cc223377081805eaf08d.tar.gz |
MFC r198897:
- Add support for sector size > 512 bytes and physical sector of several
logical sectors, introduced by ATA-7 specification.
- Remove some obsoleted code.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/camcontrol/camcontrol.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c index c0753e7..728b691 100644 --- a/sbin/camcontrol/camcontrol.c +++ b/sbin/camcontrol/camcontrol.c @@ -1061,6 +1061,10 @@ atacapprint(struct ata_params *parm) printf("cylinders %d\n", parm->cylinders); printf("heads %d\n", parm->heads); printf("sectors/track %d\n", parm->sectors); + printf("sector size logical %u, physical %lu, offset %lu\n", + ata_logical_sector_size(parm), + (unsigned long)ata_physical_sector_size(parm), + (unsigned long)ata_logical_sector_offset(parm)); if (parm->config == ATA_PROTO_CFA || (parm->support.command2 & ATA_SUPPORT_CFA)) |