help for access partition
help for access partition
- Subject: help for access partition
- From: 何志康 <email@hidden>
- Date: Wed, 4 Feb 2004 12:45:37 +0800
Hello, everybody,
I want to access my removable disk partition, and open disk like
this:
int fd;
fd = open(bsdPath, O_RDONLY); // bsdPath is "/dev/rdisk1"
if (fd==-1)
perror(NULL);
It work. But if I change O_RDONLY to O_RDWR, open function return -1
to fd. perror() print "device busy" message.
What's wrong?
thanks
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.