ebe7e575ea
Add support for the .zfs control directory. This was accomplished by leveraging as much of the existing ZFS infrastructure as posible and updating it for Linux as required. The bulk of the core functionality is now all there with the following limitations. *) The .zfs/snapshot directory automount support requires a 2.6.37 or newer kernel. The exception is RHEL6.2 which has backported the d_automount patches. *) Creating/destroying/renaming snapshots with mkdir/rmdir/mv in the .zfs/snapshot directory works as expected. However, this functionality is only available to root until zfs delegations are finished. * mkdir - create a snapshot * rmdir - destroy a snapshot * mv - rename a snapshot The following issues are known defeciences, but we expect them to be addressed by future commits. *) Add automount support for kernels older the 2.6.37. This should be possible using follow_link() which is what Linux did before. *) Accessing the .zfs/snapshot directory via NFS is not yet possible. The majority of the ground work for this is complete. However, finishing this work will require resolving some lingering integration issues with the Linux NFS kernel server. *) The .zfs/shares directory exists but no futher smb functionality has yet been implemented. Contributions-by: Rohan Puri <rohan.puri15@gmail.com> Contributiobs-by: Andrew Barnes <barnes333@gmail.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #173
95 lines
4.6 KiB
Makefile
95 lines
4.6 KiB
Makefile
MODULE := zfs
|
|
|
|
EXTRA_CFLAGS += @KERNELCPPFLAGS@
|
|
EXTRA_CFLAGS += -include @SPL_OBJ@/spl_config.h
|
|
EXTRA_CFLAGS += -include @abs_top_builddir@/zfs_config.h
|
|
EXTRA_CFLAGS += -I@abs_top_srcdir@/include -I@SPL@/include -I@SPL@
|
|
|
|
obj-m := $(MODULE).o
|
|
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/arc.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/bplist.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/bpobj.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dbuf.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/ddt.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/ddt_zap.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_diff.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_object.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_objset.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_send.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_traverse.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_tx.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_zfetch.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dnode.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dnode_sync.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_dataset.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_deadlist.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_deleg.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_dir.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_pool.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_prop.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_scan.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_synctask.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/fm.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/gzip.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/lzjb.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/metaslab.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/refcount.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/rrwlock.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/sa.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/sha256.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/spa.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/spa_boot.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/spa_config.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/spa_errlog.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/spa_history.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/spa_misc.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/space_map.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/txg.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/uberblock.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/unique.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_cache.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_disk.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_file.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_label.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_mirror.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_missing.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_queue.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_raidz.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_root.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zap.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zap_leaf.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zap_micro.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_acl.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_byteswap.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_ctldir.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_debug.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_dir.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_fm.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_fuid.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_ioctl.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_log.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_onexit.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_replay.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_rlock.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_sa.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_vfsops.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_vnops.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_znode.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zil.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zio.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zio_checksum.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zio_compress.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zio_inject.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zle.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zpl_ctldir.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zpl_export.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zpl_file.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zpl_inode.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zpl_super.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zpl_xattr.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zrlock.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zvol.o
|