Home
last modified time | relevance | path

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

/external/e2fsprogs/lib/e2p/
Dljs.c52 journal_superblock_t *jsb = (journal_superblock_t *) journal_sb_buf; in e2p_list_journal_super() local
59 for (i=0, mask_ptr=&jsb->s_feature_compat; i <3; i++,mask_ptr++) { in e2p_list_journal_super()
72 size = (ntohl(jsb->s_blocksize) / 1024) * ntohl(jsb->s_maxlen); in e2p_list_journal_super()
77 nr_users = (unsigned int) ntohl(jsb->s_nr_users); in e2p_list_journal_super()
78 if (exp_block_size != (int) ntohl(jsb->s_blocksize)) in e2p_list_journal_super()
80 (unsigned int)ntohl(jsb->s_blocksize)); in e2p_list_journal_super()
82 (unsigned int)ntohl(jsb->s_maxlen)); in e2p_list_journal_super()
83 if (ntohl(jsb->s_first) != 1) in e2p_list_journal_super()
85 (unsigned int)ntohl(jsb->s_first)); in e2p_list_journal_super()
88 (unsigned int)ntohl(jsb->s_sequence), in e2p_list_journal_super()
[all …]
/external/e2fsprogs/debugfs/
Dlogdump.c70 #define WRAP(jsb, blocknr) \ argument
71 if (blocknr >= be32_to_cpu((jsb)->s_maxlen)) \
72 blocknr -= (be32_to_cpu((jsb)->s_maxlen) - \
73 be32_to_cpu((jsb)->s_first));
349 journal_superblock_t *jsb; in dump_journal() local
362 jsb = (journal_superblock_t *) buf; in dump_journal()
369 if ((be32_to_cpu(jsb->s_header.h_magic) != JFS_MAGIC_NUMBER) && in dump_journal()
397 jsb = (journal_superblock_t *) jsb_buffer; in dump_journal()
398 if (be32_to_cpu(jsb->s_header.h_magic) != JFS_MAGIC_NUMBER) { in dump_journal()
403 blocksize = be32_to_cpu(jsb->s_blocksize); in dump_journal()
[all …]
Djournal.c50 journal_superblock_t *jsb) in ext2fs_journal_verify_csum_type() argument
55 return jsb->s_checksum_type == JBD2_CRC32C_CHKSUM; in ext2fs_journal_verify_csum_type()
58 static __u32 ext2fs_journal_sb_csum(journal_superblock_t *jsb) in ext2fs_journal_sb_csum() argument
62 old_crc = jsb->s_checksum; in ext2fs_journal_sb_csum()
63 jsb->s_checksum = 0; in ext2fs_journal_sb_csum()
64 crc = ext2fs_crc32c_le(~0, (unsigned char *)jsb, in ext2fs_journal_sb_csum()
66 jsb->s_checksum = old_crc; in ext2fs_journal_sb_csum()
72 journal_superblock_t *jsb) in ext2fs_journal_sb_csum_verify() argument
79 provided = ext2fs_be32_to_cpu(jsb->s_checksum); in ext2fs_journal_sb_csum_verify()
80 calculated = ext2fs_journal_sb_csum(jsb); in ext2fs_journal_sb_csum_verify()
[all …]
Ddo_journal.c765 journal_superblock_t *jsb; in update_journal_csum() local
778 jsb = journal->j_superblock; in update_journal_csum()
797 journal->j_csum_seed = jbd2_chksum(journal, ~0, jsb->s_uuid, in update_journal_csum()
798 sizeof(jsb->s_uuid)); in update_journal_csum()
/external/e2fsprogs/e2fsck/
Djournal.c45 journal_superblock_t *jsb) in e2fsck_journal_verify_csum_type() argument
50 return jsb->s_checksum_type == JBD2_CRC32C_CHKSUM; in e2fsck_journal_verify_csum_type()
53 static __u32 e2fsck_journal_sb_csum(journal_superblock_t *jsb) in e2fsck_journal_sb_csum() argument
57 old_crc = jsb->s_checksum; in e2fsck_journal_sb_csum()
58 jsb->s_checksum = 0; in e2fsck_journal_sb_csum()
59 crc = ext2fs_crc32c_le(~0, (unsigned char *)jsb, in e2fsck_journal_sb_csum()
61 jsb->s_checksum = old_crc; in e2fsck_journal_sb_csum()
67 journal_superblock_t *jsb) in e2fsck_journal_sb_csum_verify() argument
74 provided = ext2fs_be32_to_cpu(jsb->s_checksum); in e2fsck_journal_sb_csum_verify()
75 calculated = e2fsck_journal_sb_csum(jsb); in e2fsck_journal_sb_csum_verify()
[all …]
Djfs_user.h204 #define JSB_HAS_INCOMPAT_FEATURE(jsb, mask) \ argument
205 ((jsb)->s_header.h_blocktype == ext2fs_cpu_to_be32(JFS_SUPERBLOCK_V2) && \
206 ((jsb)->s_feature_incompat & ext2fs_cpu_to_be32((mask))))
/external/e2fsprogs/lib/ext2fs/
Dmkjournal.c51 journal_superblock_t *jsb; in ext2fs_create_journal_superblock() local
56 if ((retval = ext2fs_get_mem(fs->blocksize, &jsb))) in ext2fs_create_journal_superblock()
59 memset (jsb, 0, fs->blocksize); in ext2fs_create_journal_superblock()
61 jsb->s_header.h_magic = htonl(JFS_MAGIC_NUMBER); in ext2fs_create_journal_superblock()
63 jsb->s_header.h_blocktype = htonl(JFS_SUPERBLOCK_V1); in ext2fs_create_journal_superblock()
65 jsb->s_header.h_blocktype = htonl(JFS_SUPERBLOCK_V2); in ext2fs_create_journal_superblock()
66 jsb->s_blocksize = htonl(fs->blocksize); in ext2fs_create_journal_superblock()
67 jsb->s_maxlen = htonl(num_blocks); in ext2fs_create_journal_superblock()
68 jsb->s_nr_users = htonl(1); in ext2fs_create_journal_superblock()
69 jsb->s_first = htonl(1); in ext2fs_create_journal_superblock()
[all …]
/external/u-boot/fs/ext4/
Dext4_journal.c404 struct journal_superblock_t *jsb = NULL; in ext4fs_check_journal_state() local
425 jsb = (struct journal_superblock_t *) temp_buff; in ext4fs_check_journal_state()
436 if (be32_to_cpu(jsb->s_start) == 0) in ext4fs_check_journal_state()
439 if (!(jsb->s_feature_compat & in ext4fs_check_journal_state()
441 jsb->s_feature_compat |= in ext4fs_check_journal_state()
444 i = be32_to_cpu(jsb->s_first); in ext4fs_check_journal_state()
455 be32_to_cpu(jsb->s_sequence)) { in ext4fs_check_journal_state()
484 be32_to_cpu(jsb->s_sequence)) { in ext4fs_check_journal_state()
493 jsb->s_sequence = in ext4fs_check_journal_state()
495 jsb->s_sequence) + 1); in ext4fs_check_journal_state()
[all …]
Dext4_write.c687 struct journal_superblock_t *jsb; in ext4fs_deinit() local
701 jsb = (struct journal_superblock_t *)temp_buff; in ext4fs_deinit()
702 jsb->s_start = 0; in ext4fs_deinit()
/external/e2fsprogs/misc/
Ddumpe2fs.c361 journal_superblock_t *jsb; in print_inline_journal_information() local
389 jsb = (journal_superblock_t *) buf; in print_inline_journal_information()
390 if (be32_to_cpu(jsb->s_header.h_magic) != JFS_MAGIC_NUMBER) { in print_inline_journal_information()
402 journal_superblock_t *jsb; in print_journal_information() local
412 jsb = (journal_superblock_t *) buf; in print_journal_information()
413 if ((jsb->s_header.h_magic != (unsigned) ntohl(JFS_MAGIC_NUMBER)) || in print_journal_information()
414 (jsb->s_header.h_blocktype != in print_journal_information()
Dtune2fs.c206 journal_superblock_t *jsb; in get_journal_sb() local
220 jsb = (journal_superblock_t *) buf; in get_journal_sb()
221 if ((jsb->s_header.h_magic != (unsigned)ntohl(JFS_MAGIC_NUMBER)) || in get_journal_sb()
222 (jsb->s_header.h_blocktype != (unsigned)ntohl(JFS_SUPERBLOCK_V2))) { in get_journal_sb()
250 journal_superblock_t *jsb; in remove_journal_device() local
292 jsb = (journal_superblock_t *) buf; in remove_journal_device()
294 nr_users = ntohl(jsb->s_nr_users); in remove_journal_device()
302 if (!journal_user(fs->super->s_uuid, jsb->s_users, nr_users)) { in remove_journal_device()
310 memcpy(&jsb->s_users[i * 16], &jsb->s_users[(i + 1) * 16], 16); in remove_journal_device()
311 jsb->s_nr_users = htonl(nr_users); in remove_journal_device()
[all …]
/external/cldr/tools/java/org/unicode/cldr/util/data/transforms/
Dinternal_raw_IPA-old.txt104177 jsb %12524