/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(size); 66 jsb->s_nr_users = htonl(1); 67 jsb->s_first = htonl(1) 399 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)); 337 journal_superblock_t *jsb; local 353 jsb = (journal_superblock_t *) buf; 360 if ((be32_to_cpu(jsb->s_header.h_magic) != JFS_MAGIC_NUMBER) && 382 jsb = (journal_superblock_t *) jsb_buffer; 383 if (be32_to_cpu(jsb->s_header.h_magic) != JFS_MAGIC_NUMBER) { 388 blocksize = be32_to_cpu(jsb->s_blocksize) [all...] |
/external/e2fsprogs/e2fsck/ |
journal.c | 498 journal_superblock_t *jsb; local 511 jsb = journal->j_superblock; 513 if (jsb->s_header.h_magic != htonl(JFS_MAGIC_NUMBER)) 516 switch (ntohl(jsb->s_header.h_blocktype)) { 519 if (jsb->s_feature_compat || 520 jsb->s_feature_incompat || 521 jsb->s_feature_ro_compat || 522 jsb->s_nr_users) 528 if (ntohl(jsb->s_nr_users) > 1 && 531 if (ntohl(jsb->s_nr_users) > 1) 657 journal_superblock_t *jsb; local [all...] |
/external/e2fsprogs/misc/ |
dumpe2fs.c | 289 journal_superblock_t *jsb; local 317 jsb = (journal_superblock_t *) buf; 318 if (be32_to_cpu(jsb->s_header.h_magic) != JFS_MAGIC_NUMBER) { 324 for (i=0, mask_ptr=&jsb->s_feature_compat; i <3; i++,mask_ptr++) { 350 (unsigned int)ntohl(jsb->s_maxlen), 351 (unsigned int)ntohl(jsb->s_sequence), 352 (unsigned int)ntohl(jsb->s_start)); 361 journal_superblock_t *jsb; local 369 jsb = (journal_superblock_t *) buf; 370 if ((jsb->s_header.h_magic != (unsigned) ntohl(JFS_MAGIC_NUMBER)) | [all...] |
tune2fs.c | 159 journal_superblock_t *jsb; local 206 jsb = (journal_superblock_t *) buf; 207 if ((jsb->s_header.h_magic != (unsigned) ntohl(JFS_MAGIC_NUMBER)) || 208 (jsb->s_header.h_blocktype != (unsigned) ntohl(JFS_SUPERBLOCK_V2))) { 214 nr_users = ntohl(jsb->s_nr_users); 217 &jsb->s_users[i*16], 16) == 0) 228 memcpy(&jsb->s_users[i*16], &jsb->s_users[(i+1)*16], 16); 229 jsb->s_nr_users = htonl(nr_users); [all...] |
/system/extras/ext4_utils/ |
ext4_utils.c | 417 journal_superblock_t *jsb = (journal_superblock_t *)journal_data; local 418 jsb->s_header.h_magic = htonl(JBD2_MAGIC_NUMBER); 419 jsb->s_header.h_blocktype = htonl(JBD2_SUPERBLOCK_V2); 420 jsb->s_blocksize = htonl(info.block_size); 421 jsb->s_maxlen = htonl(info.journal_blocks); 422 jsb->s_nr_users = htonl(1); 423 jsb->s_first = htonl(1); 424 jsb->s_sequence = htonl(1);
|