CFURLRef        url = 
CFURLCreateWithFileSystemPath(kCFAllocatorDefault, 
CFSTR("/Volumes/TimeMachineHD"), kCFURLPOSIXPathStyle, true);
        CFTypeRef       property = NULL;
        CFErrorRef      error = NULL;
        if (CFURLCopyResourcePropertyForKey(url, kCFURLVolumeUUIDStringKey, 
&property, &error))
                CFShow(property);

5A69DD5E-D6B9-31B7-8CD6-FC377EBC5F18

This is the same value as diskutil gives for

        Volume UUID:

It is the same thing I get out of Disk Arb’s get properties dictionary.

Thanks for the help. I wish you were right because I wouldn’t have stayed up 
until 3 am on this. :)

Jim

On Jul 20, 2016, at 9:12 AM, Jim Luther <luthe...@apple.com> wrote:

> This is a guess, but have you looked at the NSURLVolumeUUIDStringKey returned 
> by -[NSURL getResourceValue:forKey:error:] (or the kCFURLVolumeUUIDStringKey 
> property returned by CFURLCopyResourcePropertyForKey()). It should be the 
> UUID for the volume.
> 
>> On Jul 20, 2016, at 10:03 AM, Jim O'Connor <jocon...@orderndev.com> wrote:
>> 
>> On El Cap (10.11.5) when I do 
>> 
>>      tmutil destinationinfo -X
>> 
>> I get a uuid which doesn’t match anything in
>> 
>>      diskutil info devnode
>> 
>> 
>> Where do I look to get the same UUID that Time Machine is using? I need to 
>> avoid the media that the OS is using for Time Machine.
>> 
>> 
>> <?xml version="1.0" encoding="UTF-8"?>
>> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" 
>> "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
>> <plist version="1.0">
>> <dict>
>>      <key>Destinations</key>
>>      <array>
>>              <dict>
>>                      <key>Kind</key>
>>                      <string>Local</string>
>>                      <key>ID</key>
>>                      <string>EEDAB9D5-740E-4E11-BC39-52A4B6E58638</string>
>>                      <key>Name</key>
>>                      <string>TimeMachineHD</string>
>>                      <key>LastDestination</key>
>>                      <integer>1</integer>
>>                      <key>MountPoint</key>
>>                      <string>/Volumes/TimeMachineHD</string>
>>              </dict>
>>      </array>
>> </dict>
>> </plist>
>> 
>> 
>>    Device Identifier:        disk2s2
>>    Device Node:              /dev/disk2s2
>>    Whole:                    No
>>    Part of Whole:            disk2
>>    Device / Media Name:      TimeMachineHD
>> 
>>    Volume Name:              TimeMachineHD
>> 
>>    Mounted:                  Yes
>>    Mount Point:              /Volumes/TimeMachineHD
>> 
>>    File System Personality:  Journaled HFS+
>>    Type (Bundle):            hfs
>>    Name (User Visible):      Mac OS Extended (Journaled)
>>    Journal:                  Journal size 155648 KB at offset 0x3a38000
>>    Owners:                   Enabled
>> 
>>    Partition Type:           Apple_HFS
>>    OS Can Be Installed:      Yes
>>    Media Type:               Generic
>>    Protocol:                 USB
>>    SMART Status:             Not Supported
>>    Volume UUID:              5A69DD5E-D6B9-31B7-8CD6-FC377EBC5F18
>>    Disk / Partition UUID:    620E6E7B-7C47-4930-B5F7-5C7E68C3B025
>> 
>>    Total Size:               2.0 TB (2000054960128 Bytes) (exactly 
>> 3906357344 512-Byte-Units)
>>    Volume Free Space:        2.0 TB (1993384857600 Bytes) (exactly 
>> 3893329800 512-Byte-Units)
>>    Device Block Size:        512 Bytes
>>    Allocation Block Size:    4096 Bytes
>> 
>>    Read-Only Media:          No
>>    Read-Only Volume:         No
>> 
>>    Device Location:          External
>>    Removable Media:          No
>> 
>> 
>> Thanks for looking.
>> 
>> Jim
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Filesystem-dev mailing list      (Filesystem-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/filesystem-dev/luther.j%40apple.com
>> 
>> This email sent to luthe...@apple.com
> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (Filesystem-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/filesystem-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to