don't flood logs with ENOSPC errors (full disk)
parent
a5281b6114
commit
8a12e507c6
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue