Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [PATCH] control which tmpfs get unmounted at swapoff



    Date:        Sat, 19 Mar 2016 08:29:08 +0000 (GMT)
    From:        Iain Hibbert <plunky%ogmig.net@localhost>
    Message-ID:  <alpine.NEB.2.11.1603190805590.1205%galant.ogmig.net@localhost>

  | You can do this with eg
  | 
  | 	case "${swapoff_umount+set}" in
  | 		set)
  | 			fs_to_umount="${swapoff_umount}"
  | 			;;
  | 		*)
  | 			fs_to_umount="$(dev_free_tmpfs)"
  | 			;;
  | 	esac

Unless I am misreading it, that particular sequence is just ..

	fs_to_umount=${swapoff_umount-"$(dev_free_tmpfs)"}

No need for case statements or similar.

kre



Home | Main Index | Thread Index | Old Index