jallenkrueger / profuse

Automatically exported from code.google.com/p/profuse
0 stars 0 forks source link

linux port #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
should be straightforward.  linux readxattr does not include an offset 
parameter (should just have 2 
functions and let the c++ compiler decide which to use).  ext uses "user." as a 
namespace, so 
"prodos." may or may not be ok.

Original issue reported on code.google.com by ksherl...@gmail.com on 1 Jan 2009 at 3:29

GoogleCodeExporter commented 9 years ago
linux version compiled and run. 

ls gives a file not found error for every file (possibly related to the 
system.posix_acl_access  xattr?) but lists the contents correctly.

---

slug:~# ls -l /samba/devel/profuse/mnt
ls: /samba/devel/profuse/mnt: No such file or directory
ls: /samba/devel/profuse/mnt/sparse.bin: No such file or directory
ls: /samba/devel/profuse/mnt/hello.txt: No such file or directory
ls: /samba/devel/profuse/mnt/resource: No such file or directory
total 0
-r--r--r-- 1 root root       7 Jan  9 17:27 hello.txt
-r--r--r-- 1 root root       0 Jan  9 17:29 resource
-r--r--r-- 1 root root 1048576 Jan  9 17:24 sparse.bin

---

slug:~# ls -l /samba/devel/profuse/mnt/hello.txt 
ls: /samba/devel/profuse/mnt/hello.txt: No such file or directory
-r--r--r-- 1 root root 7 Jan  9 17:27 /samba/devel/profuse/mnt/hello.txt

lookup: 1 hello.txt
stat hello.txt 452 (2 52) 0
file found!
get_attr 1106
lookup: 1 hello.txt
stat hello.txt 452 (2 52) 0
file found!
getxattr: 1106 system.posix_acl_access 0 0 

---

cat gives a permission denied error:

---
slug:~# cat /samba/devel/profuse/mnt/hello.txt 
cat: /samba/devel/profuse/mnt/hello.txt: Permission denied

lookup: 1 hello.txt
stat hello.txt 452 (2 52) 0
file found!
open: 1106

---

This implies the open call is failing for some reason.

Original comment by ksherl...@gmail.com on 17 Jan 2009 at 9:02

GoogleCodeExporter commented 9 years ago
manpage says to use ENOATTR.  Unfortunately, there is no ENOATTR.  Testing 
showed EOPNOTSUP was a 
standard error.

Original comment by ksherl...@gmail.com on 19 Jan 2009 at 5:12

GoogleCodeExporter commented 9 years ago

Original comment by ksherl...@gmail.com on 19 Jan 2009 at 5:13