]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - fs/hfsplus/wrapper.c
hfsplus: use raw bio access for the volume headers
authorChristoph Hellwig <hch@tuxera.com>
Tue, 23 Nov 2010 13:37:47 +0000 (14:37 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 23 Nov 2010 13:37:47 +0000 (14:37 +0100)
commit52399b171dfaea02b6944cd6feba49b624147126
tree199eda8c91a51fa1d4e3c792abd97d9c0a50ae26
parent3b5ce8ae31e3c66655207907527476bbd3e5063b
hfsplus: use raw bio access for the volume headers

The hfsplus backup volume header is located two blocks from the end of
the device.  In case of device sizes that are not 4k aligned this means
we can't access it using buffer_heads when using the default 4k block
size.

Switch to using raw bios to read/write all buffer headers.  We were not
relying on any caching behaviour of the buffer heads anyway.  Additionally
always read in the backup volume header during mount to verify that we
can actually read it.

Signed-off-by: Christoph Hellwig <hch@tuxera.com>
fs/hfsplus/hfsplus_fs.h
fs/hfsplus/super.c
fs/hfsplus/wrapper.c