Skip to content

Commit

Permalink
Pass EXT2_FLAG_64BITS when creating the ext2 filesystem (RHBZ#808421).
Browse files Browse the repository at this point in the history
  • Loading branch information
rwmjones committed Mar 30, 2012
1 parent 636a80b commit 386b598
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion helper/ext2.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,12 @@ ext2_start (const char *hostcpu, const char *appliance,
print_timestamped_message ("finished mke2fs");

/* Open the filesystem. */
int fs_flags = EXT2_FLAG_RW;
#ifdef EXT2_FLAG_64BITS
fs_flags |= EXT2_FLAG_64BITS;
#endif
errcode_t err =
ext2fs_open (appliance, EXT2_FLAG_RW, 0, 0, unix_io_manager, &fs);
ext2fs_open (appliance, fs_flags, 0, 0, unix_io_manager, &fs);
if (err != 0)
error (EXIT_FAILURE, 0, "ext2fs_open: %s", error_message (err));

Expand Down

0 comments on commit 386b598

Please sign in to comment.