hfsplus: ensure bio requests are not smaller than the hardware sectors
commitc53c89aba3ebdfc3e9acdb18bb5ee9d2f8a328d0
authorSeth Forshee <seth.forshee@canonical.com>
Mon, 18 Jul 2011 15:06:23 +0000 (18 08:06 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 25 Oct 2011 05:10:15 +0000 (25 07:10 +0200)
tree5efb64b6e1e5a055b1f9c58ebf72aa90ea7de07e
parent16b2b5c638c12ffc89753ad19edeb9baa6f59b99
hfsplus: ensure bio requests are not smaller than the hardware sectors

commit 6596528e391ad978a6a120142cba97a1d7324cb6 upstream.

Currently all bio requests are 512 bytes, which may fail for media
whose physical sector size is larger than this. Ensure these
requests are not smaller than the block device logical block size.

BugLink: http://bugs.launchpad.net/bugs/734883
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Josh Boyer <jwboyer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/hfsplus/hfsplus_fs.h
fs/hfsplus/part_tbl.c
fs/hfsplus/super.c
fs/hfsplus/wrapper.c