remove unnecessary libfuse flags nopath, nullpath_ok, and utime_omit_ok

This commit is contained in:
Antonio SJ Musumeci 2020-07-08 19:25:23 -04:00
parent b1f30b703f
commit c0990644e8
31 changed files with 180 additions and 408 deletions

View file

@ -49,10 +49,8 @@ namespace l
namespace FUSE
{
ssize_t
copy_file_range(const char *path_in_,
struct fuse_file_info *ffi_in_,
copy_file_range(struct fuse_file_info *ffi_in_,
off_t offset_in_,
const char *path_out_,
struct fuse_file_info *ffi_out_,
off_t offset_out_,
size_t size_,

View file

@ -19,10 +19,8 @@
namespace FUSE
{
ssize_t
copy_file_range(const char *path_in,
struct fuse_file_info *ffi_in,
copy_file_range(struct fuse_file_info *ffi_in,
off_t offset_in,
const char *path_out,
struct fuse_file_info *ffi_out,
off_t offset_out,
size_t size,

View file

@ -40,8 +40,7 @@ namespace l
namespace FUSE
{
int
fallocate(const char *fusepath_,
int mode_,
fallocate(int mode_,
off_t offset_,
off_t len_,
fuse_file_info *ffi_)

View file

@ -19,8 +19,7 @@
namespace FUSE
{
int
fallocate(const char *fusepath_,
int mode_,
fallocate(int mode_,
off_t offset_,
off_t len_,
fuse_file_info *ffi_);

View file

@ -45,8 +45,7 @@ namespace l
namespace FUSE
{
int
fgetattr(const char *fusepath_,
struct stat *st_,
fgetattr(struct stat *st_,
fuse_file_info *ffi_,
fuse_timeouts_t *timeout_)
{

View file

@ -25,8 +25,7 @@
namespace FUSE
{
int
fgetattr(const char *fusepath,
struct stat *st,
fgetattr(struct stat *st,
fuse_file_info *ffi,
fuse_timeouts_t *timeout);
}

View file

@ -42,8 +42,7 @@ namespace l
namespace FUSE
{
int
flush(const char *fusepath_,
fuse_file_info *ffi_)
flush(fuse_file_info *ffi_)
{
FileInfo *fi = reinterpret_cast<FileInfo*>(ffi_->fh);

View file

@ -21,6 +21,5 @@
namespace FUSE
{
int
flush(const char *path_,
fuse_file_info *ffi_);
flush(fuse_file_info *ffi_);
}

View file

@ -43,8 +43,7 @@ namespace l
namespace FUSE
{
int
fsync(const char *fusepath_,
int isdatasync_,
fsync(int isdatasync_,
fuse_file_info *ffi_)
{
FileInfo *fi = reinterpret_cast<FileInfo*>(ffi_->fh);

View file

@ -21,7 +21,6 @@
namespace FUSE
{
int
fsync(const char *fusepath_,
int isdatasync_,
fsync(int isdatasync_,
fuse_file_info *ffi_);
}

View file

@ -42,8 +42,7 @@ namespace l
namespace FUSE
{
int
fsyncdir(const char *fusepath_,
int isdatasync_,
fsyncdir(int isdatasync_,
fuse_file_info *ffi_)
{
DirInfo *di = reinterpret_cast<DirInfo*>(ffi_->fh);

View file

@ -21,7 +21,6 @@
namespace FUSE
{
int
fsyncdir(const char *fusepath_,
int isdatasync_,
fsyncdir(int isdatasync_,
fuse_file_info *ffi_);
}

View file

@ -38,8 +38,7 @@ namespace l
namespace FUSE
{
int
ftruncate(const char *fusepath_,
off_t size_,
ftruncate(off_t size_,
fuse_file_info *ffi_)
{
FileInfo *fi = reinterpret_cast<FileInfo*>(ffi_->fh);

View file

@ -24,7 +24,6 @@
namespace FUSE
{
int
ftruncate(const char *fusepath_,
off_t size_,
ftruncate(off_t size_,
fuse_file_info *ffi_);
}

View file

@ -374,8 +374,7 @@ namespace l
namespace FUSE
{
int
ioctl(const char *fusepath_,
unsigned long cmd_,
ioctl(unsigned long cmd_,
void *arg_,
fuse_file_info *ffi_,
unsigned int flags_,

View file

@ -21,8 +21,7 @@
namespace FUSE
{
int
ioctl(const char *fusepath_,
unsigned long cmd_,
ioctl(unsigned long cmd_,
void *arg_,
fuse_file_info *ffi_,
unsigned int flags_,

View file

@ -62,8 +62,7 @@ namespace l
namespace FUSE
{
int
read(const char *fusepath_,
char *buf_,
read(char *buf_,
size_t count_,
off_t offset_,
fuse_file_info *ffi_)
@ -78,8 +77,7 @@ namespace FUSE
}
int
read_null(const char *fusepath_,
char *buf_,
read_null(char *buf_,
size_t count_,
off_t offset_,
fuse_file_info *ffi_)

View file

@ -21,15 +21,13 @@
namespace FUSE
{
int
read(const char *fusepath_,
char *buf_,
read(char *buf_,
size_t count_,
off_t offset_,
fuse_file_info *ffi_);
int
read_null(const char *fusepath_,
char *buf_,
read_null(char *buf_,
size_t count_,
off_t offset_,
fuse_file_info *ffi_);

View file

@ -54,8 +54,7 @@ namespace l
namespace FUSE
{
int
read_buf(const char *fusepath_,
fuse_bufvec **bufp_,
read_buf(fuse_bufvec **bufp_,
size_t size_,
off_t offset_,
fuse_file_info *ffi_)

View file

@ -23,8 +23,7 @@
namespace FUSE
{
int
read_buf(const char *fusepath_,
struct fuse_bufvec **buf_,
read_buf(struct fuse_bufvec **buf_,
size_t size_,
off_t offset_,
fuse_file_info *ffi_);

View file

@ -50,8 +50,7 @@ namespace l
namespace FUSE
{
int
release(const char *fusepath_,
fuse_file_info *ffi_)
release(fuse_file_info *ffi_)
{
const Config &config = Config::ro();
FileInfo *fi = reinterpret_cast<FileInfo*>(ffi_->fh);

View file

@ -21,6 +21,5 @@
namespace FUSE
{
int
release(const char *fusepath_,
fuse_file_info *ffi_);
release(fuse_file_info *ffi_);
}

View file

@ -34,8 +34,7 @@ namespace l
namespace FUSE
{
int
releasedir(const char *fusepath_,
fuse_file_info *ffi_)
releasedir(fuse_file_info *ffi_)
{
DirInfo *di = reinterpret_cast<DirInfo*>(ffi_->fh);

View file

@ -21,6 +21,5 @@
namespace FUSE
{
int
releasedir(const char *fusepath_,
fuse_file_info *ffi_);
releasedir(fuse_file_info *ffi_);
}

View file

@ -115,8 +115,7 @@ namespace l
namespace FUSE
{
int
write(const char *fusepath_,
const char *buf_,
write(const char *buf_,
size_t count_,
off_t offset_,
fuse_file_info *ffi_)
@ -131,8 +130,7 @@ namespace FUSE
}
int
write_null(const char *fusepath_,
const char *buf_,
write_null(const char *buf_,
size_t count_,
off_t offset_,
fuse_file_info *ffi_)

View file

@ -21,15 +21,13 @@
namespace FUSE
{
int
write(const char *fusepath_,
const char *buf_,
write(const char *buf_,
size_t count_,
off_t offset_,
fuse_file_info *ffi_);
int
write_null(const char *fusepath_,
const char *buf_,
write_null(const char *buf_,
size_t count_,
off_t offset_,
fuse_file_info *ffi_);

View file

@ -87,8 +87,7 @@ namespace l
namespace FUSE
{
int
write_buf(const char *fusepath_,
fuse_bufvec *src_,
write_buf(fuse_bufvec *src_,
off_t offset_,
fuse_file_info *ffi_)
{
@ -103,8 +102,7 @@ namespace FUSE
}
int
write_buf_null(const char *fusepath_,
fuse_bufvec *src_,
write_buf_null(fuse_bufvec *src_,
off_t offset_,
fuse_file_info *ffi_)
{

View file

@ -23,14 +23,12 @@
namespace FUSE
{
int
write_buf(const char *fusepath_,
struct fuse_bufvec *buf_,
write_buf(struct fuse_bufvec *buf_,
off_t offset_,
fuse_file_info *ffi_);
int
write_buf_null(const char *fusepath_,
struct fuse_bufvec *buf_,
write_buf_null(struct fuse_bufvec *buf_,
off_t offset_,
fuse_file_info *ffi_);
}

View file

@ -80,10 +80,6 @@ namespace l
get_fuse_operations(struct fuse_operations &ops,
const bool nullrw)
{
ops.flag_nullpath_ok = true;
ops.flag_nopath = true;
ops.flag_utime_omit_ok = true;
ops.access = FUSE::access;
ops.bmap = NULL;
ops.chmod = FUSE::chmod;