<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 10/29/2015 10:02 PM, Thomas Gläßle
wrote:<br>
</div>
<blockquote cite="mid:56328957.3050508@gmx.de" type="cite">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
Hey,<br>
<br>
I should add as disclaimer that I am only a udisks user, so you
might very well know more about this topic than I do and I am not
qualified to give you definite answers, very sorry :(.<br>
</blockquote>
We're sitting in the same boat then... <br>
<br>
No need to be sorry. Thanks for your answers!<br>
<br>
<blockquote cite="mid:56328957.3050508@gmx.de" type="cite"> <br>
I responded to the best of my knowledge anyway, because I got very
little response from current maintainer myself (I submitted a
patch unanswered and waiting to be reviewed for 4 months now).<br>
</blockquote>
Bad news!<br>
<br>
<blockquote cite="mid:56328957.3050508@gmx.de" type="cite"> <br>
<br>
<div class="moz-cite-prefix">Guy wrote on 10/29/2015 07:45 PM:<br>
</div>
<blockquote cite="mid:56326935.6010709@faert.net" type="cite">
<meta content="text/html; charset=utf-8"
http-equiv="Content-Type">
<div class="moz-cite-prefix">On 10/29/2015 01:33 AM, Thomas
Gläßle wrote:<br>
</div>
<blockquote cite="mid:56316962.9070402@gmx.de" type="cite">
<meta content="text/html; charset=utf-8"
http-equiv="Content-Type">
I'd look for partitions that are not "child" partitions, i.e.
the devices that do not export the Partition interface or have
Partition.Table is set to "/" and Partition.IsContained set to
false.<br>
</blockquote>
Hm, I can see no clear rule... may I ask you to look at the
following example. I have 3 devices:<br>
- a hard drive; it has a partition table and several partitions
<br>
- an USB stick; it doesn't have a partition table but it anyway
has a partition starting directly at sector 0<br>
- the same USB stick, but without partition table nor partition<br>
</blockquote>
<br>
Maybe I'm missing something, doesn't my suggestion apply here too?
Take the device that<br>
<br>
(has no interface Partition<br>
OR (partition.Table="/" AND
Partition.IsContained=false))<br>
AND CryptoBackingDevice="/"<br>
<br>
<br>
<blockquote cite="mid:56326935.6010709@faert.net" type="cite">Honestly,
I hope this still works for media with partition table but
unformatted partitions, or media where the partition contains
another partition table (everything is possible), or RAID
devices, or...<br>
</blockquote>
Yeah, I can't promise the above rule will work in every case. For
RAID devices it will most likely fail and you'd have to include
the Block.MDRaid or Block.MDRaidMember properties to fix it.<br>
<br>
<br>
<blockquote cite="mid:56326935.6010709@faert.net" type="cite">
This leaves me with a strange feeling... can I rely on udisks2?
With old udisks I just needed method EnumerateDevices, then I
ran through the list and queried every property I needed - btw,
"device-file" was my precious Linux device.<br>
<br>
Why not just include property "Device" for drives?<br>
<br>
Another problem I saw right now: I can't find the sector size
(property "device-block-size" in udisks).<br>
</blockquote>
I'm not sure, sorry. From my experience udisks2 has a lot of
advantages over old udisks. In particular, its API addresses the
intrinsic asynchronousity of the domain a lot better, but I can't
deny either that there are some shortcomings too. You could try to
patch what you need on your own and try to get it included. But in
that case, it will still probably take a lot of time until most
distributions upgrade to the new udisks2 version.<br>
<br>
<br>
<blockquote cite="mid:56326935.6010709@faert.net" type="cite">
<blockquote cite="mid:56316962.9070402@gmx.de" type="cite">
Furthermore, Block.CryptoBackingDevice should be "/", but from
my experience you don't have to worry about that, since UDisks
doesn't set the Block.Drive for unlocked devices (although
that might be subject to change or even just a bug?).<br>
<br>
I'm not sure this covers all cases, but at least these are the
properties that I'm currently using in udiskie.<br>
</blockquote>
That's exactly the problem I have. Guymager is a forensic
software; I *need t be sure*.<br>
<br>
</blockquote>
<br>
I see. You probably need someone else's advice. By the way, you
didn't respond to the mailing list and I wasn't sure if that was
your intention. If not, you should just send it again on the
mailing list and try to ask for someone more familiar with udisks
internals.<br>
</blockquote>
In deed, not my intention... I'll send it again.<br>
<br>
Thanks!<br>
<br>
Guy<br>
<br>
</body>
</html>