Tao Ma
2d1ff3c75a
xfs: Make fiemap work in query mode.
...
According to Documentation/filesystems/fiemap.txt, If fm_extent_count
is zero, then the fm_extents[] array is ignored (no extents will be
returned), and the fm_mapped_extents count will hold the number of
extents needed.
But as the commit 97db39a1f6 has changed
bmv_count to the caller's input buffer, this number query function can't
work any more. As this commit is written to change bmv_count from
MAXEXTNUM because of ENOMEM.
This patch just try to set bm.bmv_count to something sane.
Thanks to Dave Chinner <david@fromorbit.com > for the suggestion.
Cc: Eric Sandeen <sandeen@redhat.com >
Cc: Alex Elder <aelder@sgi.com >
Reviewed-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Tao Ma <tao.ma@oracle.com >
2010-05-19 09:58:16 -05:00
..
2010-04-22 11:42:00 +02:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-04-28 07:56:05 -07:00
2010-03-30 22:02:32 +09:00
2010-05-10 09:48:10 -07:00
2010-03-30 22:02:32 +09:00
2010-03-05 13:25:52 -05:00
2010-05-15 12:55:31 -07:00
2010-05-12 18:23:58 -07:00
2010-05-11 21:20:38 -07:00
2010-05-13 10:36:16 -07:00
2010-04-22 12:12:40 +02:00
2010-05-15 07:16:33 -04:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-04-22 12:22:04 +02:00
2010-04-29 20:35:29 +02:00
2010-04-12 21:11:25 +02:00
2010-04-12 21:11:39 +02:00
2010-04-25 10:01:51 -07:00
2010-04-05 11:37:28 +09:00
2010-03-30 22:02:32 +09:00
2010-04-07 08:38:05 -07:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-03 14:08:00 -05:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-05-15 07:16:34 -04:00
2010-03-30 22:02:32 +09:00
2010-05-15 07:16:33 -04:00
2010-03-30 22:02:32 +09:00
2010-04-22 12:31:11 +02:00
2010-05-01 12:37:18 -04:00
2010-03-30 22:02:32 +09:00
2010-04-26 15:39:08 -04:00
2010-05-03 07:36:01 -07:00
2010-05-14 11:49:42 -07:00
2010-03-30 22:02:32 +09:00
2010-05-03 19:15:49 -07:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-05-11 17:33:41 -07:00
2010-04-20 18:25:25 +02:00
2010-03-30 22:02:32 +09:00
2010-04-24 11:31:24 -07:00
2010-04-22 12:37:07 +02:00
2010-04-25 02:09:05 +01:00
2010-03-30 22:02:32 +09:00
2010-05-15 07:16:33 -04:00
2010-03-30 22:02:32 +09:00
2010-04-08 15:35:20 +02:00
2010-03-12 15:52:35 -08:00
2010-05-19 09:58:16 -05:00
2010-03-30 22:02:32 +09:00
2010-03-06 11:26:29 -08:00
2010-03-30 22:02:32 +09:00
2010-04-27 09:01:26 -07:00
2010-03-06 11:26:46 -08:00
2010-03-30 22:02:32 +09:00
2010-04-21 13:28:49 +10:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-19 08:05:10 +01:00
2010-04-24 11:31:26 -07:00
2010-03-12 16:04:50 -08:00
2010-03-06 11:26:45 -08:00
2010-04-29 08:44:37 -07:00
2010-05-11 17:33:41 -07:00
2010-03-03 14:13:08 -05:00
2010-03-30 22:02:32 +09:00
2010-05-11 17:33:41 -07:00
2010-03-06 11:26:29 -08:00
2010-03-30 22:02:32 +09:00
2010-03-06 11:26:25 -08:00
2010-03-06 11:26:29 -08:00
2010-03-30 22:02:32 +09:00
2010-04-09 11:50:29 -07:00
2010-03-30 22:02:32 +09:00
2010-03-05 00:20:30 +01:00
2010-03-03 14:07:59 -05:00
2010-04-23 10:39:48 -07:00
2010-03-30 22:02:32 +09:00
2010-03-19 09:43:06 -07:00
2010-03-30 22:02:32 +09:00
2010-03-08 16:55:37 +01:00
2010-03-19 09:43:06 -07:00
2010-03-30 22:02:32 +09:00
2010-05-15 07:16:33 -04:00
2010-05-15 07:16:33 -04:00
2010-03-03 13:00:21 -05:00
2010-03-30 22:02:32 +09:00
2010-03-03 13:00:22 -05:00
2010-03-03 14:07:55 -05:00
2010-03-24 16:43:29 -07:00
2010-03-12 15:52:32 -08:00
2010-03-07 15:48:26 -08:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-04-29 20:33:35 +02:00
2010-04-25 08:54:42 +02:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00