summaryrefslogtreecommitdiff
path: root/psutil/_pslinux.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2018-08-01 21:16:55 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2018-08-01 21:16:55 +0200
commita1f37298204d7dee2881fa0dab4665c243689982 (patch)
tree8bbc0c1da508efe5c39bb88a0f7ad4c4f10d2fc3 /psutil/_pslinux.py
parent96363492d1455ad469277675583383690fbba080 (diff)
downloadpsutil-a1f37298204d7dee2881fa0dab4665c243689982.tar.gz
update is_storage_device() docstring
Diffstat (limited to 'psutil/_pslinux.py')
-rw-r--r--psutil/_pslinux.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/psutil/_pslinux.py b/psutil/_pslinux.py
index 54fa0d89..7e01bb73 100644
--- a/psutil/_pslinux.py
+++ b/psutil/_pslinux.py
@@ -266,10 +266,10 @@ def file_flags_to_mode(flags):
def is_storage_device(name):
- """Return True if the given name refers to a physical (e.g. "sda",
- "nvme0n1") or virtual (e.g. "loop1", "ram") storage device.
- In case name refers to a device's partition (e.g. "sda1", "nvme0n1p1")
- this is supposed to return False.
+ """Return True if the given name refers to a root device (e.g.
+ "sda", "nvme0n1") as opposed to a logical partition (e.g. "sda1",
+ "nvme0n1p1"). If name is a virtual device (e.g. "loop1", "ram")
+ return True.
"""
# Readapted from iostat source code, see:
# https://github.com/sysstat/sysstat/blob/