]> xenbits.xensource.com Git - people/dariof/xen.git/commitdiff
tools/libfsimage: Add `xen' to .h names and principal .so name
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 9 Oct 2018 16:02:42 +0000 (17:02 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Mon, 15 Oct 2018 13:49:33 +0000 (14:49 +0100)
`fsimage' is rather general.  And we do not expect this library to be
very useful out of tree because of its unstable ABI.

So add the word `xen'.  This will avoid naming conflicts with anyone
else's fsimage library.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
18 files changed:
tools/libfsimage/Rules.mk
tools/libfsimage/common/Makefile
tools/libfsimage/common/fsimage_grub.c
tools/libfsimage/common/fsimage_plugin.c
tools/libfsimage/common/fsimage_priv.h
tools/libfsimage/common/xenfsimage_grub.h
tools/libfsimage/common/xenfsimage_plugin.h
tools/libfsimage/ext2fs-lib/ext2fs-lib.c
tools/libfsimage/ext2fs/fsys_ext2fs.c
tools/libfsimage/fat/fsys_fat.c
tools/libfsimage/iso9660/fsys_iso9660.c
tools/libfsimage/reiserfs/fsys_reiserfs.c
tools/libfsimage/ufs/fsys_ufs.c
tools/libfsimage/xfs/fsys_xfs.c
tools/libfsimage/zfs/fsi_zfs.c
tools/libfsimage/zfs/fsi_zfs.h
tools/pygrub/setup.py
tools/pygrub/src/fsimage/fsimage.c

index eab4ecb35ece2557cfdd5027137548470e09c526..2a29d9ef2b90ee95858145de0d09b45b50e7ddaa 100644 (file)
@@ -26,7 +26,7 @@ fs-uninstall:
        fi
 
 $(FSLIB): $(PIC_OBJS)
-       $(CC) $(LDFLAGS) $(SHLIB_LDFLAGS) -o $@ $^ -lfsimage $(FS_LIBDEPS) $(APPEND_LDFLAGS)
+       $(CC) $(LDFLAGS) $(SHLIB_LDFLAGS) -o $@ $^ -lxenfsimage $(FS_LIBDEPS) $(APPEND_LDFLAGS)
 
 clean distclean::
        rm -f $(PIC_OBJS) $(FSLIB) $(DEPS_RM)
index beda8f5f3ae583475e0cb6b42c2f4c4bd9fad71e..f20e1394a8a51b4549dc2420751d1772c94b9df8 100644 (file)
@@ -15,7 +15,7 @@ LIB_SRCS-y = fsimage.c fsimage_plugin.c fsimage_grub.c
 
 PIC_OBJS := $(patsubst %.c,%.opic,$(LIB_SRCS-y))
 
-LIB = libfsimage.so libfsimage.so.$(MAJOR) libfsimage.so.$(MAJOR).$(MINOR)
+LIB = libxenfsimage.so libxenfsimage.so.$(MAJOR) libxenfsimage.so.$(MAJOR).$(MINOR)
 
 .PHONY: all
 all: $(LIB)
@@ -24,32 +24,32 @@ all: $(LIB)
 install: all
        $(INSTALL_DIR) $(DESTDIR)$(libdir)
        $(INSTALL_DIR) $(DESTDIR)$(includedir)
-       $(INSTALL_PROG) libfsimage.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir)
-       ln -sf libfsimage.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir)/libfsimage.so.$(MAJOR)
-       ln -sf libfsimage.so.$(MAJOR) $(DESTDIR)$(libdir)/libfsimage.so
-       $(INSTALL_DATA) fsimage.h $(DESTDIR)$(includedir)
-       $(INSTALL_DATA) fsimage_plugin.h $(DESTDIR)$(includedir)
-       $(INSTALL_DATA) fsimage_grub.h $(DESTDIR)$(includedir)
+       $(INSTALL_PROG) libxenfsimage.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir)
+       ln -sf libxenfsimage.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir)/libxenfsimage.so.$(MAJOR)
+       ln -sf libxenfsimage.so.$(MAJOR) $(DESTDIR)$(libdir)/libxenfsimage.so
+       $(INSTALL_DATA) xenfsimage.h $(DESTDIR)$(includedir)
+       $(INSTALL_DATA) xenfsimage_plugin.h $(DESTDIR)$(includedir)
+       $(INSTALL_DATA) xenfsimage_grub.h $(DESTDIR)$(includedir)
 
 .PHONY: uninstall
 uninstall:
-       rm -f $(DESTDIR)$(includedir)/fsimage_grub.h
-       rm -f $(DESTDIR)$(includedir)/fsimage_plugin.h
-       rm -f $(DESTDIR)$(includedir)/fsimage.h
-       rm -f $(DESTDIR)$(libdir)/libfsimage.so
-       rm -f $(DESTDIR)$(libdir)/libfsimage.so.$(MAJOR)
-       rm -f $(DESTDIR)$(libdir)/libfsimage.so.$(MAJOR).$(MINOR)
+       rm -f $(DESTDIR)$(includedir)/xenfsimage_grub.h
+       rm -f $(DESTDIR)$(includedir)/xenfsimage_plugin.h
+       rm -f $(DESTDIR)$(includedir)/xenfsimage.h
+       rm -f $(DESTDIR)$(libdir)/libxenfsimage.so
+       rm -f $(DESTDIR)$(libdir)/libxenfsimage.so.$(MAJOR)
+       rm -f $(DESTDIR)$(libdir)/libxenfsimage.so.$(MAJOR).$(MINOR)
 
 clean distclean::
        rm -f $(LIB)
 
-libfsimage.so: libfsimage.so.$(MAJOR)
+libxenfsimage.so: libxenfsimage.so.$(MAJOR)
        ln -sf $< $@
-libfsimage.so.$(MAJOR): libfsimage.so.$(MAJOR).$(MINOR)
+libxenfsimage.so.$(MAJOR): libxenfsimage.so.$(MAJOR).$(MINOR)
        ln -sf $< $@
 
-libfsimage.so.$(MAJOR).$(MINOR): $(PIC_OBJS)
-       $(CC) $(LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libfsimage.so.$(MAJOR) $(SHLIB_LDFLAGS) -o $@ $^ $(PTHREAD_LIBS) $(APPEND_LDFLAGS)
+libxenfsimage.so.$(MAJOR).$(MINOR): $(PIC_OBJS)
+       $(CC) $(LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libxenfsimage.so.$(MAJOR) $(SHLIB_LDFLAGS) -o $@ $^ $(PTHREAD_LIBS) $(APPEND_LDFLAGS)
 
 -include $(DEPS_INCLUDE)
 
index ef71d6cceb1fca9536056cc479e3783b67a37ad7..258d48bfbb9b960f47250c6c93d042f7d4306edc 100644 (file)
@@ -28,7 +28,7 @@
 #include <strings.h>
 #include <errno.h>
 
-#include "fsimage_grub.h"
+#include "xenfsimage_grub.h"
 #include "fsimage_priv.h"
 
 static char *disk_read_junk;
index 0744e7b3cae88288666b5c58c93c85c5dd8ea3c9..44ebcf31427fa8ffb694ea0ec8835c7a18fa0c09 100644 (file)
@@ -29,7 +29,7 @@
 #include <dlfcn.h>
 #include <errno.h>
 
-#include "fsimage_plugin.h"
+#include "xenfsimage_plugin.h"
 #include "fsimage_priv.h"
 
 static fsi_plugin_t *plugins;
index 57a0826deecfcb24ce0633f573c80476361fd1f6..22744035570287a134e2372d299cbb0dc2138d9a 100644 (file)
@@ -30,8 +30,8 @@ extern C {
 
 #include <sys/types.h>
 
-#include "fsimage.h"
-#include "fsimage_plugin.h"
+#include "xenfsimage.h"
+#include "xenfsimage_plugin.h"
 
 struct fsi_plugin {
        const char *fp_name;
index 534c346b23d613e84d0ac91474de4a6677cdfc61..38fb4f620eaf8d05d57d6369d4bdbb3443fb87ad 100644 (file)
@@ -33,8 +33,8 @@ extern C {
 #include <stdlib.h>
 #include <ctype.h>
 
-#include "fsimage.h"
-#include "fsimage_plugin.h"
+#include "xenfsimage.h"
+#include "xenfsimage_plugin.h"
 
 typedef struct fsig_plugin_ops {
        int fpo_version;
index a682719a63e47d702cb4c2986be3296f25d08771..4135769018f755e56cf64a8c2638642d0b6bc31f 100644 (file)
@@ -30,7 +30,7 @@ extern C {
 
 #include <sys/types.h>
 
-#include "fsimage.h"
+#include "xenfsimage.h"
 
 #define        FSIMAGE_PLUGIN_VERSION 1
 
index 84b6d1e9c358a708ebc4502c211a5eda0fa18cab..864a15b3499bf545a1a33ca5e7a9ef941c3eabd1 100644 (file)
@@ -21,7 +21,7 @@
  * Use is subject to license terms.
  */
 
-#include <fsimage_plugin.h>
+#include <xenfsimage_plugin.h>
 #include INCLUDE_EXTFS_H
 #include <errno.h>
 #include <inttypes.h>
index ba53ff4ca636189c8aa6dde3739cbfca10c1b97b..a4ed10419c17c38c633eaf6adb3c15d121a887a6 100644 (file)
@@ -16,7 +16,7 @@
  *  along with this program; If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <fsimage_grub.h>
+#include <xenfsimage_grub.h>
 
 #define        mapblock1 (*fsig_int1(ffi))
 #define        mapblock2 (*fsig_int2(ffi))
index b8129a8c0470d92cfde20f7a3c039b0f807eeab8..b89354a8721b280045a91a7b15151c1fe0380438 100644 (file)
@@ -17,7 +17,7 @@
  */
 
 #include <limits.h>
-#include <fsimage_grub.h>
+#include <xenfsimage_grub.h>
 #include "fat.h"
 
 struct fat_superblock 
index 5dbf100dfec88f97e3011c5937048e045babd368..6e767357bfdc2e35d7aa788977280218e1937aa5 100644 (file)
@@ -28,7 +28,7 @@
  *     Leonid Lisovskiy   <lly@pisem.net>      2003
  */
 
-#include <fsimage_grub.h>
+#include <xenfsimage_grub.h>
 #include <limits.h>
 
 #include "iso9660.h"
index 92c3b2bbfbaaf3ed74bac31d37a1fbc3d4e61395..916eb152923ec0656bbb70d0ae10880e55b6a345 100644 (file)
@@ -17,7 +17,7 @@
  *  along with this program; If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <fsimage_grub.h>
+#include <xenfsimage_grub.h>
 
 #undef REISERDEBUG
 
index cf7e22ad0bf7b1ff53593e74dd5ca450abfda1ca..a545bc9f65e82748c931f6f30a1c8c9abf0a712d 100644 (file)
@@ -22,7 +22,7 @@
 
 /* From Solaris usr/src/stand/lib/fs/ufs/ufsops.c */
 
-#include <fsimage_grub.h>
+#include <xenfsimage_grub.h>
 
 #include "ufs.h"
 
index f39d096ba2a19d868500402aee66b46cf2888df0..d735a88e55f3ac30b11ba7e5fe6a8a07b97bce0c 100644 (file)
@@ -17,7 +17,7 @@
  *  along with this program; If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <fsimage_grub.h>
+#include <xenfsimage_grub.h>
 #include "xfs.h"
 
 #define MAX_LINK_COUNT 8
index 75145875fd10edfaf52145633a0d347b07310493..187a8bc6b2d9502cd20a6306f98d75c9e8f9a939 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifdef FSYS_ZFS
 
-#include <fsimage_grub.h>
+#include <xenfsimage_grub.h>
 #include <fsimage_priv.h>
 #include <stdio.h>
 #include <inttypes.h>
index fb4dc23bbfb872df9119cb0a4712522d524855b2..980ce8f30478f0707146cac2d2ba4b1e160d4c5d 100644 (file)
@@ -27,7 +27,7 @@
 #include <sys/types.h>
 #include <stdio.h>
 #include <string.h>
-#include <fsimage_grub.h>
+#include <xenfsimage_grub.h>
 
 
 /*** START FROM shared.h ****/
index 711bbbd499a020d522403ff6119b4a7dac6b07af..b58cc1c4e6ab3305e2ed5b0005188aab5e62d6e4 100644 (file)
@@ -11,7 +11,7 @@ fsimage = Extension("fsimage",
     extra_compile_args = extra_compile_args,
     include_dirs = [ XEN_ROOT + "/tools/libfsimage/common/" ],
     library_dirs = [ XEN_ROOT + "/tools/libfsimage/common/" ],
-    libraries = ["fsimage"],
+    libraries = ["xenfsimage"],
     sources = ["src/fsimage/fsimage.c"])
 
 pkgs = [ 'grub' ]
index 8ec0dec346941d06ad9629ad02f7e17c730c4ac4..47940572a87f511b3170159cebef859db81339c9 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <Python.h>
 
-#include <fsimage.h>
+#include <xenfsimage.h>
 #include <stdlib.h>
 
 #if (PYTHON_API_VERSION >= 1011)