aboutsummaryrefslogtreecommitdiff
path: root/lib/libdisk/create_chunk.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1995-04-28 23:57:04 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1995-04-28 23:57:04 +0000
commitaded89c1b1db4cfdff1370be82fd026b40b66bdd (patch)
tree52b9513433e8fa4d94139f8ec002668ef2560b11 /lib/libdisk/create_chunk.c
parent2f688f82da4d1cbda7aa9e1a6ca9cdf948c047fa (diff)
downloadsrc-aded89c1b1db4cfdff1370be82fd026b40b66bdd.tar.gz
src-aded89c1b1db4cfdff1370be82fd026b40b66bdd.zip
This is a revision 0.00 of the backend stuff for the fdisk/disklabel stuff
in the new sysinstall. If you want to give a helping hand, then send email to phk@FreeBSD.ORG. DO NOT COMMIT TO THIS DIRECTORY!
Notes
Notes: svn path=/head/; revision=8153
Diffstat (limited to 'lib/libdisk/create_chunk.c')
-rw-r--r--lib/libdisk/create_chunk.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/libdisk/create_chunk.c b/lib/libdisk/create_chunk.c
new file mode 100644
index 000000000000..6664820b80b4
--- /dev/null
+++ b/lib/libdisk/create_chunk.c
@@ -0,0 +1,26 @@
+/*
+ * ----------------------------------------------------------------------------
+ * "THE BEER-WARE LICENSE" (Revision 42):
+ * <phk@login.dknet.dk> wrote this file. As long as you retain this notice you
+ * can do whatever you want with this stuff. If we meet some day, and you think
+ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
+ * ----------------------------------------------------------------------------
+ *
+ * $Id$
+ *
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <string.h>
+#include <sys/types.h>
+#include <sys/queue.h>
+#include <err.h>
+#include "libdisk.h"
+
+int
+Create_Chunk(struct disk *d, u_long offset, u_long size, chunk_e type, int subtype, u_long flags)
+{
+ return Add_Chunk(d,offset,size,"X",type,subtype,flags);
+}