~ubuntu-branches/ubuntu/trusty/xfsdump/trusty-proposed

« back to all changes in this revision

Viewing changes to common/util.c

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2008-04-23 22:06:34 UTC
  • mfrom: (0.1.1 upstream) (3.1.1 gutsy)
  • Revision ID: james.westby@ubuntu.com-20080423220634-7m8953nknbpz1nsv
Tags: 2.2.48-1
* New upstream release
* xfsdump depends on ${misc:Depends}
* Add debian/watch
* Add homepage control header
* Fix the following lintian issues:
  W: xfsdump source: package-uses-deprecated-debhelper-compat-version 1
  W: xfsdump source: ancient-standards-version 3.5.9 (current is 3.7.3)

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
              intgen_t fsfd,
117
117
              intgen_t selector,
118
118
              xfs_ino_t start_ino,
119
 
              intgen_t ( * fp )( void *arg1,
120
 
                                 jdm_fshandle_t *fshandlep,
121
 
                                 intgen_t fsfd,
122
 
                                 xfs_bstat_t *statp ),
123
 
              void * arg1,
 
119
              bstat_cbfp_t fp,
 
120
              void * cb_arg1,
 
121
              bstat_seekfp_t seekfp,
 
122
              void * seek_arg1,
124
123
              intgen_t *statp,
125
124
              bool_t ( pfp )( int ),
126
125
              xfs_bstat_t *buf,
208
207
                                        continue;
209
208
                                }
210
209
                        }
211
 
                        rval = ( * fp )( arg1, fshandlep, fsfd, p );
 
210
                        rval = ( * fp )( cb_arg1, fshandlep, fsfd, p );
212
211
                        if ( rval ) {
213
212
                                *statp = rval;
214
213
                                return 0;
221
220
                        return EINTR;
222
221
                }
223
222
 
 
223
                if (seekfp) {
 
224
                        lastino = seekfp(seek_arg1, lastino);
 
225
                        if (lastino == INO64MAX) {
 
226
                                mlog( MLOG_DEBUG,
 
227
                                      "bulkstat seeked to EOS\n");
 
228
                                return 0;
 
229
                        }
 
230
                        
 
231
                        mlog( MLOG_DEBUG,
 
232
                              "bulkstat seeked to %llu\n", lastino);
 
233
 
 
234
                        lastino = (lastino > 0) ? lastino - 1 : 0;
 
235
                }
 
236
 
224
237
                mlog( MLOG_NITTY + 1,
225
238
                      "calling bulkstat\n" );
226
239
        }