« Previous | Next » 

Revision 705ee6df

ID705ee6df9cc8517c8947e017c090a1f3859333c5

Added by Iustin Pop over 12 years ago

lvmstrap: add explicit test for swap backends

Similar to mounted filesystems, recent kernel/userland report swap
backends:

root@node4:~# fuser -avm /dev/sda6
USER PID ACCESS COMMAND
/dev/sda6: root kernel swap /dev/sda6

But old ones not:

node1# fuser -avm /dev/sda6
USER PID ACCESS COMMAND
/dev/sda6:

So we add an explicit test for swap backends using /proc/swaps.

Signed-off-by: Iustin Pop <>
Reviewed-by: Michael Hanselmann <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences