Linux CIFS filesystem development
 help / color / mirror / Atom feed
From: Peter Flood <info-O17Z5ZPWbgxgJw1g6a66pQ@public.gmane.org>
To: Steve French <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	David Disseldorp <ddiss-l3A5Bk7waGM@public.gmane.org>
Cc: samba-w/Ol4Ecudpl8XjKLYN78aQ@public.gmane.org,
	"linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [Samba] Read offline attribute
Date: Wed, 11 Jun 2014 12:33:25 +0100	[thread overview]
Message-ID: <53983E85.5010403@whywouldwe.com> (raw)
In-Reply-To: <CAH2r5mvoE8-Pu+Bx0sAN9eweodfun1x2bXDEme9gaYqLY3Umww-JsoAwUIsXosN+BqQ9rBEUg@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
>
>

  parent reply	other threads:[~2014-06-11 11:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 [this message]
2014-06-11 10:20         ` Peter Flood

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53983E85.5010403@whywouldwe.com \
    --to=info-o17z5zpwbgxgjw1g6a66pq@public.gmane.org \
    --cc=ddiss-l3A5Bk7waGM@public.gmane.org \
    --cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=samba-w/Ol4Ecudpl8XjKLYN78aQ@public.gmane.org \
    --cc=smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox