mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-08 04:55:21 +00:00
Instead of hashing headers, define an interop version. Do not mount superblocks that have a different version, either higher or lower. Since this is pretty much the same as the format hash except it's a constant, minimal code changes are needed. Initial dev version is 0, with the intent that version will be bumped to 1 immediately prior to tagging initial release version. Update README. Fix comments. Add interop version to notes and modinfo. Signed-off-by: Andy Grover <agrover@versity.com>
63 lines
1.3 KiB
Makefile
63 lines
1.3 KiB
Makefile
obj-$(CONFIG_SCOUTFS_FS) := scoutfs.o
|
|
|
|
CFLAGS_super.o = -DSCOUTFS_GIT_DESCRIBE=\"$(SCOUTFS_GIT_DESCRIBE)\"
|
|
|
|
CFLAGS_scoutfs_trace.o = -I$(src) # define_trace.h double include
|
|
|
|
# add EXTRA_CFLAGS defines for kernel compat
|
|
-include $(src)/Makefile.kernelcompat
|
|
|
|
scoutfs-y += \
|
|
avl.o \
|
|
alloc.o \
|
|
block.o \
|
|
btree.o \
|
|
client.o \
|
|
counters.o \
|
|
data.o \
|
|
dir.o \
|
|
export.o \
|
|
ext.o \
|
|
file.o \
|
|
forest.o \
|
|
inode.o \
|
|
ioctl.o \
|
|
item.o \
|
|
lock.o \
|
|
lock_server.o \
|
|
msg.o \
|
|
net.o \
|
|
options.o \
|
|
per_task.o \
|
|
quorum.o \
|
|
scoutfs_trace.o \
|
|
server.o \
|
|
sort_priv.o \
|
|
spbm.o \
|
|
srch.o \
|
|
super.o \
|
|
sysfs.o \
|
|
trans.o \
|
|
triggers.o \
|
|
tseq.o \
|
|
xattr.o
|
|
|
|
#
|
|
# The raw types aren't available in userspace headers. Make sure all
|
|
# the types we use in the headers are the exported __ versions.
|
|
#
|
|
# XXX dunno how we're really supposed to do this in kbuild
|
|
#
|
|
.PHONY: $(src)/check_exported_types
|
|
$(src)/check_exported_types:
|
|
@if egrep '\<[us](8|16|32|64\>)' $(src)/format.h $(src)/ioctl.h; then \
|
|
echo "no raw types in exported headers, preface with __"; \
|
|
exit 1; \
|
|
fi
|
|
@if egrep '\<__packed\>' $(src)/format.h $(src)/ioctl.h; then \
|
|
echo "no __packed allowed in exported headers"; \
|
|
exit 1; \
|
|
fi
|
|
|
|
extra-y += check_exported_types
|