[linux-cifs-client] Re: Unable to create new file on windows 2000

Ian ian at gallowit.com
Mon Feb 2 16:44:34 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
~    Is the below fix in the 2.4 cvs tree and is it ready to use? If so I
will try it out.

Cheers,
Ian

Cheers,
Ian

Steve French wrote:

|I have made a fix to request
|    GENERIC_READ | GENERIC_WRITE
|instead of
|    GENERIC_ALL
|on file creation which avoids the problem you described in my testing.
|Presumably the legacy smb frame which smbfs sends is interpreted as only
|requesting read & write (which is all that linux client would need at
|this stage anyway due to the relative simplicity of the posix file api,
|at least compared to the windows file api).  GENERIC_ALL was presumably
|implicitly requesting more obscure unneeded (at least for the linux
|client case) perms like take ownership permission.
|
|I do see a problem in my testing of the caching fix from last night.
|fsx can fail when a (non-memory mapped standard posix) read follows a
|memory mapped write.  I had thought that this was caused by the problem
|in not having an easy way to "write through" mmapped writes, but I could
|probably sync those pages in the standard read path when I detect that
|the page cache has dirty pages which correspond to an overlapping
|range.    But the problem I am seeing also occurs with caching enabled
|(in which case I would have expected nothing I changed last night to
|have affected anything in the read or write path - still calling
|generic_read/generic_write).  I will do some additional tracing this
|weekend of the fsx failure.
|
|>How do the acl settings differ when using smbfs as opposed to cifs? When
|>I mount the same share using smbfs I do not see the same behaviour i.e.
|>I can create new files without having to have full control over the share.
|>
|>The change in permissions is done to the network share rather than on
|>the ntfs settings i.e. when using cifs we set full control on the
|>network share whilst the ntfs acls deny full control.
|>
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAHn5xzR2KhuAWJ/gRAq0vAKCi025bllycD/8lbY3cUcqRP17lkQCgkkvG
MF1kNSo3mCrsR4w4My08SRg=
=0ti7
-----END PGP SIGNATURE-----



More information about the linux-cifs-client mailing list