[patch] RELENG_7 buildworld failure in sbin/gpt/migrate.c

From: Ian FREISLICH <ianf_at_clue.co.za>
Date: Wed, 13 Feb 2008 09:08:14 +0200
Hi

Buildworld fails at this point.  ZFS info was left out of
sys/sys/disklabel.h.

===> sbin/gpt (all)
cc -O2 -fno-strict-aliasing -pipe -march=opteron -Wsystem-headers -Wall -Wno-for
mat-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpoin
ter-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-ali
gn -Wunused-parameter -Wno-uninitialized -Wno-pointer-sign -c /usr/src/sbin/gpt/
migrate.c
/usr/src/sbin/gpt/migrate.c: In function 'migrate_disklabel':
/usr/src/sbin/gpt/migrate.c:121: error: 'FS_ZFS' undeclared (first use in this f
unction)
/usr/src/sbin/gpt/migrate.c:121: error: (Each undeclared identifier is reported 
only once
/usr/src/sbin/gpt/migrate.c:121: error: for each function it appears in.)

Patch:

RCS file: /home/ncvs/src/sys/sys/disklabel.h,v
retrieving revision 1.108
diff -u -d -r1.108 disklabel.h
--- disklabel.h 12 May 2006 05:04:46 -0000      1.108
+++ disklabel.h 3 Dec 2008 09:04:01 -0000
_at__at_ -225,6 +225,7 _at__at_
 #define        FS_VINUM        14              /* Vinum drive */
 #define        FS_RAID         15              /* RAIDFrame drive */
 #define        FS_JFS2         21              /* IBM JFS2 */
+#define FS_ZFS          27              /* Sun's ZFS */
 
 #ifdef FSTYPENAMES
 static const char *fstypenames[] = {
_at__at_ -249,6 +250,12 _at__at_
        "?",
        "?",
        "jfs",
+       "?",
+       "?",
+       "?",
+       "?",
+       "?",
+       "ZFS",
        NULL
 };
 #define FSMAXTYPES     (sizeof(fstypenames) / sizeof(fstypenames[0]) - 1)

Ian

--
Ian Freislich
Received on Wed Feb 13 2008 - 06:09:14 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:27 UTC