From 60562605250a7cc403b0ebfc8ec9106b9ec9bc88 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 31 Aug 2013 20:41:28 -0500 Subject: [PATCH] finish_write(): Fix comment --- src/write.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/write.c b/src/write.c index 1a429039..b5a3f42e 100644 --- a/src/write.c +++ b/src/write.c @@ -2083,9 +2083,11 @@ close_wim_writable(WIMStruct *wim, int write_flags) } /* + * finish_write(): + * * Finish writing a WIM file: write the lookup table, xml data, and integrity - * table, then overwrite the WIM header. Always closes the WIM file descriptor - * (wim->out_fd). + * table, then overwrite the WIM header. By default, closes the WIM file + * descriptor (@wim->out_fd) in both success and error cases. * * write_flags is a bitwise OR of the following: * @@ -2095,7 +2097,7 @@ close_wim_writable(WIMStruct *wim, int write_flags) * (public) WIMLIB_WRITE_FLAG_FSYNC: * fsync() the output file before closing it. * - * (public) WIMLIB_WRITE_FLAG_PIPABLE: + * (public) WIMLIB_WRITE_FLAG_PIPABLE: * Writing a pipable WIM, possibly to a pipe; include pipable WIM * stream headers before the lookup table and XML data, and also * write the WIM header at the end instead of seeking to the @@ -2118,6 +2120,9 @@ close_wim_writable(WIMStruct *wim, int write_flags) * Instead of overwriting the WIM header at the beginning of the * file, simply append it to the end of the file. (Used when * writing to pipe.) + * (private) WIMLIB_WRITE_FLAG_FILE_DESCRIPTOR: + * Do not close the file descriptor @wim->out_fd on either success + * on failure. * (private) WIMLIB_WRITE_FLAG_USE_EXISTING_TOTALBYTES: * Use the existing stored in the in-memory XML * information, rather than setting it to the offset of the XML -- 2.43.0