mounting a network filesystem - folder read-only
mounting a network filesystem - folder read-only
- Subject: mounting a network filesystem - folder read-only
- From: mogambo <email@hidden>
- Date: Fri, 10 Jun 2011 17:44:16 -0700
Hi,
I have a very strange problem. To give some background, I have a filesystem driver for a network filesystem. I provide a connect GUI that invokes a mount application in the background and makes mount() system call to the driver. mount finishes successfully, but the root folder for the mount point shows up read only. I am unable to create a file or a directory at the root of the mounted file system, the error I get is "Operation not permitted". I can create files/directories inside the mount point. I have done that manually with the mount utility too - with the same result. None of the mount attempts is using read only mount option. Connecting to the filesystem with smbfs works and the mount is not read only.
The questions I have:
1. How do I distinguish between the folder being "locked" vs. read-only? When I click "Get Info" on the mount point, I don't see the "locked" check box at all. Under Sharing & Permissions, I see You only have read access.
2. We added support for immutable flag, a year or so ago, however, the immutable behavior is enforced on the server side in the filesystem, and should be enforced across all clients, irrespective of the client OS. In this case, the root folder is writable from Windows and Linux clients. The immutable flag, that translates to read-only behavior on the server side is enforced for all subdirectories too. Is there a flag in getattr on the root vnode that Mac kernel identifies as read-only flag?
3. Will Finder/Mac OX mark a mount point read only for any other reason? I read comment on forums that a usb drive formatted in NTFS shows up as read only.
4. I don't see any operations getting to the server side in the logs, so I suspect that the touch or mkdir is failing on the Mac client side itself. Could dtrace on Finder be helpful? May be the system calls it's making (or not making) will give a hint.
I am not getting anywhere with this, and I would greatly appreciate any help.
Thanks,
-m.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden