Searched refs:jsb (Results 1 - 5 of 5) sorted by relevance

/external/e2fsprogs/lib/ext2fs/
H A Dmkjournal.c49 journal_superblock_t *jsb; local
54 if ((retval = ext2fs_get_mem(fs->blocksize, &jsb)))
57 memset (jsb, 0, fs->blocksize);
59 jsb->s_header.h_magic = htonl(JFS_MAGIC_NUMBER);
61 jsb->s_header.h_blocktype = htonl(JFS_SUPERBLOCK_V1);
63 jsb->s_header.h_blocktype = htonl(JFS_SUPERBLOCK_V2);
64 jsb->s_blocksize = htonl(fs->blocksize);
65 jsb->s_maxlen = htonl(num_blocks);
66 jsb->s_nr_users = htonl(1);
67 jsb
435 journal_superblock_t *jsb; local
[all...]
/external/e2fsprogs/debugfs/
H A Dlogdump.c69 #define WRAP(jsb, blocknr) \
70 if (blocknr >= be32_to_cpu((jsb)->s_maxlen)) \
71 blocknr -= (be32_to_cpu((jsb)->s_maxlen) - \
72 be32_to_cpu((jsb)->s_first));
338 journal_superblock_t *jsb; local
354 jsb = (journal_superblock_t *) buf;
361 if ((be32_to_cpu(jsb->s_header.h_magic) != JFS_MAGIC_NUMBER) &&
383 jsb = (journal_superblock_t *) jsb_buffer;
384 if (be32_to_cpu(jsb->s_header.h_magic) != JFS_MAGIC_NUMBER) {
389 blocksize = be32_to_cpu(jsb
463 dump_descriptor_block(FILE *out_file, struct journal_source *source, char *buf, journal_superblock_t *jsb, unsigned int *blockp, int blocksize, tid_t transaction) argument
[all...]
/external/e2fsprogs/misc/
H A Ddumpe2fs.c330 journal_superblock_t *jsb; local
360 jsb = (journal_superblock_t *) buf;
361 if (be32_to_cpu(jsb->s_header.h_magic) != JFS_MAGIC_NUMBER) {
367 for (i=0, mask_ptr=&jsb->s_feature_compat; i <3; i++,mask_ptr++) {
393 (unsigned int)ntohl(jsb->s_maxlen),
394 (unsigned int)ntohl(jsb->s_sequence),
395 (unsigned int)ntohl(jsb->s_start));
396 if (jsb->s_errno != 0)
398 (int) ntohl(jsb->s_errno));
407 journal_superblock_t *jsb; local
[all...]
H A Dtune2fs.c184 journal_superblock_t *jsb; local
232 jsb = (journal_superblock_t *) buf;
233 if ((jsb->s_header.h_magic != (unsigned)ntohl(JFS_MAGIC_NUMBER)) ||
234 (jsb->s_header.h_blocktype != (unsigned)ntohl(JFS_SUPERBLOCK_V2))) {
240 nr_users = ntohl(jsb->s_nr_users);
242 if (memcmp(fs->super->s_uuid, &jsb->s_users[i * 16], 16) == 0)
253 memcpy(&jsb->s_users[i * 16], &jsb->s_users[(i + 1) * 16], 16);
254 jsb->s_nr_users = htonl(nr_users);
/external/e2fsprogs/e2fsck/
H A Djournal.c515 journal_superblock_t *jsb; local
528 jsb = journal->j_superblock;
530 if (jsb->s_header.h_magic != htonl(JFS_MAGIC_NUMBER))
533 switch (ntohl(jsb->s_header.h_blocktype)) {
536 if (jsb->s_feature_compat ||
537 jsb->s_feature_incompat ||
538 jsb->s_feature_ro_compat ||
539 jsb->s_nr_users)
545 if (ntohl(jsb->s_nr_users) > 1 &&
548 if (ntohl(jsb
604 e2fsck_journal_reset_super(e2fsck_t ctx, journal_superblock_t *jsb, journal_t *journal) argument
674 journal_superblock_t *jsb; local
[all...]

Completed in 130 milliseconds