2 * WvFUSE: A WvStreams library for FUSE.
3 * Copyright (C) 2002 Net Integration Technologies, Inc.
5 * This program can be distributed under the terms of the GNU GPL.
6 * See the file COPYING.
8 * This class handles the processing of a single command from the kernel.
13 #include "wvfusecbmgr.h"
15 #ifndef FUSE_KERNEL_VERSION
16 #include <linux/fuse.h>
19 #include <wvhashtable.h>
20 #include <wvstreamclone.h>
21 #include <wvlinklist.h>
28 typedef unsigned long int fino_t
;
30 class WvFuseCmd
: public WvStreamClone
33 WvFuseCmd(WvFuse
*_fuse
, WvFS
*_fs
, char *_cmd
);
36 virtual bool isok() const;
48 WvString
get_path(fino_t ino
);
50 void send_reply(int error
, void *arg
, size_t argsize
);
70 int do_chmod(fino_t ino
, fuse_attr
*attr
);
71 int do_chown(fino_t ino
, fuse_attr
*attr
, int valid
);
72 int do_truncate(fino_t ino
, fuse_attr
*attr
);
73 int do_utime(fino_t ino
, fuse_attr
*attr
);
75 virtual void execute();
78 #endif // __WVFUSECMD_H