Skip to contentSkip to conversation

add comments for extent_fiemap

PATCH New Peng Tao 1 participant 1 message Jun 3, 2009 Btrfs file system

lore
Share & tools
lore

Peng Tao

author
#0 lore raw

PATCH 1/1 add comments for extent_fiemap

This also explains btrfs fiemap ioctl() return values, especially the positive return value, which may confuse users.

---
 fs/btrfs/extent_io.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
fs/btrfs/extent_io.c +5 -0
index 6826018..287896e 100644
@@ -2828,6 +2828,11 @@ out:
 	return sector;
 }
 
+/*
+ * Get the extents count of a file and map the extent to a user-supplied extent
+ * array. Returns 0 on success, 1 when the user-supplied extents array is full,
+ * and negetive values on failure.
+ */
 int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
 		__u64 start, __u64 len, get_extent_t *get_extent)
 {
Signature · 1 line
1.6.2.GIT