Bug 9743 - No way to set zero length EA's with CIFS vfs.
Summary: No way to set zero length EA's with CIFS vfs.
Status: NEW
Alias: None
Product: CifsVFS
Classification: Unclassified
Component: kernel fs (show other bugs)
Version: 2.6
Hardware: All Linux
: P5 enhancement
Target Milestone: ---
Assignee: Steve French
QA Contact: cifs QA contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-26 21:16 UTC by Jeremy Allison
Modified: 2020-08-13 15:02 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Allison 2013-03-26 21:16:28 UTC
I was doing some investigations around bug #9130, where Windows fails to copy a file when we return a zero-length EA associated with it.

Looking carefully into this this is a deficiency in the CIFS UNIX protocols. On Linux it's possible to set a zero-length EA on a file/directory as a tag of some kind, with no associated data.

On Windows this is impossible - trying to set a zero-length EA will just delete it, plus the EA names are case insensitive (and always returned uppercase).

We need to add a UNIX_GET_EAS call that can return all POSIX EA's without mangling case, and can also return zero-length EA's, also we need a UNIX_SET_EAS call that can set a zero length EA, and also has an additional 'flags' field that can delete an EA if set.

Jeff/Steve - please discuss.

Jeremy.
Comment 1 Jeff Layton 2013-11-01 15:45:16 UTC
Reassigning to Steve since he was looking at this a while back. Steve, did this ever get resolved?