Skip to content

Commit

Permalink
storaged: add max btrfs label size
Browse files Browse the repository at this point in the history
According to the btrfs-filesystem man page the maximum allowable length
shall be less than 256 chars.
  • Loading branch information
jelly authored and martinpitt committed Dec 5, 2023
1 parent b42a137 commit 9720dae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/storaged/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ export function validate_fsys_label(label, type) {
ext4: 16,
vfat: 11,
ntfs: 128,
btrfs: 256,
};

const limit = fs_label_max[type.replace("luks+", "")];
Expand Down

0 comments on commit 9720dae

Please sign in to comment.