Richard W.M. Jones
c1a0822b79
daemon: Fix xfs_info parser because of new format.
...
The old parser had several problems: firstly it called the error path
sometimes without calling reply_with_error causing a protocol hang.
More seriously it had hard-coded line numbers, and since Fedora 21 the
output of xfs_info has changed, moving lines around.
Change the parser to be more robust against added fields by using the
first name on the line as the section name, thus 'bsize=' is
interpreted differently depending on whether it appears in the "data"
section or the "naming" section.
Ensure also that we don't call the error path without calling
reply_with_error, which is a side-effect of the above change.
(cherry picked from commit 8abd0a83b3 )
(cherry picked from commit adcdc44004 )
2013-10-17 13:22:16 +01:00
..
2013-02-14 16:18:31 +00:00
2012-12-10 16:20:34 +00:00
2013-08-24 11:36:16 +01:00
2013-02-14 16:09:25 +00:00
2013-04-29 15:36:18 +01:00
2013-02-14 16:09:25 +00:00
2013-02-14 16:09:25 +00:00
2013-02-14 16:19:01 +00:00
2013-08-24 11:30:45 +01:00
2013-02-14 16:18:31 +00:00
2013-02-14 16:09:25 +00:00
2013-08-24 11:48:53 +01:00
2013-04-11 15:24:27 +01:00
2013-04-11 15:25:49 +01:00
2009-03-03 08:58:37 +00:00
2013-02-14 16:13:29 +00:00
2013-08-24 11:38:21 +01:00
2013-02-14 16:09:25 +00:00
2013-02-14 16:21:14 +00:00
2013-02-14 16:13:29 +00:00
2013-02-14 16:09:25 +00:00
2013-02-14 16:09:25 +00:00
2013-02-14 16:09:25 +00:00
2011-11-08 14:43:07 +00:00
2013-02-14 16:13:29 +00:00
2013-02-14 16:09:25 +00:00
2013-07-26 14:32:25 +01:00
2012-03-14 19:30:46 +00:00
2013-03-31 10:12:25 +01:00
2012-08-17 16:08:14 +01:00
2013-02-14 16:18:31 +00:00
2013-02-14 16:09:25 +00:00
2013-02-14 16:09:25 +00:00
2013-02-14 16:09:25 +00:00
2012-03-08 14:30:10 +00:00
2013-02-14 16:09:25 +00:00
2013-02-14 16:13:29 +00:00
2013-08-24 11:38:21 +01:00
2013-02-14 16:13:29 +00:00
2013-02-14 16:09:25 +00:00
2013-02-14 16:09:25 +00:00
2013-08-24 11:48:48 +01:00
2013-02-14 16:09:25 +00:00
2009-11-26 11:52:44 +00:00
2013-02-14 16:18:31 +00:00
2013-02-14 16:13:29 +00:00
2012-01-21 21:31:50 +00:00
2011-11-08 14:43:07 +00:00
2013-02-14 16:09:25 +00:00
2013-07-26 15:54:59 +01:00
2013-08-24 11:38:21 +01:00
2013-02-14 16:09:25 +00:00
2013-02-14 16:18:31 +00:00
2013-02-14 16:09:25 +00:00
2013-02-14 16:20:21 +00:00
2013-02-14 16:13:29 +00:00
2013-05-28 18:48:53 +01:00
2013-08-24 11:39:37 +01:00
2013-07-26 14:38:02 +01:00
2012-12-10 16:20:34 +00:00
2012-10-17 11:12:07 +01:00
2013-08-24 11:39:28 +01:00
2013-08-24 11:36:16 +01:00
2013-02-14 16:13:29 +00:00
2013-02-14 16:18:31 +00:00
2013-08-24 11:36:04 +01:00
2011-11-08 14:43:07 +00:00
2013-03-05 18:40:59 +00:00
2012-03-13 08:23:56 +00:00
2013-02-14 16:13:29 +00:00
2013-02-14 15:07:49 +00:00
2013-02-14 16:09:25 +00:00
2013-02-14 16:09:25 +00:00
2012-12-10 16:20:34 +00:00
2013-02-14 16:09:25 +00:00
2011-11-08 14:43:07 +00:00
2012-08-17 16:08:13 +01:00
2013-02-14 16:09:25 +00:00
2013-02-14 16:09:25 +00:00
2013-02-14 16:15:03 +00:00
2013-02-14 16:18:31 +00:00
2013-06-14 13:18:33 +01:00
2012-03-14 19:30:46 +00:00
2011-11-08 14:43:07 +00:00
2013-02-14 16:18:40 +00:00
2011-12-08 11:39:58 +00:00
2012-07-30 15:16:45 +01:00
2013-02-14 16:09:25 +00:00
2013-02-14 16:13:29 +00:00
2013-10-17 13:22:16 +01:00
2013-02-14 16:15:03 +00:00
2013-02-14 16:09:25 +00:00