1
0
forked from pool/xfsdump
OBS User unknown 2009-01-12 17:23:31 +00:00 committed by Git OBS Bridge
parent 293d5c684c
commit 9990b949f7
3 changed files with 54 additions and 1 deletions

View File

@ -0,0 +1,44 @@
Index: dump/content.c
===================================================================
--- dump/content.c.orig
+++ dump/content.c
@@ -210,7 +210,7 @@ typedef struct extent_group_context exte
/* minimum sizes for extended attributes buffers
*/
-#define EXTATTR_LISTBUF_SZ ( 4 * pgsz )
+#define EXTATTR_LISTBUF_SZ ( XATTR_LIST_MAX )
#define EXTATTR_RTRVARRAY_LEN ( 1 * pgsz )
#define EXTATTR_DUMPBUF_SZ ( 4 * pgsz )
Index: restore/inomap.c
===================================================================
--- restore/inomap.c.orig
+++ restore/inomap.c
@@ -197,8 +197,6 @@ inomap_restore_pers( drive_t *drivep,
*/
ASSERT( INOPERSEG == ( sizeof( (( seg_t * )0 )->lobits ) * NBBY ));
ASSERT( sizeof( hnk_t ) == HNKSZ );
- ASSERT( HNKSZ >= pgsz );
- ASSERT( ! ( HNKSZ % pgsz ));
ASSERT( sizeof( pers_t ) <= PERSSZ );
/* get inomap info from media hdr
@@ -224,8 +222,6 @@ inomap_restore_pers( drive_t *drivep,
/* mmap the persistent hdr and space for the map
*/
- ASSERT( sizeof( hnk_t ) * ( size_t )hnkcnt >= pgsz );
- ASSERT( ! ( sizeof( hnk_t ) * ( size_t )hnkcnt % pgsz ));
persp = ( pers_t * ) mmap_autogrow(
PERSSZ
+
@@ -355,8 +351,6 @@ inomap_sync_pers( char *hkdir )
/* sanity checks
*/
ASSERT( sizeof( hnk_t ) == HNKSZ );
- ASSERT( HNKSZ >= pgsz );
- ASSERT( ! ( HNKSZ % pgsz ));
/* only needed once per session
*/

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 12 15:25:37 CET 2009 - mmarek@suse.cz
- fixed xfsdump on ia64 with 64k page size (bnc#450668)
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jan 6 14:24:40 CET 2009 - mmarek@suse.cz Tue Jan 6 14:24:40 CET 2009 - mmarek@suse.cz

View File

@ -21,7 +21,7 @@
Name: xfsdump Name: xfsdump
BuildRequires: e2fsprogs-devel libattr-devel ncurses-devel xfsprogs-devel BuildRequires: e2fsprogs-devel libattr-devel ncurses-devel xfsprogs-devel
Version: 2.2.48 Version: 2.2.48
Release: 43 Release: 46
AutoReqProv: on AutoReqProv: on
Group: System/Filesystems Group: System/Filesystems
License: GPL v2 or later License: GPL v2 or later
@ -30,6 +30,7 @@ Summary: Administrative Utilities for the XFS File System
Source0: xfsdump_%version-1.tar.bz2 Source0: xfsdump_%version-1.tar.bz2
Patch0: xfsdump-docdir.diff Patch0: xfsdump-docdir.diff
Patch1: xfsdump-librmt.patch Patch1: xfsdump-librmt.patch
Patch2: xfsdump-64k_pagesize.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
@ -59,6 +60,7 @@ Authors:
%setup -q %setup -q
%patch0 %patch0
%patch1 -p1 %patch1 -p1
%patch2
%build %build
%{suse_update_config -f} %{suse_update_config -f}
@ -89,6 +91,8 @@ rm -rf $RPM_BUILD_ROOT
/usr/share/man/man8/* /usr/share/man/man8/*
%changelog %changelog
* Mon Jan 12 2009 mmarek@suse.cz
- fixed xfsdump on ia64 with 64k page size (bnc#450668)
* Tue Jan 06 2009 mmarek@suse.cz * Tue Jan 06 2009 mmarek@suse.cz
- fixed two pointer comparison errors in librmt (bnc#433393) - fixed two pointer comparison errors in librmt (bnc#433393)
* Thu Mar 20 2008 mmarek@suse.cz * Thu Mar 20 2008 mmarek@suse.cz