diff options
author | David Sterba <dsterba@suse.com> | 2016-11-15 15:09:08 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-11-23 10:50:16 +0100 |
commit | 028476f19c0b6fd8cd5069837fcb3f0faf9d0173 (patch) | |
tree | a779f6a8d9367d05fb4e32768a4ac7544b05e068 /send-stream.c | |
parent | bcf81d9457fc33b5b21cc5414e17d75e5e75c4d4 (diff) |
btrfs-progs: send-stream: document return values of some functions
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'send-stream.c')
-rw-r--r-- | send-stream.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/send-stream.c b/send-stream.c index 913a17ff..d2de9d39 100644 --- a/send-stream.c +++ b/send-stream.c @@ -37,6 +37,13 @@ struct btrfs_send_stream { void *user; }; +/* + * Read len bytes to buf. + * Return: + * 0 - success + * < 0 - negative errno in case of error + * > 0 - no data read, EOF + */ static int read_buf(struct btrfs_send_stream *sctx, char *buf, size_t len) { int ret; @@ -68,6 +75,10 @@ out: /* * Reads a single command from kernel space and decodes the TLV's into * sctx->cmd_attrs + * + * Returns: + * 0 - success + * < 0 - an error in the command */ static int read_cmd(struct btrfs_send_stream *sctx) { |