Skip to content

Commit

Permalink
lib-fs: Moved fs_write_stream_abort_parent() to fs-api-private.h
Browse files Browse the repository at this point in the history
Only fs wrapper drivers are supposed to call it.
  • Loading branch information
sirainen committed Sep 9, 2016
1 parent 7963367 commit 67c9729
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/lib-fs/fs-api-private.h
Expand Up @@ -172,4 +172,8 @@ int fs_default_copy(struct fs_file *src, struct fs_file *dest);

void fs_file_timing_end(struct fs_file *file, enum fs_op op);

/* Same as fs_write_stream_abort_error(), except it closes the *parent* file
and error is left untouched */
void fs_write_stream_abort_parent(struct fs_file *file, struct ostream **output);

#endif
3 changes: 0 additions & 3 deletions src/lib-fs/fs-api.h
Expand Up @@ -277,9 +277,6 @@ int fs_write_stream_finish_async(struct fs_file *file);
void fs_write_stream_abort(struct fs_file *file, struct ostream **output);
void fs_write_stream_abort_error(struct fs_file *file, struct ostream **output, const char *error_fmt, ...) ATTR_FORMAT(3, 4);

/* Same as above, except it closes the *parent* file and error is left untouched */
void fs_write_stream_abort_parent(struct fs_file *file, struct ostream **output);

/* Set a hash to the following write. The storage can then verify that the
input data matches the specified hash, or fail if it doesn't. Typically
implemented by Content-MD5 header. */
Expand Down

0 comments on commit 67c9729

Please sign in to comment.