luci-base: rpcd: handle swap entries in getBlockDevices
authorJo-Philipp Wich <jo@mein.io>
Fri, 28 Apr 2023 13:04:43 +0000 (15:04 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 28 Apr 2023 13:04:43 +0000 (15:04 +0200)
commit1db30ab57076e8d249a329197eb1820d57abe23b
tree01515123d3d94149eedbdbed1b8a1158bf1fcdc1
parent07f0574d41ec33563ab9119b723bee5e6c396261
luci-base: rpcd: handle swap entries in getBlockDevices

Add entries from `/proc/swaps` to the result array as well in order to
let the ui properly deal with swap files.

Fixes: #6350
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit ad3509bf3bb5dfa79af634c841d584408068fb0a)
modules/luci-base/root/usr/libexec/rpcd/luci