summaryrefslogtreecommitdiffstats
path: root/fs/compat_ioctl.c
diff options
context:
space:
mode:
authorliubo <liubo2009@cn.fujitsu.com>2011-08-02 02:39:03 +0000
committerChris Mason <chris.mason@oracle.com>2011-08-16 21:09:15 -0400
commit38c01b9605923cfdff5413e0a12e58ee8d962257 (patch)
tree49f7197ee14581d800d927e5860de4d62b77f15b /fs/compat_ioctl.c
parent34f3e4f23ca3d259fe078f62a128d97ca83508ef (diff)
downloadblackbird-op-linux-38c01b9605923cfdff5413e0a12e58ee8d962257.tar.gz
blackbird-op-linux-38c01b9605923cfdff5413e0a12e58ee8d962257.zip
Btrfs: fix a bug of balance on full multi-disk partitions
When balancing, we'll first try to shrink devices for some space, but if it is working on a full multi-disk partition with raid protection, we may encounter a bug, that is, while shrinking, total_bytes may be less than bytes_used, and btrfs may allocate a dev extent that accesses out of device's bounds. Then we will not be able to write or read the data which stores at the end of the device, and get the followings: device fsid 0939f071-7ea3-46c8-95df-f176d773bfb6 devid 1 transid 10 /dev/sdb5 Btrfs detected SSD devices, enabling SSD mode btrfs: relocating block group 476315648 flags 9 btrfs: found 4 extents attempt to access beyond end of device sdb5: rw=145, want=546176, limit=546147 attempt to access beyond end of device sdb5: rw=145, want=546304, limit=546147 attempt to access beyond end of device sdb5: rw=145, want=546432, limit=546147 attempt to access beyond end of device sdb5: rw=145, want=546560, limit=546147 attempt to access beyond end of device Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/compat_ioctl.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud