JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... tat.h > #include < fcntl.h > int name_to_handle_at(int dirfd , const char * pathname , struct file_handle * handle , int * mount_id , int flags ); int open_by_handle_at(int mount_fd , struct file_handle * handle , int flags ); 説明 システムコール name ... AT_FDCWD (カレントワーキングディレクトリを意味する) を指定でき、 dirfd が参照するファイルに対するハンドルが返される。 The mount_id argument returns an identifier for the filesystem mount that corresponds to pathname . This corresponds to the first fi ... eld in one of the records in /proc/self/mountinfo . Opening the pathname in the fifth field of that record yields a file descriptor for the mount point; that file descr ... ... tat.h > #include < fcntl.h > int name_to_handle_at(int dirfd , const char * pathname , struct file_handle * handle , int * mount_id , int flags ); int open_by_handle_at(int mount_fd , struct file_handle * handle , int flags ); 説明 システムコール name ... AT_FDCWD (カレントワーキングディレクトリを意味する) を指定でき、 dirfd が参照するファイルに対するハンドルが返される。 The mount_id argument returns an identifier for the filesystem mount that corresponds to pathname . This corresponds to the first fi ... eld in one of the records in /proc/self/mountinfo . Opening the pathname in the fifth field of that record yields a file descriptor for the mount point; that file descr ... ... int flags ); 説明 umount () と umount2 () は target にマウントされている (最上位の) ファイルシステムを外す。 ファイルシステムのアンマウントを行うに ... は、 適切な権限 (Linux では CAP_SYS_ADMIN ケーパビリティ) が必要である。 Linux 2.1.116 から、 umount2 () システムコールが追加された。これは umount () と同様に target をアンマウントするが、 flags が追加されており、操作時の振 ... る舞いを制御できる。 MNT_FORCE (2.1.116 以降) Ask the filesystem to abort pending requests before attempting the unmount. This may allow the unmount to complete without waiting for an inaccessible server, but could cause data loss. If, after a ... ... int flags ); 説明 umount () と umount2 () は target にマウントされている (最上位の) ファイルシステムを外す。 ファイルシステムのアンマウントを行うに ... は、 適切な権限 (Linux では CAP_SYS_ADMIN ケーパビリティ) が必要である。 Linux 2.1.116 から、 umount2 () システムコールが追加された。これは umount () と同様に target をアンマウントするが、 flags が追加されており、操作時の振 ... る舞いを制御できる。 MNT_FORCE (2.1.116 以降) Ask the filesystem to abort pending requests before attempting the unmount. This may allow the unmount to complete without waiting for an inaccessible server, but could cause data loss. If, after a ... ... ir mount [-fnrsvw] [-t vfstype ] [-o options ] device dir 説明 Unix のシステムにおいては、アクセスできるファイルはすべて 1 つの大き ... これは / をルート (root:根) とする階層構造をなしている。 これらのファイル群は複数のデバイスにわたって配置することができる。 mount コマンドはあるデバイス上のファイルシステムを この大きなツリー構造に接続するために用いられる。 逆に接続を解除する際には umo ... unt (8) コマンドが用いられる。 mount コマンドの標準形は次の通りである。 mount -t type device dir これは device 上にあるファイルシステム (タイプ type ) をディレ ... ... において必須の引数または任意の引数になっているものは、 ショートオプションにおいても同じく必須または任意です。 関連項目 grub-mount の完全なドキュメントは Texinfo マニュアルとしてメンテナンスされています。 info と grub-mount の両プログラムが適切にインスト ... ールされていれば、以下のコマンド info grub-mount を実行して完全なマニュアルを参照できます。 ... ... msg.h > int main(void) { long class = MM_PRINT | MM_SOFT | MM_OPSYS | MM_RECOVER; int err; err = fmtmsg(class, "util-linux:mount", MM_ERROR, "unknown mount option", "See mount (8).", "util-linux:mount:017"); switch (err) { case MM_OK: break; case MM_N ... "No console output\n"); break; default: printf("Unknown error from fmtmsg()\n"); } exit(EXIT_SUCCESS); } 出力は util-linux:mount: ERROR: unknown mount option TO FIX: See mount (8). util-linux:mount:017 のようになり、 MSGVERB=text:action; export MSGVER ... B を実行すると、次のようになる。 unknown mount option TO FIX: See mount (8). 関連項目 addseverity (3), perror (3) この文書について この man ページは Linux man-pages プロ ... ... ってはいけない。 空の場合はエラー EINVAL が発生する。 FAN_MARK_FLUSH Remove either all marks for filesystems, all marks for mounts, or all marks for directories and files from the fanotify group. If flags contains FAN_MARK_MOUNT , all marks for mounts ... roup. Otherwise, all marks for directories and files are removed. No flag other than and at most one of the flags FAN_MARK_MOUNT or FAN_MARK_FILESYSTEM can be used in conjunction with FAN_MARK_FLUSH . mask is ignored. 上記のどの値も指定されなかった場合 ... MARK_ONLYDIR マークが付けられたファイルシステムオブジェクトがディレクトリでない場合、 エラー ENOTDIR が発生する。 FAN_MARK_MOUNT Mark the mount point specified by pathname . If pathname is not itself a mount point, the mount point containing pathname ... ... lesystemtype , unsigned long mountflags , const void * data ); 説明 mount () は source で指定されたファイルシステム (デバイス名であることが多いが、 ディレクト ... msdos", "proc", "nfs", "iso9660" 等)。 適切なモジュールが読み込まれると、さらに別の値が利用可能になるかもしれない。 引き数 mountflags の上位 16 ビットには、マジックナンバー 0xC0ED ( MS_MGC_VAL ) を指定することができる (マジックナンバーは、 カーネルバー ... ジョン 2.4 より前では必須であったが、 現在は必要なく、指定されても無視される)。 mountflags の下位 16 ビットにマウントフラグを指定する。 MS_BIND (Linux 2.4 以降) バインドマウントを行う。これはファイルやディレク ... ... ムは autofs (Linux 組み込みのオートマウントシステム) の マウントポイントを設定するために使われる。 automount はベースとなる mount-point と map を引き数に取り、 ベースである mount-point 以下のファイルシステムがアクセスされるときに、 ... 表示を有効にする。 -d, --debug デバッグメッセージとともに、 一般的な状態と進捗メッセージの表示を有効にする。 -g, --ghost automount のディレクトリは表示されるが、 アクセスされるまではマウントしないように要求する。 ワイルドカードマップはゴースト化できない ... 。 -V, --version バージョン番号を表示して、終了する。 引き数 automount は少なくとも 3 つの引き数を取る。 必須の引き数には mount-point , map-type , map が含まれる。 必須の引き数と必須ではない引き ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。