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/_pslinux.py | |
parent | 241f8ed0cd5c0c792a28e4e6479586a70587177c (diff) | |
download | psutil-40abe5c0aa3e258161284b58cedcee1e11a66e75.tar.gz |
disk_partitions() maxfile and maxpath (#1863)
Diffstat (limited to 'psutil/_pslinux.py')
-rw-r--r-- | psutil/_pslinux.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/psutil/_pslinux.py b/psutil/_pslinux.py index 683cef5d..b17b96a2 100644 --- a/psutil/_pslinux.py +++ b/psutil/_pslinux.py @@ -1171,7 +1171,9 @@ def disk_partitions(all=False): if not all: if device == '' or fstype not in fstypes: continue - 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 |