void
handler(int sig)
{
- pid_t pid = getpid();
+ pid_t pid;
int status, i;
pid = wait(&status);
- (__uint64_t)mp->m_sb.sb_fdblocks + 10 * num_ags));
kids = num_targets;
- block = (struct xfs_btree_block *) btree_buf.data;
for (agno = 0; agno < num_ags && kids > 0; agno++) {
/* read in first blocks of the ag */
}
} else if (fmt == XFS_DINODE_FMT_BTREE) {
push_cur();
- bno = NULLFSBLOCK;
rblock = (xfs_bmdr_block_t *)XFS_DFORK_PTR(dip, whichfork);
fsize = XFS_DFORK_SIZE(dip, mp, whichfork);
pp = XFS_BMDR_PTR_ADDR(rblock, 1, xfs_bmdr_maxrecs(mp, fsize, 0));
return 0;
}
optind = 0;
- count = 1;
shownames = 0;
fsb = XFS_DADDR_TO_FSB(mp, iocur_top->off >> BBSHIFT);
agno = XFS_FSB_TO_AGNO(mp, fsb);
if (cur_agno != NULLAGNUMBER && (conmask & M(AGNUMBER)) == 0) {
cvals[CT_AGNUMBER].agnumber = cur_agno;
mask |= M(AGNUMBER);
- conmask |= ~ctydescs[CT_AGNUMBER].allowed;
}
v = 0;
for (c = (ctype_t)0; c < NCTS; c++) {
maxpct = esize = 0;
dsize = lsize = rsize = 0LL;
aflag = dflag = iflag = lflag = mflag = nflag = rflag = xflag = 0;
- ci = 0;
while ((c = getopt(argc, argv, "dD:e:ilL:m:np:rR:t:xV")) != EOF) {
switch (c) {
r -= 2;
}
if (!(x & 0x80000000u)) {
- x <<= 1;
r -= 1;
}
return r;
int
libxfs_readbufr_map(struct xfs_buftarg *btp, struct xfs_buf *bp, int flags)
{
- int fd = libxfs_device_to_fd(btp->dev);
+ int fd;
int error = 0;
char *buf;
int i;
*ptr += be32_to_cpu(op_head->oh_len);
if (op_head->oh_flags & XLOG_CONTINUE_TRANS)
return 1;
- op_head = (xlog_op_header_t *)*ptr;
}
return 0;
xfs_disk_dquot_t *ddq;
f = (xfs_buf_log_format_t *)item->ri_buf[0].i_addr;
- len = item->ri_buf[0].i_len;
printf(" ");
ASSERT(f->blf_type == XFS_LI_BUF);
printf(_("BUF: #regs:%d start blkno:0x%llx len:%d bmap size:%d flags:0x%x\n"),
int rswidth;
__uint64_t rtextbytes;
- rswidth = 0;
-
if (!norsflag && !xi.risfile && !(!rtsize && xi.disfile))
rswidth = ft.rtswidth;
else
else if (qstat.qs_flags & XFS_QUOTA_GDQ_ACCT)
c = printf("%sgqnoenforce", c ? ", " : "");
if (qstat.qs_flags & XFS_QUOTA_PDQ_ENFD)
- c = printf("%spquota", c ? ", " : "");
+ printf("%spquota", c ? ", " : "");
else if (qstat.qs_flags & XFS_QUOTA_PDQ_ACCT)
- c = printf("%spqnoenforce", c ? ", " : "");
+ printf("%spqnoenforce", c ? ", " : "");
printf(")");
}
printf("\n");
#ifdef XR_DIR_TRACE
cursor->level[this_level].n = newnode;
#endif
- node = newnode;
-
entry = cursor->level[this_level].index = 0;
}
/*
cursor->level[this_level].bno = dabno;
cursor->level[this_level].hashval =
be32_to_cpu(btree[0].hashval);
- node = newnode;
entry = cursor->level[this_level].index = 0;
}
* run through entries, stop at first bad entry, don't need
* to check for .. since that's encoded in its own field
*/
- sfep = next_sfep = xfs_dir2_sf_firstentry(sfp);
+ next_sfep = xfs_dir2_sf_firstentry(sfp);
for (i = 0;
i < num_entries && ino_dir_size > (char *)next_sfep - (char *)sfp;
i++) {
/*
* free extent ends here
*/
- in_extent = 0;
#if defined(XR_BLD_FREE_TRACE) && defined(XR_BLD_ADD_EXTENT)
fprintf(stderr, "adding extent %u [%u %u]\n",
agno, extent_start, extent_len);
do_error(_("error - not enough free space in filesystem\n"));
agb_ptr = curs->btree_blocks;
- j = curs->level[0].num_blocks;
/*
* set up the free block array
do_error(_("can't rebuild fs trees -- not enough free space "
"on ag %u\n"), agno);
- i = 0;
while (ext_ptr != NULL && blocks_needed > 0) {
if (ext_ptr->ex_blockcount <= blocks_needed) {
blocks_needed -= ext_ptr->ex_blockcount;
if (junkit) {
if (inum == orphanage_ino)
orphanage_ino = 0;
- junkit = 0;
nbad++;
if (!no_modify) {
dep->name[0] = '/';
* go through the xfs_buf_t list copying from the
* read buffer into the xfs_buf_t's and release them.
*/
- last_off = first_off;
for (i = 0; i < num; i++) {
pbuf = ((char *)buf) + (LIBXFS_BBTOOFF64(XFS_BUF_ADDR(bplist[i])) - first_off);
fs_geo_list_t *next;
fs_geo_list_t *current;
- current = list;
-
for (current = list; current != NULL; current = next) {
next = current->next;
free(current);