diff options
author | Richard Weinberger <richard@nod.at> | 2011-11-02 13:17:27 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-11 09:43:35 -0800 |
commit | 02e66bee63c63c2bec1947553e6c5b58b3f0c67d (patch) | |
tree | d8f3e5dc1f1f718d52c1c949dfcdc77e891afab3 /include | |
parent | 9ae9f13480be10697214ed82f4a0f32681309822 (diff) |
um: fix ubd cow size
commit 8535639810e578960233ad39def3ac2157b0c3ec upstream.
ubd_file_size() cannot use ubd_dev->cow.file because at this time
ubd_dev->cow.file is not initialized.
Therefore, ubd_file_size() will always report a wrong disk size when
COW files are used.
Reading from /dev/ubd* would crash the kernel.
We have to read the correct disk size from the COW file's backing
file.
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions