cluster/gfs/gfs_edit Makefile gfshex.c gfshex. ...
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: rpeterso at sourceware.org 2006-07-10 23:30:56
Modified files:
gfs/gfs_edit : Makefile gfshex.c gfshex.h hexedit.c hexedit.h
ondisk.c
Log message:
New ncurses-based gfs_edit synced from RHEL4 and STABLE branches.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_edit/Makefile.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_edit/gfshex.c.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_edit/gfshex.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_edit/hexedit.c.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_edit/hexedit.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_edit/ondisk.c.diff?cvsroot=cluster&r1=1.2&r2=1.3
gfs/gfs_edit/Makefile +4 -5
@@ -15,8 +15,7 @@ SOURCE= \ gfshex.c \ - hexedit.c \ - ondisk.c + hexedit.c top_srcdir=.. include ${top_srcdir}/make/defines.mk
@@ -31,15 +30,15 @@ # should be installed INCLUDE += $(shell if [ -e ${KERNEL_SRC}/include/linux/gfs_ondisk.h ]; then \ echo '-I${KERNEL_SRC}/include'; else \ - echo '-I${incdir}'; fi) + echo '-I${gfskincdir}'; fi) else -INCLUDE += -I${incdir} +INCLUDE += -I${gfskincdir} endif all: gfs_edit gfs_edit: ${SOURCE} - ${CC} ${CFLAGS} ${INCLUDE} ${LDFLAGS} ${SOURCE} ${LOADLIBES} ${LDLIBS} -o $@ + ${CC} ${CFLAGS} ${INCLUDE} ${LDFLAGS} ${SOURCE} ${LOADLIBES} ${LDLIBS} -lncurses -o $@ copytobin: all cp ${TARGET} ${top_srcdir}/bin
gfs/gfs_edit/gfshex.c +115 -244
481 lines not on this page · raw message
gfs/gfs_edit/gfshex.h +3 -2
@@ -15,8 +15,9 @@#define __GFSHEX_DOT_H__ -int display_gfs (int extended); -int edit_gfs (); +int display_gfs (void ); +int edit_gfs (void ); +void do_dinode_extended (struct gfs_dinode *di,char *buf);#endif /* __GFSHEX_DOT_H__ */
gfs/gfs_edit/hexedit.c +759 -301
1,108 lines not on this page · raw message
gfs/gfs_edit/hexedit.h +97 -9
140 lines not on this page · raw message
gfs/gfs_edit/ondisk.c +1 -8
@@ -16,15 +16,8 @@#include "global.h" #include "linux_endian.h" -#include <linux/gfs_ondisk.h> - -#define printk printf -#define pv (struct, member, fmt) printf(" "#member" = "fmt"\n", struct->member); -#define ENTER (x) -#define EXIT (x) -#define RET (x) return -#define RETURN (x, y) return y +#include <linux/gfs_ondisk.h> #define WANT_GFS_CONVERSION_FUNCTIONS #include <linux/gfs_ondisk.h>