summaryrefslogtreecommitdiffstats
path: root/lib/libdisk
diff options
context:
space:
mode:
authordavidc <davidc@FreeBSD.org>2002-11-11 19:37:19 +0000
committerdavidc <davidc@FreeBSD.org>2002-11-11 19:37:19 +0000
commit95ac1af78c9d3a4ce8d200f35ca703869066eeff (patch)
tree88cfb51a63f5546923536c0fa847a7e2ef06cb4f /lib/libdisk
parenta9e193bc9ac232495e110cb68933d999a44011fb (diff)
downloadFreeBSD-src-95ac1af78c9d3a4ce8d200f35ca703869066eeff.zip
FreeBSD-src-95ac1af78c9d3a4ce8d200f35ca703869066eeff.tar.gz
- Document the chunk_name() function that replaces chunk_n[].
- Rearrange things a tiny bit.
Diffstat (limited to 'lib/libdisk')
-rw-r--r--lib/libdisk/libdisk.315
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/libdisk/libdisk.3 b/lib/libdisk/libdisk.3
index 9c6e39e..272346e 100644
--- a/lib/libdisk/libdisk.3
+++ b/lib/libdisk/libdisk.3
@@ -55,7 +55,7 @@
.Nm MakeDev ,
.Nm MakeDevDisk ,
.Nm ShowChunkFlags ,
-.Nm chunk_n ,
+.Nm chunk_name ,
.Nm slice_type_name
.Nd library interface to slice and partition labels
.Sh LIBRARY
@@ -64,9 +64,6 @@
.In sys/types.h
.In libdisk.h
.Pp
-.Vt extern const char *chunk_n[] ;
-.Ft const char *
-.Fn slice_type_name "int type" "int subtype"
.Ft struct disk *
.Fn Open_Disk "const char *devname"
.Ft void
@@ -115,6 +112,10 @@
.Fn MakeDevDisk "struct disk *d" "const char *path"
.Ft char *
.Fn ShowChunkFlags "struct chunk *c"
+.Ft const char *
+.Fn chunk_name "chunk_e type"
+.Ft const char *
+.Fn slice_type_name "int type" "int subtype"
.Sh DESCRIPTION
.Nm Libdisk
provides an interface to the low-level disk slice and partition labels.
@@ -303,7 +304,11 @@ makes the device nodes for all chunks on this disk.
.Fn ShowChunkFlags
returns a string to show flags.
.Pp
-Chunk name strings can be accessed directly using the external array
+The
+.Fn chunk_name
+function takes the enumerated chunk type and returns its name.
+.Fn chunk_name
+replaces the old external array
.Va chunk_n .
.Pp
.Fn slice_type_name
OpenPOWER on IntegriCloud