• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting "Bay" information
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting "Bay" information


  • Subject: Re: Getting "Bay" information
  • From: Karl Kuehn <email@hidden>
  • Date: Wed, 18 Mar 2009 11:51:50 -0700

On Mar 18, 2009, at 11:37 AM, Dan Markarian wrote:

It is best to use the volume UUID to identify a volume uniquely, not aspects of the device it resides on. We support the UUID= expression in fstab(8) for that very reason. eg.

# diskutil info /dev/disk0s3 | grep UUID
Volume UUID: 39605337-AB61-48DF-81C9-348947666FB9
# echo "UUID=39605337-AB61-48DF-81C9-348947666FB9 /export hfs rw" > / etc/fstab

Thanks for the response, but I am actually aiming to get to the UUIDs, but I need to do this over a range of different computers (550 of 6 different models.. and both those numbers will expand). Basically I need to figure out what disk is in "Bay 1", so I can get ahold of the volume UUID's for all of the volumes on that disk.


I have put together code that can lookup the prefix on the DAMediaBSDName for individual "platform names" (ie: iMac8,1), and from there figure out the "bay number" for the disk, and then I have default code if I don't have information for that "platform name" (there is a pattern, but lots of exceptions), but am really looking for a solution that does not involve me collecting the DAMediaBSDName for the bays on every single computer model by hand. An ideal solution would be some API that I could use to find the "Bay number" of a given DADiskRef.

Oh.. and by doing registering for another callback I have eliminated the need to write out to fstab at all, but am still doing so so that I am not fighting the automouner at every startup.

--
		Karl Kuehn
			email@hidden



_______________________________________________
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


References: 
 >Getting "Bay" information (From: Karl Kuehn <email@hidden>)
 >Re: Getting "Bay" information (From: Dan Markarian <email@hidden>)

  • Prev by Date: Re: Getting "Bay" information
  • Next by Date: Re: Problems with dirent and nfs
  • Previous by thread: Re: Getting "Bay" information
  • Next by thread: Problems with dirent and nfs
  • Index(es):
    • Date
    • Thread