VirtualBox

Changeset 1643 in kBuild for trunk/src/lib


Ignore:
Timestamp:
May 19, 2008 1:22:27 AM (17 years ago)
Author:
bird
Message:

Don't use NtQueryInformationFile on remote drives, they typically lie about the file system and we don't correctly strip off the server name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/nt_fullpath.c

    r1368 r1643  
    270270} MY_FILE_FS_ATTRIBUTE_INFORMATION, *PMY_FILE_FS_ATTRIBUTE_INFORMATION;
    271271
     272#define MY_FileFsDeviceInformation 4
     273typedef struct MY_FILE_FS_DEVICE_INFORMATION
     274{
     275    ULONG DeviceType;
     276    ULONG Characteristics;
     277} MY_FILE_FS_DEVICE_INFORMATION, *PMY_FILE_FS_DEVICE_INFORMATION;
     278#define MY_FILE_DEVICE_DISK              7
     279#define MY_FILE_DEVICE_DISK_FILE_SYSTEM  8
     280#define MY_FILE_DEVICE_FILE_SYSTEM       9
     281#define MY_FILE_DEVICE_VIRTUAL_DISK     36
     282
     283
    272284typedef struct _IO_STATUS_BLOCK
    273285{
     
    411423                if (rcNt >= 0)
    412424                {
    413                     g_afNtfsDrives[iDrv] = 1;
     425                    DWORD dwDriveType = GetDriveType(pszFull);
     426                    if (    dwDriveType == DRIVE_FIXED
     427                        ||  dwDriveType == DRIVE_RAMDISK)
     428                        g_afNtfsDrives[iDrv] = 1;
    414429                }
    415430            }
Note: See TracChangeset for help on using the changeset viewer.

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