1 .\" Copyright (C) 1995, Thomas K. Dyas <tdyas@eden.rutgers.edu>
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date. The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein. The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" Created 1995-08-09 Thomas K. Dyas <tdyas@eden.rutgers.edu>
24 .\" Modified 1997-01-31 by Eric S. Raymond <esr@thyrsus.com>
25 .\" Modified 2001-03-22 by aeb
26 .\" Modified 2003-08-04 by aeb
28 .\" Japanese Version Copyright (c) 1996 HANATAKA Shinya
29 .\" all rights reserved.
30 .\" Translated Wed Dec 4 23:12:06 JST 1996
31 .\" by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
32 .\" Updated & Modified Sat May 22 19:00:40 JST 2004
33 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
35 .\"WORD: file system ¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à
36 .\"WORD: mount ¥Þ¥¦¥ó¥È
37 .\"WORD: device ¥Ç¥Ð¥¤¥¹
38 .\"WORD: member ¥á¥ó¥Ð¡¼
39 .\"WORD: NUL character ¥Ì¥ëʸ»ú
40 .\"WORD: implement ¼ÂÁõ
41 .\"WORD: pointer ¥Ý¥¤¥ó¥¿¡¼
43 .TH USTAT 2 2003-08-04 "Linux" "Linux Programmer's Manual"
45 ustat \- ¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à (file system) ¤ÎÅý·×¤òÆÀ¤ë
48 .B #include <sys/types.h>
50 .BR "#include <unistd.h>" " /* libc[45] */"
52 .BR "#include <ustat.h>" " /* glibc2 */"
54 .BI "int ustat(dev_t " dev ", struct ustat *" ubuf );
58 ¤Ï¥Þ¥¦¥ó¥È (mount) ¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à¤Î¾ðÊó¤òÊÖ¤¹¡£
60 ¤ÏÄ´¤Ù¤ë¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à¤ò´Þ¤ó¤Ç¤¤¤ë¥Ç¥Ð¥¤¥¹ (device) ¤Î
63 ¤Ï°Ê²¼¤Î¥á¥ó¥Ð¡¼¤ò´Þ¤à ustat ¹½Â¤ÂΤؤΥݥ¤¥ó¥¿¡¼:
67 daddr_t f_tfree; /* Total free blocks */
68 ino_t f_tinode; /* Number of free inodes */
69 char f_fname[6]; /* Filsys name */
70 char f_fpack[6]; /* Filsys pack name */
78 ¤Ï¼ÂÁõ¤µ¤ì¤Æ¤ª¤é¤º¡¢¾ï¤Ë NULL ¥Ð¥¤¥È (\(aq\\0\(aq) ¤ÇËä¤á¤é¤ì¤ë¡£
80 À®¸ù¤·¤¿¾ì¹ç¤Ë¤Ï¥¼¥í¤¬ÊÖ¤µ¤ì¡¢
85 ¥¨¥é¡¼¤Î¾ì¹ç¤Ï \-1 ¤¬ÊÖ¤µ¤ì¡¢
92 ¤¬¥¢¥¯¥»¥¹²Äǽ¤Ê¶õ´Ö¤Î³°Â¦¤ò»Ø¤·¤Æ¤¤¤ë¡£
96 ¤¬¥Þ¥¦¥ó¥È¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à¤ò´Þ¤à¥Ç¥Ð¥¤¥¹¤ò»²¾È¤·¤Æ¤¤¤Ê¤¤¡£
100 ¤Ç»²¾È¤µ¤ì¤ë¥Þ¥¦¥ó¥È¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à¤¬¤³¤ÎÁàºî (operation) ¤ò
101 ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤¤«¡¢Linux ¤Î¥Ð¡¼¥¸¥ç¥ó¤¬ 1.3.16 °ÊÁ°¤Ç¤¢¤ë¡£
104 .\" SVr4 ¤Ë¤Ï¾¤Ë ENOLINK, ECOMM, EINTR ¤Ë¤Ä¤¤¤Æ¤Îµ½Ò¤¬¤¢¤ë¤¬¡¢
105 .\" ENOSYS ¥¨¥é¡¼¤Ë¤Ä¤¤¤Æ¤Îµ½Ò¤Ï¤Ê¤¤¡£
108 ¤Ï¿ä¾©¤µ¤ì¤º¡¢¸ß´¹À¤Î¤¿¤á¤À¤±¤ËÄ󶡤µ¤ì¤ë¡£
109 ¿·¤·¤¤¥×¥í¥°¥é¥à¤ÏÁ´¤Æ¤³¤ì¤ÎÂå¤ê¤Ë
111 ¤ò»ÈÍѤ¹¤ë¤Ù¤¤Ç¤¢¤ë¡£
112 .SS "HP-UX ¤Ë¤ª¤±¤ëÃí°Õ"
115 ¤Ë¤Ï¡¢¤½¤Î¾¤Ë¥Õ¥£¡¼¥ë¥É
117 ¤¬Â¸ºß¤¹¤ë¤¬¡¢Â¾¤Ç¤Ï¸«¤«¤±¤Ê¤¤¡£
118 HP-UX ¤Ï¼¡¤Î¤è¤¦¤Ë·Ù¹ð¤·¤Æ¤¤¤ë:
119 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ÎÃæ¤Ë¤Ï¡¢²òÊü¤µ¤ì¤Æ¤¤¤ë inode ¤Î¿ô¤òÊѹ¹¤·¤Ê¤¤¤â¤Î¤â¤¢¤ë¡£
120 ¤³¤Î¤è¤¦¤Ê¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ï¡¢¥Õ¥£¡¼¥ë¥É
123 .\" ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬ NFS ¤Ç¤¢¤ë¤«Èݤ«¤ò¥Æ¥¹¥È¤¹¤ë¤¿¤á¤Ë
124 .\" ¤³¤ì¤ò»ÈÍѤ¹¤ë¥½¥Õ¥È¥¦¥§¥¢¤â¤¢¤ë¡£
125 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ÎÃæ¤Ë¤Ï¡¢inode ¤òưŪ¤Ë³ÎÊݤ¹¤ë¤â¤Î¤â¤¢¤ë¡£
126 ¤³¤Î¤è¤¦¤Ê¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ï¡¢¸½ºß²òÊü¤µ¤ì¤Æ¤¤¤ë inode ¤Î¿ô¤òÊÖ¤¹¡£