Public bug reported: Binary package hint: linux-image-2.6.28-11-generic
Hi, Please compare the following ls -l listings of the same directory on a HPFS partition formatted under MacOS 10.5.6 (or .7?), case-sensitive, with journaling, listed on MacOS and Linux. You'll notice that some directories, not all, are erroneously listed as files instead, and with bad permissions on Linux! It looks like stat() receives incorrect data for some of the entries in this directory. Ubuntu904$ ls -al drwxrwxr-t 1 root 80 21 2009-05-21 09:43 . drwxr-xr-x 1 root 99 6 2009-05-23 22:09 .. drwxrwxr-x 1 root 80 28 2009-05-21 09:46 Applications lrwxr-xr-x 1 root 80 60 2009-05-23 22:09 Benutzerhandbücher und Informationen -> /Library/Documentation/User Guides and Information.localized -r--r--r-- 89268 root 255120 0 2009-05-23 19:28 bin -rw-r--r-- 1 root 99 0 2009-01-14 12:30 .com.apple.timemachine.supported -r--r--r-- 89307 root 255121 0 2009-05-23 19:28 cores -rw-rw-r-- 3 501 80 12292 2009-05-23 19:52 .DS_Store lrwxr-xr-x 1 root 80 11 2009-05-23 22:09 etc -> private/etc drwxrwxr-t 1 root 80 46 2009-05-23 16:34 Library -rw-r--r-- 3 root root 10361532 2009-04-01 05:55 mach_kernel -rw-r--r-- 3 root root 10812566 2009-04-01 05:55 mach_kernel.ctfsys -r--r--r-- 110629 root 255170 0 2009-05-23 19:28 Network drwxr-xr-x 1 root root 6 2009-01-14 12:37 private -r--r--r-- 111135 root 255203 0 2009-05-23 19:28 sbin -r--r--r-- 111200 root 255204 0 2009-05-23 19:28 System drwxr-xr-x 1 root 80 5 2009-05-12 05:23 Users drwxr-xr-x 1 root root 11 2009-05-21 11:24 usr lrwxr-xr-x 1 root 80 11 2009-05-23 22:09 var -> private/var -r--r--r-- 154 root 255116 0 2009-05-23 19:28 .vol -r--r--r-- 253933 root 255357 0 2009-05-23 19:28 Volumes MacOS$ ls -al drwxrwxr-t@ 14 root admin 714 21 Mai 11:43 . drwxr-xr-x@ 3 root staff 204 23 Mai 23:06 .. -rw-rw-r--@ 2 admin admin 12292 23 Mai 21:52 .DS_Store -rw-r--r--@ 1 root staff 0 14 Jan 13:30 .com.apple.timemachine.supported drwxr-xr-x@ 2 root wheel 68 31 Mai 2008 .vol drwxrwxr-x@ 26 root admin 952 21 Mai 11:46 Applications lrwxr-xr-x 1 root admin 60 23 Mai 23:06 Benutzerhandbücher und Informationen -> /Library/Documentation/User Guides and Information.localized drwxrwxr-t@ 45 root admin 1564 23 Mai 18:34 Library drwxr-xr-x@ 2 root wheel 68 22 Sep 2008 Network drwxr-xr-x@ 3 root wheel 136 21 Mai 11:59 System drwxr-xr-x@ 4 root admin 170 12 Mai 07:23 Users drwxrwxrwt@ 2 root admin 68 23 Mai 21:28 Volumes drwxr-xr-x@ 2 root wheel 1360 21 Mai 11:43 bin drwxrwxr-t@ 2 root admin 68 22 Sep 2008 cores lrwxr-xr-x@ 1 root admin 11 23 Mai 23:06 etc -> private/etc -rw-r--r--@ 10 root wheel 10361532 1 Apr 07:55 mach_kernel -rw-r--r--@ 10 root wheel 10812566 1 Apr 07:55 mach_kernel.ctfsys drwxr-xr-x@ 6 root wheel 204 14 Jan 13:37 private drwxr-xr-x@ 2 root wheel 2244 21 Mai 11:43 sbin drwxr-xr-x@ 10 root wheel 374 21 Mai 13:24 usr lrwxr-xr-x@ 1 root admin 11 23 Mai 23:06 var -> private/var MacOS man ls says: http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/ls.1.html If the file or directory has extended attributes, the permissions field printed by the -l option is followed by a '@' character. Otherwise, if the file or directory has extended security information, the permissions field printed by the -l option is followed by a '+' character. It appears that the Linux kernel hfsplus driver(s) /lib/modules/2.6.28-11-generic/kernel/fs/hfs/hfs.ko /lib/modules/2.6.28-11-generic/kernel/fs/hfsplus/hfsplus.ko is confused by the use of extended flags. On MacOS, ls -lO ("show file flags", output not shown here) reveals that precisely those directories entries disturb Linux that list "hidden" as extra flags, while the other entries in this directory seem to have no extra flags. The "hidden" flag tells the Finder to not show this entry. Alas, it is omitted from the adminFlags and ownerFlags in http://developer.apple.com/technotes/tn/tn1150.html#HFSPlusPermissions but is documented for chflags(1): http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/chflags.1.html Tested using Ubuntu 9.04 Live CD. Regards, Höhle ** Affects: linux (Ubuntu) Importance: Undecided Status: New -- HFS+ extended flags confuse Linux stat https://bugs.launchpad.net/bugs/383959 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
