Home | History | Annotate | Download | only in e2fsck

Lines Matching refs:jsb

499 	journal_superblock_t *jsb;
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) {
563 if (jsb->s_blocksize != htonl(journal->j_blocksize)) {
570 if (ntohl(jsb->s_maxlen) < journal->j_maxlen)
571 journal->j_maxlen = ntohl(jsb->s_maxlen);
572 else if (ntohl(jsb->s_maxlen) > journal->j_maxlen) {
579 journal->j_tail_sequence = ntohl(jsb->s_sequence);
581 journal->j_tail = ntohl(jsb->s_start);
582 journal->j_first = ntohl(jsb->s_first);
583 journal->j_last = ntohl(jsb->s_maxlen);
588 static void e2fsck_journal_reset_super(e2fsck_t ctx, journal_superblock_t *jsb,
603 if (jsb->s_header.h_magic != htonl(JFS_MAGIC_NUMBER) ||
604 jsb->s_header.h_blocktype != htonl(JFS_SUPERBLOCK_V1)) {
605 jsb->s_header.h_magic = htonl(JFS_MAGIC_NUMBER);
606 jsb->s_header.h_blocktype = htonl(JFS_SUPERBLOCK_V2);
611 p = ((char *) jsb) + sizeof(journal_header_t);
614 jsb->s_blocksize = htonl(ctx->fs->blocksize);
615 jsb->s_maxlen = htonl(journal->j_maxlen);
616 jsb->s_first = htonl(1);
626 jsb->s_sequence = htonl(new_seq);
658 journal_superblock_t *jsb;
663 jsb = journal->j_superblock;
664 jsb->s_sequence = htonl(journal->j_transaction_sequence);
666 jsb->s_start = 0; /* this marks the journal as empty */