summaryrefslogtreecommitdiffstats
path: root/extlinux
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-01-13 15:44:38 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-01-13 15:44:38 -0800
commitafb1f77428f6900365f5a1892f26979ca765292d (patch)
tree0a1af0c1797b883ebf4ce16fdf645f35a6cbd951 /extlinux
parent18f397e4f6d854798a967841c452adc1d8b3d1fc (diff)
downloadsyslinux-afb1f77428f6900365f5a1892f26979ca765292d.tar.gz
syslinux-afb1f77428f6900365f5a1892f26979ca765292d.tar.xz
syslinux-afb1f77428f6900365f5a1892f26979ca765292d.zip
pathbased: clean up diskstart address numbers, 256 byte subvols
Clean up the uses of hard-coded addresses in diskstart.inc. Furthermore, the btrfs spec allows 255 characters for a subvolume, so we might as well allocate that much. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'extlinux')
-rw-r--r--extlinux/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/extlinux/main.c b/extlinux/main.c
index c29e3b0b..b02cfe2d 100644
--- a/extlinux/main.c
+++ b/extlinux/main.c
@@ -140,7 +140,8 @@ static const char short_options[] = "iUuzS:H:rvho:O";
boot image, the boot sector is from 0~512, the boot image starts at 2K */
#define BTRFS_EXTLINUX_OFFSET (2*1024)
#define BTRFS_SUBVOL_OPT "subvol="
-static char subvol[64];
+#define BTRFS_SUBVOL_MAX 256 /* By btrfs specification */
+static char subvol[BTRFS_SUBVOL_MAX];
/*
* Boot block
*/