#define BTRFS_SUBVOL_OPT "subvol="
#define BTRFS_SUBVOL_MAX 256 /* By btrfs specification */
static char subvol[BTRFS_SUBVOL_MAX];
+
/*
* Boot block
*/
extern unsigned char extlinux_bootsect[];
extern unsigned int extlinux_bootsect_len;
+#undef boot_block
+#undef boot_block_len
#define boot_block extlinux_bootsect
#define boot_block_len extlinux_bootsect_len
*/
extern unsigned char extlinux_image[];
extern unsigned int extlinux_image_len;
+#undef boot_image
+#undef boot_image_len
#define boot_image extlinux_image
#define boot_image_len extlinux_image_len
#include <inttypes.h>
#include <string.h>
#include <stddef.h>
+#include <stdlib.h>
#include "syslinux.h"
#include "syslxint.h"
uint32_t *wp;
int nsect = (boot_image_len + 511) >> 9;
uint32_t csum;
- int i, dw, nptrs, rv;
+ int i, dw, nptrs;
struct boot_sector *sbs = (struct boot_sector *)boot_sector;
- int diroffset, dirlen;
+ size_t diroffset, dirlen;
if (nsectors < nsect)
return -1;