inode と読み取り専用バインドマウント

inode と読み取り専用バインドマウント

私はxfsファイルシステムを使用していますが、inode トピックに関して質問があります。ROバインドマウントポイントは inode を消費しますか?

情報厳密に言えば同じです。バインドマウントは同じファイルシステム内のディレクトリを指すためです。

df -iinode の消費量を確認することができます。

答え1

バインドされたディレクトリ内のファイルは、元のファイルとまったく同じ inode を持ちます。したがって、何も消費されません。

しかし、自分でテストを作成することもできます。

root@storiq-nas10:/mnt/raid# df -i .
Sys. de fichiers         In?uds IUtil.     ILibre IUti% Monté sur
/dev/mapper/vg0-raid 7497565248    107 7497565141    1% /mnt/raid
root@storiq-nas10:/mnt/raid# mount -B test/ bind/
root@storiq-nas10:/mnt/raid# df -i .
Sys. de fichiers         In?uds IUtil.     ILibre IUti% Monté sur
/dev/mapper/vg0-raid 7497565248    107 7497565141    1% /mnt/raid
root@storiq-nas10:/mnt/raid# cd bind/dir/hello/
root@storiq-nas10:/mnt/raid/bind/dir/hello# ls -i 34.txt 
4294967458 34.txt
root@storiq-nas10:/mnt/raid/bind/dir/hello# cd /mnt/raid/test/dir/hello/
root@storiq-nas10:/mnt/raid/test/dir/hello# ls -i 34.txt 
4294967458 34.txt

関連情報