mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-01 12:26:34 -05:00
add libfuse 2.9.7 to repo and build against libfuse.a
This commit is contained in:
parent
986f230ba7
commit
de0985c135
145 changed files with 44125 additions and 90 deletions
32
libfuse/example/fioc.h
Normal file
32
libfuse/example/fioc.h
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
FUSE-ioctl: ioctl support for FUSE
|
||||
Copyright (C) 2008 SUSE Linux Products GmbH
|
||||
Copyright (C) 2008 Tejun Heo <teheo@suse.de>
|
||||
|
||||
This program can be distributed under the terms of the GNU GPL.
|
||||
See the file COPYING.
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/uio.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
enum {
|
||||
FIOC_GET_SIZE = _IOR('E', 0, size_t),
|
||||
FIOC_SET_SIZE = _IOW('E', 1, size_t),
|
||||
|
||||
/*
|
||||
* The following two ioctls don't follow usual encoding rules
|
||||
* and transfer variable amount of data.
|
||||
*/
|
||||
FIOC_READ = _IO('E', 2),
|
||||
FIOC_WRITE = _IO('E', 3),
|
||||
};
|
||||
|
||||
struct fioc_rw_arg {
|
||||
off_t offset;
|
||||
void *buf;
|
||||
size_t size;
|
||||
size_t prev_size; /* out param for previous total size */
|
||||
size_t new_size; /* out param for new total size */
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue