私はxfs
ファイルシステムを使用していますが、inode トピックに関して質問があります。RO
バインドマウントポイントは inode を消費しますか?
の情報厳密に言えば同じです。バインドマウントは同じファイルシステム内のディレクトリを指すためです。
df -i
inode の消費量を確認することができます。
答え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