3d14c5d2b6
This factors out protocol and low-level storage parts of ceph into a separate libceph module living in net/ceph and include/linux/ceph. This is mostly a matter of moving files around. However, a few key pieces of the interface change as well: - ceph_client becomes ceph_fs_client and ceph_client, where the latter captures the mon and osd clients, and the fs_client gets the mds client and file system specific pieces. - Mount option parsing and debugfs setup is correspondingly broken into two pieces. - The mon client gets a generic handler callback for otherwise unknown messages (mds map, in this case). - The basic supported/required feature bits can be expanded (and are by ceph_fs_client). No functional change, aside from some subtle error handling cases that got cleaned up in the refactoring process. Signed-off-by: Sage Weil <sage@newdream.net>
33 lines
644 B
Makefile
33 lines
644 B
Makefile
#
|
|
# Makefile for CEPH filesystem.
|
|
#
|
|
|
|
ifneq ($(KERNELRELEASE),)
|
|
|
|
obj-$(CONFIG_CEPH_FS) += ceph.o
|
|
|
|
ceph-objs := super.o inode.o dir.o file.o locks.o addr.o ioctl.o \
|
|
export.o caps.o snap.o xattr.o \
|
|
mds_client.o mdsmap.o strings.o ceph_frag.o \
|
|
debugfs.o
|
|
|
|
else
|
|
#Otherwise we were called directly from the command
|
|
# line; invoke the kernel build system.
|
|
|
|
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
|
|
PWD := $(shell pwd)
|
|
|
|
default: all
|
|
|
|
all:
|
|
$(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_CEPH_FS=m modules
|
|
|
|
modules_install:
|
|
$(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_CEPH_FS=m modules_install
|
|
|
|
clean:
|
|
$(MAKE) -C $(KERNELDIR) M=$(PWD) clean
|
|
|
|
endif
|