Skip to contentSkip to conversation

cluster/gfs/gfs_mkfs Makefile device_geometry. ...

Cluster-devel [email protected] 1 participant 1 message Jul 10, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: rpeterso at sourceware.org 2006-07-10 23:39:35

Modified files:
gfs/gfs_mkfs : Makefile device_geometry.c fs_geometry.c main.c
mkfs_gfs.h structures.c

Log message:
Changes necessary due to removal of iddev parts (replaced by libvolume_id) Also incorporated libgfs for common functions.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_mkfs/Makefile.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_mkfs/device_geometry.c.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_mkfs/fs_geometry.c.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_mkfs/main.c.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_mkfs/mkfs_gfs.h.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_mkfs/structures.c.diff?cvsroot=cluster&r1=1.2&r2=1.3

gfs/gfs_mkfs/Makefile +3 -4
@@ -28,7 +28,7 @@
 	-DGFS_RELEASE_NAME=\"${RELEASE}\"
 
 INCLUDE= -I${top_srcdir}/include -I${top_srcdir}/config \
-	-I${gfskincdir} -I${iddevincdir} -I${incdir}
+	-I${gfskincdir} -I${incdir} -I${top_srcdir}/libgfs
 
 ifneq (${KERNEL_SRC}, )
 # Use the kernel tree if patched, otherwise, look where cluster headers
@@ -40,13 +40,12 @@
 INCLUDE += -I${incdir}
 endif
 
-LDFLAGS+= -L${iddevlibdir} -L${libdir}
-LOADLIBES+= -liddev
+LDFLAGS+=-L${top_srcdir}/libgfs -L${libdir}
 
 all: ${TARGET}
 
 gfs_mkfs: ${SOURCE}
-	${CC} ${CFLAGS} ${INCLUDE} ${LDFLAGS} ${SOURCE} ${LOADLIBES} ${LDLIBS} -o $@
+	${CC} ${CFLAGS} ${INCLUDE} ${LDFLAGS} ${SOURCE} ${LOADLIBES} ${LDLIBS} -o $@ -lgfs -lvolume_id
 
 copytobin: ${TARGET}
 	cp ${TARGET} ${top_srcdir}/bin
gfs/gfs_mkfs/device_geometry.c +85 -114

244 lines not on this page · raw message

gfs/gfs_mkfs/fs_geometry.c +94 -119

260 lines not on this page · raw message

gfs/gfs_mkfs/main.c +89 -107

247 lines not on this page · raw message

gfs/gfs_mkfs/mkfs_gfs.h +2 -2
@@ -115,7 +115,7 @@
 
   uint64 rgrps;             /*  Number of rgrps  */
   int fd;                   /*  fd of the device  */
-  struct gfs_sb *sb;             /*  A copy of the superblock  */
+  struct gfs_sbd *sbd;      /*  A copy of the superblock */
   uint64 fssize;            /*  size of the filesystem  */
 
   uint64 sb_addr;
@@ -178,7 +178,7 @@
 
 /*  structures.c  */
 
-void write_sb(commandline_t *comline, osi_list_t *rlist);
+void write_mkfs_sb(commandline_t *comline, osi_list_t *rlist);
 void write_jindex(commandline_t *comline, osi_list_t *jlist);
 void write_rindex(commandline_t *comline, osi_list_t *rlist);
 void write_root(commandline_t *comline);
gfs/gfs_mkfs/structures.c +543 -729

1,483 lines not on this page · raw message