diff options
author | phk <phk@FreeBSD.org> | 1995-04-28 23:57:04 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-04-28 23:57:04 +0000 |
commit | 773ad9f330436a3c7484840bf3a542958fd14c96 (patch) | |
tree | 52b9513433e8fa4d94139f8ec002668ef2560b11 /lib/libdisk/create_chunk.c | |
parent | e31775a1086bdadc2cd01b0eed72cb217fb1e9e8 (diff) | |
download | FreeBSD-src-773ad9f330436a3c7484840bf3a542958fd14c96.zip FreeBSD-src-773ad9f330436a3c7484840bf3a542958fd14c96.tar.gz |
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!
Diffstat (limited to 'lib/libdisk/create_chunk.c')
-rw-r--r-- | lib/libdisk/create_chunk.c | 26 |
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 0000000..6664820 --- /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); +} |