mirror of
https://github.com/TurboGit/hubicfuse.git
synced 2026-08-01 18:32:23 +02:00
Add some debug information.
This commit is contained in:
+2
-2
@@ -486,7 +486,7 @@ static int cfs_rmdir(const char* path)
|
||||
static int cfs_ftruncate(const char* path, off_t size,
|
||||
struct fuse_file_info* info)
|
||||
{
|
||||
debugf(DBG_LEVEL_NORM, KBLU "cfs_ftruncate(%s)", path);
|
||||
debugf(DBG_LEVEL_NORM, KBLU "cfs_ftruncate(%s) size=%lu", path, size);
|
||||
file_buffer_size = size;
|
||||
openfile* of = (openfile*)(uintptr_t)info->fh;
|
||||
if (ftruncate(of->fd, size))
|
||||
@@ -543,7 +543,7 @@ static int cfs_fsync(const char* path, int idunno, struct fuse_file_info* info)
|
||||
|
||||
static int cfs_truncate(const char* path, off_t size)
|
||||
{
|
||||
debugf(DBG_LEVEL_NORM, "cfs_truncate(%s)", path);
|
||||
debugf(DBG_LEVEL_NORM, "cfs_truncate(%s) size=%lu", path, size);
|
||||
cloudfs_object_truncate(path, size);
|
||||
debugf(DBG_LEVEL_NORM, "exit: cfs_truncate(%s)", path);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user