diff options
author | Richard Weinberger <richard@nod.at> | 2011-11-02 13:17:27 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-07 12:32:38 -0800 |
commit | 610fba92198e257bb039e49c391bb73cd0c1b2b1 (patch) | |
tree | 4bddf6691d3715965a09c728ce1d5664021424bd /block/cfq-iosched.c | |
parent | 6ae639c55f24aebe2b395b4fefb75064a59d6e3b (diff) | |
download | lwn-610fba92198e257bb039e49c391bb73cd0c1b2b1.tar.gz lwn-610fba92198e257bb039e49c391bb73cd0c1b2b1.zip |
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 'block/cfq-iosched.c')
0 files changed, 0 insertions, 0 deletions