/external/e2fsprogs/lib/ext2fs/ |
mkjournal.c | 49 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->s_first = htonl(1) 435 journal_superblock_t *jsb; local [all...] |
/external/e2fsprogs/debugfs/ |
logdump.c | 69 #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->s_blocksize) [all...] |
/external/e2fsprogs/misc/ |
dumpe2fs.c | 330 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...] |
tune2fs.c | 184 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); [all...] |
/external/e2fsprogs/e2fsck/ |
journal.c | 515 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->s_nr_users) > 1) 674 journal_superblock_t *jsb; local [all...] |
/system/extras/ext4_utils/ |
ext4_utils.c | 478 journal_superblock_t *jsb = (journal_superblock_t *)journal_data; local 479 jsb->s_header.h_magic = htonl(JBD2_MAGIC_NUMBER); 480 jsb->s_header.h_blocktype = htonl(JBD2_SUPERBLOCK_V2); 481 jsb->s_blocksize = htonl(info.block_size); 482 jsb->s_maxlen = htonl(info.journal_blocks); 483 jsb->s_nr_users = htonl(1); 484 jsb->s_first = htonl(1); 485 jsb->s_sequence = htonl(1);
|