• Home
  • Raw
  • Download

Lines Matching refs:jsb

52 	journal_superblock_t	*jsb;  in ext2fs_create_journal_superblock2()  local
57 if ((retval = ext2fs_get_mem(fs->blocksize, &jsb))) in ext2fs_create_journal_superblock2()
60 memset (jsb, 0, fs->blocksize); in ext2fs_create_journal_superblock2()
62 jsb->s_header.h_magic = htonl(JBD2_MAGIC_NUMBER); in ext2fs_create_journal_superblock2()
64 jsb->s_header.h_blocktype = htonl(JBD2_SUPERBLOCK_V1); in ext2fs_create_journal_superblock2()
66 jsb->s_header.h_blocktype = htonl(JBD2_SUPERBLOCK_V2); in ext2fs_create_journal_superblock2()
67 jsb->s_blocksize = htonl(fs->blocksize); in ext2fs_create_journal_superblock2()
68 jsb->s_maxlen = htonl(jparams->num_journal_blocks + jparams->num_fc_blocks); in ext2fs_create_journal_superblock2()
69 jsb->s_nr_users = htonl(1); in ext2fs_create_journal_superblock2()
70 jsb->s_first = htonl(1); in ext2fs_create_journal_superblock2()
71 jsb->s_sequence = htonl(1); in ext2fs_create_journal_superblock2()
72 jsb->s_num_fc_blks = htonl(jparams->num_fc_blocks); in ext2fs_create_journal_superblock2()
73 memcpy(jsb->s_uuid, fs->super->s_uuid, sizeof(fs->super->s_uuid)); in ext2fs_create_journal_superblock2()
79 jsb->s_nr_users = 0; in ext2fs_create_journal_superblock2()
80 jsb->s_first = htonl(ext2fs_journal_sb_start(fs->blocksize) + 1); in ext2fs_create_journal_superblock2()
83 *ret_jsb = (char *) jsb; in ext2fs_create_journal_superblock2()
430 journal_superblock_t *jsb; in ext2fs_add_journal_device() local
448 jsb = (journal_superblock_t *) buf; in ext2fs_add_journal_device()
449 if ((jsb->s_header.h_magic != (unsigned) ntohl(JBD2_MAGIC_NUMBER)) || in ext2fs_add_journal_device()
450 (jsb->s_header.h_blocktype != (unsigned) ntohl(JBD2_SUPERBLOCK_V2))) in ext2fs_add_journal_device()
453 if (ntohl(jsb->s_blocksize) != (unsigned long) fs->blocksize) in ext2fs_add_journal_device()
457 nr_users = ntohl(jsb->s_nr_users); in ext2fs_add_journal_device()
462 &jsb->s_users[i*16], 16) == 0) in ext2fs_add_journal_device()
466 memcpy(&jsb->s_users[nr_users*16], in ext2fs_add_journal_device()
468 jsb->s_nr_users = htonl(nr_users+1); in ext2fs_add_journal_device()
478 memcpy(fs->super->s_journal_uuid, jsb->s_uuid, in ext2fs_add_journal_device()