Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

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  
    6767    char s_magic[10];               /* 52 "ReIsErFs" or "ReIsEr2Fs" or "ReIsEr3Fs" */
    6868    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 fuction 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 */
    7070    uint16_t sb_tree_height;        /* 68 height of filesytem tree. Tree consisting of only one root block has 2 here */
    7171    uint16_t sb_bmap_nr;            /* 70 amount of bitmap blocks needed to address each block of file system */
     
    225225    STORE_LE(jp->jp_journal_1st_block, REISERFS_DISK_OFFSET_IN_BYTES / blocksize + 1/*sb*/ + 1/*bmp#0*/);
    226226    timestamp = time(NULL);
    227     srandom(timestamp);
    228     STORE_LE(jp->jp_journal_magic, random());
     227    srand(timestamp);
     228    STORE_LE(jp->jp_journal_magic, rand());
    229229    STORE_LE(jp->jp_journal_size, journal_blocks);
    230230    STORE_LE(jp->jp_journal_trans_max, JOURNAL_TRANS_MAX);
Note: See TracChangeset for help on using the changeset viewer.