[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] [PATCH] New tool: virt-format



On 01/18/2012 03:12 PM, Paolo Bonzini wrote:
On 01/17/2012 07:19 PM, Török Edwin wrote:

I don't know if it is possible to
pass the SSD erase block size up through the virt stack.

I was thinking more about a command-line flag to specify alignment.
My SSD reports 512 bytes as both logical and physical sector size, and
thats a physical drive.
Only my HDD reports a 4096 physical sector size (512 logical).

What do you have for the SSD in /sys/block/sda/discard_alignment?

# cat /sys/block/sdg/discard_alignment
0

# hdparm -I /dev/sdg

/dev/sdg:

ATA device, with non-removable media
     Model Number:       OCZ-VERTEX2
     Serial Number:      OCZ-RWK816SY5C086YHS
     Firmware Revision:  1.35
     Transport:          Serial
Standards:
     Used: unknown (minor revision code 0x0028)
     Supported: 8 7 6 5
     Likely used: 8
Configuration:
     Logical            max     current
     cylinders  16383   16383
     heads              16      16
     sectors/track      63      63
     --
     CHS current addressable sectors:   16514064
     LBA    user addressable sectors:  175836528
     LBA48  user addressable sectors:  175836528
     Logical  Sector size:                   512 bytes
     Physical Sector size:                   512 bytes
     Logical Sector-0 offset:                  0 bytes
     device size with M = 1024*1024:       85857 MBytes
     device size with M = 1000*1000:       90028 MBytes (90 GB)
     cache/buffer size  = unknown
     Nominal Media Rotation Rate: Solid State Device

Best regards,
--Edwin


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]