Liu Bo
2d324f59f3
Btrfs: fix unexpected return value of fiemap
...
btrfs's fiemap is supposed to return 0 on success and return < 0 on
error. however, ret becomes 1 after looking up the last file extent:
btrfs_lookup_file_extent ->
btrfs_search_slot(..., ins_len=0, cow=0)
and if the offset is beyond EOF, we'll get 'path' pointed to the place
of potentail insertion, and ret == 1.
This may confuse applications using ioctl(FIEL_IOC_FIEMAP).
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2016-05-25 19:53:54 +02:00
..
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-03-19 18:52:29 -07:00
2016-05-25 19:53:54 +02:00
2016-04-04 10:41:08 -07:00
2016-04-25 20:54:13 +02:00
2016-04-04 10:41:08 -07:00
2016-01-23 12:24:56 -08:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-12 20:01:35 -07:00
2016-04-12 15:01:53 -07:00
2016-04-26 15:47:32 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-12 20:01:35 -07:00
2016-04-12 10:25:30 -07:00
2016-03-22 15:36:02 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-25 13:01:04 +02:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-02-27 19:15:51 -05:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-07 17:22:20 -07:00
2016-03-24 19:50:32 -07:00
2016-04-04 10:41:08 -07:00
2016-02-18 16:23:24 -08:00
2016-04-04 10:41:08 -07:00
2016-04-28 19:34:04 -07:00
2016-04-09 10:33:58 -07:00
2016-03-26 16:14:37 -04:00
2016-05-05 17:38:53 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-03-29 17:20:10 +02:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-25 15:18:50 +02:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-04-04 10:41:08 -07:00
2016-02-14 14:25:59 -08:00
2016-03-22 15:36:02 -07:00
2016-04-04 10:41:08 -07:00
2016-03-26 16:14:37 -04:00
2016-04-04 10:41:08 -07:00
2016-03-22 15:36:02 -07:00
2016-03-17 15:09:34 -07:00
2016-03-20 19:08:56 -07:00
2016-03-22 15:36:02 -07:00
2016-04-04 10:41:08 -07:00
2016-02-16 14:57:21 -07:00
2016-03-26 12:59:04 -07:00
2016-04-04 10:41:08 -07:00
2016-03-26 12:59:04 -07:00
2016-02-22 22:44:04 -05:00
2016-04-04 10:41:08 -07:00
2016-03-31 00:23:05 -04:00
2016-03-22 15:36:02 -07:00
2016-04-04 10:41:08 -07:00
2016-05-05 09:54:45 -05:00
2016-03-16 13:09:08 -04:00
2016-03-18 16:07:38 -04:00
2016-03-17 15:09:34 -07:00
2016-04-14 12:56:09 -07:00
2016-04-04 10:41:08 -07:00
2016-03-03 14:42:50 -07:00
2016-04-04 10:41:08 -07:00
2016-03-02 09:03:18 -08:00
2016-02-20 00:15:51 -05:00