[parted-devel] Addition to your FreeBSD patch for parted
Harley D. Eades III
hde at foobar-qux.org
Wed Jun 14 05:47:11 UTC 2006
Hello,
Here is a small block of code I added to freebsd.c. I am just
passing my modifications along. :) If you like it feel free
to use it.
Cheers
Harley
This patch allows you to modify a file as a hard disk.
--- trunk/libparted/arch/freebsd.c Mon Jun 12 15:32:31 2006
+++ trunkHacked/libparted/arch/freebsd.c Wed Jun 14 00:21:06
2006
@@ -498,6 +498,10 @@
if (!init_ide (dev))
goto error_free_arch_specific;
break;
+ case PED_DEVICE_FILE:
+ if (!init_file (dev))
+ goto error_free_arch_specific;
+ break;
default:
ped_exception_throw (PED_EXCEPTION_NO_FEATURE,
More information about the parted-devel
mailing list