mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-09 05:18:08 -04:00
This patch add a simple functional test for the "abort" file in fusectlfs (/sys/fs/fuse/connections/ID/abort). A simple fuse daemon is added for testing. Related discussion can be found in the link below. Link: https://lore.kernel.org/all/CAOQ4uxjKFXOKQxPpxtS6G_nR0tpw95w0GiO68UcWg_OBhmSY=Q@mail.gmail.com/ Signed-off-by: Chen Linxuan <chenlinxuan@uniontech.com> Acked-by: Shuah Khan <skhan@linuxfoundation.org> Reviewed-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
22 lines
518 B
Makefile
22 lines
518 B
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
CFLAGS += -Wall -O2 -g $(KHDR_INCLUDES)
|
|
|
|
TEST_GEN_PROGS := fusectl_test
|
|
TEST_GEN_FILES := fuse_mnt
|
|
|
|
include ../../lib.mk
|
|
|
|
VAR_CFLAGS := $(shell pkg-config fuse --cflags 2>/dev/null)
|
|
ifeq ($(VAR_CFLAGS),)
|
|
VAR_CFLAGS := -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse
|
|
endif
|
|
|
|
VAR_LDLIBS := $(shell pkg-config fuse --libs 2>/dev/null)
|
|
ifeq ($(VAR_LDLIBS),)
|
|
VAR_LDLIBS := -lfuse -pthread
|
|
endif
|
|
|
|
$(OUTPUT)/fuse_mnt: CFLAGS += $(VAR_CFLAGS)
|
|
$(OUTPUT)/fuse_mnt: LDLIBS += $(VAR_LDLIBS)
|