LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 11-16-2009, 02:57 AM   #1
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,229

Rep: Reputation: 173Reputation: 173
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
};
 
Old 11-17-2009, 11:50 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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.
 
Old 11-18-2009, 12:52 PM   #3
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,229

Original Poster
Rep: Reputation: 173Reputation: 173
Quote:
Originally Posted by theNbomr View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
QM_MODULES function not implemented kamran_pro Linux - General 2 03-27-2006 07:11 AM
QM_MODULES function not implemented pike Linux - General 4 12-22-2005 06:03 AM
lockdsvc: Function not implemented Yalla-One Slackware 4 10-05-2005 12:48 PM
2.6.3 swapon - function not implemented Sammy2ooo Linux - General 3 03-10-2004 07:08 AM
nfssvc: Function not implemented SiliconBadger Linux - Networking 5 05-14-2002 01:20 PM


All times are GMT -5. The time now is 10:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration