2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:28 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:32 -08:00
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
|
|
|
|
|
2008-02-02 22:37:07 +01:00
|
|
|
|
2008-04-17 09:47:48 +02:00
|
|
|
|
2012-06-27 21:23:07 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-06-18 19:38:24 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
udf: fix for pathetic mount times in case of invalid file system
The UDF driver was not strict enough about checking the IDs in the
VSDs when mounting, which resulted in reading through all the sectors
of the block device in some unfortunate cases. Eg, trying to mount my
uninitialized 200G SSD partition (all 0xFF bytes) took ~350 minutes to
fail, because the code expected some of the valid IDs or a zero byte.
During this, the mount couldn't be killed, sync from the cmdline
blocked, and the machine froze into the shutdown. Valid filesystems
(extX, btrfs, ntfs) were rejected by the mere accident of having a
zero byte at just the right place in some of their sectors, close
enough to the beginning not to generate excess I/O. The fix adds a
hard limit on the VSD sector offset, adds the two missing VSD IDs, and
stops scanning when encountering an invalid ID. Also replaced the
magic number 32768 with a more meaningful #define, and supressed the
bogus message about failing to read the first sector if no UDF fs was
detected.
Signed-off-by: Peter A. Felvegi <petschy@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2013-10-18 20:07:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 19:27:56 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-02-06 12:45:27 -05:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-16 18:27:37 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-23 02:02:58 -07:00
|
|
|
|
2011-12-08 21:32:45 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-09-12 22:00:15 +02:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2013-09-12 22:00:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2010-07-25 00:46:55 +04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2010-07-25 00:46:55 +04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
|
|
|
|
|
2010-07-25 00:46:55 +04:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-03-11 07:05:42 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:28 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2006-08-13 23:24:18 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-11-16 18:40:47 +01:00
|
|
|
|
2013-01-19 11:17:14 +09:00
|
|
|
|
|
|
|
|
|
2006-08-13 23:24:18 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-01-07 17:49:49 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2011-01-07 17:49:49 +11:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-07-25 19:45:34 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-05-16 22:10:57 -07:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2014-02-01 15:45:18 +08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2016-01-14 15:18:21 -08:00
|
|
|
|
|
|
|
|
|
2007-07-20 10:11:58 +09:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-26 11:33:07 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-09-27 01:49:40 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-02-12 00:55:41 -08:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-06-07 00:43:39 -04:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2009-03-16 18:27:37 +01:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-07-26 03:18:29 -04:00
|
|
|
|
2012-02-10 12:20:35 -08:00
|
|
|
|
|
|
|
|
|
2011-07-26 03:18:29 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:32 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-08-15 16:45:44 +02:00
|
|
|
|
2008-02-08 04:20:32 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-27 22:27:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-01-22 15:11:02 -08:00
|
|
|
|
2012-06-27 22:27:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-08-15 17:03:06 +02:00
|
|
|
|
|
|
|
|
|
2013-01-14 22:53:47 +01:00
|
|
|
|
2012-06-27 22:27:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-08 21:32:45 -05:00
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
2011-12-08 21:32:45 -05:00
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-11 15:57:47 +01:00
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-02-10 12:20:35 -08:00
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
2012-02-10 12:20:35 -08:00
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
2011-07-26 03:18:29 -04:00
|
|
|
|
2008-12-02 13:40:11 +01:00
|
|
|
|
2011-07-26 03:18:29 -04:00
|
|
|
|
2008-12-02 13:40:11 +01:00
|
|
|
|
2011-07-26 03:18:29 -04:00
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-11-16 20:52:19 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-11-16 20:52:19 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-10-13 10:46:57 +01:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-11-16 20:52:19 +01:00
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2014-01-29 17:13:16 +08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-06 09:16:49 +01:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-01-29 17:13:16 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-11 15:57:47 +01:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-02-10 12:20:35 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-31 00:39:40 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-02-10 12:20:35 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-31 00:39:40 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-11-16 20:52:19 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2010-05-19 07:16:40 -04:00
|
|
|
|
2013-09-12 22:00:15 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-03-13 10:14:33 -04:00
|
|
|
|
2013-09-12 22:00:15 +02:00
|
|
|
|
|
|
|
|
|
2013-07-25 16:15:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-11-16 20:52:19 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2010-10-20 22:17:28 +02:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-11-16 20:52:19 +01:00
|
|
|
|
|
|
|
|
|
2010-10-20 22:17:28 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-07-17 08:45:34 +01:00
|
|
|
|
2010-05-19 07:16:40 -04:00
|
|
|
|
|
|
|
|
|
2010-05-19 16:28:56 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2010-05-19 16:28:56 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2010-05-19 07:16:40 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
udf: fix for pathetic mount times in case of invalid file system
The UDF driver was not strict enough about checking the IDs in the
VSDs when mounting, which resulted in reading through all the sectors
of the block device in some unfortunate cases. Eg, trying to mount my
uninitialized 200G SSD partition (all 0xFF bytes) took ~350 minutes to
fail, because the code expected some of the valid IDs or a zero byte.
During this, the mount couldn't be killed, sync from the cmdline
blocked, and the machine froze into the shutdown. Valid filesystems
(extX, btrfs, ntfs) were rejected by the mere accident of having a
zero byte at just the right place in some of their sectors, close
enough to the beginning not to generate excess I/O. The fix adds a
hard limit on the VSD sector offset, adds the two missing VSD IDs, and
stops scanning when encountering an invalid ID. Also replaced the
magic number 32768 with a more meaningful #define, and supressed the
bogus message about failing to read the first sector if no UDF fs was
detected.
Signed-off-by: Peter A. Felvegi <petschy@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2013-10-18 20:07:44 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-10-16 11:38:11 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-04-14 17:13:01 +02:00
|
|
|
|
|
|
|
|
|
udf: fix for pathetic mount times in case of invalid file system
The UDF driver was not strict enough about checking the IDs in the
VSDs when mounting, which resulted in reading through all the sectors
of the block device in some unfortunate cases. Eg, trying to mount my
uninitialized 200G SSD partition (all 0xFF bytes) took ~350 minutes to
fail, because the code expected some of the valid IDs or a zero byte.
During this, the mount couldn't be killed, sync from the cmdline
blocked, and the machine froze into the shutdown. Valid filesystems
(extX, btrfs, ntfs) were rejected by the mere accident of having a
zero byte at just the right place in some of their sectors, close
enough to the beginning not to generate excess I/O. The fix adds a
hard limit on the VSD sector offset, adds the two missing VSD IDs, and
stops scanning when encountering an invalid ID. Also replaced the
magic number 32768 with a more meaningful #define, and supressed the
bogus message about failing to read the first sector if no UDF fs was
detected.
Signed-off-by: Peter A. Felvegi <petschy@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2013-10-18 20:07:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:28 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
udf: fix for pathetic mount times in case of invalid file system
The UDF driver was not strict enough about checking the IDs in the
VSDs when mounting, which resulted in reading through all the sectors
of the block device in some unfortunate cases. Eg, trying to mount my
uninitialized 200G SSD partition (all 0xFF bytes) took ~350 minutes to
fail, because the code expected some of the valid IDs or a zero byte.
During this, the mount couldn't be killed, sync from the cmdline
blocked, and the machine froze into the shutdown. Valid filesystems
(extX, btrfs, ntfs) were rejected by the mere accident of having a
zero byte at just the right place in some of their sectors, close
enough to the beginning not to generate excess I/O. The fix adds a
hard limit on the VSD sector offset, adds the two missing VSD IDs, and
stops scanning when encountering an invalid ID. Also replaced the
magic number 32768 with a more meaningful #define, and supressed the
bogus message about failing to read the first sector if no UDF fs was
detected.
Signed-off-by: Peter A. Felvegi <petschy@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2013-10-18 20:07:44 +02:00
|
|
|
|
2008-02-08 04:20:28 -08:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:28 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-05-08 00:35:16 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:28 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:28 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
udf: fix for pathetic mount times in case of invalid file system
The UDF driver was not strict enough about checking the IDs in the
VSDs when mounting, which resulted in reading through all the sectors
of the block device in some unfortunate cases. Eg, trying to mount my
uninitialized 200G SSD partition (all 0xFF bytes) took ~350 minutes to
fail, because the code expected some of the valid IDs or a zero byte.
During this, the mount couldn't be killed, sync from the cmdline
blocked, and the machine froze into the shutdown. Valid filesystems
(extX, btrfs, ntfs) were rejected by the mere accident of having a
zero byte at just the right place in some of their sectors, close
enough to the beginning not to generate excess I/O. The fix adds a
hard limit on the VSD sector offset, adds the two missing VSD IDs, and
stops scanning when encountering an invalid ID. Also replaced the
magic number 32768 with a more meaningful #define, and supressed the
bogus message about failing to read the first sector if no UDF fs was
detected.
Signed-off-by: Peter A. Felvegi <petschy@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2013-10-18 20:07:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-05-08 00:35:16 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
udf: fix for pathetic mount times in case of invalid file system
The UDF driver was not strict enough about checking the IDs in the
VSDs when mounting, which resulted in reading through all the sectors
of the block device in some unfortunate cases. Eg, trying to mount my
uninitialized 200G SSD partition (all 0xFF bytes) took ~350 minutes to
fail, because the code expected some of the valid IDs or a zero byte.
During this, the mount couldn't be killed, sync from the cmdline
blocked, and the machine froze into the shutdown. Valid filesystems
(extX, btrfs, ntfs) were rejected by the mere accident of having a
zero byte at just the right place in some of their sectors, close
enough to the beginning not to generate excess I/O. The fix adds a
hard limit on the VSD sector offset, adds the two missing VSD IDs, and
stops scanning when encountering an invalid ID. Also replaced the
magic number 32768 with a more meaningful #define, and supressed the
bogus message about failing to read the first sector if no UDF fs was
detected.
Signed-off-by: Peter A. Felvegi <petschy@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2013-10-18 20:07:44 +02:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:28 -08:00
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2008-10-15 12:29:03 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2007-05-08 00:35:16 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2008-02-08 04:20:28 -08:00
|
|
|
|
|
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2008-10-15 12:29:03 +02:00
|
|
|
|
2008-02-08 04:20:28 -08:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-05-08 00:35:16 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2016-01-15 02:44:22 -06:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-11-16 19:01:44 +01:00
|
|
|
|
2016-01-15 02:44:22 -06:00
|
|
|
|
2008-11-16 19:01:44 +01:00
|
|
|
|
2016-01-15 02:44:22 -06:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
2008-11-16 19:01:44 +01:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-11-16 19:01:44 +01:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-10 11:25:31 +01:00
|
|
|
|
|
|
|
|
|
2008-02-10 11:29:10 +01:00
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2008-02-10 11:29:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
udf: Fix conversion of 'dstring' fields to UTF8
Commit 9293fcfbc1812a22ad5ce1b542eb90c1bbe01be1
("udf: Remove struct ustr as non-needed intermediate storage"),
while getting rid of 'struct ustr', does not take any special care
of 'dstring' fields and effectively use fixed field length instead
of actual string length, encoded in the last byte of the field.
Also, commit 484a10f49387e4386bf2708532e75bf78ffea2cb
("udf: Merge linux specific translation into CS0 conversion function")
introduced checking of the length of the string being converted,
requiring proper alignment to number of bytes constituing each
character.
The UDF volume identifier is represented as a 32-bytes 'dstring',
and needs to be converted from CS0 to UTF8, while mounting UDF
filesystem. The changes in mentioned commits can in some cases
lead to incorrect handling of volume identifier:
- if the actual string in 'dstring' is of maximal length and
does not have zero bytes separating it from dstring encoded
length in last byte, that last byte may be included in conversion,
thus making incorrect resulting string;
- if the identifier is encoded with 2-bytes characters (compression
code is 16), the length of 31 bytes (32 bytes of field length minus
1 byte of compression code), taken as the string length, is reported
as an incorrect (unaligned) length, and the conversion fails, which
in its turn leads to volume mounting failure.
This patch introduces handling of 'dstring' encoded length field
in udf_CS0toUTF8 function, that is used in all and only cases
when 'dstring' fields are converted. Currently these cases are
processing of Volume Identifier and Volume Set Identifier fields.
The function is also renamed to udf_dstrCS0toUTF8 to distinctly
indicate that it handles 'dstring' input.
Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2016-04-25 06:19:38 -05:00
|
|
|
|
2016-01-15 02:44:22 -06:00
|
|
|
|
|
|
|
|
|
2015-04-08 21:23:54 +02:00
|
|
|
|
2016-01-15 02:44:22 -06:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
udf: Fix conversion of 'dstring' fields to UTF8
Commit 9293fcfbc1812a22ad5ce1b542eb90c1bbe01be1
("udf: Remove struct ustr as non-needed intermediate storage"),
while getting rid of 'struct ustr', does not take any special care
of 'dstring' fields and effectively use fixed field length instead
of actual string length, encoded in the last byte of the field.
Also, commit 484a10f49387e4386bf2708532e75bf78ffea2cb
("udf: Merge linux specific translation into CS0 conversion function")
introduced checking of the length of the string being converted,
requiring proper alignment to number of bytes constituing each
character.
The UDF volume identifier is represented as a 32-bytes 'dstring',
and needs to be converted from CS0 to UTF8, while mounting UDF
filesystem. The changes in mentioned commits can in some cases
lead to incorrect handling of volume identifier:
- if the actual string in 'dstring' is of maximal length and
does not have zero bytes separating it from dstring encoded
length in last byte, that last byte may be included in conversion,
thus making incorrect resulting string;
- if the identifier is encoded with 2-bytes characters (compression
code is 16), the length of 31 bytes (32 bytes of field length minus
1 byte of compression code), taken as the string length, is reported
as an incorrect (unaligned) length, and the conversion fails, which
in its turn leads to volume mounting failure.
This patch introduces handling of 'dstring' encoded length field
in udf_CS0toUTF8 function, that is used in all and only cases
when 'dstring' fields are converted. Currently these cases are
processing of Volume Identifier and Volume Set Identifier fields.
The function is also renamed to udf_dstrCS0toUTF8 to distinctly
indicate that it handles 'dstring' input.
Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2016-04-25 06:19:38 -05:00
|
|
|
|
2016-01-15 02:44:22 -06:00
|
|
|
|
|
|
|
|
|
2015-04-08 21:23:54 +02:00
|
|
|
|
2016-01-15 02:44:22 -06:00
|
|
|
|
|
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
2008-11-16 19:01:44 +01:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
2008-11-16 19:01:44 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2011-10-23 19:28:32 +09:00
|
|
|
|
2016-05-18 14:09:19 -07:00
|
|
|
|
2011-10-23 19:28:32 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-18 14:09:19 -07:00
|
|
|
|
2011-10-23 19:28:32 +09:00
|
|
|
|
2014-10-09 12:52:16 +02:00
|
|
|
|
2011-10-23 19:28:32 +09:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2011-10-23 19:28:32 +09:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-23 19:28:32 +09:00
|
|
|
|
|
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2011-10-23 19:28:32 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-18 14:09:19 -07:00
|
|
|
|
|
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-18 14:09:19 -07:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-18 14:09:19 -07:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2016-05-18 14:09:19 -07:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2011-10-23 19:28:32 +09:00
|
|
|
|
|
|
|
|
|
2016-05-18 14:09:19 -07:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2016-05-18 14:09:19 -07:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2011-10-23 19:28:32 +09:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2011-10-23 19:28:32 +09:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-18 14:09:19 -07:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
2014-10-09 12:52:16 +02:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2017-07-17 08:45:34 +01:00
|
|
|
|
2011-10-10 01:08:04 -07:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
2011-10-10 01:08:03 -07:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
|
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:34 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-14 16:15:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:34 -08:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:33 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:34 -08:00
|
|
|
|
2008-02-08 04:20:33 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-11-04 20:08:04 -07:00
|
|
|
|
2008-02-08 04:20:33 -08:00
|
|
|
|
2010-11-04 20:08:04 -07:00
|
|
|
|
2008-02-08 04:20:33 -08:00
|
|
|
|
2017-08-15 17:03:06 +02:00
|
|
|
|
2008-02-08 04:20:33 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
2014-10-09 12:52:16 +02:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
|
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
2014-10-09 12:52:16 +02:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
|
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-11-30 19:47:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2009-11-30 19:47:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2009-11-30 19:47:55 +01:00
|
|
|
|
2014-10-09 12:52:16 +02:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-11-30 19:47:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-08 02:08:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-01-06 21:54:41 +01:00
|
|
|
|
|
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
2009-11-30 19:47:55 +01:00
|
|
|
|
2009-07-14 19:30:23 +02:00
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-11-30 19:47:55 +01:00
|
|
|
|
2009-07-14 19:30:23 +02:00
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
|
|
|
|
|
2008-04-14 17:06:36 +02:00
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-08 02:08:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-04-08 02:08:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
|
|
|
|
|
2008-04-14 17:06:36 +02:00
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
2016-05-18 14:09:19 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
|
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
|
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
|
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
|
|
|
|
|
udf: fix for pathetic mount times in case of invalid file system
The UDF driver was not strict enough about checking the IDs in the
VSDs when mounting, which resulted in reading through all the sectors
of the block device in some unfortunate cases. Eg, trying to mount my
uninitialized 200G SSD partition (all 0xFF bytes) took ~350 minutes to
fail, because the code expected some of the valid IDs or a zero byte.
During this, the mount couldn't be killed, sync from the cmdline
blocked, and the machine froze into the shutdown. Valid filesystems
(extX, btrfs, ntfs) were rejected by the mere accident of having a
zero byte at just the right place in some of their sectors, close
enough to the beginning not to generate excess I/O. The fix adds a
hard limit on the VSD sector offset, adds the two missing VSD IDs, and
stops scanning when encountering an invalid ID. Also replaced the
magic number 32768 with a more meaningful #define, and supressed the
bogus message about failing to read the first sector if no UDF fs was
detected.
Signed-off-by: Peter A. Felvegi <petschy@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2013-10-18 20:07:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
|
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
2016-05-18 14:09:19 -07:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
|
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 16:15:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-07-17 08:45:34 +01:00
|
|
|
|
2013-07-25 16:15:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
2008-04-01 18:08:51 +02:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2012-06-27 21:23:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2012-06-27 21:23:07 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
2012-06-27 20:20:22 +02:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2012-06-27 20:20:22 +02:00
|
|
|
|
2012-07-10 17:58:04 +02:00
|
|
|
|
2012-06-27 20:20:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2012-06-27 20:20:22 +02:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2012-06-27 20:08:44 +02:00
|
|
|
|
|
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2012-06-27 20:20:22 +02:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-08 01:16:32 +02:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-08 01:16:32 +02:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-27 21:23:07 +02:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
|
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-24 16:47:48 +02:00
|
|
|
|
|
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
|
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2011-10-24 16:47:48 +02:00
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2008-02-08 04:20:28 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 19:27:56 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 19:27:56 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
2016-04-25 19:27:56 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 19:27:56 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2016-04-25 19:27:56 -07:00
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2016-04-25 19:27:56 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 19:27:56 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2015-12-10 17:13:41 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2015-02-04 18:15:04 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2015-12-10 17:13:41 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2015-12-10 17:13:41 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
2015-02-04 18:15:04 +01:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-05-08 00:35:16 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-27 22:27:05 +02:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-01-06 21:54:41 +01:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
2017-01-06 21:54:41 +01:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-11 15:57:47 +01:00
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2009-03-11 15:57:47 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2009-03-11 15:57:47 +01:00
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
2017-01-18 19:39:35 +01:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
udf: fix for pathetic mount times in case of invalid file system
The UDF driver was not strict enough about checking the IDs in the
VSDs when mounting, which resulted in reading through all the sectors
of the block device in some unfortunate cases. Eg, trying to mount my
uninitialized 200G SSD partition (all 0xFF bytes) took ~350 minutes to
fail, because the code expected some of the valid IDs or a zero byte.
During this, the mount couldn't be killed, sync from the cmdline
blocked, and the machine froze into the shutdown. Valid filesystems
(extX, btrfs, ntfs) were rejected by the mere accident of having a
zero byte at just the right place in some of their sectors, close
enough to the beginning not to generate excess I/O. The fix adds a
hard limit on the VSD sector offset, adds the two missing VSD IDs, and
stops scanning when encountering an invalid ID. Also replaced the
magic number 32768 with a more meaningful #define, and supressed the
bogus message about failing to read the first sector if no UDF fs was
detected.
Signed-off-by: Peter A. Felvegi <petschy@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2013-10-18 20:07:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-11 15:57:47 +01:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2009-03-11 15:57:47 +01:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2009-03-11 15:57:47 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
|
|
|
|
|
2017-01-02 19:20:55 -08:00
|
|
|
|
2009-03-16 18:27:37 +01:00
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
|
|
|
|
|
2013-09-12 22:00:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-10-20 18:49:20 +02:00
|
|
|
|
|
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
|
|
|
|
|
2017-01-02 19:20:55 -08:00
|
|
|
|
|
|
|
|
|
2009-03-16 18:27:37 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2008-04-17 09:47:48 +02:00
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-16 18:27:37 +01:00
|
|
|
|
2010-10-20 18:49:20 +02:00
|
|
|
|
2013-01-17 22:11:38 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
2017-01-02 19:20:55 -08:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
2013-09-12 22:00:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2010-10-20 18:49:20 +02:00
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
|
|
|
|
|
2017-01-02 19:20:55 -08:00
|
|
|
|
|
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2008-04-17 09:47:48 +02:00
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
|
|
|
|
|
2011-12-23 11:53:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
2009-03-16 18:27:37 +01:00
|
|
|
|
2010-10-20 18:49:20 +02:00
|
|
|
|
2013-01-17 22:11:38 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2010-10-20 18:28:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2015-08-20 14:50:07 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2012-02-10 12:20:35 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-12-02 13:40:11 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-08-15 16:45:44 +02:00
|
|
|
|
2010-11-16 18:40:49 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2006-03-23 03:00:44 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
2014-11-18 18:29:10 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2011-10-10 01:08:03 -07:00
|
|
|
|
2014-11-18 18:29:10 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-11-16 20:52:19 +01:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2010-10-20 22:17:28 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-30 17:22:06 +02:00
|
|
|
|
2010-05-19 07:16:44 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-05-22 17:17:49 -04:00
|
|
|
|
2017-01-18 19:39:35 +01:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
2017-01-18 19:39:35 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
2013-09-12 22:00:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-09-12 22:00:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
2013-09-12 22:00:15 +02:00
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-07-25 16:15:16 +02:00
|
|
|
|
2017-07-17 08:45:34 +01:00
|
|
|
|
2013-07-25 16:15:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
2013-07-25 16:15:16 +02:00
|
|
|
|
2017-07-17 08:45:34 +01:00
|
|
|
|
2013-07-25 16:15:16 +02:00
|
|
|
|
|
|
|
|
|
2006-10-05 21:17:50 +02:00
|
|
|
|
2006-09-29 01:59:41 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2008-02-10 11:25:31 +01:00
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-10 11:25:31 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-07-17 08:45:34 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2015-08-20 14:50:07 +02:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-15 12:29:03 +02:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-08 22:15:13 -05:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2007-05-08 00:35:21 -07:00
|
|
|
|
2012-02-06 12:45:27 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2014-11-18 17:17:46 +01:00
|
|
|
|
2014-11-18 18:29:10 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2015-08-20 14:50:07 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2012-06-27 22:27:05 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:03 -07:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2011-10-10 01:08:06 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:06 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:04 -07:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2011-10-10 01:08:06 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2011-10-10 01:08:06 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
push BKL down into ->put_super
Move BKL into ->put_super from the only caller. A couple of
filesystems had trivial enough ->put_super (only kfree and NULLing of
s_fs_info + stuff in there) to not get any locking: coda, cramfs, efs,
hugetlbfs, omfs, qnx4, shmem, all others got the full treatment. Most
of them probably don't need it, but I'd rather sort that out individually.
Preferably after all the other BKL pushdowns in that area.
[AV: original used to move lock_super() down as well; these changes are
removed since we don't do lock_super() at all in generic_shutdown_super()
now]
[AV: fuse, btrfs and xfs are known to need no damn BKL, exempt]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2009-05-05 15:40:36 +02:00
|
|
|
|
2014-11-18 17:17:46 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-07-17 08:45:34 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2012-06-27 22:27:05 +02:00
|
|
|
|
2015-01-10 19:13:32 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-16 18:27:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-06-23 02:02:58 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
2009-01-20 01:36:55 +08:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2013-09-12 22:00:15 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-01-15 02:44:21 -06:00
|
|
|
|
2009-01-20 01:36:55 +08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2008-10-15 12:29:03 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2007-05-08 00:35:16 -07:00
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2008-02-02 22:37:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2007-05-08 00:35:16 -07:00
|
|
|
|
2008-10-15 12:29:03 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2007-05-08 00:35:16 -07:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2007-05-08 00:35:14 -07:00
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-05-08 00:35:14 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2010-10-20 23:24:12 +02:00
|
|
|
|
2008-02-08 04:20:42 -08:00
|
|
|
|
2007-05-08 00:35:14 -07:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:28 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:28 -08:00
|
|
|
|
2007-05-08 00:35:16 -07:00
|
|
|
|
2010-10-20 23:24:12 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-01-06 21:53:57 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|