[DragonFlyBSD - Bug #3091] (New) swapinfo print major/minor number when device name too long

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Mon Oct 23 01:16:29 PDT 2017


Issue #3091 has been reported by liweitianux.

----------------------------------------
Bug #3091: swapinfo print major/minor number when device name too long
http://bugs.dragonflybsd.org/issues/3091

* Author: liweitianux
* Status: New
* Priority: Normal
* Assignee: 
* Category: Userland
* Target version: 
----------------------------------------
Hi, I enabled swap encryption by adding the "crypt" option to "/etc/fstab", therefore the auto configured swap device has a rather long name ("swap-<serno>.<slice><part>"), which seems, I think, cause problem for the "swapinfo"/"pstat" tool.  For example:

dfly# ls -l /dev/mapper/swap-WD-WCAS25235448.s1b
crw-r-----  1 root  operator   65, 0x1e11000f Oct 21 08:26 /dev/mapper/swap-WD-WCAS25235448.s1b

dfly# swapinfo 
Device          1K-blocks     Used    Avail Capacity  Type
/dev/#C65:0x1e11000f  16777216  1141708 15635508     7%    Interleaved
     ^^^^^^^^^^^^^^^

By default, "swapinfo" should print the device "name" instead of such major/minor numbers.


Cheers,
Aly




-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Bugs mailing list