From fc83143867a37e34a51ce5a6d763b46715abf02d Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Thu, 24 Aug 2017 14:23:13 +0200 Subject: [PATCH] Renamed notify_inval_inode_fh to invalidate_path The previous name didn't make much sense. --- example/Makefile.am | 2 +- example/{notify_inval_inode_fh.c => invalidate_path.c} | 4 ++-- example/meson.build | 2 +- test/test_ctests.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) rename example/{notify_inval_inode_fh.c => invalidate_path.c} (98%) diff --git a/example/Makefile.am b/example/Makefile.am index e9a315e..9a3940e 100644 --- a/example/Makefile.am +++ b/example/Makefile.am @@ -4,7 +4,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -D_REENTRANT noinst_HEADERS = ioctl.h noinst_PROGRAMS = passthrough passthrough_fh null hello hello_ll \ ioctl ioctl_client poll poll_client passthrough_ll \ - notify_inval_inode notify_inval_inode_fh \ + notify_inval_inode invalidate_path \ notify_store_retrieve notify_inval_entry \ cuse cuse_client printcap diff --git a/example/notify_inval_inode_fh.c b/example/invalidate_path.c similarity index 98% rename from example/notify_inval_inode_fh.c rename to example/invalidate_path.c index f37fcef..afa1339 100644 --- a/example/notify_inval_inode_fh.c +++ b/example/invalidate_path.c @@ -19,10 +19,10 @@ * * ## Compilation ## * - * gcc -Wall notify_inval_inode_fh.c `pkg-config fuse3 --cflags --libs` -o notify_inval_inode_fh + * gcc -Wall @file `pkg-config fuse3 --cflags --libs` -o invalidate_path * * ## Source code ## - * \include notify_inval_inode_fh.c + * \include @file */ #define FUSE_USE_VERSION 31 diff --git a/example/meson.build b/example/meson.build index 406c4c4..de2de42 100644 --- a/example/meson.build +++ b/example/meson.build @@ -11,7 +11,7 @@ if not platform.endswith('bsd') endif threaded_examples = [ 'notify_inval_inode', - 'notify_inval_inode_fh', + 'invalidate_path', 'notify_store_retrieve', 'notify_inval_entry', 'poll' ] diff --git a/test/test_ctests.py b/test/test_ctests.py index 2da55e5..469c867 100644 --- a/test/test_ctests.py +++ b/test/test_ctests.py @@ -35,7 +35,7 @@ def test_write_cache(tmpdir, writeback): subprocess.check_call(cmdline) -names = [ 'notify_inval_inode', 'notify_inval_inode_fh' ] +names = [ 'notify_inval_inode', 'invalidate_path' ] if sys.platform == 'linux': names.append('notify_store_retrieve') @pytest.mark.parametrize("name", names) @@ -70,7 +70,7 @@ def test_notify1(tmpdir, name, notify): def test_notify_file_size(tmpdir, notify): mnt_dir = str(tmpdir) cmdline = base_cmdline + \ - [ pjoin(basename, 'example', 'notify_inval_inode_fh'), + [ pjoin(basename, 'example', 'invalidate_path'), '-f', '--update-interval=1', mnt_dir ] if not notify: cmdline.append('--no-notify') -- 2.30.2