Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/util-linux/mkfs_reiser.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/util-linux/mkfs_reiser.c
r3232 r3621 67 67 char s_magic[10]; /* 52 "ReIsErFs" or "ReIsEr2Fs" or "ReIsEr3Fs" */ 68 68 uint16_t sb_fs_state; /* 62 it is set to used by fsck to mark which phase of rebuilding is done (used for fsck debugging) */ 69 uint32_t sb_hash_function_code; /* 64 code of fu ction which was/is/will be used to sort names in a directory. See codes in above */69 uint32_t sb_hash_function_code; /* 64 code of function which was/is/will be used to sort names in a directory. See codes in above */ 70 70 uint16_t sb_tree_height; /* 68 height of filesytem tree. Tree consisting of only one root block has 2 here */ 71 71 uint16_t sb_bmap_nr; /* 70 amount of bitmap blocks needed to address each block of file system */ … … 225 225 STORE_LE(jp->jp_journal_1st_block, REISERFS_DISK_OFFSET_IN_BYTES / blocksize + 1/*sb*/ + 1/*bmp#0*/); 226 226 timestamp = time(NULL); 227 srand om(timestamp);228 STORE_LE(jp->jp_journal_magic, rand om());227 srand(timestamp); 228 STORE_LE(jp->jp_journal_magic, rand()); 229 229 STORE_LE(jp->jp_journal_size, journal_blocks); 230 230 STORE_LE(jp->jp_journal_trans_max, JOURNAL_TRANS_MAX);
Note:
See TracChangeset
for help on using the changeset viewer.