Skip to content

Commit 685f2bd

Browse files
committed
fix
1 parent 87b654f commit 685f2bd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pfs.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2166,6 +2166,7 @@ PSYNC_NOINLINE static int psync_fs_do_check_write_space(psync_openfile_t *of, si
21662166
debug(D_WARNING, "could not get free space of path %s", cachepath);
21672167
return 1;
21682168
}
2169+
// debug(D_NOTICE, "free space of %s is %lld minlocal %llu", cachepath, freespc, minlocal);
21692170
if (freespc>=minlocal+size){
21702171
psync_set_local_full(0);
21712172
of->throttle=0;
@@ -2221,11 +2222,11 @@ PSYNC_NOINLINE static int psync_fs_do_check_write_space(psync_openfile_t *of, si
22212222
}
22222223

22232224
static int psync_fs_check_write_space(psync_openfile_t *of, size_t size, fuse_off_t offset){
2224-
if (!of->throttle && of->writeid%256==0)
2225+
if (!of->throttle && of->writeid%64!=0)
22252226
return 1;
22262227
if (of->currentsize>=offset+size){
2227-
if (of->newfile)
2228-
return 1;
2228+
// if (of->newfile)
2229+
// return 1;
22292230
if (of->modified && psync_fs_check_modified_file_write_space(of, size, offset))
22302231
return 1;
22312232
}

0 commit comments

Comments
 (0)