Re: [Samba] Read offline attribute

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux