Re: Where is the "Ignore ownership on this volume" bit?
Re: Where is the "Ignore ownership on this volume" bit?
- Subject: Re: Where is the "Ignore ownership on this volume" bit?
- From: Bucanek James <email@hidden>
- Date: Mon, 25 Aug 2008 11:37:20 -0700
On Aug 25, 2008, at 10:08 AM, Quinn wrote:
At 9:41 -0700 25/8/08, Bucanek James wrote:
I've got a backup application that needs to set/restore the state
of the "ignore ownership on this volume" property before restoring
a volume.
It's not stored on the volume itself, it's store in a file on the
root file system. If you think about it, it makes sense: if a
volume is adopted on one machine and you move it to another machine,
you definitely don't want it adopted on that second machine.
Well, I'm not sure that does make sense. If I install an OS on an
external drive and then plug it into a different system, I would have
expected the volume's "Ignore ownership" property to follow it. But
this isn't the first time my expectations have disagreed with
reality. ;)
See the following for more info:
"/var/db/volinfo.database"
<x-man-page://8/vsdbutil>
AFAIK there's no supported way to programmatically change this
setting <rdar://problem/3061192>.
That's annoying, but not overly distressing. As long as I can
determine the status, save it, then warn the user before they attempt
to restore the volume.
Is there an API for reliably determining the status of the "Ignore
ownership on this volume" setting? vsdutil will "sort of" answer the
question, but its information clearly lags behind DiskArbitration. For
example:
I just erased a partition on my internal drive and an external USB
flash drive. The partition on the internal drive ended up with "Ignore
ownership" off, but the partition on the external drive got "Ignore
ownership" on. Running vsdbutil -c /Volumes/<name> on both results in
No entry found for /Volumes/<name>/'.
Event after unmounting and remounting the volume, vsdbutil is still
clueless. Once I change the option in the Finder, vsdbutil will
immediately report the updated state. But immediately after a volume
erase -- which is, of course, the very time my users will need to know
this -- it appears that only DiskArbitration knows what the option is
set to until it updates /var/db/volinfo.database.
I tried using DADiskCopyDescription to obtain the Disk Arbitration
description of the volume, but the dictionary doesn't appear to
contain this property.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden