commit | 3a68c6f1f071c2826e8ec6ceb810c98719a98717 | [log] [tgz] |
---|---|---|
author | Theodore Ts'o <tytso@mit.edu> | Tue Sep 13 18:39:22 2016 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Tue Sep 13 18:39:22 2016 -0400 |
tree | 55de6593b177ee0b3607434875c87d201f8e6456 | |
parent | 370a24cd33940068a890235bea2151b5f0440f56 [diff] |
libext2fs: force DIO alignment FreeBSD when operating on a block device FreeBSD (and possibly BSD systems) requires that reads and writes to block devices must be aligned, even when the O_DIRECT flag is not specified. Previously this was hard-coded to 512 bytes, but in order to properly handle Advanced Format HDD's, query the BSD kernel to determine the proper alignment to use. Signed-off-by: Theodore Ts'o <tytso@mit.edu>