Searched refs:jsb (Results 1 – 5 of 5) sorted by relevance
/external/e2fsprogs/lib/ext2fs/ |
D | mkjournal.c | 49 journal_superblock_t *jsb; in ext2fs_create_journal_superblock() local 54 if ((retval = ext2fs_get_mem(fs->blocksize, &jsb))) in ext2fs_create_journal_superblock() 57 memset (jsb, 0, fs->blocksize); in ext2fs_create_journal_superblock() 59 jsb->s_header.h_magic = htonl(JFS_MAGIC_NUMBER); in ext2fs_create_journal_superblock() 61 jsb->s_header.h_blocktype = htonl(JFS_SUPERBLOCK_V1); in ext2fs_create_journal_superblock() 63 jsb->s_header.h_blocktype = htonl(JFS_SUPERBLOCK_V2); in ext2fs_create_journal_superblock() 64 jsb->s_blocksize = htonl(fs->blocksize); in ext2fs_create_journal_superblock() 65 jsb->s_maxlen = htonl(size); in ext2fs_create_journal_superblock() 66 jsb->s_nr_users = htonl(1); in ext2fs_create_journal_superblock() 67 jsb->s_first = htonl(1); in ext2fs_create_journal_superblock() [all …]
|
/external/e2fsprogs/debugfs/ |
D | logdump.c | 69 #define WRAP(jsb, blocknr) \ argument 70 if (blocknr >= be32_to_cpu((jsb)->s_maxlen)) \ 71 blocknr -= (be32_to_cpu((jsb)->s_maxlen) - \ 72 be32_to_cpu((jsb)->s_first)); 337 journal_superblock_t *jsb; in dump_journal() local 353 jsb = (journal_superblock_t *) buf; in dump_journal() 360 if ((be32_to_cpu(jsb->s_header.h_magic) != JFS_MAGIC_NUMBER) && in dump_journal() 382 jsb = (journal_superblock_t *) jsb_buffer; in dump_journal() 383 if (be32_to_cpu(jsb->s_header.h_magic) != JFS_MAGIC_NUMBER) { in dump_journal() 388 blocksize = be32_to_cpu(jsb->s_blocksize); in dump_journal() [all …]
|
/external/e2fsprogs/e2fsck/ |
D | journal.c | 499 journal_superblock_t *jsb; in e2fsck_journal_load() local 512 jsb = journal->j_superblock; in e2fsck_journal_load() 514 if (jsb->s_header.h_magic != htonl(JFS_MAGIC_NUMBER)) in e2fsck_journal_load() 517 switch (ntohl(jsb->s_header.h_blocktype)) { in e2fsck_journal_load() 520 if (jsb->s_feature_compat || in e2fsck_journal_load() 521 jsb->s_feature_incompat || in e2fsck_journal_load() 522 jsb->s_feature_ro_compat || in e2fsck_journal_load() 523 jsb->s_nr_users) in e2fsck_journal_load() 529 if (ntohl(jsb->s_nr_users) > 1 && in e2fsck_journal_load() 532 if (ntohl(jsb->s_nr_users) > 1) { in e2fsck_journal_load() [all …]
|
/external/e2fsprogs/misc/ |
D | dumpe2fs.c | 303 journal_superblock_t *jsb; in print_inline_journal_information() local 331 jsb = (journal_superblock_t *) buf; in print_inline_journal_information() 332 if (be32_to_cpu(jsb->s_header.h_magic) != JFS_MAGIC_NUMBER) { in print_inline_journal_information() 338 for (i=0, mask_ptr=&jsb->s_feature_compat; i <3; i++,mask_ptr++) { in print_inline_journal_information() 364 (unsigned int)ntohl(jsb->s_maxlen), in print_inline_journal_information() 365 (unsigned int)ntohl(jsb->s_sequence), in print_inline_journal_information() 366 (unsigned int)ntohl(jsb->s_start)); in print_inline_journal_information() 375 journal_superblock_t *jsb; in print_journal_information() local 383 jsb = (journal_superblock_t *) buf; in print_journal_information() 384 if ((jsb->s_header.h_magic != (unsigned) ntohl(JFS_MAGIC_NUMBER)) || in print_journal_information() [all …]
|
D | tune2fs.c | 159 journal_superblock_t *jsb; in remove_journal_device() local 206 jsb = (journal_superblock_t *) buf; in remove_journal_device() 207 if ((jsb->s_header.h_magic != (unsigned) ntohl(JFS_MAGIC_NUMBER)) || in remove_journal_device() 208 (jsb->s_header.h_blocktype != (unsigned) ntohl(JFS_SUPERBLOCK_V2))) { in remove_journal_device() 214 nr_users = ntohl(jsb->s_nr_users); in remove_journal_device() 217 &jsb->s_users[i*16], 16) == 0) in remove_journal_device() 228 memcpy(&jsb->s_users[i*16], &jsb->s_users[(i+1)*16], 16); in remove_journal_device() 229 jsb->s_nr_users = htonl(nr_users); in remove_journal_device()
|