GJournal (hopefully) final patches.

Markus Trippelsdorf markus at trippelsdorf.de
Tue Aug 8 21:41:26 UTC 2006


On Tue, Aug 08, 2006 at 11:02:11PM +0200, Markus Trippelsdorf wrote:
> On Tue, Aug 08, 2006 at 09:52:02PM +0200, Pawel Jakub Dawidek wrote:
> > 
> > I'm pleased to announce hopefully the final gjournal patches.
> ...
> > 
> > Patches for 6-STABLE:
> > 
> > 	http://people.freebsd.org/~pjd/patches/gjournal6_20060808.patch
> > 
> > To apply the patches:
> > 
> > 	# cd /usr/src
> > 	# mkdir sys/geom/journal sbin/geom/class/journal sys/modules/geom/geom_journal
> > 	# patch < gjournal_20060808.patch
> > 
> > Now you need to recompile the world and the kernel. Remember to add
> > 'options UFS_GJOURNAL' to your kernel configuration file.
> 
> It does not compile with -Werror on my AMD64 system running STABLE:
> 
> cc -O2 -pipe -march=k8 -DRESCUE -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c /usr/src/bin/test/test.c
> /usr/src/sbin/fsck_ffs/gjournal.c: In function `gjournal_check':
> /usr/src/sbin/fsck_ffs/gjournal.c:717: warning: dereferencing type-punned pointer will break strict-aliasing rules
> *** Error code 1
Adding -fno-strict-aliasing to the CFLAGS of sbin/fsck_ffs/Makefile
solved the problem for now.

-- 
Markus


More information about the freebsd-current mailing list