e2fsprogs/debian
Theodore Ts'o bb1158b92e mke2fs: account for physical as well as logical sector size
Some devices, notably 4k sector drives, may have a 512 logical
sector size, mapped onto a 4k physical sector size.

When mke2fs is ratcheting down the blocksize for small filesystems,
or when a blocksize is specified on the commandline, we should not
willingly go below the physical sector size of the device.

When a blocksize is specified, we -must- not go below
the logical sector size of the device.

Add a new library function, ext2fs_get_device_phys_sectsize()
to get the physical sector size if possible, and adjust the
logic in mke2fs to enforce the above rules.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2010-05-17 23:04:40 -04:00
..
attic Many files: 2001-05-09 04:51:07 +00:00
changelog Update release notes, version string, etc. for e2fsprogs 1.41.11 release 2010-03-15 00:57:42 -04:00
comerr-dev.doc-base debian: Fix FTBFS problem caused by texi2html changing its output location 2009-11-29 20:19:10 -05:00
comerr-dev.examples Synchronize with Debian release 1.21+1.22-WIP-0620-1 2001-06-22 23:05:23 -04:00
comerr-dev.files Add pkg-config files to e2fsprogs's libraries. 2005-01-26 12:59:25 -05:00
compat debian: Update debhelper compat level to 7 2009-04-20 08:23:25 -04:00
control.in debian: Update compliance to debian policy to 3.8.4 2010-03-15 00:56:58 -04:00
e2fsck-static.copyright debian: Update copyright files to point the correct common license files 2009-04-20 07:49:26 -04:00
e2fsck-static.files changelog, control, rules, e2fsck-static.files, e2fsprogs.copyright: 2001-05-21 02:48:41 +00:00
e2fslibs-dev.doc-base debian: The doc-base section should be Programming, not Apps/Programming 2008-04-27 07:53:02 -04:00
e2fslibs-dev.files Add pkg-config files to e2fsprogs's libraries. 2005-01-26 12:59:25 -05:00
e2fslibs.copyright debian: Update copyright files to point the correct common license files 2009-04-20 07:49:26 -04:00
e2fslibs.files Separate out shared libraries out of e2fsprogs to real pacakges: 2003-07-25 07:03:00 -04:00
e2fslibs.symbols mke2fs: account for physical as well as logical sector size 2010-05-17 23:04:40 -04:00
e2fsprogs-udeb.shlibs.local debian: Fix dependencies field in the udeb packages 2008-09-04 22:39:47 -04:00
e2fsprogs.copyright debian: Update copyright files to point the correct common license files 2009-04-20 07:49:26 -04:00
e2fsprogs.docs Many files: 2001-05-09 04:51:07 +00:00
e2fsprogs.files Update the debian build files to deal with /etc/mke2fs.conf 2006-03-27 01:11:06 -05:00
e2fsprogs.shlibs.local Update debian changelog 2003-08-31 23:07:16 -04:00
initrd-tools.e2fsprogs debian: Fix mkinitfs on x86_64 systems 2008-11-16 10:35:41 -05:00
initrd.ext3-add-journal Avoid trying to mount the root device if it is an NFS device. 2005-12-10 22:57:05 -05:00
libblkid-dev.files Add pkg-config files to e2fsprogs's libraries. 2005-01-26 12:59:25 -05:00
libblkid.copyright debian: Update copyright files to point the correct common license files 2009-04-20 07:49:26 -04:00
libblkid1.files Move the blkid and uuidgen programs out of library packages and into e2fsprogs 2005-12-31 01:11:06 -05:00
libblkid1.symbols Add more historical information into the debian/*.symbols files 2008-09-05 11:10:47 -04:00
libcomerr2.copyright Many files: 2001-05-09 04:51:07 +00:00
libcomerr2.files Separate out shared libraries out of e2fsprogs to real pacakges: 2003-07-25 07:03:00 -04:00
libcomerr2.symbols Update release notes, version string, etc. for e2fsprogs 1.41.11 release 2010-03-15 00:57:42 -04:00
libss2.copyright Many files: 2001-06-15 22:54:34 +00:00
libss2.files Separate out shared libraries out of e2fsprogs to real pacakges: 2003-07-25 07:03:00 -04:00
libss2.symbols Add more historical information into the debian/*.symbols files 2008-09-05 11:10:47 -04:00
libuuid1.copyright Change the license on the UUID library to be 3-clause BSD-style 2004-03-20 14:02:24 -05:00
libuuid1.files Move the blkid and uuidgen programs out of library packages and into e2fsprogs 2005-12-31 01:11:06 -05:00
libuuid1.postinst debian: Fix postinstall scripts when the user/group is in LDAP 2008-08-29 20:03:03 -04:00
libuuid1.postrm debian: Fix all postinst/prerm/postrm scripts to include debhelper additions 2008-01-01 02:20:07 -05:00
libuuid1.symbols Add more historical information into the debian/*.symbols files 2008-09-05 11:10:47 -04:00
rules Install fsck.ext4 symlink in e2fsprogs-udeb package 2010-05-17 19:38:31 -04:00
shlibs.local Separate out shared libraries out of e2fsprogs to real pacakges: 2003-07-25 07:03:00 -04:00
source.lintian-overrides debian: Add source lintian overrides 2009-11-29 23:33:26 -05:00
ss-dev.examples Many files: 2001-05-09 04:51:07 +00:00
ss-dev.files Add pkg-config files to e2fsprogs's libraries. 2005-01-26 12:59:25 -05:00
uuid-dev.README.Debian Update Debian packaging for 1.39+1.40-WIP-2006.10.02+dfsg-1 2006-10-04 09:12:35 -04:00
uuid-dev.copyright Update Debian packaging for 1.39+1.40-WIP-2006.10.02+dfsg-1 2006-10-04 09:12:35 -04:00
uuid-dev.files Add pkg-config files to e2fsprogs's libraries. 2005-01-26 12:59:25 -05:00
uuid-runtime.copyright Add uuidd daemon to prevent duplicate time-based UUID's 2007-12-16 17:28:46 -05:00
uuid-runtime.files Add uuidd daemon to prevent duplicate time-based UUID's 2007-12-16 17:28:46 -05:00
uuid-runtime.lintian-overrides debian: Add uuid-runtime.lintian-overrides 2008-08-24 17:29:34 -04:00
uuid-runtime.postinst debian: Fix postinstall scripts when the user/group is in LDAP 2008-08-29 20:03:03 -04:00
uuid-runtime.postrm debian: Fix all postinst/prerm/postrm scripts to include debhelper additions 2008-01-01 02:20:07 -05:00
uuid-runtime.prerm debian: Add "set -e" to uuid-runtime's prerm script 2009-01-20 00:55:32 -05:00
uuid-runtime.shlibs.local Add uuidd daemon to prevent duplicate time-based UUID's 2007-12-16 17:28:46 -05:00
watch debian: Add debian/watch file 2008-08-24 17:29:33 -04:00