site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com fork/exec mount(8) Shantonu On Oct 25, 2005, at 12:56 PM, Luc Vandal wrote: Luc On 25-Oct-05, at 3:40 PM, Kevin Elliott wrote: At 10:07 -0400 on 10/25/05, Luc Vandal wrote: _______________________________________________ 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... Thanks. What I'm trying to do is to update an already mounted cd- rom to check=relaxed. This is because we're having case-sensitive issues with some CDs. If there's another way to accomplish this let me know! :) 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. -- ______________________________________________________ Arguing with an engineer is like wrestling with a pig in mud. After a while, you realize the pig is enjoying it. ______________________________________________________ Kevin Elliott <mailto:kelliott@mac.com> AIM/iChatAV: kelliott@mac.com (video chat available) ______________________________________________________ _______________________________________________ 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/ssen% 40opendarwin.org This email sent to ssen@opendarwin.org This email sent to site_archiver@lists.apple.com
participants (1)
-
Shantonu Sen