summaryrefslogtreecommitdiff
path: root/ipv6.h
diff options
context:
space:
mode:
Diffstat (limited to 'ipv6.h')
0 files changed, 0 insertions, 0 deletions
olspan='2' class='oid'>7a401744d517864f8f2f2afba589e58a71d03aa6 (patch) tree4b1a2b01a8d77ff27dfbe6779f4eb65c6a47a757 /tools/hv/hv_vss_daemon.c parent8d9560ebcc6448472b3afe8f36f37d6b0de8f5a4 (diff)
Tools: hv: vssdaemon: report freeze errors
When ioctl(fd, FIFREEZE, 0) results in an error we cannot report it to syslog instantly since that can cause write to a frozen disk. However, the name of the filesystem which caused the error and errno are valuable and we would like to get a nice human-readable message in the log. Save errno before calling vss_operate(VSS_OP_THAW) and report the error right after. Unfortunately, FITHAW errors cannot be reported the same way as we need to finish thawing all filesystems before calling syslog(). We should also avoid calling endmntent() for the second time in case we encountered an error during freezing of '/' as it usually results in SEGSEGV. Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Acked-by: Dexuan Cui <decui@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/hv/hv_vss_daemon.c')