aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorMiao Xie <miaox@cn.fujitsu.com>2010-06-07 03:38:51 +0000
committerChris Mason <chris.mason@oracle.com>2010-06-11 11:46:11 -0400
commit4a001071d3549f596c7c3736c5dda8a3a4aba9ed (patch)
treef835cbd0779a8912aa65669bbd44ce3f756c919f /kernel
parentBtrfs: add more error checking to btrfs_dirty_inode (diff)
downloadlinux-dev-4a001071d3549f596c7c3736c5dda8a3a4aba9ed.tar.xz
linux-dev-4a001071d3549f596c7c3736c5dda8a3a4aba9ed.zip
Btrfs: fix loop device on top of btrfs
We cannot use the loop device which has been connected to a file in the btrf The reproduce steps is following: # dd if=/dev/zero of=vdev0 bs=1M count=1024 # losetup /dev/loop0 vdev0 # mkfs.btrfs /dev/loop0 ... failed to zero device start -5 The reason is that the btrfs don't implement either ->write_begin or ->write the VFS API, so we fix it by setting ->write to do_sync_write(). Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions