VirtualBox

Changeset 84372 in vbox for trunk/src/VBox/Storage


Ignore:
Timestamp:
May 19, 2020 3:08:57 PM (5 years ago)
Author:
vboxsync
Message:

Storage/VISO: Added some more logging, also for error cases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/VISO.cpp

    r82968 r84372  
    265265    int rc = vdIfIoIntFileOpen(pThis->pIfIo, pThis->pszFilename, RTFILE_O_READ | RTFILE_O_OPEN | RTFILE_O_DENY_NONE, &pStorage);
    266266    if (RT_FAILURE(rc))
     267    {
     268        LogRel(("VISO: Unable to open file '%s': %Rrc\n", pThis->pszFilename, rc));
    267269        return rc;
     270    }
     271
     272    LogRel(("VISO: Handling file '%s'\n", pThis->pszFilename));
    268273
    269274    /*
     
    377382                                                  "VISO: Failed to open parent dir of: %s", pThis->pszFilename);
    378383                                }
     384                                else
     385                                    vdIfError(pThis->pIfError, rc, RT_SRC_POS, "VISO: RTGetOptArgvFromString failed: %Rrc", rc);
    379386                            }
    380387                            else
    381388                                vdIfError(pThis->pIfError, rc, RT_SRC_POS, "VISO: Invalid file encoding");
    382389                        }
     390                        else
     391                            vdIfError(pThis->pIfError, rc, RT_SRC_POS, "VISO: Parsing UUID failed: %Rrc", rc);
    383392                    }
    384393                    else
    385394                        rc = VERR_VD_GEN_INVALID_HEADER;
    386395                }
     396                else
     397                    vdIfError(pThis->pIfError, rc, RT_SRC_POS, "VISO: Reading file failed: %Rrc", rc);
    387398
    388399                RTMemTmpFree(pszContent);
     
    398409        }
    399410    }
     411
     412    if (RT_FAILURE(rc))
     413        LogRel(("VISO: Handling of file '%s' failed with %Rrc\n", pThis->pszFilename, rc));
    400414
    401415    vdIfIoIntFileClose(pThis->pIfIo, pStorage);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette