# HG changeset patch # User Timo Sirainen # Date 1473378627 -10800 # Node ID 4e90ac53cd05bc8c451cb9c9b38f9a77c26b91f7 # Parent 097b3edfae947a87818320d39bea62c0b704eccf lib-fs: Moved fs_write_stream_abort_parent() to fs-api-private.h Only fs wrapper drivers are supposed to call it. diff -r 097b3edfae94 -r 4e90ac53cd05 src/lib-fs/fs-api-private.h --- a/src/lib-fs/fs-api-private.h Thu Sep 08 19:01:54 2016 +0300 +++ b/src/lib-fs/fs-api-private.h Fri Sep 09 02:50:27 2016 +0300 @@ -172,4 +172,8 @@ 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 diff -r 097b3edfae94 -r 4e90ac53cd05 src/lib-fs/fs-api.h --- a/src/lib-fs/fs-api.h Thu Sep 08 19:01:54 2016 +0300 +++ b/src/lib-fs/fs-api.h Fri Sep 09 02:50:27 2016 +0300 @@ -277,9 +277,6 @@ 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. */