summaryrefslogtreecommitdiffstats
path: root/source/ap/xfsdump/0004-xfsdump.xfsprogs-5.3.0.xfs_inogrp_t.patch
blob: 750433be17e8c18e6c8b0f6c36399611f3f28952 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
--- ./dump/inomap.c.orig	2019-11-26 13:32:54.382758726 -0600
+++ ./dump/inomap.c	2019-11-26 13:34:21.686751502 -0600
@@ -79,8 +79,8 @@
 			    bool_t,
 			    bool_t *);
 static void cb_context_free( void );
-static int cb_count_inogrp( void *, int, xfs_inogrp_t *);
-static int cb_add_inogrp( void *, int, xfs_inogrp_t * );
+static int cb_count_inogrp( void *, int, struct xfs_inogrp *);
+static int cb_add_inogrp( void *, int, struct xfs_inogrp * );
 static int cb_add( void *, jdm_fshandle_t *, int, struct xfs_bstat * );
 static bool_t cb_inoinresumerange( xfs_ino_t );
 static bool_t cb_inoresumed( xfs_ino_t );
@@ -488,7 +488,7 @@
 }
 
 static int
-cb_count_inogrp( void *arg1, int fsfd, xfs_inogrp_t *inogrp )
+cb_count_inogrp( void *arg1, int fsfd, struct xfs_inogrp *inogrp )
 {
 	int *count = (int *)arg1;
 	(*count)++;
@@ -1116,7 +1116,7 @@
  * order. adds a new segment to the inomap and ino-to-gen map.
  */
 static int
-cb_add_inogrp( void *arg1, int fsfd, xfs_inogrp_t *inogrp )
+cb_add_inogrp( void *arg1, int fsfd, struct xfs_inogrp *inogrp )
 {
 	hnk_t *hunk;
 	seg_t *segp;
--- ./common/util.h.orig	2019-11-26 13:32:54.397758725 -0600
+++ ./common/util.h	2019-11-26 13:34:21.685751502 -0600
@@ -112,7 +112,7 @@
 extern int inogrp_iter( int fsfd,
 			     int ( * fp )( void *arg1,
 				     		int fsfd,
-						xfs_inogrp_t *inogrp ),
+						struct xfs_inogrp *inogrp ),
 			     void * arg1,
 			     int *statp );
 
--- ./common/util.c.orig	2019-11-26 13:32:54.415758723 -0600
+++ ./common/util.c	2019-11-26 13:34:21.685751502 -0600
@@ -274,23 +274,23 @@
 inogrp_iter( int fsfd,
 	     int ( * fp )( void *arg1,
 				int fsfd,
-				xfs_inogrp_t *inogrp ),
+				struct xfs_inogrp *inogrp ),
 	     void * arg1,
 	     int *statp )
 {
 	xfs_ino_t lastino;
 	int inogrpcnt;
-	xfs_inogrp_t *igrp;
+	struct xfs_inogrp *igrp;
         xfs_fsop_bulkreq_t bulkreq;
 
 	/* stat set with return from callback func */
 	*statp = 0;
 
-	igrp = malloc(INOGRPLEN * sizeof(xfs_inogrp_t));
+	igrp = malloc(INOGRPLEN * sizeof(struct xfs_inogrp));
 	if (!igrp) {
 		mlog(MLOG_NORMAL | MLOG_ERROR,
 		     _("malloc of stream context failed (%d bytes): %s\n"),
-		     INOGRPLEN * sizeof(xfs_inogrp_t),
+		     INOGRPLEN * sizeof(struct xfs_inogrp),
 		     strerror(errno));
 		return -1;
 	}
@@ -302,7 +302,7 @@
 	bulkreq.ubuffer = igrp;
 	bulkreq.ocount = &inogrpcnt;
 	while (!ioctl(fsfd, XFS_IOC_FSINUMBERS, &bulkreq)) {
-		xfs_inogrp_t *p, *endp;
+		struct xfs_inogrp *p, *endp;
 
 		if ( inogrpcnt == 0 ) {
 			free(igrp);