jdk/src/solaris/classes/sun/nio/fs/LinuxFileStore.java
changeset 14011 3d24d5dcf602
parent 7668 d4a77089c587
child 21290 db5e0cad1102
--- a/jdk/src/solaris/classes/sun/nio/fs/LinuxFileStore.java	Fri Sep 28 17:15:48 2012 +0800
+++ b/jdk/src/solaris/classes/sun/nio/fs/LinuxFileStore.java	Fri Sep 28 11:14:20 2012 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -145,6 +145,9 @@
             }
             return xattrEnabled;
         }
+        // POSIX attributes not supported on FAT
+        if (type == PosixFileAttributeView.class && entry().fstype().equals("vfat"))
+            return false;
         return super.supportsFileAttributeView(type);
     }