mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
Suppress fsync() error message on filesystems that don't support it.
This commit is contained in:
parent
ae9c3f1664
commit
40ec1e8a36
@ -1,5 +1,6 @@
|
|||||||
Version 2.01.15 -
|
Version 2.01.15 -
|
||||||
=================================
|
=================================
|
||||||
|
Suppress fsync() error message on filesystems that don't support it.
|
||||||
Fix yes_no_prompt() error handling.
|
Fix yes_no_prompt() error handling.
|
||||||
Add lvm.conf comment warning against multiple filter lines.
|
Add lvm.conf comment warning against multiple filter lines.
|
||||||
Tidy lvmconf.sh.
|
Tidy lvmconf.sh.
|
||||||
|
@ -666,7 +666,7 @@ static int _vg_write_file(struct format_instance *fid, struct volume_group *vg,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fsync(fd)) {
|
if (fsync(fd) && (errno != EROFS) && (errno != EINVAL)) {
|
||||||
log_sys_error("fsync", tc->path_edit);
|
log_sys_error("fsync", tc->path_edit);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -236,7 +236,7 @@ void sync_dir(const char *file)
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fsync(fd) == -1)
|
if (fsync(fd) && (errno != EROFS) && (errno != EINVAL))
|
||||||
log_sys_error("fsync", dir);
|
log_sys_error("fsync", dir);
|
||||||
|
|
||||||
close(fd);
|
close(fd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user