Attributes.readDosFileAttributes() does not throw UOE (Lin 64 bit)

Rajendra Gutupalli Rajendra.Gutupalli at Sun.COM
Tue Jul 29 08:23:09 PDT 2008


Alan Bateman wrote:
> Rajendra Gutupalli wrote:
>> :
>>
>> <Linux 64 bit>
>> bash-3.00$ java -d64 -cp . Test .
>> supports DosFileAttributeView ?? false
> Samba stores DOS attributes as an extended (named) attribute. Since 
> supportsFileAttributeView(DosFileAttributeView.class) is returning 
> false then perhaps this file system isn't mounted with the user_xattr 
> option. Can you check this?
Thanks Alan, I checked /etc/fstab and the file system was not mounted 
with user_xattr option.
I did remount and it worked fine.
[root at XXX]# mount -o remount,user_xattr /
[root at XXX]# exit
bash-3.00$ ./jdk1.7.0/bin/java Test .
supports DosFileAttributeView ?? true
is hidden false

Alan, Can you please explain above stated fact "Samba stores DOS 
attributes as an extended (named) attribute.".
When do we use DosFileAttributes in Linux and Solaris? Do we use it on 
smbfs file system?

Thanks
Rajendra.




More information about the nio-dev mailing list