--- /usr/include/vfs/hammer/hammer.h 2012-10-31 21:08:43.000000000 +0100 +++ /usr/include/vfs/hammer/hammer_bak.h 2013-06-17 13:54:16.837257000 +0200 @@ -38,9 +38,13 @@ #include #include +#ifdef _KERNEL #include +#endif #include +#ifdef _KERNEL #include +#endif #include #include #include @@ -59,8 +63,10 @@ #include #include +#ifdef _KERNEL #include #include +#endif #include "hammer_disk.h" #include "hammer_mount.h" @@ -78,6 +84,7 @@ #endif /* KTR_INFO_MASTER_EXTERN(hammer); */ +extern int hammer_btree_full_undo; /* * Misc structures */ @@ -1536,6 +1543,7 @@ #endif +#ifdef _KERNEL static __inline void hammer_wait_mem_record(hammer_record_t record) { @@ -1606,6 +1614,7 @@ } hammer_modify_buffer_done(node->buffer); } +#endif #define hammer_modify_volume_field(trans, vol, field) \ hammer_modify_volume(trans, vol, &(vol)->ondisk->field, \ @@ -1615,6 +1624,7 @@ hammer_modify_node(trans, node, &(node)->ondisk->field, \ sizeof((node)->ondisk->field)) +#ifdef _KERNEL /* * The HAMMER_INODE_CAP_DIR_LOCAL_INO capability is set on newly * created directories for HAMMER version 2 or greater and causes @@ -1632,3 +1642,4 @@ else return(HAMMER_LOCALIZE_MISC); } +#endif