Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/e2fsprogs/old_e2fsprogs
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- Location:
- branches/3.2/mindi-busybox/e2fsprogs/old_e2fsprogs
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/e2fsprogs/old_e2fsprogs/blkid/blkid_getsize.c
r1765 r3232 97 97 #ifdef BLKGETSIZE64 98 98 #ifdef __linux__ 99 if ((uname(&ut) == 0) &&100 101 (ut.release[2] < '6') && (ut.release[3] == '.')) )99 uname(&ut); 100 if ((ut.release[0] == '2') && (ut.release[1] == '.') && 101 (ut.release[2] < '6') && (ut.release[3] == '.')) 102 102 valid_blkgetsize64 = 0; 103 103 #endif -
branches/3.2/mindi-busybox/e2fsprogs/old_e2fsprogs/blkid/probe.c
r2725 r3232 576 576 dev->bid_name, diff)); 577 577 578 if (((fd = open(dev->bid_name, O_RDONLY)) < 0) || 579 (fstat(fd, &st) < 0)) { 578 fd = open(dev->bid_name, O_RDONLY); 579 if (fd < 0 580 || fstat(fd, &st) < 0 581 ) { 582 if (fd >= 0) 583 close(fd); 580 584 if (errno == ENXIO || errno == ENODEV || errno == ENOENT) { 581 585 blkid_free_dev(dev); … … 654 658 if (!dev->bid_type) { 655 659 blkid_free_dev(dev); 660 close(fd); 656 661 return NULL; 657 662 } -
branches/3.2/mindi-busybox/e2fsprogs/old_e2fsprogs/e2fsck.c
r2725 r3232 29 29 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 30 30 */ 31 32 /* 33 //usage:#define e2fsck_trivial_usage 34 //usage: "[-panyrcdfvstDFSV] [-b superblock] [-B blocksize] " 35 //usage: "[-I inode_buffer_blocks] [-P process_inode_size] " 36 //usage: "[-l|-L bad_blocks_file] [-C fd] [-j external_journal] " 37 //usage: "[-E extended-options] device" 38 //usage:#define e2fsck_full_usage "\n\n" 39 //usage: "Check ext2/ext3 file system\n" 40 //usage: "\n -p Automatic repair (no questions)" 41 //usage: "\n -n Make no changes to the filesystem" 42 //usage: "\n -y Assume 'yes' to all questions" 43 //usage: "\n -c Check for bad blocks and add them to the badblock list" 44 //usage: "\n -f Force checking even if filesystem is marked clean" 45 //usage: "\n -v Verbose" 46 //usage: "\n -b superblock Use alternative superblock" 47 //usage: "\n -B blocksize Force blocksize when looking for superblock" 48 //usage: "\n -j journal Set location of the external journal" 49 //usage: "\n -l file Add to badblocks list" 50 //usage: "\n -L file Set badblocks list" 51 */ 31 52 32 53 #include "e2fsck.h" /*Put all of our defines here to clean things up*/ … … 561 582 /* 562 583 * Return the given node's successor node---the node which has the 563 * next key in the theleft to right ordering. If the node has584 * next key in the left to right ordering. If the node has 564 585 * no successor, a null pointer is returned rather than a pointer to 565 586 * the nil node. … … 11557 11578 */ 11558 11579 if (!(fs->super->s_feature_compat & 11559 EXT2_FEATURE_COMPAT_RESIZE_INO DE)) {11580 EXT2_FEATURE_COMPAT_RESIZE_INO)) { 11560 11581 if (fs->super->s_reserved_gdt_blocks) { 11561 11582 pctx.num = fs->super->s_reserved_gdt_blocks; … … 11573 11594 if (retval) { 11574 11595 if (fs->super->s_feature_compat & 11575 EXT2_FEATURE_COMPAT_RESIZE_INO DE)11596 EXT2_FEATURE_COMPAT_RESIZE_INO) 11576 11597 ctx->flags |= E2F_FLAG_RESIZE_INODE; 11577 11598 return; … … 11583 11604 */ 11584 11605 if (!(fs->super->s_feature_compat & 11585 EXT2_FEATURE_COMPAT_RESIZE_INO DE)) {11606 EXT2_FEATURE_COMPAT_RESIZE_INO)) { 11586 11607 for (i=0; i < EXT2_N_BLOCKS; i++) { 11587 11608 if (inode.i_block[i]) -
branches/3.2/mindi-busybox/e2fsprogs/old_e2fsprogs/e2fsck.h
r2725 r3232 259 259 #define PR_1_SET_IMMUTABLE 0x010030 /* Immutable flag set on a device or socket inode */ 260 260 #define PR_1_COMPR_SET 0x010031 /* Compression flag set on a non-compressed filesystem */ 261 #define PR_1_SET_NONZSIZE 0x010032 /* Non-zero size on ondevice, fifo or socket inode */261 #define PR_1_SET_NONZSIZE 0x010032 /* Non-zero size on device, fifo or socket inode */ 262 262 #define PR_1_FS_REV_LEVEL 0x010033 /* Filesystem revision is 0, but feature flags are set */ 263 263 #define PR_1_JOURNAL_INODE_NOT_CLEAR 0x010034 /* Journal inode not in use, needs clearing */ -
branches/3.2/mindi-busybox/e2fsprogs/old_e2fsprogs/e2p/feature.c
r1765 r3232 35 35 { E2P_FEATURE_COMPAT, EXT2_FEATURE_COMPAT_DIR_INDEX, 36 36 "dir_index" }, 37 { E2P_FEATURE_COMPAT, EXT2_FEATURE_COMPAT_RESIZE_INO DE,37 { E2P_FEATURE_COMPAT, EXT2_FEATURE_COMPAT_RESIZE_INO, 38 38 "resize_inode" }, 39 39 { E2P_FEATURE_RO_INCOMPAT, EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER, -
branches/3.2/mindi-busybox/e2fsprogs/old_e2fsprogs/ext2fs/ext2_fs.h
r2725 r3232 476 476 #define EXT3_FEATURE_COMPAT_HAS_JOURNAL 0x0004 477 477 #define EXT2_FEATURE_COMPAT_EXT_ATTR 0x0008 478 #define EXT2_FEATURE_COMPAT_RESIZE_INO DE0x0010478 #define EXT2_FEATURE_COMPAT_RESIZE_INO 0x0010 479 479 #define EXT2_FEATURE_COMPAT_DIR_INDEX 0x0020 480 480 -
branches/3.2/mindi-busybox/e2fsprogs/old_e2fsprogs/ext2fs/ext2fs.h
r2725 r3232 384 384 EXT2_FEATURE_COMPAT_IMAGIC_INODES|\ 385 385 EXT3_FEATURE_COMPAT_HAS_JOURNAL|\ 386 EXT2_FEATURE_COMPAT_RESIZE_INO DE|\386 EXT2_FEATURE_COMPAT_RESIZE_INO|\ 387 387 EXT2_FEATURE_COMPAT_DIR_INDEX|\ 388 388 EXT2_FEATURE_COMPAT_EXT_ATTR) -
branches/3.2/mindi-busybox/e2fsprogs/old_e2fsprogs/ext2fs/ext2fs_inline.c
r2725 r3232 156 156 struct ext2_inode *inode) 157 157 { 158 159 158 return inode->i_blocks - 159 (inode->i_file_acl ? fs->blocksize >> 9 : 0); 160 160 } 161 161 -
branches/3.2/mindi-busybox/e2fsprogs/old_e2fsprogs/ext2fs/get_pathname.c
r2725 r3232 16 16 * directory inode, and <ino> is the inode number itself. If 17 17 * <ino> is zero, then ext2fs_get_pathname will return pathname 18 * of the thedirectory <dir>.18 * of the directory <dir>. 19 19 * 20 20 */ -
branches/3.2/mindi-busybox/e2fsprogs/old_e2fsprogs/ext2fs/getsize.c
r2725 r3232 175 175 #ifdef BLKGETSIZE64 176 176 #ifdef __linux__ 177 if ((uname(&ut) == 0) &&178 179 (ut.release[2] < '6') && (ut.release[3] == '.')) )177 uname(&ut); 178 if ((ut.release[0] == '2') && (ut.release[1] == '.') && 179 (ut.release[2] < '6') && (ut.release[3] == '.')) 180 180 valid_blkgetsize64 = 0; 181 181 #endif -
branches/3.2/mindi-busybox/e2fsprogs/old_e2fsprogs/ext2fs/initialize.c
r1765 r3232 285 285 * check the number of reserved group descriptor table blocks 286 286 */ 287 if (super->s_feature_compat & EXT2_FEATURE_COMPAT_RESIZE_INO DE)287 if (super->s_feature_compat & EXT2_FEATURE_COMPAT_RESIZE_INO) 288 288 rsv_gdt = calc_reserved_gdt_blocks(fs); 289 289 else -
branches/3.2/mindi-busybox/e2fsprogs/old_e2fsprogs/lsattr.c
r2725 r3232 94 94 95 95 if (lstat(path, &st) == -1) 96 bb_ perror_msg(path);96 bb_simple_perror_msg(path); 97 97 else { 98 98 if (de->d_name[0] != '.' || (flags & OPT_ALL)) { -
branches/3.2/mindi-busybox/e2fsprogs/old_e2fsprogs/mke2fs.c
r2725 r3232 758 758 if (rsv_gdb > 0) { 759 759 sb_param->s_feature_compat |= 760 EXT2_FEATURE_COMPAT_RESIZE_INO DE;760 EXT2_FEATURE_COMPAT_RESIZE_INO; 761 761 762 762 sb_param->s_reserved_gdt_blocks = rsv_gdb; … … 779 779 static __u32 ok_features[3] = { 780 780 EXT3_FEATURE_COMPAT_HAS_JOURNAL | 781 EXT2_FEATURE_COMPAT_RESIZE_INO DE|781 EXT2_FEATURE_COMPAT_RESIZE_INO | 782 782 EXT2_FEATURE_COMPAT_DIR_INDEX, /* Compat */ 783 783 EXT2_FEATURE_INCOMPAT_FILETYPE| /* Incompat */ … … 1124 1124 * here if it was explicitly disabled. 1125 1125 */ 1126 if ((param.s_feature_compat & EXT2_FEATURE_COMPAT_RESIZE_INO DE) &&1126 if ((param.s_feature_compat & EXT2_FEATURE_COMPAT_RESIZE_INO) && 1127 1127 !(param.s_feature_ro_compat&EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER)) { 1128 1128 bb_error_msg_and_die("reserved online resize blocks not supported " … … 1313 1313 create_bad_block_inode(fs, bb_list); 1314 1314 if (fs->super->s_feature_compat & 1315 EXT2_FEATURE_COMPAT_RESIZE_INO DE) {1315 EXT2_FEATURE_COMPAT_RESIZE_INO) { 1316 1316 retval = ext2fs_create_resize_inode(fs); 1317 1317 mke2fs_error_msg_and_die(retval, "reserve blocks for online resize");
Note:
See TracChangeset
for help on using the changeset viewer.