Diff for /xfs-cmds/xfsprogs/libxfs/rdwr.c between versions 1.33 and 1.34

version 1.33, 2006/08/08 15:35:06 version 1.34, 2007/02/21 14:37:52
Line 305  libxfs_getbuf(dev_t device, xfs_daddr_t  Line 305  libxfs_getbuf(dev_t device, xfs_daddr_t 
   
         if (cache_node_get(libxfs_bcache, &key, (struct cache_node **)&bp)) {          if (cache_node_get(libxfs_bcache, &key, (struct cache_node **)&bp)) {
 #ifdef IO_DEBUG  #ifdef IO_DEBUG
                 fprintf(stderr, "%s: allocated buffer, key=%llu(%llu), %p\n",                  fprintf(stderr, "%s: allocated %ubytes buffer, key=%llu(%llu), %p\n",
                         __FUNCTION__, BBTOB(len), LIBXFS_BBTOOFF64(blkno), blkno, buf);                          __FUNCTION__, BBTOB(len),
                           (long long)LIBXFS_BBTOOFF64(blkno), (long long)blkno, bp);
 #endif  #endif
                 libxfs_initbuf(bp, device, blkno, bytes);                  libxfs_initbuf(bp, device, blkno, bytes);
         }          }
Line 354  libxfs_readbufr(dev_t dev, xfs_daddr_t b Line 355  libxfs_readbufr(dev_t dev, xfs_daddr_t b
         }          }
 #ifdef IO_DEBUG  #ifdef IO_DEBUG
         fprintf(stderr, "readbufr read %ubytes, blkno=%llu(%llu), %p\n",          fprintf(stderr, "readbufr read %ubytes, blkno=%llu(%llu), %p\n",
                 bytes, LIBXFS_BBTOOFF64(blkno), blkno, bp);                  bytes, (long long)LIBXFS_BBTOOFF64(blkno), (long long)blkno, bp);
 #endif  #endif
         if (bp->b_dev == dev &&          if (bp->b_dev == dev &&
             bp->b_blkno == blkno &&              bp->b_blkno == blkno &&
Line 403  libxfs_writebufr(xfs_buf_t *bp) Line 404  libxfs_writebufr(xfs_buf_t *bp)
         }          }
 #ifdef IO_DEBUG  #ifdef IO_DEBUG
         fprintf(stderr, "writebufr wrote %ubytes, blkno=%llu(%llu), %p\n",          fprintf(stderr, "writebufr wrote %ubytes, blkno=%llu(%llu), %p\n",
                 bp->b_bcount, LIBXFS_BBTOOFF64(bp->b_blkno), bp->b_blkno, bp);                  bp->b_bcount, (long long)LIBXFS_BBTOOFF64(bp->b_blkno),
                   (long long)bp->b_blkno, bp);
 #endif  #endif
         bp->b_flags |= LIBXFS_B_UPTODATE;          bp->b_flags |= LIBXFS_B_UPTODATE;
         bp->b_flags &= ~(LIBXFS_B_DIRTY | LIBXFS_B_EXIT);          bp->b_flags &= ~(LIBXFS_B_DIRTY | LIBXFS_B_EXIT);
Line 432  libxfs_iomove(xfs_buf_t *bp, uint boff,  Line 434  libxfs_iomove(xfs_buf_t *bp, uint boff, 
         if (boff + len > bp->b_bcount) {          if (boff + len > bp->b_bcount) {
                 fprintf(stderr, "Badness, iomove out of range!\n"                  fprintf(stderr, "Badness, iomove out of range!\n"
                         "bp=(bno %llu, bytes %u) range=(boff %u, bytes %u)\n",                          "bp=(bno %llu, bytes %u) range=(boff %u, bytes %u)\n",
                         bp->b_blkno, bp->b_bcount, boff, len);                          (long long)bp->b_blkno, bp->b_bcount, boff, len);
                 abort();                  abort();
         }          }
 #endif  #endif
Line 464  libxfs_bcache_purge(void) Line 466  libxfs_bcache_purge(void)
         cache_purge(libxfs_bcache);          cache_purge(libxfs_bcache);
 }  }
   
 void   void
 libxfs_bcache_flush(void)  libxfs_bcache_flush(void)
 {  {
         cache_flush(libxfs_bcache);          cache_flush(libxfs_bcache);

Removed from v.1.33  
changed lines
  Added in v.1.34


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>