Displaying 4 results from an estimated 4 matches for "patch_sectors".
2012 Aug 02
0
[PATCH 1/3] ALPHA: make sector size dynamic in extlinux
...(int argc, char *argv[])
/*
* Patch ldlinux.sys and the boot sector
*/
- i = syslinux_patch(sectors, nsectors, opt.stupid_mode, opt.raid_mode, opt.directory, NULL);
+ i = syslinux_patch(sectors, nsectors, opt.stupid_mode, opt.raid_mode, opt.directory, NULL, SECTOR_SIZE);
patch_sectors = (i + SECTOR_SIZE - 1) >> SECTOR_SHIFT;
/*
diff --git a/extlinux/main.c b/extlinux/main.c
index f0d8e11..e40b4d7 100644
--- a/extlinux/main.c
+++ b/extlinux/main.c
@@ -95,6 +95,18 @@ static uint64_t get_size(int devfd)
}
/*
+ * Get sector size
+ */
+static unsigned get_sector_size...
2012 Sep 10
19
Initial support for sector size >512
This set of patches add some support for sector size >512.
Currently it fixes extlinux, MBR for GPT and ext partitions.
Other code is unaffected.
This set of patches has been tested on a read Dell machine running a beta
firmware.
2010 Jun 19
1
[PATCH 1/2] linux/syslinux.c: Silence warnings
...strlen(path) - 1] == '/' ? "" : "/", cfg);
if (!file) {
diff --git a/linux/syslinux.c b/linux/syslinux.c
index 888df3d..3a51f7e 100644
--- a/linux/syslinux.c
+++ b/linux/syslinux.c
@@ -276,12 +276,13 @@ int main(int argc, char *argv[])
int mnt_cookie;
int patch_sectors;
int i;
+ int ret;
mypid = getpid();
umask(077);
parse_options(argc, argv, MODE_SYSLINUX);
- asprintf(&subdir, "%s%s",
+ ret = asprintf(&subdir, "%s%s",
opt.directory[0] == '/' ? "" : "/", opt.direct...
2010 Jun 19
0
[PATCH] mtools/syslinux.c: Silence warnings
...it.
Signed-off-by: Gene Cumm <gene.cumm at gmail.com>
---
diff --git a/mtools/syslinux.c b/mtools/syslinux.c
index 2b82b33..3307833 100644
--- a/mtools/syslinux.c
+++ b/mtools/syslinux.c
@@ -142,6 +142,7 @@ int main(int argc, char *argv[])
const char *errmsg;
int ldlinux_sectors, patch_sectors;
int i;
+ int ret;
int force = 0; /* -f (force) option */
int stupid = 0; /* -s (stupid) option */
@@ -240,7 +241,7 @@ int main(int argc, char *argv[])
}
/* This command may fail legitimately */
- system("mattrib -h -r -s s:/ldlinux.sys 2...