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 ファイル・システム
39 .\"WORD: NUL character ヌル文字
41 .\"WORD: pointer ポインター
43 .TH USTAT 2 2003-08-04 "Linux" "Linux Programmer's Manual"
46 .\"O ustat \- get file system statistics
47 ustat \- ファイル・システム (file system) の統計を得る
51 .B #include <sys/types.h>
53 .BR "#include <unistd.h>" " /* libc[45] */"
55 .BR "#include <ustat.h>" " /* glibc2 */"
57 .BI "int ustat(dev_t " dev ", struct ustat *" ubuf );
62 .\"O returns information about a mounted file system.
64 .\"O is a device number identifying a device containing
65 .\"O a mounted file system.
67 はマウント (mount) されたファイル・システムの情報を返す。
69 は調べるファイル・システムを含んでいるデバイス (device) の
72 .\"O is a pointer to a \fIustat\fP structure that contains the following
75 は以下のメンバーを含む ustat 構造体へのポインター:
79 daddr_t f_tfree; /* Total free blocks */
80 ino_t f_tinode; /* Number of free inodes */
81 char f_fname[6]; /* Filsys name */
82 char f_fpack[6]; /* Filsys pack name */
86 .\"O The last two fields,
90 .\"O are not implemented and will
91 .\"O always be filled with null bytes (\(aq\\0\(aq).
96 は実装されておらず、常に NULL バイト (\(aq\\0\(aq) で埋められる。
97 .\"O .SH "RETURN VALUE"
99 .\"O On success, zero is returned and the
101 .\"O structure pointed to by
103 .\"O will be filled in.
104 .\"O On error, \-1 is returned, and
106 .\"O is set appropriately.
120 .\"O points outside of your accessible address space.
126 .\"O does not refer to a device containing a mounted file system.
128 がマウントされたファイル・システムを含むデバイスを参照していない。
131 .\"O The mounted file system referenced by
133 .\"O does not support this operation, or any version of Linux before
136 で参照されるマウントされたファイル・システムがこの操作 (operation) を
137 サポートしていないか、Linux のバージョンが 1.3.16 以前である。
138 .\"O .SH "CONFORMING TO"
141 .\"O .\" SVr4 documents additional error conditions ENOLINK, ECOMM, and EINTR
142 .\"O .\" but has no ENOSYS condition.
143 .\" SVr4 には他に ENOLINK, ECOMM, EINTR についての記述があるが、
144 .\" ENOSYS エラーについての記述はない。
148 .\"O is deprecated and has only been provided for compatibility.
150 は推奨されず、互換性のためだけに提供される。
151 .\"O All new programs should use
157 .\"O .SS "HP-UX Notes"
159 .\"O The HP-UX version of the
161 .\"O structure has an additional field,
163 .\"O that is unknown elsewhere.
165 .\"O For some file systems, the number of free inodes does not change.
166 .\"O Such file systems will return \-1 in the field
174 ファイルシステムの中には、解放されている inode の数を変更しないものもある。
178 .\"O .\" Some software tries to use this in order to test whether the
179 .\"O .\" underlying file system is NFS.
180 .\" ファイルシステムが NFS であるか否かをテストするために
181 .\" これを使用するソフトウェアもある。
182 .\"O For some file systems, inodes are dynamically allocated.
183 .\"O Such file systems will return the current number of free inodes.
184 ファイルシステムの中には、inode を動的に確保するものもある。
185 このようなファイルシステムは、現在解放されている inode の数を返す。