VirtualBox

Ignore:
Timestamp:
Jun 20, 2008 2:18:58 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
32240
Message:

Make Solaris raw disks (the unbuffered ones which are char devices) work too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp

    r9493 r9856  
    883883#elif defined(RT_OS_SOLARIS)
    884884    struct stat DevStat;
    885     if (!fstat(RawFile, &DevStat) && S_ISBLK(DevStat.st_mode))
     885    if (!fstat(RawFile, &DevStat) && (   S_ISBLK(DevStat.st_mode)
     886                                      || S_ISCHR(DevStat.st_mode)))
    886887    {
    887888        struct dk_minfo mediainfo;
     
    893894    else
    894895    {
    895         RTPrintf("File '%s' is no block device\n", rawdisk.raw());
     896        RTPrintf("File '%s' is no block or char device\n", rawdisk.raw());
    896897        return VERR_INVALID_PARAMETER;
    897898    }
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