LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   FUSE filesystem SETATTR function not implemented (https://www.linuxquestions.org/questions/programming-9/fuse-filesystem-setattr-function-not-implemented-769391/)

smeezekitty 11-16-2009 02:57 AM

FUSE filesystem SETATTR function not implemented
 
i wrote a fuse filesystem driver (for my operating system filesystem),
it is reading but when i write i get this message :
Code:

  unique: 402, error: 0 (Success), outsize: 136
unique: 403, opcode: SETATTR (4), nodeid: 9, insize: 128
  unique: 403, error: -38 (Function not implemented), outsize: 16

i have googled around and not found an awnser
here is my fuse structure:
Code:

static struct fuse_operations jfs_oper = {
.getattr = jfs_getattr,
.readdir = jfs_readdir,
.open = jfs_open,
.read = jfs_read,
.write = jfs_write,
.mknod = jfs_create_file,
.unlink = jfs_unlink,
.setxattr = stub,
.truncate = stub,
.chmod = stub,
.chown = stub,
.utime = stub
};


theNbomr 11-17-2009 11:50 PM

The attributes of a filesystem element are set by the filesystem itself. You can only define any attributes of a filesystem element when you open() it. For example, a file can be opened read-only. Once it is open, this status can only be gotten, and not set. The exceptions would be the chown()/chmod() operations, which have their own specific handlers.
Fuse is a very cool thing.
--- rod.

smeezekitty 11-18-2009 12:52 PM

Quote:

Originally Posted by theNbomr (Post 3760866)
The attributes of a filesystem element are set by the filesystem itself. You can only define any attributes of a filesystem element when you open() it. For example, a file can be opened read-only. Once it is open, this status can only be gotten, and not set. The exceptions would be the chown()/chmod() operations, which have their own specific handlers.
Fuse is a very cool thing.
--- rod.

found the problem already, the compile did not compile my changes because there was an error. thanks anyway.


All times are GMT -5. The time now is 06:07 PM.