mirror of
https://github.com/9001/copyparty.git
synced 2025-11-24 07:23:22 -07:00
disable e2d for single-file volumes;
avoids some warnings in the log
This commit is contained in:
parent
a325353b1b
commit
b1efc0065c
|
|
@ -2335,6 +2335,10 @@ class AuthSrv(object):
|
||||||
free_umask = False
|
free_umask = False
|
||||||
have_reflink = False
|
have_reflink = False
|
||||||
for vol in vfs.all_nodes.values():
|
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:
|
if (self.args.e2ds and vol.axs.uwrite) or self.args.e2dsa:
|
||||||
vol.flags["e2ds"] = True
|
vol.flags["e2ds"] = True
|
||||||
|
|
||||||
|
|
@ -2649,7 +2653,7 @@ class AuthSrv(object):
|
||||||
errors = True
|
errors = True
|
||||||
|
|
||||||
for vol in vfs.all_nodes.values():
|
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
|
continue
|
||||||
ccs = vol.flags["casechk"][:1].lower()
|
ccs = vol.flags["casechk"][:1].lower()
|
||||||
if ccs in ("y", "n"):
|
if ccs in ("y", "n"):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue