mirror of
https://github.com/versity/scoutfs.git
synced 2026-02-07 19:20:44 +00:00
To actually use it, we first have to copy symbols over from the dlm build into the scoutfs source directory. Make that happen automatically for us in the Makefile. The only users of locking at the moment are mount, unmount and xattr read/write. Adding more locking calls should be a straight-forward endeavor. The LVB based server ip communication didn't work out, and LVBS as they are written don't make sense in a range locking world. So instead, we record the server ip address in the superblock. This is protected by the listen lock, which also arbitrates which node will be the manifest server. We take and drop the dlm lock on each lock/unlock call. Lock caching will come in a future patch. Signed-off-by: Mark Fasheh <mfasheh@versity.com>
31 lines
769 B
Makefile
31 lines
769 B
Makefile
ALL: module
|
|
|
|
# default to building against the installed source for the running kernel
|
|
ifeq ($(SK_KSRC),)
|
|
SK_KSRC := $(shell echo /lib/modules/`uname -r`/build)
|
|
endif
|
|
|
|
# fail if sparse fails if we find it
|
|
ifeq ($(shell sparse && echo found),found)
|
|
SP =
|
|
else
|
|
SP = @:
|
|
endif
|
|
|
|
SCOUTFS_ARGS := CONFIG_SCOUTFS_FS=m -C $(SK_KSRC) -I $(CURDIR)/dlm/include M=$(CURDIR)/src
|
|
DLM_ARGS := CONFIG_DLM=m CONFIG_DLM_DEBUG=y -C $(SK_KSRC) M=$(CURDIR)/dlm
|
|
|
|
all: module
|
|
|
|
module:
|
|
make $(DLM_ARGS)
|
|
cp $(CURDIR)/dlm/Module.symvers $(CURDIR)/src/
|
|
make $(SCOUTFS_ARGS)
|
|
$(SP) make C=2 CF="-D__CHECK_ENDIAN__" $(SCOUTFS_ARGS)
|
|
# Do not enable until we can clean up some warnings
|
|
# $(SP) make C=2 CF="-D__CHECK_ENDIAN__" $(DLM_ARGS)
|
|
|
|
clean:
|
|
make $(SCOUTFS_ARGS) clean
|
|
make $(DLM_ARGS) clean
|