Whamcloud - gitweb
mke2fs: use ext2fs_open_file() in check_plausibility()
authorEric Sandeen <sandeen@redhat.com>
Wed, 21 May 2014 17:47:44 +0000 (12:47 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 22 May 2014 17:43:46 +0000 (13:43 -0400)
commita7b0f770b0f3f058ff1682beba5a78def91e91a7
treecfab6ee1b5c24f9950383998f5c5378470c4210f
parent9779e296103959026309265be5dcfe735a2f33d4
mke2fs: use ext2fs_open_file() in check_plausibility()

The commit:

802146c mke2fs: create a regular file if necessary

caused a regression on 32-bit machines; the open() fails if
the file size is > 4G.

Using ext2fs_open_file() fixes it.

Addresses-Red-Hat-Bugzilla: #1099892

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/util.c