diff options
author | Alexander Motin <mav@FreeBSD.org> | 2009-11-04 15:24:32 +0000 |
---|---|---|
committer | Alexander Motin <mav@FreeBSD.org> | 2009-11-04 15:24:32 +0000 |
commit | c1bd46c2d37b58621ee30075a6bb7262e83f2133 (patch) | |
tree | f33dd1fdc78f880e92030418881df2365f86b4d7 /sbin/camcontrol/camcontrol.c | |
parent | c82b245af96d94a1781ff2249e414f565c49cc25 (diff) | |
download | src-c1bd46c2d37b58621ee30075a6bb7262e83f2133.tar.gz src-c1bd46c2d37b58621ee30075a6bb7262e83f2133.zip |
MFp4:
- Add support for sector size > 512 bytes and physical sector of several
logical sectors, introduced by ATA-7 specification.
- Remove some obsoleted code.
Notes
Notes:
svn path=/head/; revision=198897
Diffstat (limited to 'sbin/camcontrol/camcontrol.c')
-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 c0753e7b621c..728b691c6dce 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)) |