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: Mike Fischer <email@hidden>
- Date: Thu, 17 Jan 2008 22:17:47 +0100
Am 17.01.2008 um 21:04 schrieb Nick Zitzmann <email@hidden>:
I Googled around & didn't see anything that helped. How do I tell if a
volume is not just a mounted disk image, but a mounted FileVault disk
image? I need to be able to distinguish between the two... Somehow the
Finder does this, so I was hoping there was some way of doing this
using IOKit...
Empirically I'd check if a) ACLs are enabled for the volume and b)
the volume contains a top-level directory called "Backups.backupdb".
The later is probably more relevant than the former. Both rely on the
current implementation not changing though so YMMV.
Of course you could also look at /Library/Preferences/
com.apple.TimeMachine.plist for the current settings of the key
BackupAlias. Again, this is highly implementation dependant
obviously. defaults(1) would be your friend for reading this file in
a compatible way.
HTH
Mike
--
Mike Fischer Softwareentwicklung, EDV-Beratung
Schulung, Vertrieb
Note: I read this list in digest mode!
Send me a private copy for faster responses.
_______________________________________________
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