From 511dc016152ddeb0caba1a745a20b1e7d8413014 Mon Sep 17 00:00:00 2001 From: Rabid Date: Tue, 23 Dec 2025 21:06:36 +0100 Subject: [PATCH] webdav: reply with vmaxb as disk size (#1120) if vmaxb smaller than available disk space, then reply with vmaxb instead --- copyparty/httpcli.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index fb00f21e..43efd755 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -1833,6 +1833,14 @@ class HttpCli(object): ): bfree, btot, _ = get_df(vn.realpath, False) if btot: + if "vmaxb" in vn.flags: + try: + zi, _ = self.conn.hsrv.broker.ask( + "up2k.get_volsizes", [vn.realpath] + ).get()[0] + bfree = min(bfree, max(0, vn.lim.vbmax - zi)) + except: + pass df = { "quota-available-bytes": str(bfree), "quota-used-bytes": str(btot - bfree),