From 0c816b382b3ad7cba38733f68cae96d78dfde06d Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Tue, 24 Jan 2012 17:53:56 +0200 Subject: Added --hide-hard-links option. Patch by fbogner http://code.google.com/p/bindfs/issues/detail?id=17 --- tests/test_bindfs.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_bindfs.rb b/tests/test_bindfs.rb index 4c21de2..ea2e7e2 100755 --- a/tests/test_bindfs.rb +++ b/tests/test_bindfs.rb @@ -91,7 +91,14 @@ testenv("--ctime-from-mtime") do # to_i gives us prceision of 1 sec assert { File.stat(mf).ctime.to_i == File.stat(mf).mtime.to_i } assert { File.stat(sf).ctime > File.stat(sf).mtime } - +end + +testenv("--hide-hard-links") do + touch('src/one') + ln('src/one', 'src/two') + + assert { File.stat('src/one').nlink == 2 } + assert { File.stat('mnt/one').nlink == 1 } end # Define expectation for changing [uid, gid, both] -- cgit v1.2.3