Diff of /trunk/mkinitrd-magellan/busybox/e2fsprogs/old_e2fsprogs/ext2fs/bb_inode.c
Parent Directory | Revision Log | Patch
revision 983 by niro, Sat Sep 1 22:45:15 2007 UTC | revision 984 by niro, Sun May 30 11:32:42 2010 UTC | |
---|---|---|
# | Line 125 errcode_t ext2fs_update_bb_inode(ext2_fi | Line 125 errcode_t ext2fs_update_bb_inode(ext2_fi |
125 | if (retval) | if (retval) |
126 | goto cleanup; | goto cleanup; |
127 | ||
128 | inode.i_atime = inode.i_mtime = time(0); | inode.i_atime = inode.i_mtime = time(NULL); |
129 | if (!inode.i_ctime) | if (!inode.i_ctime) |
130 | inode.i_ctime = time(0); | inode.i_ctime = time(NULL); |
131 | inode.i_blocks = rec.bad_block_count * (fs->blocksize / 512); | inode.i_blocks = rec.bad_block_count * (fs->blocksize / 512); |
132 | inode.i_size = rec.bad_block_count * fs->blocksize; | inode.i_size = rec.bad_block_count * fs->blocksize; |
133 |
|