Lines Matching defs:jsb
49 journal_superblock_t *jsb;
54 if ((retval = ext2fs_get_mem(fs->blocksize, &jsb)))
57 memset (jsb, 0, fs->blocksize);
59 jsb->s_header.h_magic = htonl(JFS_MAGIC_NUMBER);
61 jsb->s_header.h_blocktype = htonl(JFS_SUPERBLOCK_V1);
63 jsb->s_header.h_blocktype = htonl(JFS_SUPERBLOCK_V2);
64 jsb->s_blocksize = htonl(fs->blocksize);
65 jsb->s_maxlen = htonl(num_blocks);
66 jsb->s_nr_users = htonl(1);
67 jsb->s_first = htonl(1);
68 jsb->s_sequence = htonl(1);
69 memcpy(jsb->s_uuid, fs->super->s_uuid, sizeof(fs->super->s_uuid));
76 jsb->s_nr_users = 0;
78 jsb->s_first = htonl(3);
80 jsb->s_first = htonl(2);
83 *ret_jsb = (char *) jsb;
435 journal_superblock_t *jsb;
454 jsb = (journal_superblock_t *) buf;
455 if ((jsb->s_header.h_magic != (unsigned) ntohl(JFS_MAGIC_NUMBER)) ||
456 (jsb->s_header.h_blocktype != (unsigned) ntohl(JFS_SUPERBLOCK_V2)))
459 if (ntohl(jsb->s_blocksize) != (unsigned long) fs->blocksize)
463 nr_users = ntohl(jsb->s_nr_users);
466 &jsb->s_users[i*16], 16) == 0)
470 memcpy(&jsb->s_users[nr_users*16],
472 jsb->s_nr_users = htonl(nr_users+1);
481 memcpy(fs->super->s_journal_uuid, jsb->s_uuid,