diff --git a/libntfs-3g/attrib.c b/libntfs-3g/attrib.c index acec8434..9522763b 100644 --- a/libntfs-3g/attrib.c +++ b/libntfs-3g/attrib.c @@ -988,10 +988,8 @@ static int ntfs_attr_fill_hole(ntfs_attr *na, s64 count, s64 *ofs, ((*ofs + to_write - 1) >> vol->cluster_size_bits) + 1 + (*rl)->vcn - from_vcn, lcn_seek_from, DATA_ZONE); - if (!rlc) { - ntfs_log_perror("Hole filling cluster allocation failed"); + if (!rlc) goto err_out; - } *rl = ntfs_runlists_merge(na->rl, rlc); if (!*rl) { diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index 14776930..86016bb1 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -719,9 +719,9 @@ static int ntfs_fuse_write(const char *org_path, const char *buf, size_t size, } while (size) { res = ntfs_attr_pwrite(na, offset, size, buf); - if (res < (s64)size) - ntfs_log_error("ntfs_attr_pwrite returned less bytes " - "than requested.\n"); + if (res < (s64)size && errno != ENOSPC) + ntfs_log_perror("ntfs_attr_pwrite partial write (%lld: " + "%lld <> %d)", (s64)offset, (s64)size, res); if (res <= 0) { res = -errno; goto exit;