* Re: [Samba] Read offline attribute
[not found] ` <53971ECD.4070301-O17Z5ZPWbgxgJw1g6a66pQ@public.gmane.org>
@ 2014-06-10 15:32 ` David Disseldorp
[not found] ` <20140610173250.1769b200-k1XZOR0ctBLN0uC3ymp8PA@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: David Disseldorp @ 2014-06-10 15:32 UTC (permalink / raw)
To: Peter Flood
Cc: samba-w/Ol4Ecudpl8XjKLYN78aQ, linux-cifs-u79uwXL29TY76Z2rM5mHXA
Hi Peter,
On Tue, 10 Jun 2014 16:05:49 +0100, Peter Flood wrote:
> I want to read the 'offline' extended attribute on files on a windows
> share mounted on a linux host, is it possible to get this info?
The Linux CIFS client doesn't currently offer such support. However,
the offline attribute can be checked using smbclient via the allinfo
command. Offline files will carry an 'O' in the attributes field.
Cheers, David
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Samba] Read offline attribute
[not found] ` <20140610173250.1769b200-k1XZOR0ctBLN0uC3ymp8PA@public.gmane.org>
@ 2014-06-10 16:26 ` Steve French
[not found] ` <CAH2r5mvoE8-Pu+Bx0sAN9eweodfun1x2bXDEme9gaYqLY3Umww-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-06-11 10:20 ` Peter Flood
1 sibling, 1 reply; 4+ messages in thread
From: Steve French @ 2014-06-10 16:26 UTC (permalink / raw)
To: David Disseldorp
Cc: Peter Flood, samba-w/Ol4Ecudpl8XjKLYN78aQ,
linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
This would be VERY trivial to add - the intent was to allow a query of
the CIFS/SMB3 specific inode metatada via a user xattr (the attribute
was defined as user.DosAttrib). Probably less than 10 lines of code
to finishup below the following in fs/cifs/xattr.c
if (strncmp(ea_name, CIFS_XATTR_DOS_ATTRIB, 14) == 0) {
cifs_dbg(FYI, "attempt to query cifs inode metadata\n");
/* revalidate/getattr then populate from inode */
On Tue, Jun 10, 2014 at 11:32 AM, David Disseldorp <ddiss-l3A5Bk7waGM@public.gmane.org> wrote:
> Hi Peter,
>
> On Tue, 10 Jun 2014 16:05:49 +0100, Peter Flood wrote:
>
>> I want to read the 'offline' extended attribute on files on a windows
>> share mounted on a linux host, is it possible to get this info?
>
> The Linux CIFS client doesn't currently offer such support. However,
> the offline attribute can be checked using smbclient via the allinfo
> command. Offline files will carry an 'O' in the attributes field.
>
> Cheers, David
> --
> To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Thanks,
Steve
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Samba] Read offline attribute
[not found] ` <20140610173250.1769b200-k1XZOR0ctBLN0uC3ymp8PA@public.gmane.org>
2014-06-10 16:26 ` Steve French
@ 2014-06-11 10:20 ` Peter Flood
1 sibling, 0 replies; 4+ messages in thread
From: Peter Flood @ 2014-06-11 10:20 UTC (permalink / raw)
To: David Disseldorp
Cc: samba-w/Ol4Ecudpl8XjKLYN78aQ, linux-cifs-u79uwXL29TY76Z2rM5mHXA
Hi David
Thanks, works.
Peter
On 10/06/2014 16:32, David Disseldorp wrote:
> Hi Peter,
>
> On Tue, 10 Jun 2014 16:05:49 +0100, Peter Flood wrote:
>
>> I want to read the 'offline' extended attribute on files on a windows
>> share mounted on a linux host, is it possible to get this info?
> The Linux CIFS client doesn't currently offer such support. However,
> the offline attribute can be checked using smbclient via the allinfo
> command. Offline files will carry an 'O' in the attributes field.
>
> Cheers, David
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Samba] Read offline attribute
[not found] ` <CAH2r5mvoE8-Pu+Bx0sAN9eweodfun1x2bXDEme9gaYqLY3Umww-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-06-11 11:33 ` Peter Flood
0 siblings, 0 replies; 4+ messages in thread
From: Peter Flood @ 2014-06-11 11:33 UTC (permalink / raw)
To: Steve French, David Disseldorp
Cc: samba-w/Ol4Ecudpl8XjKLYN78aQ,
linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Hi Steve
Trivial is great, it would be a useful addition.
On 10/06/2014 17:26, Steve French wrote:
> This would be VERY trivial to add - the intent was to allow a query of
> the CIFS/SMB3 specific inode metatada via a user xattr (the attribute
> was defined as user.DosAttrib). Probably less than 10 lines of code
> to finishup below the following in fs/cifs/xattr.c
>
> if (strncmp(ea_name, CIFS_XATTR_DOS_ATTRIB, 14) == 0) {
> cifs_dbg(FYI, "attempt to query cifs inode metadata\n");
> /* revalidate/getattr then populate from inode */
>
> On Tue, Jun 10, 2014 at 11:32 AM, David Disseldorp <ddiss-l3A5Bk7waGM@public.gmane.org> wrote:
>> Hi Peter,
>>
>> On Tue, 10 Jun 2014 16:05:49 +0100, Peter Flood wrote:
>>
>>> I want to read the 'offline' extended attribute on files on a windows
>>> share mounted on a linux host, is it possible to get this info?
>> The Linux CIFS client doesn't currently offer such support. However,
>> the offline attribute can be checked using smbclient via the allinfo
>> command. Offline files will carry an 'O' in the attributes field.
>>
>> Cheers, David
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-06-11 11:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <53971D84.1020806@whywouldwe.com>
[not found] ` <53971ECD.4070301@whywouldwe.com>
[not found] ` <53971ECD.4070301-O17Z5ZPWbgxgJw1g6a66pQ@public.gmane.org>
2014-06-10 15:32 ` [Samba] Read offline attribute David Disseldorp
[not found] ` <20140610173250.1769b200-k1XZOR0ctBLN0uC3ymp8PA@public.gmane.org>
2014-06-10 16:26 ` Steve French
[not found] ` <CAH2r5mvoE8-Pu+Bx0sAN9eweodfun1x2bXDEme9gaYqLY3Umww-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-06-11 11:33 ` Peter Flood
2014-06-11 10:20 ` Peter Flood
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.