Skip to content

Commit

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

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

Differential Revision: D47948321

fbshipit-source-id: 8c6ecf7ce5a95be24058c66ddfb5e2952c31fd0a
  • Loading branch information
joshuamiller01 authored and facebook-github-bot committed Aug 2, 2023
1 parent 0cba50c commit 4120802
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?(4)
if label && node.in_shard?(14)
# 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?(4)
if type == 'device' && node.in_shard?(14)
label = FB::FbSwap._label(node)
if label
device = "LABEL=#{label}"
Expand Down

0 comments on commit 4120802

Please sign in to comment.