aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libfsimage
Commit message (Collapse)AuthorAgeFilesLines
* [libfsimage/zfs] compilation fix ZFS libfsimage support.Keir Fraser2008-05-021-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Depending on environments, zfs libfsimage support doesn't compile. This patch fixes it. ia64-linux-gnu-gcc -DPIC -O2 -fomit-frame-pointer -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -I/usr/ia64-linux-gnu/ sys-root/usr/include -D__XEN_TOOLS__ -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I../../../tools/libfsimage/common/ -Werror -Wp,-MD,.zfs_lzjb.opic.d -fPIC -c -o zfs_lzjb.opic zfs_ lzjb.c In file included from fsys_zfs.h:41, from zfs_lzjb.c:25: zfs-include/zfs_acl.h:29: error: redefinition of typedef uid_t /usr/ia64-linux-gnu/sys-root/usr/include/sys/types.h:82: error: previous declaration of uid_t was here This depends on how __uid_t is defined in the system header. No file under the zfs directory uses uid_t so that just removing the definition in the zfs_acl.h looks reasonable. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* Add ZFS libfsimage support patchKeir Fraser2008-05-0131-6/+3587
| | | | | | | | | Add support to pygrub and libfsimage to boot ZFS root filesystems. Boot argument of zfs-bootfs is set to describe ZFS root pool and boot filesystem object number. Boot argument bootpath is set to describe the virtual device root mirror components. Signed-off-by: Susan Kamm-Worrell <susan.kamm-worrell@sun.com>
* [LIBFSIMAGE] Support 256 byte inodes on ext3Keir Fraser2008-04-161-7/+54
| | | | | | | Patch taken from Debian grub package version 0.97-32. See http://bugs.debian.org/463236 & http://bugs.debian.org/463123 Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
* libfsimage: Build check script needs only /bin/sh.Keir Fraser2008-03-271-1/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* libfsimage: Revert broken parts of portability changes to the build system.Keir Fraser2008-03-272-5/+3
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* libfsimage: portability fixes for NetBSDKeir Fraser2008-03-266-15/+49
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* tools build: Fix build after subdir rules cleanups.Keir Fraser2008-03-251-1/+2
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* tools/libfsimage build: Use generic subdirs rules.Keir Fraser2008-03-251-5/+2
| | | | Signed-off-by: Bastian Blank <waldi@debian.org>
* Make check-libext2fs cross-friendlyKeir Fraser2008-01-282-2/+2
| | | | | | | check-libext2fs was calling host gcc; pass $CC from Makefile so it can call the cross-compiler instead. Signed-off-by: Aron Griffis <aron@hp.com>
* Fix libfsimage build on SolarisKeir Fraser2008-01-241-2/+2
| | | | | | The Solaris installation dirs were missing $(PREFIX) Signed-off-by: John Levon <john.levon@sun.com>
* Add INCLUDEDIR. Use it.Keir Fraser2008-01-221-4/+4
| | | | Signed-off-by: Bastian Blank <waldi@debian.org>
* Apply PREFIX directly to LIBDIR.Keir Fraser2008-01-222-6/+6
| | | | Signed-off-by: Bastian Blank <waldi@debian.org>
* tools: Some fixes for 'make clean'.Keir Fraser2007-12-142-2/+2
| | | | Signed-off-by: Kurt Hackel <kurt.hackel@oracle.com>
* Revert 16560:822d4ec5cfb1.Keir Fraser2007-12-081-2/+2
| | | | | | | | | | | | | Preference seems to be to update library versions only when the ABI changes. Only libxenctrl/libxenguest have their version number changed to 3.2.0, as a reminder that they change on pretty much every major release. libfsimage/libxenstore/libblktap have not changed substantially recently, hence the ABI has not changed, and version number stays the same as in Xen 3.1 (and before). Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* tools: Rationalise library soname versions.Keir Fraser2007-12-071-2/+2
| | | | | | | | | | | | | | | | * Arrange for the sonames of libxenstore, libxc, libfsimage and libblktap to be set from a single place in Config.mk. * Bumps the soname major version number to 3.2 in preparation for 3.2 rc1 after which we do not expect to have ABI changes. I have not done anything about libaio and libflask. The former is imported from elsewhere and if we're lucky will have sane versioning upstream. libflask has a very small interface and I'm hoping that the XSM authors have been keeping some ABI discipline. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Fix libfsimage build on NetBSD.Keir Fraser2007-09-235-15/+15
| | | | | | | | | | | | | Fixes a number of these errors: cc1: warnings being treated as errors fsys_fat.c: In function 'fat_dir': fsys_fat.c:304: warning: array subscript has type 'char' Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> These ugly casts are needed according to the ISO C spec. Acked-by: Keir Fraser <keir@xensource.com>
* [TOOLS] Avoid unaligned accesses in libfsimage FAT16 codeTim Deegan2007-08-081-3/+3
| | | | | Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com> Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
* [IA64] Avoid use of kernel type in user code.Alex Williamson2007-06-111-1/+1
| | | | Signed-off-by: Tristan Gingold <tgingold@free.fr>
* ia64 doesn't use /usr/lib64 on any distribution. When it's present, it's a ↵kfraser@localhost.localdomain2007-05-031-0/+3
| | | | | | symlink to /usr/lib Signed-off-by: Aron Griffis <aron@hp.com>
* libfsimage: Fix data types for 64-bit architectures.kfraser@localhost.localdomain2007-04-111-7/+7
| | | | | | | In particular __u32 instead of ulong. Signed-off-by: Tomohiro Takahashi <takatom@jp.fujitsu.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* libfs: Fix build with gcc4.kfraser@localhost.localdomain2007-02-211-6/+6
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Port fsys_fat.c from grub legacy. This enables pygrub to load from EFIAron Griffis2007-02-134-1/+599
| | | | | | FAT partitions on ia64. Signed-off-by: Aron Griffis <aron@hp.com>
* Add iso9660 support to libfsimage.john.levon@sun.com2007-02-2010-167/+783
| | | | Signed-off-by: John Levon <john.levon@sun.com>
* Filesystem implementations may need optional arguments in terms ofjohn.levon@sun.com2007-02-1911-14/+14
| | | | | | what to mount. Add an options string to the libfsimage API. Signed-off-by: John Levon <john.levon@sun.com>
* Revert 13389; libfsimage version does not need to change after all.Tim Deegan2007-01-181-1/+1
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* [LIBFSIMAGE] Fix makefile to track version number changeTim Deegan2007-01-171-1/+1
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* Remove useless fsip_fs_free(). Delegate freeing of private data to its pluginjohn.levon@sun.com2007-01-167-16/+9
| | | | | | users. Miscellaneous tidy. Signed-off-by: John Levon <john.levon@sun.com>
* [POWERPC][LIBFS] Fix build breakage in log2 assembly.kfraser@localhost.localdomain2006-11-222-2/+16
| | | | Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
* [TOOLS] Provide common LFS CFLAGS/LDFLAGS additions in Rules.mk.kfraser@localhost.localdomain2006-11-172-2/+2
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [LIBFS] IA64 & PPC aren't making use of this right now, but it's silly tokaf24@localhost.localdomain2006-11-112-0/+118
| | | | | | | | have the build fail for some trivial x86 specific assembly. I snagged the appropriate bitops for ia64 and ppc (untested) and tossed in an unoptimized option as well in case we want to make use of it. Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* Fix integer overflow problem with libfsimage grub plugins.kaf24@localhost.localdomain2006-11-111-1/+1
| | | | Signed-off-by: John Levon <john.levon@sun.com>
* [LIBFSIMAGE] Don't leak FDs or RAM when closing filesystemsTim Deegan2006-11-102-1/+2
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* [LIBFSIMAGE] Further 64bit compile fixTim Deegan2006-11-101-1/+1
| | | | | | | 64bit libext2fs can have __u64 defined as unsigned long long, while a uint64_t is unsigned long, and GCC complains. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* [LIBFSIMAGE] Fix printf-format warning on x86/64.kaf24@firebug.cl.cam.ac.uk2006-11-101-1/+2
| | | | Signed-off-by: Ben Thomas <ben@virtualiron.com>
* Add libfsimage, a C library for reading files from filesystem images.Tim Deegan2006-11-0922-0/+3873
Initial support is provided for Solaris UFS, ext2 (both using libext2fs and not), and reiserfs. Signed-off-by: John Levon <john.levon@sun.com>