Home
last modified time | relevance | path

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

/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));
344 journal_superblock_t *jsb; in dump_journal() local
357 jsb = (journal_superblock_t *) buf; in dump_journal()
364 if ((be32_to_cpu(jsb->s_header.h_magic) != JFS_MAGIC_NUMBER) && in dump_journal()
386 jsb = (journal_superblock_t *) jsb_buffer; in dump_journal()
387 if (be32_to_cpu(jsb->s_header.h_magic) != JFS_MAGIC_NUMBER) { in dump_journal()
392 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.c764 journal_superblock_t *jsb; in update_journal_csum() local
777 jsb = journal->j_superblock; in update_journal_csum()
796 journal->j_csum_seed = jbd2_chksum(journal, ~0, jsb->s_uuid, in update_journal_csum()
797 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.h167 #define JSB_HAS_INCOMPAT_FEATURE(jsb, mask) \ argument
168 ((jsb)->s_header.h_blocktype == ext2fs_cpu_to_be32(JFS_SUPERBLOCK_V2) && \
169 ((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/e2fsprogs/misc/
Ddumpe2fs.c371 journal_superblock_t *jsb; in print_inline_journal_information() local
401 jsb = (journal_superblock_t *) buf; in print_inline_journal_information()
402 if (be32_to_cpu(jsb->s_header.h_magic) != JFS_MAGIC_NUMBER) { in print_inline_journal_information()
408 for (i=0, mask_ptr=&jsb->s_feature_compat; i <3; i++,mask_ptr++) { in print_inline_journal_information()
433 (unsigned int)ntohl(jsb->s_maxlen), in print_inline_journal_information()
434 (unsigned int)ntohl(jsb->s_sequence), in print_inline_journal_information()
435 (unsigned int)ntohl(jsb->s_start)); in print_inline_journal_information()
436 if (jsb->s_feature_compat & in print_inline_journal_information()
439 if ((jsb->s_feature_incompat & in print_inline_journal_information()
441 (jsb->s_feature_incompat & in print_inline_journal_information()
[all …]
Dtune2fs.c201 journal_superblock_t *jsb; in get_journal_sb() local
215 jsb = (journal_superblock_t *) buf; in get_journal_sb()
216 if ((jsb->s_header.h_magic != (unsigned)ntohl(JFS_MAGIC_NUMBER)) || in get_journal_sb()
217 (jsb->s_header.h_blocktype != (unsigned)ntohl(JFS_SUPERBLOCK_V2))) { in get_journal_sb()
245 journal_superblock_t *jsb; in remove_journal_device() local
287 jsb = (journal_superblock_t *) buf; in remove_journal_device()
289 nr_users = ntohl(jsb->s_nr_users); in remove_journal_device()
291 if (!journal_user(fs->super->s_uuid, jsb->s_users, nr_users)) { in remove_journal_device()
299 memcpy(&jsb->s_users[i * 16], &jsb->s_users[(i + 1) * 16], 16); in remove_journal_device()
300 jsb->s_nr_users = htonl(nr_users); in remove_journal_device()
[all …]