wr++;
s->mtfFreq[j+1]++;
}
-
}
}
default:
bb_show_usage();
-
}
break;
{
return (((struct cut_list *) a)->startpos -
((struct cut_list *) b)->startpos);
-
}
static void cut_file(FILE *file, char delim, const struct cut_list *cut_lists, unsigned nlists)
freev(i2);
}
return v;
-
}
/* Handle : operator (pattern matching).
enum {
-
TERMINAL_WIDTH = 80, /* use 79 if terminal has linefold bug */
COLUMN_GAP = 2, /* includes the file type char */
SPLIT_DIR = 1,
SPLIT_FILE = 0,
SPLIT_SUBDIR = 2,
-
};
/* "[-]Cadil1", POSIX mandated options, busybox always supports */
}
dict_root(dict)->color = dnode_black;
-
}
/*
dir->dx_block = e2fsck_allocate_memory(ctx, num_blocks
* sizeof (struct dx_dirblock_info),
"dx_block info array");
-
}
/*
ext2fs_free_mem(&j_inode);
ext2fs_free_mem(&journal);
return retval;
-
}
static errcode_t e2fsck_journal_fix_bad_inode(e2fsck_t ctx,
e2fsck_write_inode(ctx, ino, inode,
"pass1");
}
-
}
/*
* If dtime is set, offer to clear it. mke2fs
ext2fs_free_mem(&block_buf);
ext2fs_free_mem(&inode);
-
}
/*
ctx->invalid_bitmaps++;
}
} else {
- ext2fs_mark_block_bitmap(ctx->block_found_map,
- b);
+ ext2fs_mark_block_bitmap(ctx->block_found_map, b);
}
}
}
ctx->invalid_bitmaps++;
}
} else {
- ext2fs_mark_block_bitmap(ctx->block_found_map,
- fs->group_desc[i].bg_block_bitmap);
- }
-
+ ext2fs_mark_block_bitmap(ctx->block_found_map,
+ fs->group_desc[i].bg_block_bitmap);
+ }
}
/*
* Mark block used for the inode bitmap
ctx->invalid_bitmaps++;
}
} else {
- ext2fs_mark_block_bitmap(ctx->block_found_map,
- fs->group_desc[i].bg_inode_bitmap);
+ ext2fs_mark_block_bitmap(ctx->block_found_map,
+ fs->group_desc[i].bg_inode_bitmap);
}
}
block += fs->super->s_blocks_per_group;
ext2fs_mark_super_dirty(fs);
}
}
-
}
#define MAX_DEPTH 32000
if (print_answer)
printf("%s.\n", answer ?
_(preen_msg[(int) ptr->prompt]) : _("IGNORED"));
-
}
if ((ptr->prompt == PROMPT_ABORT) && answer)
if ((blk < fs->super->s_first_data_block) ||
(blk >= fs->super->s_blocks_count)) {
fix_problem(ctx, PR_0_ORPHAN_ILLEGAL_BLOCK_NUM, pctx);
- return_abort:
+ return_abort:
pb->abort = 1;
return BLOCK_ABORT;
}
}
ext2fs_free_mem(&block_buf);
return 0;
-return_abort:
+ return_abort:
ext2fs_free_mem(&block_buf);
return 1;
}
!(inode.i_mode & LINUX_S_IFREG) ||
(blk < fs->super->s_first_data_block ||
blk >= fs->super->s_blocks_count)) {
- resize_inode_invalid:
+ resize_inode_invalid:
if (fix_problem(ctx, PR_0_RESIZE_INODE_INVALID, &pctx)) {
memset(&inode, 0, sizeof(inode));
e2fsck_write_inode(ctx, EXT2_RESIZE_INO, &inode,
}
}
-cleanup:
+ cleanup:
ext2fs_free_mem(&dind_buf);
-
- }
+}
static void check_super_block(e2fsck_t ctx)
{
(gd->bg_free_inodes_count > sb->s_inodes_per_group) ||
(gd->bg_used_dirs_count > sb->s_inodes_per_group))
ext2fs_unmark_valid(fs);
-
}
/*
fs->super->s_feature_incompat &=
~EXT2_FEATURE_INCOMPAT_FILETYPE;
ext2fs_mark_super_dirty(fs);
-
}
}
} while (b != finish);
return EXT2_ET_BLOCK_ALLOC_FAIL;
}
-
fs->group_desc[group].bg_inode_table = new_blk;
}
-
return 0;
}
-
-
errcode_t ext2fs_allocate_tables(ext2_filsys fs)
{
errcode_t retval;
}
return 0;
}
-
*block_nr = blk;
return BLOCK_CHANGED;
}
-
-
-
-
-
-
bb_error_msg("#%lu", arg);
#endif
}
-
return ext2fs_block_iterate2(fs, ino, BLOCK_FLAG_NO_LARGE | flags,
block_buf, xlate_func, &xl);
}
-
#define ext2fs_brel_move(brel, old, new) ((brel)->move((brel), old, new))
#define ext2fs_brel_delete(brel, old) ((brel)->delete((brel), old))
#define ext2fs_brel_free(brel) ((brel)->free((brel)))
-
ext2fs_free(fs);
return 0;
}
-
return BLOCK_ABORT;
return 0;
}
-
{
return ext2fs_write_dir_block2(fs, block, inbuf, 0);
}
-
errout:
ext2fs_free(fs);
return retval;
-
}
-
__u32 offset_blockmap; /* Byte offset of the inode bitmaps */
__u32 offset_reserved[8];
};
-
-
-
-
-
-
-
-
-
-
-
-
-
sizeof(struct ext2_xattr_entry)) & ~EXT2_EXT_ATTR_ROUND)
#define EXT2_XATTR_SIZE(size) \
(((size) + EXT2_EXT_ATTR_ROUND) & ~EXT2_EXT_ATTR_ROUND)
-
blk_t ref_block,
int ref_offset,
void *priv_data);
-
-
dblist->magic = 0;
ext2fs_free_mem(&dblist);
}
-
retval = ext2fs_get_pathname_int(fs, dir, ino, 32, buf, name);
ext2fs_free_mem(&buf);
return retval;
-
}
#endif
return io_channel_write_blk(fs->io, blk, 1, buf);
}
-
-
#include "ext2_fs.h"
#define INCLUDE_INLINE_FUNCS
#include "ext2fs.h"
-
return EXT2_ET_NO_DIRECTORY;
return 0;
}
-
return ext2fs_file_flush(data->file);
}
-
/* Dynamic information describing the current state of the log */
__u32 s_sequence; /* first commit ID expected in log */
__u32 s_start; /* blocknr of start of log */
-
} journal_superblock_t;
-
return (ls.found) ? 0 : EXT2_ET_FILE_NOT_FOUND;
}
-
-
cleanup:
ext2fs_free_mem(&block);
return retval;
-
}
-
-
return (BLOCK_CHANGED | BLOCK_ABORT);
else
return BLOCK_CHANGED;
-
}
/*
}
ext2fs_close(fs);
exit(0);
-
}
#endif
ext2fs_free_mem(&buf);
return retval;
}
-
dir->name_len = 2 | filetype;
dir->name[0] = '.';
dir->name[1] = '.';
-
}
*block = buf;
return 0;
return ext2fs_read_bb_FILE2(fs, f, bb_list, (void *) invalid,
call_compat_invalid);
}
-
-
ext2fs_free_mem((void *)&dindir_buf);
return retval;
}
-
bmap->magic = EXT2_ET_MAGIC_BLOCK_BITMAP;
return retval;
}
-
sb->s_hash_seed[i] = ext2fs_swab32(sb->s_hash_seed[i]);
for (i=0; i < 17; i++)
sb->s_jnl_blocks[i] = ext2fs_swab32(sb->s_jnl_blocks[i]);
-
}
void ext2fs_swap_group_desc(struct ext2_group_desc *gdp)
ext2fs_swap_ext_attr((char *) (eat + 1), (char *) (eaf + 1),
bufsize - sizeof(struct ext2_inode) -
t->i_extra_isize - sizeof(__u32), 0);
-
}
void ext2fs_swap_inode(ext2_filsys fs, struct ext2_inode *t,
return (ls.done) ? 0 : EXT2_ET_DIR_NO_SPACE;
}
-
bb_error_msg("%s is apparently in use by the system", device);
goto force_check;
}
-
}
void parse_journal_opts(char **journal_device, int *journal_flags,
{
die_if_bad_username(argv[0]);
new_group(argv[0], gid);
-
}
/* Reached only on success */
return EXIT_SUCCESS;
goto err;
}
} while (n1 != n2);
-
}
if (*ptr != ',') {
break;
if (val[MINOR] && (val[MINOR] <= MINOR_MAX)) {
if (like_std < 3) like_std = 3;
std = actual_ver[val[MINOR]];
- if (std) printf("\n\tUsed: %s ", nth_string(minor_str, val[MINOR]));
-
+ if (std)
+ printf("\n\tUsed: %s ", nth_string(minor_str, val[MINOR]));
}
/* looks like when they up-issue the std, they obsolete one;
* thus, only the newest 4 issues need be supported. (That's
p->filter_offset, x,
p->filter_dispersion,
p->filter_jitter);
-
}
static void
cookmode();
ret:
bb_got_signal = 0;
-
}
static void handle_net_output(int len)
return (type == ICMP6_TIME_EXCEEDED ? -1 : (code<<8)+1);
}
}
-
}
# if ENABLE_FEATURE_TRACEROUTE_VERBOSE
if (directory == NULL || directory[0] != '/') {
bb_error_msg_and_die("full path required for exclude: %s", directory);
-
}
if (lstat(directory, &sb)) {
bb_error_msg("directory \"%s\" not found, ignoring", directory);
}
IF_ASH_ALIAS(if (c != PEOA))
USTPUTC(c, out);
-
}
c = pgetc_fast();
} /* for (;;) */
p = grabstackstr(concat);
}
evalstring(p, ~SKIPEVAL);
-
}
return exitstatus;
}
#ifdef CMD_SINGLEWORD_NOGLOB_COND
else if (command->cmd_type == CMD_SINGLEWORD_NOGLOB_COND) {
argv_expanded = expand_strvec_to_strvec_singleword_noglob_cond(argv + command->assignment_cnt);
-
}
#endif
else {
fix_chain_of_logicals();
printf("Done.\n");
-
}
#endif
ret:
volume_id_free_buffer(id);
return (- id->error); /* 0 or -1 */
-
}
/* open volume by device node */