fuse_operations.ftruncate

Change the size of an open file

This method is called instead of the truncate() method if the truncation was invoked from an ftruncate() system call.

If this method is not implemented or under Linux kernel versions earlier than 2.6.15, the truncate() method will be called instead.

Introduced in version 2.5

struct fuse_operations
int function(const char*, off_t, fuse_file_info*) ftruncate;

Meta