Re: [Linux-NTFS-Dev] Re: FAT, NTFS, CIFS and DOS attributes

From: Szakacsits Szabolcs
Date: Tue Jan 04 2005 - 17:38:41 EST



On Tue, 4 Jan 2005 tridge@xxxxxxxxx wrote:

> you need more than one byte for DOS attrib. These are the bits Samba4
> defines:
>
> /* FileAttributes (search attributes) field */
[ ... ]
> #define FILE_ATTRIBUTE_SPARSE 0x0200
[ ... ]
> #define FILE_ATTRIBUTE_COMPRESSED 0x0800
[ ... ]
>
> while most apps don't care about the bits beyond 0xFF at the moment, I
> think that might change, especially for win32 clients accessing linux
> filesystems via wine and Samba.

Setting the above two attributes from a Linux client accessing NTFS via
cifsfs pops up more often too. One scenario would be

ntfsclone --fs-compression --output /mnt/cifsfs/backup.img /dev/foo

and the transparently compressed backup.img should be loopback mountable
by whatever preferred NTFS driver for whatever reason.

Szaka

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