From 4c34b23761e69bcc1e9671795175081800e89541 Mon Sep 17 00:00:00 2001 From: Fred Park Date: Fri, 17 Mar 2017 11:55:07 -0700 Subject: [PATCH] Force enable ssd optimizations for btrfs+premium --- scripts/shipyard_remotefs_bootstrap.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/shipyard_remotefs_bootstrap.sh b/scripts/shipyard_remotefs_bootstrap.sh index 0707492..7007ce4 100755 --- a/scripts/shipyard_remotefs_bootstrap.sh +++ b/scripts/shipyard_remotefs_bootstrap.sh @@ -649,9 +649,10 @@ if [ $attach_disks -eq 0 ]; then mount_options="defaults,$mount_options" fi if [ $premium_storage -eq 1 ]; then - # disable barriers due to RO cache + # disable barriers due to cache if [ $filesystem == "btrfs" ]; then - mount_options+=",nobarrier" + # also enable ssd optimizations on btrfs + mount_options+=",nobarrier,ssd" else mount_options+=",barrier=0" fi