Whamcloud - gitweb
mke2fs: Set logical/physical sector size from environment for debugging
authorTheodore Ts'o <tytso@mit.edu>
Mon, 22 Nov 2010 16:09:00 +0000 (11:09 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 22 Nov 2010 16:09:00 +0000 (11:09 -0500)
commit92eb5a339220e66e965e536bf53d63249577a93a
tree57e1a4f758bbb173c5ff153c2b16a9b0d772f282
parent1599b470fb881313c1d44594f05d578c43825312
mke2fs: Set logical/physical sector size from environment for debugging

If MKE2FS_DEVICE_SECTSIZE is set, then this will override the logical
sector size, which is the smallest sector size that can be written
atomically by the device.  (Previously MKE2FS_DEVICE_SECTSIZE set the
physical sector size, which was incorrect given its historical usage.)
The environment variable MKE2FS_DEVICE_PHYS_SECTSIZE will set the
physical sector size, which is the actual sector size used by the
device in reality.

The logical sector size is always less than or equal to the physical
sector size; and writes smaller than the physical sector size but
greather than or equal to the logical sector size will cause a
read-modify-write cycle within the device firmware (or in some
abstract layer lower than the Linux block I/O subsystem, at any rate).

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/mke2fs.c