OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / e2fsprogs / draft / man3 / libblkid.3
1 .\" Copyright 2001 Andreas Dilger (adilger@turbolinux.com)
2 .\"
3 .\" This man page was created for libblkid.so.1.0 from e2fsprogs-1.24.
4 .\" 
5 .\" This file may be copied under the terms of the GNU Public License.
6 .\" 
7 .\" Created  Wed Sep 14 12:02:12 2001, Andreas Dilger
8 .\"
9 .\" Japanese Version Copyright (c) 2004 Yuichi SATO
10 .\"         all rights reserved.
11 .\" Translated Sun Mar  7 02:13:15 JST 2004
12 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
13 .\"
14 .TH LIBBLKID 3 "May 2006" "E2fsprogs version 1.39"
15 .\"O .SH NAME
16 .SH Ì¾Á°
17 .\"O libblkid \- block device identification library
18 libblkid \- ¥Ö¥í¥Ã¥¯¥Ç¥Ð¥¤¥¹¤Î¼±Ê̥饤¥Ö¥é¥ê
19 .\"O .SH SYNOPSIS
20 .SH ½ñ¼°
21 .B #include <blkid/blkid.h>
22 .sp
23 .B cc
24 .I file.c
25 .B \-lblkid
26 .\"O .SH DESCRIPTION
27 .SH ÀâÌÀ
28 .\"O The
29 .\"O .B libblkid
30 .\"O library is used to identify block devices (disks) as to their content (e.g.
31 .\"O filesystem type) as well as extracting additional information such as
32 .\"O filesystem labels/volume names, unique identifiers/serial numbers, etc.
33 .B libblkid
34 ¥é¥¤¥Ö¥é¥ê¤Ï¡¢¥Ö¥í¥Ã¥¯¥Ç¥Ð¥¤¥¹¤Î¥³¥ó¥Æ¥ó¥Ä
35 (¤¿¤È¤¨¤Ð¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¥¿¥¤¥×) ¤ä
36 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥é¥Ù¥ë̾¡¦¥Ü¥ê¥å¡¼¥à̾¡¢
37 ¥æ¥Ë¡¼¥¯¤Ê¼±ÊÌÈֹ桦¥·¥ê¥¢¥ëÈÖ¹æ¤Ê¤É¤ÎÉÕ²ÃŪ¤Ê¾ðÊó¤ò»È¤Ã¤Æ¡¢
38 ¥Ö¥í¥Ã¥¯¥Ç¥Ð¥¤¥¹ (¥Ç¥£¥¹¥¯) ¤ò¼±Ê̤¹¤ë¤Î¤Ë»È¤ï¤ì¤ë¡£
39 .\"O A common use is to allow use of LABEL= and UUID= tags instead of hard-coding
40 .\"O specific block device names into configuration files.
41 °ìÈÌŪ¤Ê»È¤¤Êý¤È¤·¤Æ¡¢
42 ÆÃÄê¤Î¥Ö¥í¥Ã¥¯¥Ç¥Ð¥¤¥¹Ì¾¤òÀßÄê¥Õ¥¡¥¤¥ë¤Ë¥Ï¡¼¥É¥³¡¼¥É¤¹¤ëÂå¤ï¤ê¤Ë¡¢
43 LABEL= ¤È UUID= ¥¿¥°¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤ë¡£
44 .P
45 .\"O Block device information is normally kept in a cache file
46 .\"O .I /etc/blkid.tab
47 .\"O and is verified to still be valid before being returned to the user
48 .\"O (if the user has read permission on the raw block device, otherwise not).
49 ¥Ö¥í¥Ã¥¯¥Ç¥Ð¥¤¥¹¤Î¾ðÊó¤Ï¡¢Ä̾省¥ã¥Ã¥·¥å¥Õ¥¡¥¤¥ë
50 .I /etc/blkid.tab
51 ¤ËÊݸ¤µ¤ì¡¢¥æ¡¼¥¶¤ËÊÖ¤µ¤ì¤ëÁ°¤Ë¸½ºß¤âÍ­¸ú¤Ç¤¢¤ë¤«¤¬¸¡¾Ú¤µ¤ì¤ë
52 (¥æ¡¼¥¶¤¬ raw ¥Ö¥í¥Ã¥¯¥Ç¥Ð¥¤¥¹¤òÆɤย¸Â¤¬¤¢¤ë¾ì¹ç¤Ï¸¡¾Ú¤µ¤ì¤ë¤¬¡¢
53 ¸¢¸Â¤¬¤Ê¤¤¾ì¹ç¤Ï¸¡¾Ú¤µ¤ì¤Ê¤¤)¡£
54 .\"O The cache file also allows unprivileged users (normally anyone other
55 .\"O than root, or those not in the "disk" group) to locate devices by label/id.
56 ÈóÆø¢¥æ¡¼¥¶ (Ä̾ï¤Ï root °Ê³°¤ÎÁ´¥æ¡¼¥¶¡¢
57 ¤Þ¤¿¤Ï "disk" ¥°¥ë¡¼¥×¤Ë½ê°¤·¤Ê¤¤¥æ¡¼¥¶) ¤â¡¢
58 ¥­¥ã¥Ã¥·¥å¥Õ¥¡¥¤¥ë¤ò»È¤Ã¤Æ¡¢
59 ¥é¥Ù¥ë¤È ID ¤Ç¥Ç¥Ð¥¤¥¹¤ò¸«¤Ä¤±¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
60 .P
61 .\"O In situations where one is getting information about a single known device,
62 .\"O it does not impact performance whether the cache is used or not (unless you
63 .\"O are not able to read the block device directly).  If you are dealing with
64 .\"O multiple devices use of the cache is highly recommended (even if empty) as
65 .\"O devices will be scanned at most one time, and the on-disk cache will be
66 .\"O updated if possible.  There is rarely a reason not to use the cache.
67 ¥æ¡¼¥¶¤¬´ûÃΤΠ1 ¤Ä¤Î¥Ç¥Ð¥¤¥¹¤Î¾ðÊó¤ò¼èÆÀ¤·¤è¤¦¤È¤·¤¿¾ì¹ç¡¢
68 (¥æ¡¼¥¶¤¬¥Ö¥í¥Ã¥¯¥Ç¥Ð¥¤¥¹¤òľÀÜÆɤá¤Ê¤¤¸Â¤ê)
69 ¥­¥ã¥Ã¥·¥å¤ò»È¤¦¤«»È¤ï¤Ê¤¤¤«¤Ï¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤Ë¤Ï±Æ¶Á¤·¤Ê¤¤¡£
70 Ê£¿ô¤Î¥Ç¥Ð¥¤¥¹¤ò°·¤¦¾ì¹ç¡¢
71 (¤¿¤È¤¨¶õ¤Ç¤¢¤Ã¤Æ¤â) ¥­¥ã¥Ã¥·¥å¤ò»È¤¦¤³¤È¤òÆä˿侩¤¹¤ë¡£
72 ¤³¤ì¤Ï¡¢Ê£¿ô¤Î¥Ç¥Ð¥¤¥¹¤¬ 1 ²ó¤Ç¥¹¥­¥ã¥ó¤µ¤ì¡¢
73 ²Äǽ¤Ç¤¢¤ì¤Ð¥Ç¥£¥¹¥¯¾å¤Î¥­¥ã¥Ã¥·¥å¤¬¹¹¿·¤µ¤ì¤ë¤«¤é¤Ç¤¢¤ë¡£
74 ¤³¤Î¥­¥ã¥Ã¥·¥å¤ò»È¤ï¤Ê¤¤Íýͳ¤Ïµ©¤Ç¤¢¤ë¡£
75 .P
76 .\"O In some cases (modular kernels), block devices are not even visible until
77 .\"O after they are accessed the first time, so it is critical that there is
78 .\"O some way to locate these devices without enumerating only visible devices,
79 .\"O so the use of the cache file is
80 .\"O .B required
81 .\"O in this situation.
82 (¥â¥¸¥å¥é¥«¡¼¥Í¥ë¤Ê¤É) ¤¤¤¯¤Ä¤«¤Î¥±¡¼¥¹¤Ç¤Ï¡¢
83 ¥Ö¥í¥Ã¥¯¥Ç¥Ð¥¤¥¹¤Ë¥¢¥¯¥»¥¹¤·¤¿¸å¤Ç¤Ê¤¤¤È¸«¤¨¤Ê¤¤¤³¤È¤¬¤¢¤ë¤Î¤Ç¡¢
84 ¸«¤¨¤Æ¤¤¤ë¥Ç¥Ð¥¤¥¹¤Î¤ß¤òÎóµó¤¹¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢
85 ¸«¤¨¤Æ¤¤¤Ê¤¤¥Ç¥Ð¥¤¥¹¤âõ¤·½Ð¤¹
86 ²¿¤é¤«¤ÎÊýË¡¤¬¤¢¤ë¤³¤È¤¬½ÅÍפˤʤ롣
87 ¤³¤Î¤è¤¦¤Ê¾õ¶·¤Ç¤Ï¥­¥ã¥Ã¥·¥å¥Õ¥¡¥¤¥ë¤ò»ÈÍѤ¹¤ë¤³¤È¤¬\fBɬÍ×\fR¤È¤µ¤ì¤ë¡£
88 .\"O .SH AUTHOR
89 .SH Ãø¼Ô
90 .\"O .B libblkid
91 .\"O was written by Andreas Dilger for the ext2 filesystem utilties, with input
92 .\"O from Ted Ts'o.  The library was subsequently heavily modified by Ted Ts'o.
93 .B libblkid
94 ¤Ï¡¢ Andreas Dilger ¤¬ Ted Ts'o ¤«¤é¤Î¾ðÊóÄ󶡤ò¤¦¤±¡¢
95 ext2 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Î¤¿¤á¤Ë½ñ¤¤¤¿¡£
96 ¤³¤Î¥é¥¤¥Ö¥é¥ê¤Ï¤½¤Î¸å Ted Ts'o ¤Ë¤è¤Ã¤Æ¤«¤Ê¤ê½¤Àµ¤µ¤ì¤¿¡£
97 .\"O .SH FILES
98 .SH ¥Õ¥¡¥¤¥ë
99 .TP
100 .I /etc/blkid.tab 
101 .\"O Caches data extracted from each recognized block device.
102 ǧ¼±¤µ¤ì¤¿¥Ö¥í¥Ã¥¯¥Ç¥Ð¥¤¥¹¤«¤éÃê½Ð¤·¤¿¥­¥ã¥Ã¥·¥å¥Ç¡¼¥¿¡£
103 .\"O .SH AVAILABILITY
104 .SH Æþ¼êÊýË¡
105 .\"O .B libblkid
106 .\"O is part of the e2fsprogs package since version 1.33 and is available from
107 .\"O http://e2fsprogs.sourceforge.net.
108 .B libblkid
109 ¤Ï¡¢¥Ð¡¼¥¸¥ç¥ó 1.33 ¤«¤é e2fsprogs ¥Ñ¥Ã¥±¡¼¥¸¤Î°ìÉô¤Ç¤¢¤ê¡¢
110 http://e2fsprogs.sourceforge.net ¤«¤éÆþ¼ê¤Ç¤­¤ë¡£
111 .\"O .SH COPYING
112 .SH Ãøºî¸¢
113 .B libblkid
114 is available under the terms of the GNU Library General Public License (LGPL),
115 version 2 (or at your discretion any later version).  A copy of the LGPL
116 should be included with this library in the file COPYING.  If not, write to
117 .RS
118 Free Software Foundation, Inc.
119 .br
120 59 Temple Place
121 .br
122 Suite 330
123 .br
124 Boston, MA  02111-1307  USA
125 .RE
126 .PP
127 or visit
128 .UR http://www.gnu.org/licenses/licenses.html#LGPL
129 http://www.gnu.org/licenses/licenses.html#LGPL
130 .UE
131 .\"O .SH "SEE ALSO"
132 .SH ´ØÏ¢¹àÌÜ
133 .BR blkid_get_cache (3),
134 .BR blkid_put_cache (3),
135 .BR blkid_get_dev (3),
136 .BR blkid_probe_all (3),
137 .BR blkid_get_devname (3),
138 .BR blkid_get_tag_value (3),
139 .BR blkid.tab (7)