Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
fe48a444
Commit
fe48a444
authored
2 months ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Lower severity of repeated log messages about low disk space
"!Insufficient free disk space (%s bytes) to allow upload"
parent
db026f29
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/ftpsrvr.c
+5
-2
5 additions, 2 deletions
src/sbbs3/ftpsrvr.c
with
5 additions
and
2 deletions
src/sbbs3/ftpsrvr.c
+
5
−
2
View file @
fe48a444
...
...
@@ -85,7 +85,8 @@ static protected_uint32_t thread_count;
static
volatile
uint32_t
client_highwater
=
0
;
static
volatile
time_t
uptime
=
0
;
static
volatile
ulong
served
=
0
;
static
bool
terminate_server
=
FALSE
;
static
bool
terminate_server
=
false
;
static
bool
diskspace_error_reported
=
false
;
static
char
*
text
[
TOTAL_TEXT
];
static
str_list_t
pause_semfiles
;
static
str_list_t
recycle_semfiles
;
...
...
@@ -4809,11 +4810,13 @@ static void ctrl_thread(void* arg)
freespace
=
getfreediskspace
(
scfg
.
dir
[
dir
]
->
path
,
1
);
}
if
(
freespace
<
scfg
.
min_dspace
)
{
lprintf
(
LOG_ERR
,
"%04d <%s> !Insufficient free disk space (%s bytes) to allow upload"
lprintf
(
diskspace_error_reported
?
LOG_WARNING
:
LOG_ERR
,
"%04d <%s> !Insufficient free disk space (%s bytes) to allow upload"
,
sock
,
user
.
alias
,
byte_estimate_to_str
(
freespace
,
str
,
sizeof
(
str
),
1
,
1
));
sockprintf
(
sock
,
sess
,
"452 Insufficient free disk space, try again later"
);
diskspace_error_reported
=
true
;
continue
;
}
diskspace_error_reported
=
false
;
sockprintf
(
sock
,
sess
,
"150 Opening BINARY mode data connection for file transfer."
);
filexfer
(
&
data_addr
,
sock
,
sess
,
pasv_sock
,
pasv_sess
,
&
data_sock
,
&
data_sess
,
fname
,
filepos
,
&
transfer_inprogress
,
&
transfer_aborted
,
FALSE
,
FALSE
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment