/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 | 499 journal_superblock_t *jsb; local 512 jsb = journal->j_superblock; 514 if (jsb->s_header.h_magic != htonl(JFS_MAGIC_NUMBER)) 517 switch (ntohl(jsb->s_header.h_blocktype)) { 520 if (jsb->s_feature_compat || 521 jsb->s_feature_incompat || 522 jsb->s_feature_ro_compat || 523 jsb->s_nr_users) 529 if (ntohl(jsb->s_nr_users) > 1 && 532 if (ntohl(jsb->s_nr_users) > 1) 658 journal_superblock_t *jsb; local [all...] |
/external/e2fsprogs/misc/ |
dumpe2fs.c | 303 journal_superblock_t *jsb; local 331 jsb = (journal_superblock_t *) buf; 332 if (be32_to_cpu(jsb->s_header.h_magic) != JFS_MAGIC_NUMBER) { 338 for (i=0, mask_ptr=&jsb->s_feature_compat; i <3; i++,mask_ptr++) { 364 (unsigned int)ntohl(jsb->s_maxlen), 365 (unsigned int)ntohl(jsb->s_sequence), 366 (unsigned int)ntohl(jsb->s_start)); 375 journal_superblock_t *jsb; local 383 jsb = (journal_superblock_t *) buf; 384 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 | 351 journal_superblock_t *jsb = (journal_superblock_t *)journal_data; local 352 jsb->s_header.h_magic = htonl(JBD2_MAGIC_NUMBER); 353 jsb->s_header.h_blocktype = htonl(JBD2_SUPERBLOCK_V2); 354 jsb->s_blocksize = htonl(info.block_size); 355 jsb->s_maxlen = htonl(info.journal_blocks); 356 jsb->s_nr_users = htonl(1); 357 jsb->s_first = htonl(1); 358 jsb->s_sequence = htonl(1);
|