xfsprogs: clean up installed headers
This series ensures we only install the minimum required headers, and especially no autoconf-generated header that might differ for different targets in multiarch setups.
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
PATCH 1/13 xfsprogs: don't install internal header files
All the headers in $(HFILES) are internal to xfsprogs and should not be installed.
--- libxfs/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
libxfs/Makefile +1 -1
@@ -139,7 +139,7 @@ install-headers: $(addsuffix -hdrs, $(PKGHFILES) $(QAHFILES)) $(Q)$(LN_S) -f $(PWD)/libxfs/$* $(TOPDIR)/include/xfs/$* install-dev: install - $(INSTALL) -m 644 $(PKGHFILES) $(HFILES) $(PKG_INC_DIR) + $(INSTALL) -m 644 $(PKGHFILES) $(PKG_INC_DIR) install-qa: install-dev $(INSTALL) -m 644 $(QAHFILES) $(PKG_INC_DIR)
Signature · 6 lines
1.9.1 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
PATCH 2/13 xfsprogs: remove unused macros from xfs_arch.h
In reply to Christoph Hellwig--- include/xfs_arch.h | 60 ------------------------------------------------------ 1 file changed, 60 deletions(-)
include/xfs_arch.h +0 -60
@@ -71,64 +71,4 @@ static inline void be64_add_cpu(__be64 *a, __s64 b) *a = cpu_to_be64(be64_to_cpu(*a) + b); } -/* -* get and set integers from potentially unaligned locations -*/ - -#define INT_GET_UNALIGNED_16_BE (pointer) \ - ((__u16)((((__u8*)(pointer))[0] << 8) | (((__u8*)(pointer))[1]))) -#define INT_SET_UNALIGNED_16_BE (pointer,value) \ - { \ - ((__u8*)(pointer))[0] = (((value) >> 8) & 0xff); \ - ((__u8*)(pointer))[1] = (((value) ) & 0xff); \ - } - -/* -* In directories inode numbers are stored as unaligned arrays of unsigned -* 8bit integers on disk. -* -* For v1 directories or v2 directories that contain inode numbers that -* do not fit into 32bit the array has eight members, but the first member -* is always zero: -* -* |unused|48-55|40-47|32-39|24-31|16-23| 8-15| 0- 7| -* -* For v2 directories that only contain entries with inode numbers that fit -* into 32bits a four-member array is used: -* -* |24-31|16-23| 8-15| 0- 7| -*/ - -#define XFS_GET_DIR_INO4 (di) \ - (((__u32)(di).i[0] << 24) | ((di).i[1] << 16) | ((di).i[2] << 8) | ((di).i[3])) - -#define XFS_PUT_DIR_INO4 (from, di) \ -do { \ - (di).i[0] = (((from) & 0xff000000ULL) >> 24); \ - (di).i[1] = (((from) & 0x00ff0000ULL) >> 16); \ - (di).i[2] = (((from) & 0x0000ff00ULL) >> 8); \ - (di).i[3] = ((from) & 0x000000ffULL); \ -} while (0) - -#define XFS_DI_HI (di) \ - (((__u32)(di).i[1] << 16) | ((di).i[2] << 8) | ((di).i[3])) -#define XFS_DI_LO (di) \ - (((__u32)(di).i[4] << 24) | ((di).i[5] << 16) | ((di).i[6] << 8) | ((di).i[7])) - -#define XFS_GET_DIR_INO8 (di) \ - (((xfs_ino_t)XFS_DI_LO(di) & 0xffffffffULL) | \ - ((xfs_ino_t)XFS_DI_HI(di) << 32)) - -#define XFS_PUT_DIR_INO8 (from, di) \ -do { \ - (di).i[0] = 0; \ - (di).i[1] = (((from) & 0x00ff000000000000ULL) >> 48); \ - (di).i[2] = (((from) & 0x0000ff0000000000ULL) >> 40); \ - (di).i[3] = (((from) & 0x000000ff00000000ULL) >> 32); \ - (di).i[4] = (((from) & 0x00000000ff000000ULL) >> 24); \ - (di).i[5] = (((from) & 0x0000000000ff0000ULL) >> 16); \ - (di).i[6] = (((from) & 0x000000000000ff00ULL) >> 8); \ - (di).i[7] = ((from) & 0x00000000000000ffULL); \ -} while (0) -#endif /* __XFS_ARCH_H__ */
Signature · 6 lines
1.9.1 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
PATCH 3/13 xfsprogs: remove swab.h
In reply to Christoph HellwigThe macros in swab.h are only used to implement those in xfs_arch.h, so let's consolidate the two headers.
--- include/Makefile | 1 - include/gnukfreebsd.h | 1 - include/libxfs.h | 1 - include/swab.h | 194 -------------------------------------------------- include/xfs_arch.h | 191 +++++++++++++++++++++++++++++++++++++++++++++++++ libxfs/crc32.c | 1 - libxfs/libxfs_priv.h | 1 - 7 files changed, 191 insertions(+), 199 deletions(-) delete mode 100644 include/swab.h
include/Makefile +0 -1
@@ -28,7 +28,6 @@ QAHFILES = libxfs.h \ list.h \ parent.h \ radix-tree.h \ - swab.h \ xfs_arch.h \ xfs_btree_trace.h \ xfs_inode.h \
include/gnukfreebsd.h +0 -1
@@ -31,7 +31,6 @@#include <ctype.h> #include <libgen.h> #include <paths.h> -#include "xfs/swab.h" #define constpp char * const *
include/libxfs.h +0 -1
@@ -28,7 +28,6 @@#include "xfs/bitops.h" #include "xfs/kmem.h" #include "xfs/radix-tree.h" -#include "xfs/swab.h" #include "xfs/atomic.h" #include "xfs/xfs_types.h"
include/swab.h deleted +0 -194
194 lines not on this page · raw message
include/xfs_arch.h +191 -0
201 lines not on this page · raw message
libxfs/crc32.c +0 -1
@@ -34,7 +34,6 @@*/ #include "xfs/platform_defs.h" -#include "xfs/swab.h" #include "xfs/xfs_arch.h" #include "crc32defs.h"
libxfs/libxfs_priv.h +0 -1
@@ -66,7 +66,6 @@#include "xfs/bitops.h" #include "xfs/kmem.h" #include "xfs/radix-tree.h" -#include "xfs/swab.h" #include "xfs/atomic.h" #include "xfs/xfs_types.h"
Signature · 6 lines
1.9.1 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
PATCH 4/13 xfsprogs: only install *format.h headers in install-qa
In reply to Christoph HellwigNow that we've properly split up the headers we don't need to install all the libxfs-internal headers for xfstests. Just install the three headers defining the on-disk format and xfs_arch.h which is required to compile them instead.
--- include/Makefile | 12 ++++++++---- libxfs/Makefile | 29 +++++++++++++++++------------ 2 files changed, 25 insertions(+), 16 deletions(-)
include/Makefile +8 -4
@@ -18,7 +18,9 @@ TOPDIR = .. include $(TOPDIR)/include/builddefs -QAHFILES = libxfs.h \ +QAHFILES = xfs_arch.h + +LIBHFILES = libxfs.h \ libxlog.h \ atomic.h \ bitops.h \
@@ -28,14 +30,17 @@ QAHFILES = libxfs.h \ list.h \ parent.h \ radix-tree.h \ - xfs_arch.h \ xfs_btree_trace.h \ xfs_inode.h \ xfs_log_recover.h \ xfs_metadump.h \ xfs_mount.h \ xfs_trace.h \ - xfs_trans.h + xfs_trans.h \ + command.h \ + input.h \ + path.h \ + project.h HFILES = handle.h \ jdm.h \
@@ -46,7 +51,6 @@ HFILES = handle.h \ PHFILES = darwin.h freebsd.h irix.h linux.h gnukfreebsd.h DKHFILES = volume.h fstyp.h dvh.h -LIBHFILES = command.h input.h path.h project.h LSRCFILES = $(shell echo $(PHFILES) | sed -e "s/$(PKG_PLATFORM).h//g") LSRCFILES += platform_defs.h.in builddefs.in buildmacros buildrules install-sh LSRCFILES += $(DKHFILES) $(LIBHFILES)
libxfs/Makefile +17 -12
@@ -14,15 +14,14 @@ LT_AGE = 0 PKGHFILES = xfs_fs.h \ xfs_types.h -# headers with build dependencies -HFILES = init.h \ - crc32defs.h \ - crc32table.h \ - libxfs_priv.h \ - xfs_dir2_priv.h \ - # headers installed in QA targets -QAHFILES = xfs_alloc.h \ +QAHFILES = \ + xfs_da_format.h \ + xfs_format.h \ + xfs_log_format.h + +LIBHFILES = \ + xfs_alloc.h \ xfs_alloc_btree.h \ xfs_attr_leaf.h \ xfs_attr_sf.h \
@@ -33,14 +32,11 @@ QAHFILES = xfs_alloc.h \ xfs_attr_remote.h \ xfs_cksum.h \ xfs_da_btree.h \ - xfs_da_format.h \ xfs_dir2.h \ - xfs_format.h \ xfs_ialloc.h \ xfs_ialloc_btree.h \ xfs_inode_buf.h \ xfs_inode_fork.h \ - xfs_log_format.h \ xfs_quota_defs.h \ xfs_sb.h \ xfs_shared.h \
@@ -49,6 +45,14 @@ QAHFILES = xfs_alloc.h \ libxfs_io.h \ libxfs_api_defs.h + +# headers with build dependencies +HFILES = init.h \ + crc32defs.h \ + crc32table.h \ + libxfs_priv.h \ + xfs_dir2_priv.h + CFILES = cache.c \ crc32.c \ init.c \
@@ -89,6 +93,7 @@ CFILES = cache.c \ CFILES += $(PKG_PLATFORM).c PCFILES = darwin.c freebsd.c irix.c linux.c LSRCFILES = $(shell echo $(PCFILES) | sed -e "s/$(PKG_PLATFORM).c//g") +LSRCFILES += $(LIBHFILES) LSRCFILES += gen_crc32table.c #
@@ -133,7 +138,7 @@ include $(BUILDRULES) install: default $(INSTALL) -m 755 -d $(PKG_INC_DIR) -install-headers: $(addsuffix -hdrs, $(PKGHFILES) $(QAHFILES)) +install-headers: $(addsuffix -hdrs, $(PKGHFILES) $(LIBHFILES) $(QAHFILES)) %-hdrs: $(Q)$(LN_S) -f $(PWD)/libxfs/$* $(TOPDIR)/include/xfs/$*
Signature · 6 lines
1.9.1 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
PATCH 5/13 xfsprogs: remove install-qa target
In reply to Christoph HellwigNow that we don't install all the libxfs internals but just the disk format defintions we can install those as part of the normal install-dev target.
--- Makefile | 6 ------ include/Makefile | 11 +++-------- include/buildrules | 2 +- libdisk/Makefile | 2 -- libhandle/Makefile | 2 -- libxcmd/Makefile | 2 +- libxfs/Makefile | 10 ++-------- libxlog/Makefile | 2 +- 8 files changed, 8 insertions(+), 29 deletions(-)
Makefile +0 -6
@@ -108,8 +108,6 @@ install: $(addsuffix -install,$(SUBDIRS)) install-dev: $(addsuffix -install-dev,$(SUBDIRS)) -install-qa: install $(addsuffix -install-qa,$(SUBDIRS)) - %-install: @echo "Installing $@" $(Q)$(MAKE) $(MAKEOPTS) -C $* install
@@ -118,10 +116,6 @@ install-qa: install $(addsuffix -install-qa,$(SUBDIRS)) @echo "Installing $@" $(Q)$(MAKE) $(MAKEOPTS) -C $* install-dev -%-install-qa: - @echo "Installing $@" - $(Q)$(MAKE) $(MAKEOPTS) -C $* install-qa - distclean: clean $(Q)rm -f $(LDIRT)
include/Makefile +3 -8
@@ -18,8 +18,6 @@ TOPDIR = .. include $(TOPDIR)/include/builddefs -QAHFILES = xfs_arch.h - LIBHFILES = libxfs.h \ libxlog.h \ atomic.h \
@@ -47,7 +45,8 @@ HFILES = handle.h \ $(PKG_PLATFORM).h \ platform_defs.h \ xfs.h \ - xqm.h + xqm.h \ + xfs_arch.h PHFILES = darwin.h freebsd.h irix.h linux.h gnukfreebsd.h DKHFILES = volume.h fstyp.h dvh.h
@@ -66,7 +65,7 @@ disk: include $(BUILDRULES) # set up include/xfs header directory -install-headers: $(addsuffix -hdrs, $(HFILES) $(QAHFILES) $(PHFILES) $(DKHFILES) $(LIBHFILES)) +install-headers: $(addsuffix -hdrs, $(HFILES) $(PHFILES) $(DKHFILES) $(LIBHFILES)) %-hdrs: xfs $(Q)$(LN_S) -f $(PWD)/include/$* xfs/$*
@@ -79,7 +78,3 @@ install: default install-dev: install $(INSTALL) -m 644 $(HFILES) $(PKG_INC_DIR) - -install-qa: install-dev - $(INSTALL) -m 644 $(QAHFILES) $(PKG_INC_DIR) -
include/buildrules +1 -1
@@ -94,7 +94,7 @@ $(_FORCE): # rebuild on every make invocation isn't a problem we need to care about. Just # do it silently so it doesn't make the build unnecessarily noisy. -.PHONY : depend ltdepend install-qa +.PHONY : depend ltdepend MAKEDEP := $(MAKEDEPEND) $(CFLAGS)
libdisk/Makefile +0 -2
@@ -32,6 +32,4 @@ install: default install-dev: default -install-qa: install-dev - -include .ltdep
libhandle/Makefile +0 -2
@@ -25,6 +25,4 @@ install: default install-dev: default $(INSTALL_LTLIB_DEV) -install-qa: install-dev - -include .ltdep
libxcmd/Makefile +1 -1
@@ -34,6 +34,6 @@ default: ltdepend $(LTLIBRARY) include $(BUILDRULES) -install install-dev install-qa: default +install install-dev: default -include .ltdep
libxfs/Makefile +2 -8
@@ -12,10 +12,7 @@ LT_AGE = 0 # headers to install in include/xfs PKGHFILES = xfs_fs.h \ - xfs_types.h - -# headers installed in QA targets -QAHFILES = \ + xfs_types.h \ xfs_da_format.h \ xfs_format.h \ xfs_log_format.h
@@ -138,7 +135,7 @@ include $(BUILDRULES) install: default $(INSTALL) -m 755 -d $(PKG_INC_DIR) -install-headers: $(addsuffix -hdrs, $(PKGHFILES) $(LIBHFILES) $(QAHFILES)) +install-headers: $(addsuffix -hdrs, $(PKGHFILES) $(LIBHFILES)) %-hdrs: $(Q)$(LN_S) -f $(PWD)/libxfs/$* $(TOPDIR)/include/xfs/$*
@@ -146,9 +143,6 @@ install-headers: $(addsuffix -hdrs, $(PKGHFILES) $(LIBHFILES) $(QAHFILES)) install-dev: install $(INSTALL) -m 644 $(PKGHFILES) $(PKG_INC_DIR) -install-qa: install-dev - $(INSTALL) -m 644 $(QAHFILES) $(PKG_INC_DIR) - # We need to install the headers before building the dependencies. If we # include the .ltdep file, the makefile decides that it needs to build the # dependencies to remake the makefile before running the header install target,
libxlog/Makefile +1 -1
@@ -19,6 +19,6 @@ default: ltdepend $(LTLIBRARY) include $(BUILDRULES) -install install-dev install-qa: default +install install-dev: default -include .ltdep
Signature · 6 lines
1.9.1 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
PATCH 6/13 xfsprogs: use <>-style includes in installed headers
In reply to Christoph HellwigOnce installed these are system headers, so we need to use <>-style include statements between them.
--- include/platform_defs.h.in | 10 +++++----- include/xfs.h | 6 +++--- include/xqm.h | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-)
include/platform_defs.h.in +5 -5
@@ -69,15 +69,15 @@ typedef __u64 __bitwise __be64; typedef struct filldir filldir_t; #if defined(__linux__) -#include "xfs/linux.h" +#include <xfs/linux.h> #elif defined(__FreeBSD__) -#include "xfs/freebsd.h" +#include <xfs/freebsd.h> #elif defined(__FreeBSD_kernel__) -#include "xfs/gnukfreebsd.h" +#include <xfs/gnukfreebsd.h> #elif defined(__APPLE__) -#include "xfs/darwin.h" +#include <xfs/darwin.h> #elif defined(__sgi__) || defined(__sgi) -#include "xfs/irix.h" +#include <xfs/irix.h> #else # error unknown platform... have fun porting! #endif
include/xfs.h +3 -3
@@ -33,8 +33,8 @@#ifndef __XFS_H__#define __XFS_H__ -#include "xfs/platform_defs.h" -#include "xfs/xfs_types.h" -#include "xfs/xfs_fs.h" +#include <xfs/platform_defs.h> +#include <xfs/xfs_types.h> +#include <xfs/xfs_fs.h> #endif /* __XFS_H__ */
include/xqm.h +1 -1
@@ -18,7 +18,7 @@#ifndef __XQM_H__#define __XQM_H__ -#include "xfs/xfs.h" +#include <xfs/xfs.h> /* * Disk quota - quotactl(2) commands for the XFS Quota Manager (XQM).
Signature · 6 lines
1.9.1 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
PATCH 7/13 xfsprogs: simplify internal includes
In reply to Christoph HellwigWe don't need the xfs/ prefix for local includes if we just add the libxfs directory to the include path. Once that is done we only need to link the installed headers into include/xfs.
--- copy/xfs_copy.c | 2 +- db/addr.c | 2 +- db/agf.c | 2 +- db/agfl.c | 2 +- db/agi.c | 2 +- db/attr.c | 2 +- db/attrset.c | 2 +- db/attrshort.c | 2 +- db/bit.c | 2 +- db/block.c | 2 +- db/bmap.c | 2 +- db/bmroot.c | 2 +- db/btblock.c | 2 +- db/check.c | 2 +- db/command.c | 2 +- db/convert.c | 2 +- db/debug.c | 2 +- db/dir2.c | 2 +- db/dir2sf.c | 2 +- db/dquot.c | 2 +- db/echo.c | 2 +- db/faddr.c | 2 +- db/field.c | 2 +- db/flist.c | 2 +- db/fprint.c | 2 +- db/frag.c | 2 +- db/freesp.c | 2 +- db/hash.c | 2 +- db/help.c | 2 +- db/init.c | 2 +- db/inode.c | 2 +- db/input.c | 2 +- db/io.c | 2 +- db/malloc.c | 2 +- db/metadump.c | 4 +-- db/output.c | 2 +- db/print.c | 2 +- db/quit.c | 2 +- db/sb.c | 4 +-- db/sig.c | 2 +- db/strvec.c | 2 +- db/symlink.c | 2 +- db/text.c | 2 +- db/type.c | 2 +- db/write.c | 2 +- estimate/xfs_estimate.c | 2 +- fsr/xfs_fsr.c | 12 +++---- growfs/xfs_growfs.c | 4 +-- include/Makefile | 2 +- include/builddefs.in | 2 +- include/input.h | 2 +- include/libxfs.h | 86 +++++++++++++++++++++++----------------------- include/libxlog.h | 2 +- include/path.h | 2 +- include/project.h | 2 +- include/xfs_inode.h | 4 +-- io/attr.c | 6 ++-- io/bmap.c | 4 +-- io/fadvise.c | 6 ++-- io/fiemap.c | 4 +-- io/file.c | 6 ++-- io/freeze.c | 6 ++-- io/fsync.c | 4 +-- io/getrusage.c | 6 ++-- io/imap.c | 6 ++-- io/init.c | 6 ++-- io/inject.c | 6 ++-- io/link.c | 6 ++-- io/madvise.c | 6 ++-- io/mincore.c | 6 ++-- io/mmap.c | 6 ++-- io/open.c | 6 ++-- io/parent.c | 14 ++++---- io/pread.c | 6 ++-- io/prealloc.c | 6 ++-- io/pwrite.c | 6 ++-- io/readdir.c | 6 ++-- io/resblks.c | 6 ++-- io/seek.c | 6 ++-- io/sendfile.c | 6 ++-- io/shutdown.c | 6 ++-- io/sync.c | 4 +-- io/sync_file_range.c | 6 ++-- io/truncate.c | 6 ++-- libdisk/drivers.h | 2 +- libhandle/handle.c | 6 ++-- libhandle/jdm.c | 8 ++--- libxcmd/command.c | 6 ++-- libxcmd/help.c | 4 +-- libxcmd/input.c | 4 +-- libxcmd/paths.c | 6 ++-- libxcmd/projects.c | 2 +- libxcmd/quit.c | 4 +-- libxfs/Makefile | 12 +++---- libxfs/crc32.c | 4 +-- libxfs/darwin.c | 2 +- libxfs/freebsd.c | 2 +- libxfs/init.c | 2 +- libxfs/irix.c | 2 +- libxfs/libxfs_priv.h | 24 ++++++------- libxfs/radix-tree.c | 2 +- libxfs/rdwr.c | 2 +- libxlog/util.c | 4 +-- libxlog/xfs_log_recover.c | 4 +-- logprint/log_copy.c | 4 +-- logprint/log_dump.c | 4 +-- logprint/log_misc.c | 4 +-- logprint/log_print_all.c | 4 +-- logprint/log_print_trans.c | 4 +-- logprint/logprint.c | 4 +-- mdrestore/xfs_mdrestore.c | 2 +- mkfs/fstyp.c | 2 +- mkfs/maxtrres.c | 2 +- mkfs/proto.c | 2 +- mkfs/xfs_mkfs.c | 2 +- quota/edit.c | 4 +-- quota/free.c | 2 +- quota/init.c | 6 ++-- quota/path.c | 4 +-- quota/project.c | 4 +-- quota/quot.c | 2 +- quota/quota.c | 2 +- quota/quota.h | 6 ++-- quota/report.c | 2 +- quota/state.c | 2 +- repair/agheader.c | 2 +- repair/attr_repair.c | 2 +- repair/avl.c | 2 +- repair/avl64.c | 2 +- repair/bmap.c | 2 +- repair/btree.c | 2 +- repair/dino_chunks.c | 2 +- repair/dinode.c | 2 +- repair/dir2.c | 2 +- repair/globals.c | 2 +- repair/incore.c | 2 +- repair/incore_bmc.c | 2 +- repair/incore_ext.c | 2 +- repair/incore_ino.c | 2 +- repair/init.c | 2 +- repair/phase1.c | 2 +- repair/phase2.c | 4 +-- repair/phase3.c | 2 +- repair/phase4.c | 2 +- repair/phase5.c | 2 +- repair/phase6.c | 2 +- repair/phase7.c | 2 +- repair/prefetch.c | 2 +- repair/progress.c | 2 +- repair/rt.c | 2 +- repair/sb.c | 4 +-- repair/scan.c | 2 +- repair/threads.c | 2 +- repair/versions.c | 2 +- repair/xfs_repair.c | 4 +-- rtcp/xfs_rtcp.c | 2 +- 156 files changed, 308 insertions(+), 312 deletions(-)
copy/xfs_copy.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include <sys/stat.h> #include <sys/wait.h> #include <pthread.h>
db/addr.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "addr.h" #include "command.h" #include "type.h"
db/agf.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "command.h" #include "type.h" #include "faddr.h"
db/agfl.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "command.h" #include "type.h" #include "faddr.h"
db/agi.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "command.h" #include "type.h" #include "faddr.h"
db/attr.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "bit.h" #include "type.h" #include "faddr.h"
db/attrset.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "command.h" #include "attrset.h" #include "io.h"
db/attrshort.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "type.h" #include "faddr.h" #include "fprint.h"
db/bit.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "bit.h" #undef setbit/* defined in param.h on Linux */
db/block.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "block.h" #include "bmap.h" #include "command.h"
db/bmap.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "command.h" #include "type.h" #include "fprint.h"
db/bmroot.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "type.h" #include "faddr.h" #include "fprint.h"
db/btblock.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "type.h" #include "faddr.h" #include "fprint.h"
db/check.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include <math.h> #include <sys/time.h> #include "bmap.h"
db/command.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "addr.h" #include "attrset.h" #include "block.h"
db/convert.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "command.h" #include "convert.h" #include "output.h"
db/debug.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "command.h" #include "debug.h" #include "output.h"
db/dir2.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "bit.h" #include "type.h" #include "faddr.h"
db/dir2sf.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "type.h" #include "faddr.h" #include "fprint.h"
db/dquot.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "bit.h" #include "bmap.h" #include "command.h"
db/echo.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "command.h" #include "echo.h" #include "output.h"
db/faddr.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "type.h" #include "fprint.h" #include "faddr.h"
db/field.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "type.h" #include "faddr.h" #include "fprint.h"
db/flist.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "type.h" #include "faddr.h" #include "fprint.h"
db/fprint.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include <ctype.h> #include <time.h> #include "type.h"
db/frag.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include <sys/time.h> #include "bmap.h" #include "command.h"
db/freesp.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "command.h" #include "freesp.h" #include "io.h"
db/hash.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "addr.h" #include "command.h" #include "type.h"
db/help.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "command.h" #include "help.h" #include "output.h"
db/init.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include <signal.h> #include "command.h" #include "init.h"
db/inode.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "command.h" #include "type.h" #include "faddr.h"
db/input.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include <signal.h> #include "command.h" #include "input.h"
db/io.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "command.h" #include "type.h" #include "faddr.h"
db/malloc.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "init.h" #include "malloc.h" #include "output.h"
db/metadump.c +2 -2
@@ -16,8 +16,8 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" -#include "xfs/libxlog.h" +#include "libxfs.h" +#include "libxlog.h" #include "bmap.h" #include "command.h" #include "metadump.h"
db/output.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include <stdarg.h> #include "command.h" #include "output.h"
db/print.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "command.h" #include "type.h" #include "faddr.h"
db/quit.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "command.h" #include "quit.h"
db/sb.c +2 -2
@@ -16,8 +16,8 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" -#include "xfs/libxlog.h" +#include "libxfs.h" +#include "libxlog.h" #include "command.h" #include "type.h" #include "faddr.h"
db/sig.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include <signal.h> #include "sig.h"
db/strvec.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "strvec.h" #include "output.h" #include "malloc.h"
db/symlink.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "type.h" #include "faddr.h" #include "fprint.h"
db/text.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include <ctype.h> #include "block.h" #include "bmap.h"
db/type.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "block.h" #include "command.h" #include "type.h"
db/write.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include <ctype.h> #include <time.h> #include "bit.h"
estimate/xfs_estimate.c +1 -1
@@ -21,7 +21,7 @@* * XXX: assumes dirv1 format. */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include <sys/stat.h> #include <ftw.h>
fsr/xfs_fsr.c +6 -6
@@ -16,12 +16,12 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" -#include "xfs/xfs.h" -#include "xfs/xfs_types.h" -#include "xfs/jdm.h" -#include "xfs/xfs_bmap_btree.h" -#include "xfs/xfs_attr_sf.h" +#include "libxfs.h" +#include "xfs.h" +#include "xfs_types.h" +#include "jdm.h" +#include "xfs_bmap_btree.h" +#include "xfs_attr_sf.h" #include <fcntl.h> #include <errno.h>
growfs/xfs_growfs.c +2 -2
@@ -16,8 +16,8 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" -#include "xfs/path.h" +#include "libxfs.h" +#include "path.h" static void usage (void )
include/Makefile +1 -1
@@ -65,7 +65,7 @@ disk: include $(BUILDRULES) # set up include/xfs header directory -install-headers: $(addsuffix -hdrs, $(HFILES) $(PHFILES) $(DKHFILES) $(LIBHFILES)) +install-headers: $(addsuffix -hdrs, $(PHFILES) $(DKHFILES) $(HFILES)) %-hdrs: xfs $(Q)$(LN_S) -f $(PWD)/include/$* xfs/$*
include/builddefs.in +1 -1
@@ -134,7 +134,7 @@ endif GCFLAGS = $(OPTIMIZER) $(DEBUG) \ -DVERSION=\"$(PKG_VERSION)\" -DLOCALEDIR=\"$(PKG_LOCALE_DIR)\" \ - -DPACKAGE=\"$(PKG_NAME)\" -I$(TOPDIR)/include + -DPACKAGE=\"$(PKG_NAME)\" -I$(TOPDIR)/include -I$(TOPDIR)/libxfs ifeq ($(ENABLE_GETTEXT),yes) GCFLAGS += -DENABLE_GETTEXT
include/input.h +1 -1
@@ -21,7 +21,7 @@#include <pwd.h> #include <grp.h> #include <sys/types.h> -#include "xfs/project.h" +#include "project.h" #include <stdbool.h> extern char **breakline (char *input,int *count);
include/libxfs.h +43 -43
113 lines not on this page · raw message
include/libxlog.h +1 -1
@@ -44,7 +44,7 @@ struct xlog {int l_sectBBsize;/* size of log sector in 512 byte chunks */ }; -#include "xfs/xfs_log_recover.h" +#include "xfs_log_recover.h" /* * macros mapping kernel code to user code
include/path.h +1 -1
@@ -18,7 +18,7 @@#ifndef __PATH_H__#define __PATH_H__ -#include "xfs/xfs.h" +#include "xfs.h" /* * XFS Filesystem Paths
include/project.h +1 -1
@@ -18,7 +18,7 @@#ifndef __PROJECT_H__#define __PROJECT_H__ -#include "xfs/xfs.h" +#include "xfs.h" extern int setprojid (const char *__name,int __fd,prid_t __id);extern int getprojid (const char *__name,int __fd,prid_t *__id);
include/xfs_inode.h +2 -2
@@ -20,8 +20,8 @@#define __XFS_INODE_H__/* These match kernel side includes */ -#include "xfs/xfs_inode_buf.h" -#include "xfs/xfs_inode_fork.h" +#include "xfs_inode_buf.h" +#include "xfs_inode_fork.h" struct xfs_trans ;struct xfs_mount ;
io/attr.c +3 -3
@@ -16,9 +16,9 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "xfs.h" +#include "command.h" +#include "input.h" #include "init.h" #include "io.h"
io/bmap.c +2 -2
@@ -16,8 +16,8 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" +#include "xfs.h" +#include "command.h" #include "init.h" #include "io.h"
io/fadvise.c +3 -3
@@ -16,9 +16,9 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "xfs.h" +#include "command.h" +#include "input.h" #include "init.h" #include "io.h"
io/fiemap.c +2 -2
@@ -16,8 +16,8 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" +#include "xfs.h" +#include "command.h" #include <linux/fiemap.h> #include <linux/fs.h> #include "init.h"
io/file.c +3 -3
@@ -16,9 +16,9 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "xfs.h" +#include "command.h" +#include "input.h" #include <sys/mman.h> #include "init.h" #include "io.h"
io/freeze.c +3 -3
@@ -16,9 +16,9 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "xfs.h" +#include "command.h" +#include "input.h" #include "init.h" #include "io.h"
io/fsync.c +2 -2
@@ -16,8 +16,8 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" +#include "xfs.h" +#include "command.h" #include "init.h" #include "io.h"
io/getrusage.c +3 -3
@@ -16,9 +16,9 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "xfs.h" +#include "command.h" +#include "input.h" #include <sys/time.h> #include <sys/resource.h> #include "init.h"
io/imap.c +3 -3
@@ -16,9 +16,9 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "xfs.h" +#include "command.h" +#include "input.h" #include "init.h" #include "io.h"
io/init.c +3 -3
@@ -16,9 +16,9 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "xfs.h" +#include "command.h" +#include "input.h" #include "init.h" #include "io.h"
io/inject.c +3 -3
@@ -16,9 +16,9 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "xfs.h" +#include "command.h" +#include "input.h" #include "init.h" #include "io.h"
io/link.c +3 -3
@@ -16,9 +16,9 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "xfs.h" +#include "command.h" +#include "input.h" #include "init.h" #include "io.h"
io/madvise.c +3 -3
@@ -16,9 +16,9 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "xfs.h" +#include "command.h" +#include "input.h" #include <sys/mman.h> #include "init.h" #include "io.h"
io/mincore.c +3 -3
@@ -16,9 +16,9 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "xfs.h" +#include "command.h" +#include "input.h" #include <sys/mman.h> #include "init.h" #include "io.h"
io/mmap.c +3 -3
@@ -16,9 +16,9 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "xfs.h" +#include "command.h" +#include "input.h" #include <sys/mman.h> #include <signal.h> #include "init.h"
io/open.c +3 -3
@@ -16,9 +16,9 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "xfs.h" +#include "command.h" +#include "input.h" #include "init.h" #include "io.h"
io/parent.c +7 -7
@@ -16,13 +16,13 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" -#include "xfs/path.h" -#include "xfs/parent.h" -#include "xfs/handle.h" -#include "xfs/jdm.h" +#include "xfs.h" +#include "command.h" +#include "input.h" +#include "path.h" +#include "parent.h" +#include "handle.h" +#include "jdm.h" #include "init.h" #include "io.h"
io/pread.c +3 -3
@@ -17,9 +17,9 @@*/ #include <sys/uio.h> -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "xfs.h" +#include "command.h" +#include "input.h" #include <ctype.h> #include "init.h" #include "io.h"
io/prealloc.c +3 -3
@@ -19,9 +19,9 @@#if defined(HAVE_FALLOCATE )#include <linux/falloc.h> #endif -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "xfs.h" +#include "command.h" +#include "input.h" #include "init.h" #include "io.h"
io/pwrite.c +3 -3
@@ -17,9 +17,9 @@*/ #include <sys/uio.h> -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "xfs.h" +#include "command.h" +#include "input.h" #include "init.h" #include "io.h"
io/readdir.c +3 -3
@@ -16,9 +16,9 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "xfs.h" +#include "command.h" +#include "input.h" #include "init.h" #include "io.h"
io/resblks.c +3 -3
@@ -16,9 +16,9 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "xfs.h" +#include "command.h" +#include "input.h" #include "init.h" #include "io.h"
io/seek.c +3 -3
@@ -16,9 +16,9 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "xfs.h" +#include "command.h" +#include "input.h" #include <sys/types.h> #include <unistd.h> #include "init.h"
io/sendfile.c +3 -3
@@ -16,9 +16,9 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "xfs.h" +#include "command.h" +#include "input.h" #include <sys/sendfile.h> #include "init.h" #include "io.h"
io/shutdown.c +3 -3
@@ -16,9 +16,9 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "xfs.h" +#include "command.h" +#include "input.h" #include "init.h" #include "io.h"
io/sync.c +2 -2
@@ -16,8 +16,8 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" +#include "xfs.h" +#include "command.h" #include "init.h" #include "io.h"
io/sync_file_range.c +3 -3
@@ -16,9 +16,9 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "xfs.h" +#include "command.h" +#include "input.h" #include "init.h" #include "io.h"
io/truncate.c +3 -3
@@ -16,9 +16,9 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "xfs.h" +#include "command.h" +#include "input.h" #include "init.h" #include "io.h"
libdisk/drivers.h +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include <sys/stat.h> #include <volume.h>
libhandle/handle.c +3 -3
@@ -17,9 +17,9 @@*/ #include <libgen.h> -#include "xfs/xfs.h" -#include "xfs/handle.h" -#include "xfs/parent.h" +#include "xfs.h" +#include "handle.h" +#include "parent.h" /* just pick a value we know is more than big enough */ #define MAXHANSIZ 64
libhandle/jdm.c +4 -4
@@ -16,10 +16,10 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/handle.h" -#include "xfs/jdm.h" -#include "xfs/parent.h" +#include "xfs.h" +#include "handle.h" +#include "jdm.h" +#include "parent.h" /* internal fshandle - typecast to a void for external use */ #define FSHANDLE_SZ 8
libxcmd/command.c +3 -3
@@ -16,9 +16,9 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "xfs.h" +#include "command.h" +#include "input.h" cmdinfo_t *cmdtab;int ncmds;
libxcmd/help.c +2 -2
@@ -16,8 +16,8 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" +#include "xfs.h" +#include "command.h" static cmdinfo_t help_cmd;static void help_onecmd (const char *cmd,const cmdinfo_t *ct);
libxcmd/input.c +2 -2
@@ -16,8 +16,8 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/input.h" +#include "xfs.h" +#include "input.h" #include <ctype.h> #include <stdbool.h>
libxcmd/paths.c +3 -3
@@ -24,9 +24,9 @@#include <unistd.h> #include <sys/types.h> #include <sys/stat.h> -#include "xfs/path.h" -#include "xfs/input.h" -#include "xfs/project.h" +#include "path.h" +#include "input.h" +#include "project.h" #include <limits.h> extern char *progname;
libxcmd/projects.c +1 -1
@@ -19,7 +19,7 @@#include <stdio.h> #include <stdlib.h> #include <string.h> -#include "xfs/project.h" +#include "project.h" #define PROJID "/etc/projid"#define PROJECT_PATHS "/etc/projects"
libxcmd/quit.c +2 -2
@@ -16,8 +16,8 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xfs.h" -#include "xfs/command.h" +#include "xfs.h" +#include "command.h" static cmdinfo_t quit_cmd;
libxfs/Makefile +4 -8
@@ -17,7 +17,7 @@ PKGHFILES = xfs_fs.h \ xfs_format.h \ xfs_log_format.h -LIBHFILES = \ +HFILES = \ xfs_alloc.h \ xfs_alloc_btree.h \ xfs_attr_leaf.h \
@@ -40,11 +40,8 @@ LIBHFILES = \ xfs_trans_resv.h \ xfs_trans_space.h \ libxfs_io.h \ - libxfs_api_defs.h - - -# headers with build dependencies -HFILES = init.h \ + libxfs_api_defs.h \ + init.h \ crc32defs.h \ crc32table.h \ libxfs_priv.h \
@@ -90,7 +87,6 @@ CFILES = cache.c \ CFILES += $(PKG_PLATFORM).c PCFILES = darwin.c freebsd.c irix.c linux.c LSRCFILES = $(shell echo $(PCFILES) | sed -e "s/$(PKG_PLATFORM).c//g") -LSRCFILES += $(LIBHFILES) LSRCFILES += gen_crc32table.c #
@@ -135,7 +131,7 @@ include $(BUILDRULES) install: default $(INSTALL) -m 755 -d $(PKG_INC_DIR) -install-headers: $(addsuffix -hdrs, $(PKGHFILES) $(LIBHFILES)) +install-headers: $(addsuffix -hdrs, $(PKGHFILES)) %-hdrs: $(Q)$(LN_S) -f $(PWD)/libxfs/$* $(TOPDIR)/include/xfs/$*
libxfs/crc32.c +2 -2
@@ -33,8 +33,8 @@* match the hardware acceleration available on Intel CPUs. */ -#include "xfs/platform_defs.h" -#include "xfs/xfs_arch.h" +#include "platform_defs.h" +#include "xfs_arch.h" #include "crc32defs.h" /* types specifc to this file */
libxfs/darwin.c +1 -1
@@ -21,7 +21,7 @@#include <sys/mount.h> #include <sys/ioctl.h> #include <sys/sysctl.h> -#include "xfs/libxfs.h" +#include "libxfs.h" int platform_has_uuid =1 ;extern char *progname;
libxfs/freebsd.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include <sys/stat.h> #include <sys/disk.h> #include <sys/mount.h>
libxfs/init.c +1 -1
@@ -31,7 +31,7 @@#include "xfs_inode.h" #include "xfs_trans.h" -#include "xfs/libxfs.h" /* for now */ +#include "libxfs.h" /* for now */ char *progname ="libxfs" ;/* default, changed by each tool */
libxfs/irix.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include <diskinfo.h> #include <sys/sysmp.h>
libxfs/libxfs_priv.h +12 -12
@@ -58,20 +58,20 @@ (ip)->d_ops, hdr, loghead)#include "libxfs_api_defs.h" -#include "xfs/platform_defs.h" +#include "platform_defs.h" -#include "xfs/list.h" -#include "xfs/hlist.h" -#include "xfs/cache.h" -#include "xfs/bitops.h" -#include "xfs/kmem.h" -#include "xfs/radix-tree.h" -#include "xfs/atomic.h" +#include "list.h" +#include "hlist.h" +#include "cache.h" +#include "bitops.h" +#include "kmem.h" +#include "radix-tree.h" +#include "atomic.h" -#include "xfs/xfs_types.h" -#include "xfs/xfs_arch.h" +#include "xfs_types.h" +#include "xfs_arch.h" -#include "xfs/xfs_fs.h" +#include "xfs_fs.h" /* CRC stuff, buffer API dependent on it */ extern uint32_t crc32_le (uint32_t crc,unsigned char const *p,size_t len);
@@ -80,7 +80,7 @@ extern uint32_t crc32c_le(uint32_t crc, unsigned char const *p, size_t len);#define crc32 (c,p,l) crc32_le((c),(unsigned char const *)(p),(l))#define crc32c (c,p,l) crc32c_le((c),(unsigned char const *)(p),(l)) -#include "xfs/xfs_cksum.h" +#include "xfs_cksum.h" /* * This mirrors the kernel include for xfs_buf.h - it's implicitly included in
libxfs/radix-tree.c +1 -1
@@ -18,7 +18,7 @@* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include "xfs/platform_defs.h" +#include "platform_defs.h" #include "radix-tree.h" #ifndef ARRAY_SIZE
libxfs/rdwr.c +1 -1
@@ -30,7 +30,7 @@#include "xfs_inode.h" #include "xfs_trans.h" -#include "xfs/libxfs.h" /* for LIBXFS_EXIT_ON_FAILURE */ +#include "libxfs.h" /* for LIBXFS_EXIT_ON_FAILURE */ /* * Important design/architecture note:
libxlog/util.c +2 -2
@@ -16,8 +16,8 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" -#include "xfs/libxlog.h" +#include "libxfs.h" +#include "libxlog.h" int print_exit;int print_skip_uuid;
libxlog/xfs_log_recover.c +2 -2
@@ -15,8 +15,8 @@* along with this program; if not, write the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" -#include "xfs/libxlog.h" +#include "libxfs.h" +#include "libxlog.h" #define xfs_readonly_buftarg (buftarg) (0)
logprint/log_copy.c +2 -2
@@ -15,8 +15,8 @@* along with this program; if not, write the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" -#include "xfs/libxlog.h" +#include "libxfs.h" +#include "libxlog.h" #include "logprint.h"
logprint/log_dump.c +2 -2
@@ -15,8 +15,8 @@* along with this program; if not, write the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" -#include "xfs/libxlog.h" +#include "libxfs.h" +#include "libxlog.h" #include "logprint.h"
logprint/log_misc.c +2 -2
@@ -15,8 +15,8 @@* along with this program; if not, write the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" -#include "xfs/libxlog.h" +#include "libxfs.h" +#include "libxlog.h" #include "logprint.h"
logprint/log_print_all.c +2 -2
@@ -15,8 +15,8 @@* along with this program; if not, write the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" -#include "xfs/libxlog.h" +#include "libxfs.h" +#include "libxlog.h" #include "logprint.h"
logprint/log_print_trans.c +2 -2
@@ -15,8 +15,8 @@* along with this program; if not, write the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" -#include "xfs/libxlog.h" +#include "libxfs.h" +#include "libxlog.h" #include "logprint.h"
logprint/logprint.c +2 -2
@@ -18,8 +18,8 @@#include <sys/types.h> #include <sys/stat.h> -#include "xfs/libxfs.h" -#include "xfs/libxlog.h" +#include "libxfs.h" +#include "libxlog.h" #include "logprint.h"
mdrestore/xfs_mdrestore.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "xfs_metadump.h" char *progname;
mkfs/fstyp.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include <disk/fstyp.h> /*
mkfs/maxtrres.c +1 -1
@@ -24,7 +24,7 @@* directory block size. */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "xfs_mkfs.h" int
mkfs/proto.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include <sys/stat.h> #include "xfs_mkfs.h"
mkfs/xfs_mkfs.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include <ctype.h> #ifdef ENABLE_BLKID #include <blkid/blkid.h>
quota/edit.c +2 -2
@@ -19,8 +19,8 @@#include <pwd.h> #include <grp.h> #include <ctype.h> -#include "xfs/input.h" -#include "xfs/command.h" +#include "input.h" +#include "command.h" #include "init.h" #include "quota.h"
quota/free.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/command.h" +#include "command.h" #include "init.h" #include "quota.h"
quota/init.c +3 -3
@@ -16,9 +16,9 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/path.h" -#include "xfs/command.h" -#include "xfs/input.h" +#include "path.h" +#include "command.h" +#include "input.h" #include "init.h" char *progname;
quota/path.c +2 -2
@@ -16,8 +16,8 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/command.h" -#include "xfs/input.h" +#include "command.h" +#include "input.h" #include "init.h" #include "quota.h"
quota/project.c +2 -2
@@ -16,8 +16,8 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/command.h" -#include "xfs/input.h" +#include "command.h" +#include "input.h" #include "init.h" #include "quota.h"
quota/quot.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/command.h" +#include "command.h" #include <ctype.h> #include <pwd.h> #include <grp.h>
quota/quota.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/command.h" +#include "command.h" #include <ctype.h> #include <pwd.h> #include <grp.h>
quota/quota.h +3 -3
@@ -16,9 +16,9 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/xqm.h" -#include "xfs/path.h" -#include "xfs/project.h" +#include "xqm.h" +#include "path.h" +#include "project.h" #include <stdbool.h> /*
quota/report.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/command.h" +#include "command.h" #include <sys/types.h> #include <pwd.h> #include <grp.h>
quota/state.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/command.h" +#include "command.h" #include "init.h" #include "quota.h"
repair/agheader.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "globals.h" #include "agheader.h" #include "protos.h"
repair/attr_repair.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "globals.h" #include "err_protos.h" #include "attr_repair.h"
repair/avl.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "avl.h" #define CERT ASSERT
repair/avl64.c +1 -1
@@ -17,7 +17,7 @@*/ #include <stdio.h> -#include "xfs/libxfs.h" +#include "libxfs.h" #include "avl64.h" #define CERT ASSERT
repair/bmap.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "err_protos.h" #include "bmap.h"
repair/btree.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "btree.h" /*
repair/dino_chunks.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "avl.h" #include "globals.h" #include "agheader.h"
repair/dinode.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "avl.h" #include "globals.h" #include "agheader.h"
repair/dir2.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "avl.h" #include "globals.h" #include "incore.h"
repair/globals.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #define EXTERN #include "globals.h"
repair/incore.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "avl.h" #include "btree.h" #include "globals.h"
repair/incore_bmc.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "avl.h" #include "globals.h" #include "incore.h"
repair/incore_ext.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "avl.h" #include "btree.h" #include "globals.h"
repair/incore_ino.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "avl.h" #include "globals.h" #include "incore.h"
repair/init.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "globals.h" #include "agheader.h" #include "protos.h"
repair/phase1.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "globals.h" #include "agheader.h" #include "protos.h"
repair/phase2.c +2 -2
@@ -16,8 +16,8 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" -#include "xfs/libxlog.h" +#include "libxfs.h" +#include "libxlog.h" #include "avl.h" #include "globals.h" #include "agheader.h"
repair/phase3.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "threads.h" #include "prefetch.h" #include "avl.h"
repair/phase4.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "threads.h" #include "prefetch.h" #include "avl.h"
repair/phase5.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "avl.h" #include "globals.h" #include "agheader.h"
repair/phase6.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "threads.h" #include "prefetch.h" #include "avl.h"
repair/phase7.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "avl.h" #include "globals.h" #include "agheader.h"
repair/prefetch.c +1 -1
@@ -1,4 +1,4 @@ -#include "xfs/libxfs.h" +#include "libxfs.h" #include <pthread.h> #include "avl.h" #include "btree.h"
repair/progress.c +1 -1
@@ -1,5 +1,5 @@ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "globals.h" #include "progress.h" #include "err_protos.h"
repair/rt.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "avl.h" #include "globals.h" #include "agheader.h"
repair/sb.c +2 -2
@@ -16,8 +16,8 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" -#include "xfs/libxlog.h" +#include "libxfs.h" +#include "libxlog.h" #include "agheader.h" #include "globals.h" #include "protos.h"
repair/scan.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #include "avl.h" #include "globals.h" #include "agheader.h"
repair/threads.c +1 -1
@@ -1,4 +1,4 @@ -#include "xfs/libxfs.h" +#include "libxfs.h" #include <pthread.h> #include <signal.h> #include "threads.h"
repair/versions.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" #define EXTERN #include "versions.h"
repair/xfs_repair.c +2 -2
@@ -16,8 +16,8 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" -#include "xfs/libxlog.h" +#include "libxfs.h" +#include "libxlog.h" #include <sys/resource.h> #include "avl.h" #include "avl64.h"
rtcp/xfs_rtcp.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs/libxfs.h" +#include "libxfs.h" int rtcp (char *,char *,int );int xfsrtextsize (char *path);
Signature · 6 lines
1.9.1 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
PATCH 8/13 xfsprogs: move __be*/__le* types and __arch_pack to xfs_arch.h
In reply to Christoph HellwigThese are defines and typedefs only needed for the XFS on disk format, so there is no need to have the available for every user of xfs.h.
--- include/platform_defs.h.in | 23 ----------------------- include/xfs_arch.h | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 23 deletions(-)
include/platform_defs.h.in +0 -23
@@ -50,22 +50,6 @@ typedef unsigned long long int __u64; typedef signed long long int __s64; #endif -#ifdef __CHECKER__ -#define __bitwise __attribute__((bitwise)) -#define __force __attribute__((force)) -#else -#define __bitwise -#define __force -#endif - -typedef __u16 __bitwise __le16; -typedef __u32 __bitwise __le32; -typedef __u64 __bitwise __le64; - -typedef __u16 __bitwise __be16; -typedef __u32 __bitwise __be32; -typedef __u64 __bitwise __be64; - typedef struct filldir filldir_t; #if defined(__linux__)
@@ -130,13 +114,6 @@ typedef unsigned short umode_t; | (minor&IRIX_DEV_MAXMIN))) #define IRIX_DEV_TO_KDEVT(dev) makedev(IRIX_DEV_MAJOR(dev),IRIX_DEV_MINOR(dev)) -/* ARM old ABI has some weird alignment/padding */ -#if defined(__arm__) && !defined(__ARM_EABI__) -#define __arch_pack __attribute__((packed)) -#else -#define __arch_pack -#endif - #ifndef min #define min(a,b) (((a)<(b))?(a):(b)) #define max(a,b) (((a)>(b))?(a):(b))
include/xfs_arch.h +23 -0
@@ -24,6 +24,22 @@#undef XFS_NATIVE_HOST#endif +#ifdef __CHECKER__ +#define __bitwise __attribute__((bitwise)) +#define __force __attribute__((force)) +#else +#define __bitwise +#define __force +#endif + +typedef __u16 __bitwise __le16 ; +typedef __u32 __bitwise __le32 ; +typedef __u64 __bitwise __le64 ; + +typedef __u16 __bitwise __be16 ; +typedef __u32 __bitwise __be32 ; +typedef __u64 __bitwise __be64 ; +/* * Casts are necessary for constants, because we never know how for sure * how U/UL/ULL map to __u16, __u32, __u64. At least not in a portable way.
@@ -262,4 +278,11 @@ static inline void put_unaligned_be64(__uint64_t val, void *p) put_unaligned_be32(val, p + 4); } +/* ARM old ABI has some weird alignment/padding */ +#if defined(__arm__) && !defined(__ARM_EABI__) +#define __arch_pack __attribute__((packed)) +#else +#define __arch_pack +#endif +#endif /* __XFS_ARCH_H__ */
Signature · 6 lines
1.9.1 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
PATCH 9/13 xfsprogs: move __u*/__s* typedefs to per-port headers
In reply to Christoph HellwigCurrently we have to install the autoconf-generated platform_defs.h to get the defintions for these. But they are clearly a feature of Linux vs non-Linux platforms so move them to the per-port headers instead.
Note: in the long run it might be a good idea to just the standard uint*_t/int*_t types instead.
--- configure.ac | 1 - include/darwin.h | 9 +++++++++ include/freebsd.h | 9 +++++++++ include/gnukfreebsd.h | 9 +++++++++ include/irix.h | 9 +++++++++ include/linux.h | 1 + include/platform_defs.h.in | 14 -------------- m4/package_types.m4 | 13 ------------- 8 files changed, 37 insertions(+), 28 deletions(-)
configure.ac +0 -1
@@ -116,7 +116,6 @@ AC_HAVE_READDIR AC_CHECK_SIZEOF([long]) AC_CHECK_SIZEOF([char *]) -AC_TYPE_U32 AC_TYPE_UMODE_T AC_MANUAL_FORMAT
include/darwin.h +9 -0
@@ -109,6 +109,15 @@ static __inline__ void platform_uuid_copy(uuid_t *dst, uuid_t *src)memcpy (dst, src,sizeof (uuid_t)); } +typedef unsigned char __u8 ; +typedef signed char __s8 ; +typedef unsigned short __u16 ; +typedef signed short __s16 ; +typedef unsigned int __u32 ; +typedef signed int __s32 ; +typedef unsigned long long int __u64 ; +typedef signed long long int __s64 ; +#define __int8_t int8_t#define __int16_t int16_t#define __int32_t int32_t
include/freebsd.h +9 -0
@@ -53,6 +53,15 @@ typedef __uint64_t xfs_ino_t;typedef __uint32_t xfs_dev_t ;typedef __int64_t xfs_daddr_t ; +typedef unsigned char __u8 ; +typedef signed char __s8 ; +typedef unsigned short __u16 ; +typedef signed short __s16 ; +typedef unsigned int __u32 ; +typedef signed int __s32 ; +typedef unsigned long long int __u64 ; +typedef signed long long int __s64 ; +#define O_LARGEFILE 0#define HAVE_FID 1
include/gnukfreebsd.h +9 -0
@@ -42,6 +42,15 @@ typedef __uint64_t xfs_ino_t;typedef __uint32_t xfs_dev_t ;typedef __int64_t xfs_daddr_t ; +typedef unsigned char __u8 ; +typedef signed char __s8 ; +typedef unsigned short __u16 ; +typedef signed short __s16 ; +typedef unsigned int __u32 ; +typedef signed int __s32 ; +typedef unsigned long long int __u64 ; +typedef signed long long int __s64 ; +#define HAVE_FID 1static __inline__int xfsctl (const char *path,int fd,int cmd,void *p)
include/irix.h +9 -0
@@ -47,6 +47,15 @@ typedef __int64_t xfs_ino_t;typedef __int32_t xfs_dev_t ;typedef __int64_t xfs_daddr_t ; +typedef unsigned char __u8 ; +typedef signed char __s8 ; +typedef unsigned short __u16 ; +typedef signed short __s16 ; +typedef unsigned int __u32 ; +typedef signed int __s32 ; +typedef unsigned long long int __u64 ; +typedef signed long long int __s64 ; +#define xfs_flock64 flock64#define xfs_flock64_t struct flock64
include/linux.h +1 -0
@@ -28,6 +28,7 @@#include <getopt.h> #include <endian.h> #include <stdbool.h> +#include <asm/types.h> static __inline__int xfsctl (const char *path,int fd,int cmd,void *p) {
include/platform_defs.h.in +0 -14
@@ -36,20 +36,6 @@ #include <limits.h> #include <stdbool.h> -#undef HAVE___U32 -#ifdef HAVE___U32 -#include <asm/types.h> -#else -typedef unsigned char __u8; -typedef signed char __s8; -typedef unsigned short __u16; -typedef signed short __s16; -typedef unsigned int __u32; -typedef signed int __s32; -typedef unsigned long long int __u64; -typedef signed long long int __s64; -#endif - typedef struct filldir filldir_t; #if defined(__linux__)
m4/package_types.m4 +0 -13
@@ -1,16 +1,3 @@ -# -# Check if we have a type for __u32 -# -AC_DEFUN([AC_TYPE_U32], - [ AC_MSG_CHECKING([for __u32 ]) - AC_TRY_COMPILE([ -#include <asm/types.h> -#include <stdlib.h> -#include <stddef.h> - ], [ - __u32 u32; - ], AC_DEFINE(HAVE___U32) AC_MSG_RESULT(yes) , AC_MSG_RESULT(no)) - ]) # # Check if we have umode_t #
Signature · 6 lines
1.9.1 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
PATCH 10/13 xfsprogs: include libxfs.h in libxfs_priv.h
In reply to Christoph Hellwiglibxfs_priv.h duplicates large parts of libxfs.h.
--- include/libxfs.h | 4 ---- libxfs/libxfs_priv.h | 37 +------------------------------------ 2 files changed, 1 insertion(+), 40 deletions(-)
include/libxfs.h +0 -4
@@ -163,12 +163,8 @@ extern int libxfs_bmap_finish(xfs_trans_t **, xfs_bmap_free_t *, int *);extern void libxfs_fs_repair_cmn_err (int ,struct xfs_mount *,char *, ...);extern void libxfs_fs_cmn_err (int ,struct xfs_mount *,char *, ...); -/* XXX: this is messy and needs fixing */ -#ifndef __LIBXFS_INTERNAL_XFS_H__extern void cmn_err (int ,char *, ...);enum ce {CE_DEBUG ,CE_CONT ,CE_NOTE ,CE_WARN ,CE_ALERT ,CE_PANIC }; -#endif -extern int libxfs_nproc (void );extern unsigned long libxfs_physmem (void );/* in kilobytes */
libxfs/libxfs_priv.h +1 -36
@@ -57,39 +57,7 @@__xfs_dir2_data_freescan ((ip)->i_mount->m_dir_geo, \ (ip)->d_ops, hdr, loghead) -#include "libxfs_api_defs.h" -#include "platform_defs.h" - -#include "list.h" -#include "hlist.h" -#include "cache.h" -#include "bitops.h" -#include "kmem.h" -#include "radix-tree.h" -#include "atomic.h" - -#include "xfs_types.h" -#include "xfs_arch.h" - -#include "xfs_fs.h" - -/* CRC stuff, buffer API dependent on it */ -extern uint32_t crc32_le (uint32_t crc,unsigned char const *p,size_t len); -extern uint32_t crc32c_le (uint32_t crc,unsigned char const *p,size_t len); - -#define crc32 (c,p,l) crc32_le((c),(unsigned char const *)(p),(l)) -#define crc32c (c,p,l) crc32c_le((c),(unsigned char const *)(p),(l)) - -#include "xfs_cksum.h" - -/* -* This mirrors the kernel include for xfs_buf.h - it's implicitly included in -* every files via a similar include in the kernel xfs_linux.h. -*/ -#include "libxfs_io.h" - -/* for all the support code that uses progname in error messages */ -extern char *progname; +#include "libxfs.h" #undef ASSERT#define ASSERT (ex) assert(ex)
@@ -115,9 +83,6 @@ extern char *progname;#define XFS_IGET_CREATE 0x1#define XFS_IGET_UNTRUSTED 0x2 -extern void cmn_err (int ,char *, ...); -enum ce {CE_DEBUG ,CE_CONT ,CE_NOTE ,CE_WARN ,CE_ALERT ,CE_PANIC }; - #define xfs_notice(mp,fmt,args...) cmn_err(CE_NOTE,fmt, ## args) #define xfs_warn(mp,fmt,args...) cmn_err(CE_WARN,fmt, ## args)#define xfs_hex_dump (d,n) ((void) 0)
Signature · 6 lines
1.9.1 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
PATCH 11/13 xfsprogs: don't install platform_defs.h
In reply to Christoph Hellwig--- include/Makefile | 4 ++-- include/libxfs.h | 1 + include/linux.h | 1 + include/path.h | 2 +- include/platform_defs.h.in | 27 --------------------------- include/project.h | 1 + include/xfs.h | 28 +++++++++++++++++++++++++++- io/attr.c | 1 - io/bmap.c | 2 +- io/fadvise.c | 1 - io/fiemap.c | 2 +- io/file.c | 1 - io/freeze.c | 1 - io/fsync.c | 2 +- io/getrusage.c | 1 - io/imap.c | 1 - io/init.c | 2 +- io/inject.c | 1 - io/io.h | 2 ++ io/link.c | 1 - io/madvise.c | 1 - io/mincore.c | 1 - io/mmap.c | 1 - io/open.c | 1 - io/parent.c | 1 - io/pread.c | 1 - io/prealloc.c | 1 - io/pwrite.c | 1 - io/readdir.c | 1 - io/resblks.c | 1 - io/seek.c | 1 - io/sendfile.c | 1 - io/shutdown.c | 1 - io/sync.c | 2 +- io/sync_file_range.c | 1 - io/truncate.c | 1 - libhandle/handle.c | 1 + libhandle/jdm.c | 1 + libxcmd/command.c | 2 +- libxcmd/help.c | 2 +- libxcmd/input.c | 2 +- libxcmd/quit.c | 2 +- libxfs/crc32.c | 1 + libxfs/radix-tree.c | 1 + 44 files changed, 48 insertions(+), 63 deletions(-)
include/Makefile +2 -2
@@ -38,12 +38,12 @@ LIBHFILES = libxfs.h \ command.h \ input.h \ path.h \ - project.h + project.h \ + platform_defs.h \ HFILES = handle.h \ jdm.h \ $(PKG_PLATFORM).h \ - platform_defs.h \ xfs.h \ xqm.h \ xfs_arch.h
include/libxfs.h +1 -0
@@ -21,6 +21,7 @@#include "libxfs_api_defs.h" #include "platform_defs.h" +#include "xfs.h" #include "list.h" #include "hlist.h"
include/linux.h +1 -0
@@ -26,6 +26,7 @@#include <inttypes.h> #include <malloc.h> #include <getopt.h> +#include <errno.h> #include <endian.h> #include <stdbool.h> #include <asm/types.h>
include/path.h +1 -1
@@ -18,7 +18,7 @@#ifndef __PATH_H__#define __PATH_H__ -#include "xfs.h" +#include "platform_defs.h" /* * XFS Filesystem Paths
include/platform_defs.h.in +0 -27
@@ -38,20 +38,6 @@ typedef struct filldir filldir_t; -#if defined(__linux__) -#include <xfs/linux.h> -#elif defined(__FreeBSD__) -#include <xfs/freebsd.h> -#elif defined(__FreeBSD_kernel__) -#include <xfs/gnukfreebsd.h> -#elif defined(__APPLE__) -#include <xfs/darwin.h> -#elif defined(__sgi__) || defined(__sgi) -#include <xfs/irix.h> -#else -# error unknown platform... have fun porting! -#endif - /* long and pointer must be either 32 bit or 64 bit */ #undef SIZEOF_LONG #undef SIZEOF_CHAR_P
@@ -76,19 +62,6 @@ typedef unsigned short umode_t; #endif #include <locale.h> -#ifdef DEBUG -# define ASSERT(EX) assert(EX) -#else -# define ASSERT(EX) ((void) 0) -#endif - -/* - * sparse kernel source annotations - */ -#ifndef __user -#define __user -#endif - #define IRIX_DEV_BITSMAJOR 14 #define IRIX_DEV_BITSMINOR 18 #define IRIX_DEV_MAXMAJ 0x1ff
include/project.h +1 -0
@@ -18,6 +18,7 @@#ifndef __PROJECT_H__#define __PROJECT_H__ +#include "platform_defs.h" #include "xfs.h" extern int setprojid (const char *__name,int __fd,prid_t __id);
include/xfs.h +27 -1
@@ -33,7 +33,33 @@#ifndef __XFS_H__#define __XFS_H__ -#include <xfs/platform_defs.h> +#if defined(__linux__) +#include <xfs/linux.h> +#elif defined(__FreeBSD__) +#include <xfs/freebsd.h> +#elif defined(__FreeBSD_kernel__) +#include <xfs/gnukfreebsd.h> +#elif defined(__APPLE__) +#include <xfs/darwin.h> +#elif defined(__sgi__) || defined(__sgi) +#include <xfs/irix.h> +#else +# error unknown platform... have fun porting! +#endif + +#ifdef DEBUG +# define ASSERT (EX ) assert(EX) +#else +# define ASSERT (EX ) ((void) 0) +#endif + +/* +* sparse kernel source annotations +*/ +#ifndef __user +#define __user +#endif +#include <xfs/xfs_types.h> #include <xfs/xfs_fs.h>
io/attr.c +0 -1
@@ -16,7 +16,6 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" #include "command.h" #include "input.h" #include "init.h"
io/bmap.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" +#include "platform_defs.h" #include "command.h" #include "init.h" #include "io.h"
io/fadvise.c +0 -1
@@ -16,7 +16,6 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" #include "command.h" #include "input.h" #include "init.h"
io/fiemap.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" +#include "platform_defs.h" #include "command.h" #include <linux/fiemap.h> #include <linux/fs.h>
io/file.c +0 -1
@@ -16,7 +16,6 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" #include "command.h" #include "input.h" #include <sys/mman.h>
io/freeze.c +0 -1
@@ -16,7 +16,6 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" #include "command.h" #include "input.h" #include "init.h"
io/fsync.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" +#include "platform_defs.h" #include "command.h" #include "init.h" #include "io.h"
io/getrusage.c +0 -1
@@ -16,7 +16,6 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" #include "command.h" #include "input.h" #include <sys/time.h>
io/imap.c +0 -1
@@ -16,7 +16,6 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" #include "command.h" #include "input.h" #include "init.h"
io/init.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" +#include "platform_defs.h" #include "command.h" #include "input.h" #include "init.h"
io/inject.c +0 -1
@@ -16,7 +16,6 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" #include "command.h" #include "input.h" #include "init.h"
io/io.h +2 -0
@@ -16,6 +16,8 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "xfs.h" +/* * Read/write patterns (default is always "forward") */
io/link.c +0 -1
@@ -16,7 +16,6 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" #include "command.h" #include "input.h" #include "init.h"
io/madvise.c +0 -1
@@ -16,7 +16,6 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" #include "command.h" #include "input.h" #include <sys/mman.h>
io/mincore.c +0 -1
@@ -16,7 +16,6 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" #include "command.h" #include "input.h" #include <sys/mman.h>
io/mmap.c +0 -1
@@ -16,7 +16,6 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" #include "command.h" #include "input.h" #include <sys/mman.h>
io/open.c +0 -1
@@ -16,7 +16,6 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" #include "command.h" #include "input.h" #include "init.h"
io/parent.c +0 -1
@@ -16,7 +16,6 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" #include "command.h" #include "input.h" #include "path.h"
io/pread.c +0 -1
@@ -17,7 +17,6 @@*/ #include <sys/uio.h> -#include "xfs.h" #include "command.h" #include "input.h" #include <ctype.h>
io/prealloc.c +0 -1
@@ -19,7 +19,6 @@#if defined(HAVE_FALLOCATE )#include <linux/falloc.h> #endif -#include "xfs.h" #include "command.h" #include "input.h" #include "init.h"
io/pwrite.c +0 -1
@@ -17,7 +17,6 @@*/ #include <sys/uio.h> -#include "xfs.h" #include "command.h" #include "input.h" #include "init.h"
io/readdir.c +0 -1
@@ -16,7 +16,6 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" #include "command.h" #include "input.h" #include "init.h"
io/resblks.c +0 -1
@@ -16,7 +16,6 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" #include "command.h" #include "input.h" #include "init.h"
io/seek.c +0 -1
@@ -16,7 +16,6 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" #include "command.h" #include "input.h" #include <sys/types.h>
io/sendfile.c +0 -1
@@ -16,7 +16,6 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" #include "command.h" #include "input.h" #include <sys/sendfile.h>
io/shutdown.c +0 -1
@@ -16,7 +16,6 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" #include "command.h" #include "input.h" #include "init.h"
io/sync.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" +#include "platform_defs.h" #include "command.h" #include "init.h" #include "io.h"
io/sync_file_range.c +0 -1
@@ -16,7 +16,6 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" #include "command.h" #include "input.h" #include "init.h"
io/truncate.c +0 -1
@@ -16,7 +16,6 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" #include "command.h" #include "input.h" #include "init.h"
libhandle/handle.c +1 -0
@@ -17,6 +17,7 @@*/ #include <libgen.h> +#include "platform_defs.h" #include "xfs.h" #include "handle.h" #include "parent.h"
libhandle/jdm.c +1 -0
@@ -16,6 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "platform_defs.h" #include "xfs.h" #include "handle.h" #include "jdm.h"
libxcmd/command.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" +#include "platform_defs.h" #include "command.h" #include "input.h"
libxcmd/help.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" +#include "platform_defs.h" #include "command.h" static cmdinfo_t help_cmd;
libxcmd/input.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" +#include "platform_defs.h" #include "input.h" #include <ctype.h> #include <stdbool.h>
libxcmd/quit.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "xfs.h" +#include "platform_defs.h" #include "command.h" static cmdinfo_t quit_cmd;
libxfs/crc32.c +1 -0
@@ -34,6 +34,7 @@*/ #include "platform_defs.h" +#include "xfs.h" #include "xfs_arch.h" #include "crc32defs.h"
libxfs/radix-tree.c +1 -0
@@ -19,6 +19,7 @@*/ #include "platform_defs.h" +#include "xfs.h" #include "radix-tree.h" #ifndef ARRAY_SIZE
Signature · 6 lines
1.9.1 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
PATCH 12/13 xfsprogs: remove filldir_t typedef
In reply to Christoph Hellwig--- include/platform_defs.h.in | 2 -- 1 file changed, 2 deletions(-)
include/platform_defs.h.in +0 -2
@@ -36,8 +36,6 @@ #include <limits.h> #include <stdbool.h> -typedef struct filldir filldir_t; - /* long and pointer must be either 32 bit or 64 bit */ #undef SIZEOF_LONG #undef SIZEOF_CHAR_P
Signature · 6 lines
1.9.1 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
PATCH 13/13 xfsprogs: remove the constpp define
In reply to Christoph HellwigThis is a workaround for the long obsolete glibc 2.0.
--- include/darwin.h | 1 - include/freebsd.h | 2 -- include/gnukfreebsd.h | 2 -- include/irix.h | 2 -- include/linux.h | 6 ------ mkfs/xfs_mkfs.c | 16 ++++++++-------- repair/xfs_repair.c | 4 ++-- 7 files changed, 10 insertions(+), 23 deletions(-)
include/darwin.h +0 -1
@@ -154,7 +154,6 @@ typedef int64_t xfs_daddr_t;#define ENOATTR 989/* Attribute not found */ #define EFSCORRUPTED 990/* Filesystem is corrupted */ #define EFSBADCRC 991/* Bad CRC detected */ -#define constpp char * const *#define HAVE_FID 1
include/freebsd.h +0 -2
@@ -42,8 +42,6 @@#define fdatasync fsync#define memalign (a,sz) valloc(sz) -#define constpp char * const * -#define EFSCORRUPTED 990/* Filesystem is corrupted */ #define EFSBADCRC 991/* Bad CRC detected */
include/gnukfreebsd.h +0 -2
@@ -32,8 +32,6 @@#include <libgen.h> #include <paths.h> -#define constpp char * const * -#define EFSCORRUPTED 990/* Filesystem is corrupted */ #define EFSBADCRC 991/* Bad CRC detected */
include/irix.h +0 -2
@@ -183,8 +183,6 @@ typedef struct xfs_efd_log_format_32 {#define inline __inline#endif -#define constpp char * const * -/*ARGSUSED*/ static __inline__int xfsctl (const char *path,int fd,int cmd,void *arg) {
include/linux.h +0 -6
@@ -130,12 +130,6 @@ platform_discard_blocks(int fd, uint64_t start, uint64_t len)return 0 ; } -#if (__GLIBC__ <2 ) || ((__GLIBC__ ==2 ) && (__GLIBC_MINOR__ <=1 )) -# define constpp const char * const * -#else -# define constpp char * const * -#endif -#define ENOATTR ENODATA/* Attribute not found */ #define EFSCORRUPTED EUCLEAN/* Filesystem is corrupted */ #define EFSBADCRC EBADMSG/* Bad CRC detected */
mkfs/xfs_mkfs.c +8 -8
@@ -1086,7 +1086,7 @@ main(while (*p !='\0' ) {char *value; -switch (getsubopt (&p, (constpp )bopts, &value)) { +switch (getsubopt (&p, bopts, &value)) {case B_LOG :if (!value || *value =='\0' )reqval ('b' , bopts,B_LOG );
@@ -1127,7 +1127,7 @@ main(while (*p !='\0' ) {char *value; -switch (getsubopt (&p, (constpp )dopts, &value)) { +switch (getsubopt (&p, dopts, &value)) {case D_AGCOUNT :if (!value || *value =='\0' )reqval ('d' , dopts,D_AGCOUNT );
@@ -1304,7 +1304,7 @@ main(while (*p !='\0' ) {char *value; -switch (getsubopt (&p, (constpp )iopts, &value)) { +switch (getsubopt (&p, iopts, &value)) {case I_ALIGN :if (!value || *value =='\0' ) value ="1" ;
@@ -1407,7 +1407,7 @@ main(while (*p !='\0' ) {char *value; -switch (getsubopt (&p, (constpp )lopts, &value)) { +switch (getsubopt (&p, lopts, &value)) {case L_AGNUM :if (!value || *value =='\0' )reqval ('l' , lopts,L_AGNUM );
@@ -1555,7 +1555,7 @@ main(while (*p !='\0' ) {char *value; -switch (getsubopt (&p, (constpp )mopts, &value)) { +switch (getsubopt (&p, mopts, &value)) {case M_CRC :if (!value || *value =='\0' )reqval ('m' , mopts,M_CRC );
@@ -1588,7 +1588,7 @@ _("cannot specify both crc and ftype\n"));while (*p !='\0' ) {char *value; -switch (getsubopt (&p, (constpp )nopts, &value)) { +switch (getsubopt (&p, nopts, &value)) {case N_LOG :if (!value || *value =='\0' )reqval ('n' , nopts,N_LOG );
@@ -1672,7 +1672,7 @@ _("cannot specify both crc and ftype\n"));while (*p !='\0' ) {char *value; -switch (getsubopt (&p, (constpp )ropts, &value)) { +switch (getsubopt (&p, ropts, &value)) {case R_EXTSIZE :if (!value || *value =='\0' )reqval ('r' , ropts,R_EXTSIZE );
@@ -1717,7 +1717,7 @@ _("cannot specify both crc and ftype\n"));while (*p !='\0' ) {char *value; -switch (getsubopt (&p, (constpp )sopts, &value)) { +switch (getsubopt (&p, sopts, &value)) {case S_LOG :case S_SECTLOG :if (!value || *value =='\0' )
repair/xfs_repair.c +2 -2
@@ -224,7 +224,7 @@ process_args(int argc, char **argv)while (*p !='\0' ) {char *val; -switch (getsubopt (&p, (constpp )o_opts, &val)) { +switch (getsubopt (&p, o_opts, &val)) {case ASSUME_XFS :if (val)noval ('o' , o_opts,ASSUME_XFS );
@@ -275,7 +275,7 @@ process_args(int argc, char **argv)while (*p) {char *val; -switch (getsubopt (&p, (constpp )c_opts, &val)) { +switch (getsubopt (&p, c_opts, &val)) {case CONVERT_LAZY_COUNT : lazy_count = (int )strtol (val,NULL ,0 ); convert_lazy_count =1 ;
Signature · 6 lines
1.9.1 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
Re: [PATCH 10/13] xfsprogs: include libxfs.h in libxfs_priv.h
In reply to Christoph HellwigQuoted 7 lines · Christoph Hellwig
libxfs_priv.hduplicates large parts oflibxfs.h.Signed-off-by Christoph Hellwig <[email protected]>--- include/libxfs.h | 4 ---- libxfs/libxfs_priv.h | 37 +------------------------------------ 2 files changed, 1 insertion(+), 40 deletions(-)
This is the opposite of what I've been trying to get to, which is to make libxfs compilation not be reliant on the external definitions used by the rest of xfsprogs. i.e. libxfs_priv.h contains all the bits that are need to compile the kernel code, libxfs_api_defs.h contain all the swizzling needed to namespace all the externally used libxfs code correctly, and libxfs_io.h contains all the buffer IO interfaces.
In the end, there should be no duplication between the two files, except for infrastructure includes like platform defs, lists, trees, etc. This isnt quite complete yet, which is why there is some duplication in the code right now.
Quoted 5 lines
include/libxfs.h +0
-0
include/libxfs.h extern int libxfs_bmap_finish(xfs_trans_t **, xfs_bmap_free_t *, int *); · line 171
Quoted 9 lines
include/libxfs.h +0
-4@@ -163,12 +163,8 @@ extern int libxfs_bmap_finish(xfs_trans_t **, xfs_bmap_free_t *, int *);extern void libxfs_fs_repair_cmn_err (int ,struct xfs_mount *,char *, ...);extern void libxfs_fs_cmn_err (int ,struct xfs_mount *,char *, ...); -/* XXX: this is messy and needs fixing */ -#ifndef __LIBXFS_INTERNAL_XFS_H__extern void cmn_err (int ,char *, ...);enum ce {CE_DEBUG ,CE_CONT ,CE_NOTE ,CE_WARN ,CE_ALERT ,CE_PANIC }; -#endif -
cmn_err needs to be removed from all the external utilities. This is only a small amount of work, cmn_err is only used in the repair AVL code and a single call in the logprint code. Both libxfs_fs_cmn_err and xfs_fs_repair_cmn_err are completely unused, so cmn_err() should become a libxfs internal function, and eventually be rewritten to have native xfs_alert() style interfaces...
include/libxfs.h extern int libxfs_bmap_finish(xfs_trans_t **, xfs_bmap_free_t *, int *);
Quoted 7 lines
include/libxfs.h +0
-7- -/* CRC stuff, buffer API dependent on it */ -extern uint32_t crc32_le (uint32_t crc,unsigned char const *p,size_t len); -extern uint32_t crc32c_le (uint32_t crc,unsigned char const *p,size_t len); - -#define crc32 (c,p,l) crc32_le((c),(unsigned char const *)(p),(l)) -#define crc32c (c,p,l) crc32c_le((c),(unsigned char const *)(p),(l))
I was planning to move this to libxfs_api_defs.h, as it's swizlling needed to allow xfs_cksum.h be included in external code.
Cheers,
Dave.
Signature · 7 lines
Dave Chinner [email protected] _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs