(&self, swap_size: u64, opts: &DstackOptions)
| 973 | } |
| 974 | |
| 975 | async fn setup_swap(&self, swap_size: u64, opts: &DstackOptions) -> Result<()> { |
| 976 | match opts.storage_fs { |
| 977 | FsType::Zfs => self.setup_swap_zvol(swap_size).await, |
| 978 | FsType::Ext4 => self.setup_swapfile(swap_size).await, |
| 979 | } |
| 980 | } |
| 981 | |
| 982 | async fn setup_swapfile(&self, swap_size: u64) -> Result<()> { |
| 983 | let swapfile = self.args.mount_point.join("swapfile"); |
no test coverage detected