aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libfsimage/zfs
Commit message (Collapse)AuthorAgeFilesLines
* tools: Revert c/s 25150:b490ef93bad7 tools/libfsimage: include Rules.mk firstGeorge Dunlap2012-04-131-1/+2
| | | | | | | | | | | | | tools/libfsimage/Rules.mk relies on having certain variables set already; if they're not set, the definitions dont' work right. The result was a bunch of empty files and pygrub failing with an uninformative error message. It's likely that this didn't cause anyone problems becasue changing the Makefiles didn't cause a re-build; building from a fresh repo results in completely empty filesystem plugin binaries. Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* tools/libfsimage: include Rules.mk firstOlaf Hering2012-03-141-2/+1
| | | | | | | | | Move the inclusion of Rules.mk up so that things like CFLAGS get initialized properly. Currently only zfs appends CFLAGS. If CFLAGS get reset by Rules.mk the private settings are lost and compilation of zfs support fails. Signed-off-by: Olaf Hering <olaf@aepfle.de> Committed-by: Ian Jackson <ian.jackson.citrix.com>
* build: Make XEN_ROOT an absolute path.Keir Fraser2011-03-171-1/+1
| | | | | | | | Otherwise make can search the path relative to certain standard paths such as /usr/include (e.g., the line '-include $(XEN_ROOT)/.config' in Config.mk suffers from this). Signed-off-by: Keir Fraser <keir@xen.org>
* libfsimage: zfs build fix for NetBSDKeir Fraser2010-04-152-13/+13
| | | | | | | | uchar_t is not defined because both FSYS_ZFS and FSIMAGE are defined at build time. Also fix warnings with ctype. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* Port latest grub zfs boot code to pygrubKeir Fraser2010-04-1426-469/+996
| | | | | | | | Signed-off-by: Mark Johnson <mark.r.johnson@oracle.com> Add -Werror to CFLAGS and fix numerous warnings/errors. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* libfsimage: Support for zfs version 16.Keir Fraser2009-07-064-11/+11
| | | | | | | Remove version checks to support boot of ZFS root filesystem version 16. Signed-off-by: Susan Kamm-Worrell <susan.kamm-worrell@sun.com>
* libfsimage: Support for zfs version 14.Keir Fraser2009-03-122-13/+2
| | | | Signed-off-by: Susan Kamm-Worrell <susan.kamm-worrell@sun.com>
* tools: Make functions static which should not be exported.Keir Fraser2008-07-151-3/+3
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* tools: replace sprintf with snprintf where applicableKeir Fraser2008-06-121-1/+1
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* libfsimage: Build fix for NetBSD.Keir Fraser2008-06-051-5/+5
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* [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-0123-0/+3535
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>