ntfsmount: perror => Eprintf on partial {read,write}.
parent
fe67916350
commit
39ec2a8347
|
@ -402,8 +402,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 < size)
|
||||
perror("ntfs_attr_pread returned less bytes than "
|
||||
"requested.");
|
||||
Eprintf("ntfs_attr_pread returned less bytes than "
|
||||
"requested.\n");
|
||||
if (res <= 0) {
|
||||
res = -errno;
|
||||
goto exit;
|
||||
|
@ -451,8 +451,8 @@ 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 < size)
|
||||
perror("ntfs_attr_pwrite returned less bytes than "
|
||||
"requested.");
|
||||
Eprintf("ntfs_attr_pwrite returned less bytes than "
|
||||
"requested.\n");
|
||||
if (res <= 0) {
|
||||
res = -errno;
|
||||
goto exit;
|
||||
|
|
Loading…
Reference in New Issue