[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/07: doc: Document 'file-system-label' and 'uuid'.
From: |
guix-commits |
Subject: |
03/07: doc: Document 'file-system-label' and 'uuid'. |
Date: |
Fri, 4 Sep 2020 05:30:08 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 2fc8337a149a2af6e2d945cf6585fc58bbd41c30
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Sep 4 10:41:23 2020 +0200
doc: Document 'file-system-label' and 'uuid'.
* doc/guix.texi (File Systems): Document 'file-system-label' and 'uuid'.
---
doc/guix.texi | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/doc/guix.texi b/doc/guix.texi
index 0a68457..f224e35 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -12413,6 +12413,19 @@ example for an encrypted partition (@pxref{Mapped
Devices}).
@end table
@end deftp
+@deffn {Scheme Procedure} file-system-label @var{str}
+This procedure returns an opaque file system label from @var{str}, a
+string:
+
+@lisp
+(file-system-label "home")
+@result{} #<file-system-label "home">
+@end lisp
+
+File system labels are used to refer to file systems by label rather
+than by device name. See above for examples.
+@end deffn
+
The @code{(gnu system file-systems)} exports the following useful
variables.
@@ -12459,6 +12472,29 @@ and unmount user-space FUSE file systems. This
requires the
@code{fuse.ko} kernel module to be loaded.
@end defvr
+The @code{(gnu system uuid)} module provides tools to deal with file
+system ``unique identifiers'' (UUIDs).
+
+@deffn {Scheme Procedure} uuid @var{str} [@var{type}]
+Return an opaque UUID (unique identifier) object of the given @var{type}
+(a symbol) by parsing @var{str} (a string):
+
+@lisp
+(uuid "4dab5feb-d176-45de-b287-9b0a6e4c01cb")
+@result{} #<<uuid> type: dce bv: @dots{}>
+
+(uuid "1234-ABCD" 'fat)
+@result{} #<<uuid> type: fat bv: @dots{}>
+@end lisp
+
+@var{type} may be one of @code{dce}, @code{iso9660}, @code{fat},
+@code{ntfs}, or one of the commonly found synonyms for these.
+
+UUIDs are another way to unambiguously refer to file systems in
+operating system configuration. See the examples above.
+@end deffn
+
+
@node Btrfs file system
@subsection Btrfs file system
- branch master updated (eb33280 -> 3f663e5), guix-commits, 2020/09/04
- 01/07: doc: Balance parens in R Shiny example., guix-commits, 2020/09/04
- 03/07: doc: Document 'file-system-label' and 'uuid'.,
guix-commits <=
- 02/07: doc: Syntax highlighting now handles @var within @lisp., guix-commits, 2020/09/04
- 04/07: gnu: darktable: Update to 3.2.1., guix-commits, 2020/09/04
- 06/07: .guix-authorizations: Add planglois to the committers., guix-commits, 2020/09/04
- 05/07: gnu: darktable: Add dependency on libavif, ocl-icd., guix-commits, 2020/09/04
- 07/07: gnu: kdenlive: Add ffmpeg to input list, guix-commits, 2020/09/04