Re: mount(..) example?
Re: mount(..) example?
- Subject: Re: mount(..) example?
- From: Luc Vandal <email@hidden>
- Date: Wed, 26 Oct 2005 09:47:15 -0400
Hi Kevin,
what example are you referring to? I haven't found any example yet!
Luc
On 25-Oct-05, at 7:44 PM, Dale Walsh wrote:
On Oct 25, 2005, at 15:40 , Kevin Elliott wrote:
At 10:07 -0400 on 10/25/05, Luc Vandal wrote:
I'm having a hard time with the mount(..) function. Would anyone
post
an example so I know how to use it? Basically, I need to use
this
function to update a currently mounted cd-rom. Here's the
code I'm
currently using:
int nCdError = 0;
char options[] = "check=relaxed";
char* szErr;
nCdError = mount( "cd9660", "/dev/disk1s0", MNT_UPDATE,
options );
I always get a "Bad file descriptor" error... I guess that
there's
something missing but what?
Thanks!
Luc
Well, basically, I don't think your using the function right. The
second argument is a path to the location you wish to mount the
volume NOT the dev node you wish to mount. At least that's my
interpretation of the man page.
What exactly are you trying to do? The general guidance from
apple has been to avoid mount like the plague. It doesn't
interact well with the rest of the system. Basically it doesn't
interact at all. Unless your SURE this is what you want, you
should probably using either the carbon mount API's or DiskArb.
--
According to the API you're close, have another look at the example
and you'll see they don't pass string ref's in the argument, I
think they do that for a reason.
_______________________________________________
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