VirtualBox

Changeset 96861 in vbox for trunk/include


Ignore:
Timestamp:
Sep 26, 2022 10:52:54 AM (2 years ago)
Author:
vboxsync
Message:

IPRT/Vfs,Main/Unattended: Detect fedora ISOs, various code cleanups. Added a parameter to RTVfsQueryLabel so we can get the primary volume ID of an ISO (required for fedora ISOs, as the joliet version is truncated). bugref:9781

Location:
trunk/include/iprt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/vfs.h

    r96407 r96861  
    203203 *
    204204 * @returns IPRT status code.
    205  * @param   hVfs        VFS handle.
    206  * @param   pszLabel    Where to store the lable.
    207  * @param   cbLabel     Size of the buffer @a pszLable points at.
    208  * @param   pcbActual   Where to return the label length, including the
    209  *                      terminator.  In case of VERR_BUFFER_OVERFLOW returns,
    210  *                      this will be set to the required buffer size.  Optional.
    211  */
    212 RTDECL(int) RTVfsQueryLabel(RTVFS hVfs, char *pszLabel, size_t cbLabel, size_t *pcbActual);
     205 * @param   hVfs            VFS handle.
     206 * @param   fAlternative    For use with ISO files to retrieve the primary lable
     207 *                          rather than the joliet / UDF one that the mount
     208 *                          options would indicate.  For other file systems, as
     209 *                          well for ISO not mounted in joliet / UDF mode, the
     210 *                          flag is ignored.
     211 * @param   pszLabel        Where to store the lable.
     212 * @param   cbLabel         Size of the buffer @a pszLable points at.
     213 * @param   pcbActual       Where to return the label length, including the
     214 *                          terminator.  In case of VERR_BUFFER_OVERFLOW
     215 *                          returns, this will be set to the required buffer
     216 *                          size.  Optional.
     217 */
     218RTDECL(int) RTVfsQueryLabel(RTVFS hVfs, bool fAlternative, char *pszLabel, size_t cbLabel, size_t *pcbActual);
    213219
    214220
  • trunk/include/iprt/vfslowlevel.h

    r96407 r96861  
    182182     * Returns a UTF-8 string. */
    183183    RTVFSQIEX_VOL_LABEL,
     184    /** Alternative volume label, the primary one for ISOs, otherwise treated same
     185     * as RTVFSQIEX_VOL_LABEL. */
     186    RTVFSQIEX_VOL_LABEL_ALT,
    184187    /** Volume serial number.
    185188     * Returns a uint32_t, uint64_t or RTUUID. */
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