ntfs_fuse_read(): log the details if it fails

master
szaka 2007-04-22 21:03:06 +00:00
parent e3ae577118
commit 6174a9365a
1 changed files with 2 additions and 2 deletions

View File

@ -683,8 +683,8 @@ static int ntfs_fuse_read(const char *org_path, char *buf, size_t size,
while (size) {
res = ntfs_attr_pread(na, offset, size, buf);
if (res < (s64)size)
ntfs_log_error("ntfs_attr_pread returned less bytes "
"than requested.\n");
ntfs_log_perror("ntfs_attr_pread partial write (%lld: "
"%lld <> %d)", (s64)offset, (s64)size, res);
if (res <= 0) {
res = -errno;
goto exit;