If same device is mounted in multiple places like Vyatta does
with their installation, then VSphere snapshot would fail.

The fix is to ignore -EBUSY which means filesystem is already frozen.

See:
        https://bugzilla.vyatta.com/show_bug.cgi?id=8108
        
http://sourceforge.net/tracker/?func=detail&aid=3485535&group_id=204462&atid=989708

Patch against 8.8.1 but same issue exists in 8.8.2

---
 lib/syncDriver/syncDriverLinux.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/syncDriver/syncDriverLinux.c b/lib/syncDriver/syncDriverLinux.c
index 794a4b4..32c1a11 100644
--- a/lib/syncDriver/syncDriverLinux.c
+++ b/lib/syncDriver/syncDriverLinux.c
@@ -165,12 +165,13 @@ LinuxDriver_Freeze(const char *paths,
       if (ioctl(fd, FIFREEZE) == -1) {
          /*
           * If the ioctl does not exist, Linux will return ENOTTY. If it's not
-          * supported on the device, we get EOPNOTSUPP. Ignore the latter,
+          * supported on the device, we get EOPNOTSUPP. If filesystem is 
already
+         * frozen, then return EBUSY. Ignore the latter two,
           * since freezing does not make sense for all fs types, and some
           * Linux fs drivers may not have been hooked up in the running kernel.
           */
          close(fd);
-         if (errno != EOPNOTSUPP) {
+         if (errno != EOPNOTSUPP && errno != EBUSY) {
             Debug(LGPFX "ioctl failed: %d (%s)\n", errno, strerror(errno));
             err = first ? SD_UNAVAILABLE : SD_ERROR;
             break;
-- 
1.7.10


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
open-vm-tools-devel mailing list
open-vm-tools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open-vm-tools-devel

Reply via email to