* [PATCH] add comments for extent_fiemap
@ 2009-06-03 2:52 Peng Tao
0 siblings, 0 replies; only message in thread
From: Peng Tao @ 2009-06-03 2:52 UTC (permalink / raw)
To: linux-btrfs; +Cc: Chris Mason, Peng Tao
This also explains btrfs fiemap ioctl() return values, especially the positive
return value, which may confuse users.
Signed-off-by: Peng Tao <bergwolf@gmail.com>
---
fs/btrfs/extent_io.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 6826018..287896e 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -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)
{
--
1.6.2.GIT
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-03 2:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-03 2:52 [PATCH] add comments for extent_fiemap Peng Tao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox