diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2018-08-01 21:16:55 +0200 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2018-08-01 21:16:55 +0200 |
| commit | a1f37298204d7dee2881fa0dab4665c243689982 (patch) | |
| tree | 8bbc0c1da508efe5c39bb88a0f7ad4c4f10d2fc3 /psutil/_pslinux.py | |
| parent | 96363492d1455ad469277675583383690fbba080 (diff) | |
| download | psutil-a1f37298204d7dee2881fa0dab4665c243689982.tar.gz | |
update is_storage_device() docstring
Diffstat (limited to 'psutil/_pslinux.py')
| -rw-r--r-- | psutil/_pslinux.py | 8 |
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/ |
