Whamcloud - gitweb
libext2fs: add metadata checksum and snapshot feature flags
[tools/e2fsprogs.git] / e2fsck / util.c
index 56c6b35..fb9a87a 100644 (file)
@@ -180,7 +180,7 @@ int ask_yn(const char * string, int def)
                        def = 0;
                        break;
                }
-               else if ((c == ' ' || c == '\n') && (def != -1))
+               else if ((c == 27 || c == ' ' || c == '\n') && (def != -1))
                        break;
        }
        if (def)
@@ -492,7 +492,7 @@ blk_t get_backup_sb(e2fsck_t ctx, ext2_filsys fs, const char *name,
                if (blocksize == 1024)
                        superblock++;
                io_channel_set_blksize(io, blocksize);
-               if (io_channel_read_blk(io, superblock,
+               if (io_channel_read_blk64(io, superblock,
                                        -SUPERBLOCK_SIZE, buf))
                        continue;
 #ifdef WORDS_BIGENDIAN
@@ -592,7 +592,7 @@ errcode_t e2fsck_zero_blocks(ext2_filsys fs, blk_t blk, int num,
                count = num - j;
                if (count > STRIDE_LENGTH)
                        count = STRIDE_LENGTH;
-               retval = io_channel_write_blk(fs->io, blk, count, buf);
+               retval = io_channel_write_blk64(fs->io, blk, count, buf);
                if (retval) {
                        if (ret_count)
                                *ret_count = count;