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:36:19 -0800 |
commit | 5f0d9e03e7e0792fbd36ba9fb9859f0ef7956a20 (patch) | |
tree | cd9ef9985579e0a316808981ba2d00c834eff8d2 /fs/proc/Kconfig | |
parent | 73e2fc5d34007574d25d00e7088bbd42e988bb3e (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 'fs/proc/Kconfig')
0 files changed, 0 insertions, 0 deletions