inode 및 읽기 전용 바인드 마운트

inode 및 읽기 전용 바인드 마운트

파일 시스템을 사용하고 있는데 xfsinode 주제에 대해 질문이 있습니다.RO바인드 마운트 지점이 inode를 소비합니까 ?

그만큼정보엄밀히 말하면 똑같습니다. 바인드 마운트가 동일한 파일 시스템의 디렉터리를 가리키기 때문입니다.

df -i아이노드 소비량을 확인할 수 있습니다 .

답변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

관련 정보