This one-line patch - add ext2fs_close(fs) in unix.c - seems to fix it:
if ((orig_retval == 0) && retval != 0) {
com_err(ctx->program_name, retval,
"when using the backup blocks");
printf(_("%s: going back to original "
"superblock\n"), ctx->program_name);
+ ext2fs_close(fs);
ctx->superblock = orig_superblock;
retval = try_open_fs(ctx, flags, io_ptr, &fs);
}
No more "device busy".
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/711799
Title:
e2fsprogs wrongly identifies ext4 as mounted
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs