site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com --- At Tue, 11 Mar 2008 20:56:03 +0530, Nick Rogers wrote:
Hi, I didn't unmount the disk, but how can I do that from the cocoa part of my app. I have the POSIX path to my disk, so how can I unmount using this path?
#include <sys/mount.h> for statfs() and getmntinfo() #include <DiskArbitration/DiskArbitration.h> for disk mount and unmount routines. There is nearly no documentation for Disk Arbitration. Google a bit and you should find a few things.
On 11-Mar-08, at 8:36 PM, Dan Markarian wrote:
Hey Nik,
Did you unmount the disk first?
Dan
On 11 Mar 2008, at 10:30 AM, Nick Rogers wrote:
Hi, I'm using "BetterAuthorizationSample" from apple, which installs a privileged helper tool for performing privileged operations. While using this I can obtain a valid file descriptor for reading any disk, I can not get a valid file descriptor for writing to disk (/dev/rdisk1, which is a pen drive). I'm using: fileDesc = open(path, O_RDWR); in the privileged part (helper tool) of my code.
Any help would be greatly appreciated.
...Duane _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com