Commit c3ebca38 authored by Raine Makelainen's avatar Raine Makelainen

[nemo-storage] Accept a partition even if it's not mountable or encrypted. Fixes JB#36851

Also following cases should work now (accept as formatable):
- Without partition table & file system
- With partition table but without partition
- With partition table and partition but without file system
- Zero'ed block device

See also commit sha1 bc3d518f.
parent cf036f26
......@@ -284,7 +284,7 @@ void BlockDevices::complete(Block *block, bool forceAccept)
});
}
bool willAccept = !unlocked && (block->isMountable() || block->isEncrypted() || block->isFormatting() || forceAccept);
bool willAccept = !unlocked && (block->isPartition() || block->isMountable() || block->isEncrypted() || block->isFormatting() || forceAccept);
qCInfo(lcMemoryCardLog) << "Completed block" << qPrintable(block->path())
<< "is" << (willAccept ? "accepted" : "rejected");
block->dumpInfo();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment