Richard Weinberger
8535639810
um: fix ubd cow size
...
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>
CC: stable@kernel.org
2011-11-02 14:15:42 +01:00
..
2011-11-02 14:15:28 +01:00
2011-11-02 14:15:11 +01:00
2011-11-02 14:15:12 +01:00
2011-11-02 14:15:12 +01:00
2011-11-02 14:14:44 +01:00
2011-07-25 20:57:13 -07:00
2008-12-04 15:07:33 -08:00
2011-11-02 14:14:44 +01:00
2007-10-16 09:43:08 -07:00
2011-11-02 14:14:44 +01:00
2010-10-22 10:52:56 -07:00
2011-11-02 14:14:44 +01:00
2010-10-22 10:43:11 -07:00
2011-11-02 14:15:12 +01:00
2011-11-02 14:15:12 +01:00
2011-05-25 08:39:41 -07:00
2011-03-14 09:15:28 -04:00
2011-11-02 14:15:12 +01:00
2011-11-02 14:14:44 +01:00
2011-11-02 14:15:12 +01:00
2011-04-10 17:01:05 +02:00
2011-07-25 20:57:12 -07:00
2011-11-02 14:14:44 +01:00
2007-10-20 01:23:03 +02:00
2008-12-04 15:07:33 -08:00
2011-11-02 14:14:44 +01:00
2009-04-01 08:59:17 -07:00
2010-03-30 22:02:32 +09:00
2011-11-02 14:14:44 +01:00
2009-04-01 08:59:17 -07:00
2011-11-02 14:14:44 +01:00
2010-10-15 15:53:27 +02:00
2009-06-25 11:22:13 -07:00
2011-11-02 14:14:44 +01:00
2009-06-25 11:22:13 -07:00
2011-11-02 14:14:44 +01:00
2011-11-02 14:15:12 +01:00
2009-04-01 08:59:17 -07:00
2007-10-20 01:23:03 +02:00
2011-11-02 14:15:12 +01:00
2009-04-01 08:59:17 -07:00
2011-11-02 14:14:44 +01:00
2011-11-02 14:15:42 +01:00
2011-11-02 14:14:44 +01:00
2011-11-02 14:15:22 +01:00
2011-05-25 08:39:41 -07:00
2011-11-02 14:14:44 +01:00
2011-05-25 08:39:41 -07:00
2008-12-04 15:07:33 -08:00
2011-11-02 14:14:44 +01:00
2007-10-16 09:43:05 -07:00
2007-07-16 09:05:38 -07:00
2011-11-02 14:14:44 +01:00
2009-04-01 08:59:17 -07:00