diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2020-10-24 22:00:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-24 22:00:09 +0200 |
commit | 40abe5c0aa3e258161284b58cedcee1e11a66e75 (patch) | |
tree | 96634f3ad79e8ab2cbfbf13e54d94961475f1a91 /psutil/_psbsd.py | |
parent | 241f8ed0cd5c0c792a28e4e6479586a70587177c (diff) | |
download | psutil-40abe5c0aa3e258161284b58cedcee1e11a66e75.tar.gz |
disk_partitions() maxfile and maxpath (#1863)
Diffstat (limited to 'psutil/_psbsd.py')
-rw-r--r-- | psutil/_psbsd.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/psutil/_psbsd.py b/psutil/_psbsd.py index 428c8bde..f0a0c144 100644 --- a/psutil/_psbsd.py +++ b/psutil/_psbsd.py @@ -328,7 +328,9 @@ def disk_partitions(all=False): partitions = cext.disk_partitions() for partition in partitions: device, mountpoint, fstype, opts = partition - ntuple = _common.sdiskpart(device, mountpoint, fstype, opts) + maxfile = maxpath = None # set later + ntuple = _common.sdiskpart(device, mountpoint, fstype, opts, + maxfile, maxpath) retlist.append(ntuple) return retlist |