Files
apfstests/tests/generic
Xiong Zhou 8deb635098 generic/312: fix dev_blocks calculation
Current calculation fails when there are many same type of devices
with the testing device, eg sda1 sda2 ... sda10, sda11, sda12 ..
$(grep sda1 /proc/partitions) gets multiple numbers.

$ grep ram1 /proc/partitions
   1        1   10485760 ram1
   1       10   10485760 ram10
   1       11   10485760 ram11
   1       12   10485760 ram12
   1       13   10485760 ram13
   1       14   10485760 ram14
   1       15   10485760 ram15
$ grep -w ram1 /proc/partitions
   1        1   10485760 ram1

Fix this by adding the -w option to grep to match the block device
exactly.

Signed-off-by: Xiong Zhou <xzhou@redhat.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
2015-11-02 11:00:51 +11:00
..
2014-11-10 18:06:23 +11:00
2013-04-04 06:55:21 -05:00
2014-04-11 10:18:20 +10:00
2014-04-14 10:35:27 +10:00
2014-04-14 11:19:23 +10:00
2014-04-14 10:37:32 +10:00
2014-04-28 10:55:12 +10:00
2015-03-18 14:57:49 +11:00
2014-05-27 12:07:17 +10:00
2014-06-18 09:31:38 +10:00
2014-12-12 11:26:15 +11:00
2014-12-12 11:26:15 +11:00
2014-12-12 11:26:15 +11:00
2014-09-29 12:58:24 +10:00
2014-12-12 11:26:15 +11:00
2014-12-12 11:26:15 +11:00
2015-10-14 14:08:42 +11:00
2014-09-29 13:26:32 +10:00
2014-10-14 17:40:34 +11:00
2014-10-14 17:40:34 +11:00
2015-09-21 11:03:22 +10:00
2015-10-14 14:08:42 +11:00
2015-01-21 15:58:23 +11:00
2015-10-14 14:08:42 +11:00
2015-10-14 14:08:42 +11:00
2013-04-04 06:55:21 -05:00
2015-10-14 14:08:42 +11:00
2015-10-14 14:08:42 +11:00
2015-02-25 15:32:47 +11:00
2015-02-25 15:32:47 +11:00
2015-10-14 14:08:42 +11:00
2015-02-25 15:33:06 +11:00
2015-02-25 15:33:19 +11:00
2015-02-25 15:33:19 +11:00
2013-04-04 06:55:21 -05:00
2015-02-25 15:33:55 +11:00
2015-10-14 14:08:42 +11:00
2015-10-14 14:08:42 +11:00
2013-04-04 06:55:21 -05:00
2015-03-18 14:58:51 +11:00
2015-03-18 14:58:51 +11:00
2015-10-14 14:08:42 +11:00
2015-04-01 11:29:16 +11:00
2013-04-04 06:55:21 -05:00
2015-10-14 14:08:42 +11:00
2015-04-02 09:41:15 +11:00
2015-10-14 14:08:42 +11:00
2015-10-14 14:08:42 +11:00
2015-05-26 12:51:57 +10:00
2015-10-14 14:08:42 +11:00
2015-08-04 14:10:49 +10:00
2015-08-04 14:10:49 +10:00
2015-08-04 14:10:49 +10:00
2015-08-04 14:10:49 +10:00
2015-10-14 14:08:42 +11:00
2013-04-04 06:55:21 -05:00
2015-10-14 14:08:42 +11:00
2015-10-14 14:08:42 +11:00
2015-09-21 13:06:18 +10:00
2015-09-23 12:52:32 +10:00
2015-09-21 13:06:18 +10:00
2013-04-04 06:55:21 -05:00
2013-12-03 10:29:26 +11:00
2013-12-03 10:29:26 +11:00
2013-12-03 10:29:26 +11:00
2015-05-26 12:51:57 +10:00
2013-12-03 10:29:26 +11:00
2014-11-10 18:06:23 +11:00
2014-09-29 13:07:26 +10:00
2013-04-04 06:55:21 -05:00
2014-08-13 11:20:59 +10:00
2014-04-22 10:46:49 +10:00
2013-04-04 06:55:21 -05:00
2015-10-14 14:19:34 +11:00
2014-10-14 17:07:52 +11:00
2014-12-16 10:53:57 +11:00
2014-12-16 10:53:57 +11:00
2014-10-14 17:07:52 +11:00
2014-12-16 10:53:57 +11:00
2014-11-10 18:06:23 +11:00
2014-09-29 13:07:26 +10:00
2014-10-14 17:07:52 +11:00
2015-10-14 14:08:42 +11:00
2015-11-02 11:00:51 +11:00
2014-12-12 10:55:24 +11:00
2015-10-14 14:08:42 +11:00
2015-10-14 14:08:42 +11:00
2014-01-20 12:47:56 +11:00
2014-12-12 11:26:15 +11:00
2014-12-16 10:53:57 +11:00
2014-08-13 11:19:33 +10:00
2015-10-14 14:08:42 +11:00