Skip to content

Commit

Permalink
fb_swap: prefer label as mount device for swap 40% -> 60%
Browse files Browse the repository at this point in the history
Summary:
bumpsign

This diff was created using http://fburl.com/chefshardbump

Differential Revision: D47948319

fbshipit-source-id: d1e947046789f8c75979b9a73207bf474990fda5
  • Loading branch information
joshuamiller01 authored and facebook-github-bot committed Aug 3, 2023
1 parent a96480e commit aa588fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cookbooks/fb_swap/libraries/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def self._label(node)
def self._swap_unit(node, type)
if type == 'device'
label = self._label(node)
if label && node.in_shard?(39)
if label && node.in_shard?(59)
# the kernel escapes slash characters in the label name, so we have to
# construct the by-label path with escapes, then resolve what path
# systemd will create via the generators
Expand Down
2 changes: 1 addition & 1 deletion cookbooks/fb_swap/recipes/before_fb_fstab.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
block do
# ask fb_fstab to create the unit
device = FB::FbSwap._path(node, type)
if type == 'device' && node.in_shard?(39)
if type == 'device' && node.in_shard?(59)
label = FB::FbSwap._label(node)
if label
device = "LABEL=#{label}"
Expand Down

0 comments on commit aa588fa

Please sign in to comment.