From 86891054ef2a5d1b0b59c7c140aae284e7c5bd87 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 11 Nov 2024 22:27:42 +0100 Subject: Report inode number for the root node Now that https://github.com/hanwen/go-fuse/issues/399 has landed we can report an inode number for the root node. Fixes https://github.com/rfjakob/gocryptfs/issues/580 --- tests/matrix/matrix_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/matrix/matrix_test.go') diff --git a/tests/matrix/matrix_test.go b/tests/matrix/matrix_test.go index 0d9c22c..417e126 100644 --- a/tests/matrix/matrix_test.go +++ b/tests/matrix/matrix_test.go @@ -972,3 +972,13 @@ func TestPwd(t *testing.T) { os.Mkdir(dir, 0700) } } + +// TestRootIno checks that inode number of the root dir is set +// https://github.com/hanwen/go-fuse/issues/399 +func TestRootIno(t *testing.T) { + var st syscall.Stat_t + syscall.Stat(test_helpers.DefaultPlainDir, &st) + if st.Ino == 0 { + t.Errorf("inode number of root dir is zero") + } +} -- cgit v1.2.3