xfsdump: fix build issues
cover xfsdump: fix build issues
Hi folks,
it's clearly been a while since I built xfsdump, because it didn't compile in my current dev environment. These patches are needed to make it compile again. Once there are reviewed and merged, I'll do a point release for the xfsdump package....
I also noticed that 'make deb' issues a huge number of set-but-not-used variable warnings, which means that the debian package is building with different compiler flags to the normal build. We should fix that at some point.
Cheers,
Dave.
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
PATCH 1/2 dump: don't redefine min() or max()
From: Dave Chinner <[email protected]>
They are included from other header files.
--- common/util.h | 3 --- restore/dirattr.c | 2 -- restore/namreg.c | 2 -- restore/node.c | 3 --- 4 files changed, 10 deletions(-)
common/util.h +0 -3
@@ -67,9 +67,6 @@ extern intgen_t read_buf( char *bufp, intgen_t *statp ); -#define min ( a, b ) ( ( ( a ) < ( b ) ) ? ( a ) : ( b ) ) -#define max ( a, b ) ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) ) -/* strncpyterm - like strncpy, but guarantees the destination is null-terminated */
restore/dirattr.c +0 -2
@@ -51,8 +51,6 @@/* structure definitions used locally ****************************************/ -#define max ( a, b ) ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) ) -/* node handle limits */ #ifdef DIRATTRCHK
restore/namreg.c +0 -2
@@ -34,8 +34,6 @@/* structure definitions used locally ****************************************/ -#define max ( a, b ) ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) ) -#define NAMREG_AVGLEN 10/* persistent context for a namreg - placed in first page
restore/node.c +0 -3
@@ -30,9 +30,6 @@#include "node.h" #include "mmap.h" -#define max ( a, b ) ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) ) -#define min ( a, b ) ( ( ( a ) < ( b ) ) ? ( a ) : ( b ) ) -extern size_t pgsz;extern size_t pgmask;
Signature · 6 lines
2.0.0 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
Re: [PATCH 1/2] dump: don't redefine min() or max()
Quoted 5 lines · Dave Chinner
From: Dave Chinner <[email protected]>
They are included from other header files.
Signed-off-by Dave Chinner <[email protected]>
Looks good,
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
PATCH 2/2 dump: fix translation build errors
In reply to Dave ChinnerFrom: Dave Chinner <[email protected]>
The translations fail to build because of duplicate message strings. Remove the duplicate.
Also, fix the missing "language" tag from the german translation.
--- po/de.po | 10 +--------- po/pl.po | 9 --------- 2 files changed, 1 insertion(+), 18 deletions(-)
po/de.po +1 -9
@@ -10,6 +10,7 @@ msgstr "" "PO-Revision-Date: 2012-08-28 10:58+0200\n" "Last-Translator: Chris Leick <[email protected]>\n" "Language-Team: German <[email protected]>\n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n"
@@ -3470,15 +3471,6 @@ msgstr "Versuch, %s mit »stat« abzufragen, fehlgeschlagen: %s\n" msgid "attempt to truncate %s failed: %s\n" msgstr "Versuch, %s zu kürzen, fehlgeschlagen: %s\n" -#: .././restore/content.c:7337 .././restore/content.c:7585 -#, c-format -msgid "" -"attempt to set extended attributes (xflags 0x%x, extsize = 0x%x, projid = 0x%" -"x) of %s failed: %s\n" -msgstr "" -"Versuch, erweiterte Attribute (xflags 0x%x, extsize = 0x%x, projid = 0x%x) " -"von %s zu setzen, fehlgeschlagen: %s\n" - #: .././restore/content.c:7493 .././restore/content.c:7760 #, c-format msgid "unable to set access and modification times of %s: %s\n"
po/pl.po +0 -9
@@ -3766,15 +3766,6 @@ msgstr "chown (uid=%d, gid=%d) %s nie powiodło się: %s\n" msgid "chmod %s failed: %s\n" msgstr "chmod %s nie powiodło się: %s\n" -#: .././restore/tree.c:2616 -#, c-format -msgid "" -"attempt to set extended attributes (xflags 0x%x, extsize = 0x%x, projid = 0x" -"%x) of %s failed: %s\n" -msgstr "" -"próba ustawienia rozszerzonych atrybutów (xflags 0x%x, extsize = 0x%x, " -"projid = 0x%x) %s nie powiodła się: %s\n" - #: .././restore/tree.c:2643 #, c-format msgid "unable to rmdir %s: not empty\n"
Signature · 6 lines
2.0.0 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
Re: [PATCH 2/2] dump: fix translation build errors
Quoted 8 lines · Dave Chinner
From: Dave Chinner <[email protected]>
The translations fail to build because of duplicate message strings. Remove the duplicate.
Also, fix the missing "language" tag from the german translation.
Signed-off-by Dave Chinner <[email protected]>
Looks good.
Btw, Jakub are you still interested in xfsdump translations? We might do another release soon so it might be a good time to start work on it.
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Re: [PATCH 2/2] dump: fix translation build errors
Quoted 6 lines · Christoph Hellwig
Quoted 5 lines · Dave Chinner
From: Dave Chinner <[email protected]>
The translations fail to build because of duplicate message strings. Remove the duplicate.
Quoted 8 lines
Quoted 3 lines
Also, fix the missing "language" tag from the german translation.
Signed-off-by Dave Chinner <[email protected]>Looks good.
Btw, Jakub are you still interested in xfsdump translations? We might do another release soon so it might be a good time to start work on it.
Do you mean current git master (git://oss.sgi.com/xfs/cmds/xfsdump.git)?
I checked it, single message needed update (new pl.po attached).
Signature · 1 line
Jakub Bogusz http://qboosh.pl/
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Re: [PATCH 2/2] dump: fix translation build errors
Quoted 4 lines · Jakub Bogusz
Quoted 2 lines
Btw, Jakub are you still interested in xfsdump translations? We might do another release soon so it might be a good time to start work on it.
Do you mean current git master (
git://oss.sgi.com/xfs/cmds/xfsdump.git)?
Yes!
Quoted 1 line
I checked it, single message needed update (new pl.po attached).
Thanks a lot!
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs