summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/libdisk.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libdisk/libdisk.h')
-rw-r--r--lib/libdisk/libdisk.h77
1 files changed, 29 insertions, 48 deletions
diff --git a/lib/libdisk/libdisk.h b/lib/libdisk/libdisk.h
index 406eb18..b3c5e08 100644
--- a/lib/libdisk/libdisk.h
+++ b/lib/libdisk/libdisk.h
@@ -48,9 +48,6 @@ const static enum platform {
#endif
;
-
-
-
typedef enum {
whole,
unknown,
@@ -151,33 +148,27 @@ const char *chunk_name(chunk_e);
const char *
slice_type_name(int, int);
-/* "chunk_n" for subtypes too
- */
+/* "chunk_n" for subtypes too */
struct disk *
Open_Disk(const char *);
-/* Will open the named disk, and return populated tree.
- */
+/* Will open the named disk, and return populated tree. */
void
Free_Disk(struct disk *);
-/* Free a tree made with Open_Disk() or Clone_Disk()
- */
+/* Free a tree made with Open_Disk() or Clone_Disk() */
void
Debug_Disk(struct disk *);
-/* Print the content of the tree to stdout
- */
+/* Print the content of the tree to stdout */
void
Set_Bios_Geom(struct disk *, u_long, u_long, u_long);
-/* Set the geometry the bios uses.
- */
+/* Set the geometry the bios uses. */
void
Sanitize_Bios_Geom(struct disk *);
-/* Set the bios geometry to something sane
- */
+/* Set the bios geometry to something sane */
int
Insert_Chunk(struct chunk *, u_long, u_long, const char *, chunk_e, int,
@@ -185,44 +176,40 @@ Insert_Chunk(struct chunk *, u_long, u_long, const char *, chunk_e, int,
int
Delete_Chunk2(struct disk *, struct chunk *, int);
-/* Free a chunk of disk_space modified by the passed
- * flags.
- */
+/* Free a chunk of disk_space modified by the passed flags. */
int
Delete_Chunk(struct disk *, struct chunk *);
-/* Free a chunk of disk_space
- */
+/* Free a chunk of disk_space */
void
Collapse_Disk(struct disk *);
-/* Experimental, do not use.
- */
+/* Experimental, do not use. */
+
int
Collapse_Chunk(struct disk *, struct chunk *);
-/* Experimental, do not use.
- */
+/* Experimental, do not use. */
int
Create_Chunk(struct disk *, u_long, u_long, chunk_e, int, u_long, const char *);
-/* Create a chunk with the specified paramters
- */
+/* Create a chunk with the specified paramters */
void
All_FreeBSD(struct disk *, int);
-/* Make one FreeBSD chunk covering the entire disk;
+/*
+ * Make one FreeBSD chunk covering the entire disk;
* if force_all is set, bypass all BIOS geometry
* considerations.
*/
char *
CheckRules(const struct disk *);
-/* Return char* to warnings about broken design rules in this disklayout
- */
+/* Return char* to warnings about broken design rules in this disklayout */
char **
Disk_Names(void);
-/* Return char** with all disk's names (wd0, wd1 ...). You must free
+/*
+ * Return char** with all disk's names (wd0, wd1 ...). You must free
* each pointer, as well as the array by hand
*/
@@ -234,53 +221,47 @@ Set_Boot_Mgr(struct disk *, const u_char *, const size_t, const u_char *,
void
Set_Boot_Mgr(struct disk *, const u_char *, const size_t);
#endif
-/* Use this boot-manager on this disk. Gets written when Write_Disk()
+/*
+ * Use this boot-manager on this disk. Gets written when Write_Disk()
* is called
*/
int
Set_Boot_Blocks(struct disk *, const u_char *, const u_char *);
-/* Use these boot-blocks on this disk. Gets written when Write_Disk()
+/*
+ * Use these boot-blocks on this disk. Gets written when Write_Disk()
* is called. Returns nonzero upon failure.
*/
int
Write_Disk(const struct disk *);
-/* Write all the MBRs, disklabels, bootblocks and boot managers
- */
+/* Write all the MBRs, disklabels, bootblocks and boot managers */
u_long
Next_Cyl_Aligned(const struct disk *, u_long);
-/* Round offset up to next cylinder according to the bios-geometry
- */
+/* Round offset up to next cylinder according to the bios-geometry */
u_long
Prev_Cyl_Aligned(const struct disk *, u_long);
-/* Round offset down to previous cylinder according to the bios-
- * geometry
- */
+/* Round offset down to previous cylinder according to the bios-geometry */
int
Track_Aligned(const struct disk *, u_long);
-/* Check if offset is aligned on a track according to the
- * bios geometry
- */
+/* Check if offset is aligned on a track according to the bios geometry */
u_long
Next_Track_Aligned(const struct disk *, u_long);
-/* Round offset up to next track according to the bios-geometry
- */
+/* Round offset up to next track according to the bios-geometry */
u_long
Prev_Track_Aligned(const struct disk *, u_long);
-/* Check if offset is aligned on a track according to the
- * bios geometry
- */
+/* Check if offset is aligned on a track according to the bios geometry */
struct chunk *
Create_Chunk_DWIM(struct disk *, const struct chunk *, u_long, chunk_e, int,
u_long);
-/* This one creates a partition inside the given parent of the given
+/*
+ * This one creates a partition inside the given parent of the given
* size, and returns a pointer to it. The first unused chunk big
* enough is used.
*/
OpenPOWER on IntegriCloud