* Enhancement needed to UNIX extensions to correctly support Linux EA's. @ 2013-03-26 21:22 Jeremy Allison 2013-03-26 21:28 ` Steve French 0 siblings, 1 reply; 5+ messages in thread From: Jeremy Allison @ 2013-03-26 21:22 UTC (permalink / raw) To: Jeff Layton, Steve French, Pavel Shilovsky, linux-cifs-u79uwXL29TY76Z2rM5mHXA Cc: jra-eUNUBHrolfbYtjvyW6yDsg See bug https://bugzilla.samba.org/show_bug.cgi?id=9743 No way to set zero length EA's with CIFS vfs. 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. Please discuss, Jeremy. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Enhancement needed to UNIX extensions to correctly support Linux EA's. 2013-03-26 21:22 Enhancement needed to UNIX extensions to correctly support Linux EA's Jeremy Allison @ 2013-03-26 21:28 ` Steve French [not found] ` <CAH2r5msU86Q0_PbiqZCf729hDkX9o0e_jYh87d=T8wmQKsYHHg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Steve French @ 2013-03-26 21:28 UTC (permalink / raw) To: Jeremy Allison Cc: Jeff Layton, Pavel Shilovsky, linux-cifs-u79uwXL29TY76Z2rM5mHXA Seems like a reasonable request. What version of kernel do you want me to give you some test patches for? On Tue, Mar 26, 2013 at 4:22 PM, Jeremy Allison <jra-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org> wrote: > See bug https://bugzilla.samba.org/show_bug.cgi?id=9743 > > No way to set zero length EA's with CIFS vfs. > > 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. > > Please discuss, > > Jeremy. -- Thanks, Steve ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <CAH2r5msU86Q0_PbiqZCf729hDkX9o0e_jYh87d=T8wmQKsYHHg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Enhancement needed to UNIX extensions to correctly support Linux EA's. [not found] ` <CAH2r5msU86Q0_PbiqZCf729hDkX9o0e_jYh87d=T8wmQKsYHHg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2013-03-26 21:33 ` Jeremy Allison 2013-03-27 14:29 ` Jeff Layton 0 siblings, 1 reply; 5+ messages in thread From: Jeremy Allison @ 2013-03-26 21:33 UTC (permalink / raw) To: Steve French Cc: Jeremy Allison, Jeff Layton, Pavel Shilovsky, linux-cifs-u79uwXL29TY76Z2rM5mHXA On Tue, Mar 26, 2013 at 04:28:36PM -0500, Steve French wrote: > Seems like a reasonable request. What version of kernel do you want > me to give you some test patches for? Well first let's work out the wire format, then we can look at implementations. I'm assuming you'll be re-using the existing EA marshalling/de-marshalling code, so let's decide exactly which Windows info-level we want to base it on. Jeremy. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Enhancement needed to UNIX extensions to correctly support Linux EA's. 2013-03-26 21:33 ` Jeremy Allison @ 2013-03-27 14:29 ` Jeff Layton [not found] ` <20130327102957.4dcd9f65-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Jeff Layton @ 2013-03-27 14:29 UTC (permalink / raw) To: Jeremy Allison Cc: Steve French, Pavel Shilovsky, linux-cifs-u79uwXL29TY76Z2rM5mHXA On Tue, 26 Mar 2013 14:33:01 -0700 Jeremy Allison <jra-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org> wrote: > On Tue, Mar 26, 2013 at 04:28:36PM -0500, Steve French wrote: > > Seems like a reasonable request. What version of kernel do you want > > me to give you some test patches for? > > Well first let's work out the wire format, then we > can look at implementations. > > I'm assuming you'll be re-using the existing > EA marshalling/de-marshalling code, so let's > decide exactly which Windows info-level we > want to base it on. > > Jeremy. Yeah, sounds reasonable to me too. We currently only use: SMB_INFO_QUERY_ALL_EAS SMB_SET_FILE_EA However, the current marshalling/unmarshalling code is a bit of a mess, so if it makes sense to depart from how those work then we can do so. Note that we ought to add a new unix capability bit for this too. -- Jeff Layton <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org> ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <20130327102957.4dcd9f65-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>]
* Re: Enhancement needed to UNIX extensions to correctly support Linux EA's. [not found] ` <20130327102957.4dcd9f65-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org> @ 2013-03-27 17:04 ` Jeremy Allison 0 siblings, 0 replies; 5+ messages in thread From: Jeremy Allison @ 2013-03-27 17:04 UTC (permalink / raw) To: Jeff Layton Cc: Jeremy Allison, Steve French, Pavel Shilovsky, linux-cifs-u79uwXL29TY76Z2rM5mHXA On Wed, Mar 27, 2013 at 10:29:57AM -0400, Jeff Layton wrote: > On Tue, 26 Mar 2013 14:33:01 -0700 > Jeremy Allison <jra-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org> wrote: > > > On Tue, Mar 26, 2013 at 04:28:36PM -0500, Steve French wrote: > > > Seems like a reasonable request. What version of kernel do you want > > > me to give you some test patches for? > > > > Well first let's work out the wire format, then we > > can look at implementations. > > > > I'm assuming you'll be re-using the existing > > EA marshalling/de-marshalling code, so let's > > decide exactly which Windows info-level we > > want to base it on. > > > > Jeremy. > > Yeah, sounds reasonable to me too. We currently only use: > > SMB_INFO_QUERY_ALL_EAS > SMB_SET_FILE_EA > > However, the current marshalling/unmarshalling code is a bit of a mess, > so if it makes sense to depart from how those work then we can do so. Yeah, but we already have working server-side marshalling/unmarshalling code, so I'd rather not invent a new mechanism, other than specify that the EA name be in utf8 rather than DOS charset. > Note that we ought to add a new unix capability bit for this too. Yep, and also raise the minor version number. Jeremy. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-03-27 17:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-26 21:22 Enhancement needed to UNIX extensions to correctly support Linux EA's Jeremy Allison
2013-03-26 21:28 ` Steve French
[not found] ` <CAH2r5msU86Q0_PbiqZCf729hDkX9o0e_jYh87d=T8wmQKsYHHg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-03-26 21:33 ` Jeremy Allison
2013-03-27 14:29 ` Jeff Layton
[not found] ` <20130327102957.4dcd9f65-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2013-03-27 17:04 ` Jeremy Allison
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.