Home | History | Annotate | Download | only in ext2fs

Lines Matching refs: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(size);
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;
399 journal_superblock_t *jsb;
417 jsb = (journal_superblock_t *) buf;
418 if ((jsb->s_header.h_magic != (unsigned) ntohl(JFS_MAGIC_NUMBER)) ||
419 (jsb->s_header.h_blocktype != (unsigned) ntohl(JFS_SUPERBLOCK_V2)))
422 if (ntohl(jsb->s_blocksize) != (unsigned long) fs->blocksize)
426 nr_users = ntohl(jsb->s_nr_users);
429 &jsb->s_users[i*16], 16) == 0)
433 memcpy(&jsb->s_users[nr_users*16],
435 jsb->s_nr_users = htonl(nr_users+1);
444 memcpy(fs->super->s_journal_uuid, jsb->s_uuid,