From b1efc0065c7bcfbbbdafae25bb8a3f3b404225fa Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 25 Oct 2025 13:06:04 +0000 Subject: [PATCH] disable e2d for single-file volumes; avoids some warnings in the log --- copyparty/authsrv.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/copyparty/authsrv.py b/copyparty/authsrv.py index 78e8610e..16a43cae 100644 --- a/copyparty/authsrv.py +++ b/copyparty/authsrv.py @@ -2335,6 +2335,10 @@ class AuthSrv(object): free_umask = False have_reflink = False for vol in vfs.all_nodes.values(): + if os.path.isfile(vol.realpath): + vol.flags["is_file"] = True + vol.flags["d2d"] = True + if (self.args.e2ds and vol.axs.uwrite) or self.args.e2dsa: vol.flags["e2ds"] = True @@ -2649,7 +2653,7 @@ class AuthSrv(object): errors = True for vol in vfs.all_nodes.values(): - if not vol.realpath or os.path.isfile(vol.realpath): + if not vol.realpath or vol.flags.get("is_file"): continue ccs = vol.flags["casechk"][:1].lower() if ccs in ("y", "n"):