Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Enable/disable fstrim on S6100 & Z9100 (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
padmanarayana authored and Shuotian Cheng committed Mar 15, 2018
1 parent fac81d0 commit 8d4517d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions s6100/scripts/s6100_platform.sh
Expand Up @@ -188,6 +188,10 @@ if [[ "$1" == "init" ]]; then
switch_board_sfp "new_device"
switch_board_qsfp "new_device"
switch_board_qsfp_lpmode "disable"

# Enable fstrim
systemctl start fstrim.timer
systemctl start fstrim.service
elif [[ "$1" == "deinit" ]]; then
switch_board_sfp "delete_device"
switch_board_cpld "delete_device"
Expand All @@ -201,6 +205,10 @@ elif [[ "$1" == "deinit" ]]; then
modprobe -r dell_s6100_iom_cpld
modprobe -r i2c-mux-pca954x
modprobe -r i2c-dev

# Disable fstrim
systemctl stop fstrim.service
systemctl stop fstrim.timer
else
echo "s6100_platform : Invalid option !"
fi
8 changes: 8 additions & 0 deletions z9100/scripts/z9100_platform.sh
Expand Up @@ -152,6 +152,10 @@ if [[ "$1" == "init" ]]; then
switch_board_qsfp_mux "new_device"
switch_board_sfp "new_device"
switch_board_qsfp "new_device"

# Enable fstrim
systemctl start fstrim.timer
systemctl start fstrim.service
elif [[ "$1" == "deinit" ]]; then
switch_board_sfp "delete_device"
switch_board_cpld "delete_device"
Expand All @@ -165,6 +169,10 @@ elif [[ "$1" == "deinit" ]]; then
modprobe -r dell_mailbox
modprobe -r i2c-mux-pca954x
modprobe -r i2c-dev

# Disable fstrim
systemctl stop fstrim.service
systemctl stop fstrim.timer
else
echo "z9100_platform : Invalid option !"
fi

0 comments on commit 8d4517d

Please sign in to comment.