VirtualBox

Changeset 95385 in vbox for trunk/src


Ignore:
Timestamp:
Jun 27, 2022 9:04:31 AM (3 years ago)
Author:
vboxsync
Message:

Guest Control/Main: Added IFsInfo, IGuestFsInfo, IGuestSession::fsQueryFreeSpace() + IGuestSession::fsQueryInfo() stubs for retrieving file system information. bugref:9500

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r95368 r95385  
    1463914639  <interface
    1464014640    name="IGuestSession" extends="$unknown"
    14641     uuid="3E14C189-4A75-437E-B0BB-7E7C90D0DF2A"
     14641    uuid="234f0627-866d-48c2-91a5-4c9d50f04928"
    1464214642    wsmap="managed"
    1464314643    reservedMethods="8" reservedAttributes="12"
     
    1572715727      </desc>
    1572815728      <param name="path" type="wstring" dir="in">
    15729         <desc>Full path of the file system object which ACL to set</desc>
     15729        <desc>Full path of the file system object which ACL to set.</desc>
    1573015730      </param>
    1573115731      <param name="followSymlinks" type="boolean" dir="in">
     
    1574515745        </desc>
    1574615746      </param>
     15747    </method>
     15748
     15749    <method name="fsQueryFreeSpace">
     15750      <desc>
     15751        Returns the free space (in bytes) of a given path.
     15752
     15753        <result name="E_NOTIMPL">
     15754          The method is not implemented yet.
     15755        </result>
     15756      </desc>
     15757      <param name="path" type="wstring" dir="in">
     15758        <desc>Full path to return the free space for.</desc>
     15759      </param>
     15760      <param name="freeSpace" type="long long" dir="out">
     15761        <desc>Free space (in bytes).</desc>
     15762      </param>
     15763    </method>
     15764
     15765    <method name="fsQueryInfo">
     15766      <desc>
     15767        Returns file system information for a given path.
     15768
     15769        <result name="E_NOTIMPL">
     15770          The method is not implemented yet.
     15771        </result>
     15772      </desc>
     15773
     15774      <param name="path" type="wstring" dir="in">
     15775        <desc>Full path to return file system information for.</desc>
     15776      </param>
     15777      <param name="info" type="IGuestFsInfo" dir="out">
     15778        <desc>IGuestFsInfo object containing the information.</desc>
     15779      </param>
     15780
    1574715781    </method>
    1574815782
     
    1655716591
    1655816592  <interface
     16593    name="IFsInfo" extends="$unknown"
     16594    uuid="3db2ab1a-6cf7-42f1-8bf5-e1c0553e0b30"
     16595    wsmap="managed"
     16596    reservedAttributes="8"
     16597    >
     16598    <desc>
     16599      Abstract parent interface for VirtualBox file system information.
     16600      This can be information about a host or guest file system, for example.
     16601    </desc>
     16602
     16603    <attribute name="freeSize" type="long long" readonly="yes">
     16604      <desc>
     16605        Remaining free space (in bytes) of the filesystem.
     16606      </desc>
     16607    </attribute>
     16608    <attribute name="totalSize" type="long long" readonly="yes">
     16609      <desc>
     16610        Total space (in bytes) of the filesystem.
     16611      </desc>
     16612    </attribute>
     16613    <attribute name="blockSize" type="unsigned long" readonly="yes">
     16614      <desc>
     16615        Block size (in bytes) of the filesystem.
     16616      </desc>
     16617    </attribute>
     16618    <attribute name="sectorSize" type="unsigned long" readonly="yes">
     16619      <desc>
     16620        Sector size (in bytes) of the filesystem.
     16621      </desc>
     16622    </attribute>
     16623    <attribute name="serialNumber" type="unsigned long" readonly="yes">
     16624      <desc>
     16625        Serial number of the filesystem.
     16626      </desc>
     16627    </attribute>
     16628    <attribute name="isRemote" type="boolean" readonly="yes">
     16629      <desc>
     16630        @c TRUE if the filesystem is remote, @c FALSE if the filesystem is local.
     16631      </desc>
     16632    </attribute>
     16633    <attribute name="isCaseSensitive" type="boolean" readonly="yes">
     16634      <desc>
     16635        @c TRUE if the filesystem is case sensitive, @c FALSE if the filesystem is case insensitive.
     16636      </desc>
     16637    </attribute>
     16638    <attribute name="isReadOnly" type="boolean" readonly="yes">
     16639      <desc>
     16640        @c TRUE if the filesystem is mounted read only, @c FALSE if the filesystem is mounted read write.
     16641      </desc>
     16642    </attribute>
     16643    <attribute name="isCompressed" type="boolean" readonly="yes">
     16644      <desc>
     16645        @c TRUE if the filesystem is compressed, @c FALSE if it isn't or we don't know.
     16646      </desc>
     16647    </attribute>
     16648    <attribute name="supportsFileCompression" type="boolean" readonly="yes">
     16649      <desc>
     16650        @c TRUE if the filesystem compresses of individual files, @c FALSE if it doesn't or we don't know.
     16651      </desc>
     16652    </attribute>
     16653    <attribute name="maxComponent" type="unsigned long" readonly="yes">
     16654      <desc>
     16655        The maximum size of a filesystem object name.
     16656      </desc>
     16657    </attribute>
     16658    <attribute name="type" type="wstring" readonly="yes">
     16659      <desc>
     16660        Name of the filesystem.
     16661      </desc>
     16662    </attribute>
     16663    <attribute name="label" type="wstring" readonly="yes">
     16664      <desc>
     16665        Label of the filesystem.
     16666      </desc>
     16667    </attribute>
     16668    <attribute name="mountPoint" type="wstring" readonly="yes">
     16669      <desc>
     16670        Mount point of the filesystem.
     16671      </desc>
     16672    </attribute>
     16673  </interface>
     16674
     16675  <interface
    1655916676    name="IFsObjInfo" extends="$unknown"
    1656016677    uuid="081fc833-c6fa-430e-6020-6a505d086387"
     
    1666716784      </desc>
    1666816785    </attribute>
     16786  </interface>
     16787
     16788  <interface
     16789    name="IGuestFsInfo" extends="IFsInfo"
     16790    uuid="726eaca9-091e-41b4-bca6-355efe864107"
     16791    wsmap="managed"
     16792    >
     16793    <desc>
     16794      Represents the guest implementation of the
     16795      <link to="IFsInfo" /> object.
     16796    </desc>
     16797    <attribute name="midlDoesNotLikeEmptyInterfaces" readonly="yes" type="boolean"/>
    1666916798  </interface>
    1667016799
  • trunk/src/VBox/Main/include/GuestSessionImpl.h

    r93115 r95385  
    171171                          BOOL aFollowSymlinks,
    172172                          LONG64 *aSize);
     173    HRESULT fsQueryFreeSpace(const com::Utf8Str &aPath, LONG64 *aFreeSpace);
     174    HRESULT fsQueryInfo(const com::Utf8Str &aPath, ComPtr<IGuestFsInfo> &aInfo);
    173175    HRESULT fsObjExists(const com::Utf8Str &aPath,
    174176                        BOOL aFollowSymlinks,
  • trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp

    r93168 r95385  
    42764276}
    42774277
     4278HRESULT GuestSession::fsQueryFreeSpace(const com::Utf8Str &aPath, LONG64 *aFreeSpace)
     4279{
     4280    RT_NOREF(aPath, aFreeSpace);
     4281
     4282    return E_NOTIMPL;
     4283}
     4284
     4285HRESULT GuestSession::fsQueryInfo(const com::Utf8Str &aPath, ComPtr<IGuestFsInfo> &aInfo)
     4286{
     4287    RT_NOREF(aPath, aInfo);
     4288
     4289    return E_NOTIMPL;
     4290}
     4291
    42784292HRESULT GuestSession::fsObjExists(const com::Utf8Str &aPath, BOOL aFollowSymlinks, BOOL *aExists)
    42794293{
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