X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fntfs-3g_apply.c;fp=src%2Fntfs-3g_apply.c;h=486f889063e2bb290315e756f9b47fa24c3666f3;hp=acf1b95485ac61d2132897bd6eb6c7434aefb085;hb=e71da36cde7b8ac41bf5a2bf531bfc0611895b36;hpb=ec0ddfdcfb88119f6918a3901ca865a72b89e9fd diff --git a/src/ntfs-3g_apply.c b/src/ntfs-3g_apply.c index acf1b954..486f8890 100644 --- a/src/ntfs-3g_apply.c +++ b/src/ntfs-3g_apply.c @@ -805,11 +805,14 @@ out: return ret; } -/* Note: contrary to its documentation, ntfs_attr_pwrite() can return a short - * count in non-error cases --- specifically, when writing to a compressed - * attribute and the requested count exceeds the size of an NTFS "compression - * block". Therefore, we must continue calling ntfs_attr_pwrite() until all - * bytes have been written or a real error has occurred. */ +/* + * Note: prior to NTFS-3G version 2016.2.22, ntfs_attr_pwrite() could return a + * short count in non-error cases, contrary to its documentation. Specifically, + * a short count could be returned when writing to a compressed attribute and + * the requested count exceeded the size of an NTFS "compression block". + * Therefore, we must continue calling ntfs_attr_pwrite() until all bytes have + * been written or a real error has occurred. + */ static bool ntfs_3g_full_pwrite(ntfs_attr *na, u64 offset, size_t size, const u8 *data) {