Skip to content
This repository was archived by the owner on Apr 28, 2022. It is now read-only.

Commit c3ebca3

Browse files
committed
[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 bc3d518.
1 parent cf036f2 commit c3ebca3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/udisks2blockdevices.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ void BlockDevices::complete(Block *block, bool forceAccept)
284284
});
285285
}
286286

287-
bool willAccept = !unlocked && (block->isMountable() || block->isEncrypted() || block->isFormatting() || forceAccept);
287+
bool willAccept = !unlocked && (block->isPartition() || block->isMountable() || block->isEncrypted() || block->isFormatting() || forceAccept);
288288
qCInfo(lcMemoryCardLog) << "Completed block" << qPrintable(block->path())
289289
<< "is" << (willAccept ? "accepted" : "rejected");
290290
block->dumpInfo();

0 commit comments

Comments
 (0)