summaryrefslogtreecommitdiffstats
path: root/libfdisk/src/sgi.c
diff options
context:
space:
mode:
authorKarel Zak2014-11-26 11:45:00 +0100
committerKarel Zak2014-11-26 11:45:00 +0100
commit77e46d1c06f6c5c3abf0812826822f5c16442b1e (patch)
treec5a1faf9954679b242205816839897b454957c4d /libfdisk/src/sgi.c
parentlibfdisk: add docs for SUN functions (diff)
downloadkernel-qcow2-util-linux-77e46d1c06f6c5c3abf0812826822f5c16442b1e.tar.gz
kernel-qcow2-util-linux-77e46d1c06f6c5c3abf0812826822f5c16442b1e.tar.xz
kernel-qcow2-util-linux-77e46d1c06f6c5c3abf0812826822f5c16442b1e.zip
libfdisk: add docs for SGI functions
Diffstat (limited to 'libfdisk/src/sgi.c')
-rw-r--r--libfdisk/src/sgi.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/libfdisk/src/sgi.c b/libfdisk/src/sgi.c
index 436ec1f6d..b06556976 100644
--- a/libfdisk/src/sgi.c
+++ b/libfdisk/src/sgi.c
@@ -22,6 +22,13 @@
#include "pt-mbr.h"
#include "fdiskP.h"
+/**
+ * SECTION: sgi
+ * @title: SGI functions
+ * @short_description: SGI disk label specific functionality
+ *
+ */
+
/*
* in-memory fdisk SGI stuff
*/
@@ -130,6 +137,16 @@ static void sgi_free_info(struct sgi_info *info)
free(info);
}
+/**
+ * fdisk_sgi_create_info:
+ * @cxt: context
+ *
+ * This function add hint about SGI label (e.g. set "sgilabel" as volume name)
+ * to the first SGI volume. This is probably old SGI convention without any
+ * effect to the device partitioning.
+ *
+ * Returns: 0 on success, <0 on error
+ */
int fdisk_sgi_create_info(struct fdisk_context *cxt)
{
struct sgi_disklabel *sgilabel = self_disklabel(cxt);
@@ -378,6 +395,15 @@ static int sgi_check_bootfile(struct fdisk_context *cxt, const char *name)
return 1; /* filename did not change */
}
+/**
+ * fdisk_sgi_set_bootfile:
+ * @cxt: context
+ *
+ * Allows to set SGI boot file. The function uses Ask API for dialog with
+ * user.
+ *
+ * Returns: 0 on success, <0 on error
+ */
int fdisk_sgi_set_bootfile(struct fdisk_context *cxt)
{
int rc = 0;