Re: Checking if a volume is a FileVault volume?
Re: Checking if a volume is a FileVault volume?
- Subject: Re: Checking if a volume is a FileVault volume?
- From: "Dirk Stegemann (Mailing-Lists)" <email@hidden>
- Date: Fri, 18 Jan 2008 03:10:03 +0200
Hello,
Am 18.01.2008 um 02:23 schrieb Terry Lambert:
It's grotty, but you could iterate the mounted volumes to get a
list of volume/device names, and then iterate the devices in the
ioreg, and then from there see if it's a .dmg or a sparse .dmg.
Knowing that it's sparse isn't enough though; you'd then have to
look at the image itself (not sure of O_EXCL is being used), and
look at the header on it, and see if the "encrypted" bit is being
set or not.
This doesn't reliably determine whether the image is used to host a
FileVault user's home folder.
In fact, I use encrypted sparse images all the time when handling
sensitive source code: the encryption is a requirement, and the
"sparse" option is for convenience (when working with fixed-sized
images, I usually run out of disc space sooner or later).
The OP will have to look for a different way to find out what he is
looking for...
Best,
Dirk Stegemann
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden