mirror of
https://git.freebsd.org/ports.git
synced 2025-07-01 17:40:40 -04:00
- Mark broken on FreeBSD < 8.0 - Fix lib32 checks to use /usr/lib32/libc.so - R0 memobj rewrite [1] - Fix INVARIANTS warning: acquiring duplicate lock of same type: "IPRT Fast Mutex Semaphore" [1] Submitted by: Andriy Gapon <avg@FreeBSD.org> [1] Obtained from: redports.org/~virtualbox/
25 lines
1,000 B
C++
25 lines
1,000 B
C++
- Add support for files to VBoxManage createrawvmdk. Currently
|
|
it only supports character devices so it failes like this:
|
|
|
|
VBoxManage internalcommands createrawvmdk -filename test.vmdk -rawdisk /vbox/HardDisks/test.img
|
|
VBoxManage: error: File '/vbox/HardDisks/test.img' is no character device
|
|
VBoxManage: error: The raw disk vmdk file was not created
|
|
|
|
Submitted by: Pawel Jakub Dawidek <pjd@FreeBSD.org>
|
|
--- src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp.orig 2011-12-13 11:18:43.424439415 +0100
|
|
+++ src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp 2011-12-13 11:22:01.554438862 +0100
|
|
@@ -1140,9 +1140,13 @@
|
|
goto out;
|
|
}
|
|
}
|
|
+ else if (S_ISREG(DevStat.st_mode))
|
|
+ {
|
|
+ cbSize = DevStat.st_size;
|
|
+ }
|
|
else
|
|
{
|
|
- RTMsgError("File '%s' is no character device", rawdisk.c_str());
|
|
+ RTMsgError("File '%s' is neither character device nor regular file", rawdisk.c_str());
|
|
vrc = VERR_INVALID_PARAMETER;
|
|
goto out;
|
|
}
|