Home
last modified time | relevance | path

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

/external/e2fsprogs/lib/ext2fs/
Dmkjournal.c49 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(num_blocks); 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/
Dlogdump.c69 #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));
338 journal_superblock_t *jsb; in dump_journal() local
354 jsb = (journal_superblock_t *) buf; in dump_journal()
361 if ((be32_to_cpu(jsb->s_header.h_magic) != JFS_MAGIC_NUMBER) && in dump_journal()
383 jsb = (journal_superblock_t *) jsb_buffer; in dump_journal()
384 if (be32_to_cpu(jsb->s_header.h_magic) != JFS_MAGIC_NUMBER) { in dump_journal()
389 blocksize = be32_to_cpu(jsb->s_blocksize); in dump_journal()
[all …]
/external/e2fsprogs/misc/
Ddumpe2fs.c330 journal_superblock_t *jsb; in print_inline_journal_information() local
360 jsb = (journal_superblock_t *) buf; in print_inline_journal_information()
361 if (be32_to_cpu(jsb->s_header.h_magic) != JFS_MAGIC_NUMBER) { in print_inline_journal_information()
367 for (i=0, mask_ptr=&jsb->s_feature_compat; i <3; i++,mask_ptr++) { in print_inline_journal_information()
393 (unsigned int)ntohl(jsb->s_maxlen), in print_inline_journal_information()
394 (unsigned int)ntohl(jsb->s_sequence), in print_inline_journal_information()
395 (unsigned int)ntohl(jsb->s_start)); in print_inline_journal_information()
396 if (jsb->s_errno != 0) in print_inline_journal_information()
398 (int) ntohl(jsb->s_errno)); in print_inline_journal_information()
407 journal_superblock_t *jsb; in print_journal_information() local
[all …]
Dtune2fs.c184 journal_superblock_t *jsb; in remove_journal_device() local
232 jsb = (journal_superblock_t *) buf; in remove_journal_device()
233 if ((jsb->s_header.h_magic != (unsigned)ntohl(JFS_MAGIC_NUMBER)) || in remove_journal_device()
234 (jsb->s_header.h_blocktype != (unsigned)ntohl(JFS_SUPERBLOCK_V2))) { in remove_journal_device()
240 nr_users = ntohl(jsb->s_nr_users); in remove_journal_device()
242 if (memcmp(fs->super->s_uuid, &jsb->s_users[i * 16], 16) == 0) in remove_journal_device()
253 memcpy(&jsb->s_users[i * 16], &jsb->s_users[(i + 1) * 16], 16); in remove_journal_device()
254 jsb->s_nr_users = htonl(nr_users); in remove_journal_device()
/external/e2fsprogs/e2fsck/
Djournal.c515 journal_superblock_t *jsb; in e2fsck_journal_load() local
528 jsb = journal->j_superblock; in e2fsck_journal_load()
530 if (jsb->s_header.h_magic != htonl(JFS_MAGIC_NUMBER)) in e2fsck_journal_load()
533 switch (ntohl(jsb->s_header.h_blocktype)) { in e2fsck_journal_load()
536 if (jsb->s_feature_compat || in e2fsck_journal_load()
537 jsb->s_feature_incompat || in e2fsck_journal_load()
538 jsb->s_feature_ro_compat || in e2fsck_journal_load()
539 jsb->s_nr_users) in e2fsck_journal_load()
545 if (ntohl(jsb->s_nr_users) > 1 && in e2fsck_journal_load()
548 if (ntohl(jsb->s_nr_users) > 1) { in e2fsck_journal_load()
[all …]