Displaying 14 results from an estimated 14 matches for "install_bootblock".
2015 Jan 02
13
[PATCH 0/9] linux/syslinux: support ext2/3/4 device
...55fac31089fde69c87059b217e7e9b6:
NEWS: Update for 6.03 release (2014-10-06 09:27:44 -0700)
are available in the git repository at:
https://github.com/robertlinux/sys_tmp.git syslinux_ext234
for you to fetch changes up to 76c465e87312dbc6cffd05427f1f4d2ebdee4f13:
linux/syslinux: implement install_bootblock() (2015-01-02 12:28:35 +0800)
----------------------------------------------------------------
Robert Yang (9):
linux/syslinux: support ext2/3/4 device
linux/syslinux: implement open_ext2_fs()
linux/syslinux: implement install_to_ext2()
linux/syslinux: add ext_file_read() a...
2015 Nov 15
0
[PATCH] extlinux/main.c: space chance
...-by: Geert Stappers <stappers at stappers.nl>
---
extlinux/main.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/extlinux/main.c b/extlinux/main.c
index 26eb43c..ed359f1 100644
--- a/extlinux/main.c
+++ b/extlinux/main.c
@@ -393,11 +393,11 @@ int install_bootblock(int fd, const char *device)
if (sb5.sb_magicnum == *(u32 *)XFS_SB_MAGIC) {
if (be32_to_cpu(sb5.sb_blocksize) != XFS_SUPPORTED_BLOCKSIZE) {
fprintf(stderr,
- "You need to have 4 KiB filesystem block size for "
- " being able to install Syslinux in your XFS "
- &q...
2015 Nov 15
4
[patch] 6.03 extlinux/main.c typos
On Fri, Nov 13, 2015 at 06:14:36AM +0100, Geert Stappers via Syslinux wrote:
> On Fri, Nov 13, 2015 at 05:05:26AM +0200, Ady via Syslinux wrote:
> > diff U3 syslinux-6.03/extlinux/main.c syslinux-6.03_typo/extlinux/main.c
> > --- syslinux-6.03/extlinux/main.c Mon Oct 06 16:27:44 2014
> > +++ syslinux-6.03_typo/extlinux/main.c Fri Nov 13 02:29:56 2015
>
> patch seen
>
2015 Sep 10
2
[PATCH v2 1/1] extlinux: fix memory leak
...ate_only)
{
struct stat st, fst;
int devfd, rv;
- const char *devname;
+ char *devname = NULL;
devfd = open_device(path, &st, &devname);
if (devfd < 0)
@@ -1508,6 +1523,7 @@ static int install_loader(const char *path, int update_only)
sync();
rv = install_bootblock(devfd, devname);
+ free(devname);
close(devfd);
sync();
--
1.9.1
---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki
Business Identity Code: 0357606 - 4
Domiciled in Helsinki
This e-mail and any attac...
2015 Sep 09
1
[PATCH v1 1/1] extlinux: fix memory leak
...ate_only)
{
struct stat st, fst;
int devfd, rv;
- const char *devname;
+ char *devname = NULL;
devfd = open_device(path, &st, &devname);
if (devfd < 0)
@@ -1508,6 +1523,7 @@ static int install_loader(const char *path, int update_only)
sync();
rv = install_bootblock(devfd, devname);
+ free(devname);
close(devfd);
sync();
--
1.9.1
---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki
Business Identity Code: 0357606 - 4
Domiciled in Helsinki
This e-mail and any attac...
2012 Aug 02
0
[PATCH 2/3] ALPHA: first try to fix adv problem
...if (opt.heads)
@@ -318,6 +319,7 @@ static int patch_file_and_bootblock(int fd, const char *dir, int devfd)
int i;
sector_t *sp = sectp;
+// FIXME ??
for (i = 0; i < nsect - 2; i++)
*sp++ = BTRFS_EXTLINUX_OFFSET/SECTOR_SIZE + i;
for (i = 0; i < 2; i++)
@@ -410,12 +412,33 @@ int install_bootblock(int fd, const char *device)
return 0;
}
-int ext2_fat_install_file(const char *path, int devfd, struct stat *rst)
+static int inc_and_align(int fd, unsigned *pos, unsigned bytes, unsigned align)
+{
+ char buf[512];
+ unsigned left;
+
+ *pos += bytes;
+ left = *pos % align;
+...
2015 Sep 11
0
[PATCH v2 1/1] extlinux: fix memory leak
...int devfd, rv;
> - const char *devname;
> + char *devname = NULL;
>
> devfd = open_device(path, &st, &devname);
> if (devfd < 0)
> @@ -1508,6 +1523,7 @@ static int install_loader(const char *path, int
> update_only)
> sync();
> rv = install_bootblock(devfd, devname);
> + free(devname);
> close(devfd);
> sync();
>
--
Paulo Alcantara, C.E.S.A.R
Speaking for myself only.
2015 Sep 09
0
[PATCH v1 1/1] extlinux: fix memory leak
...ate_only)
{
struct stat st, fst;
int devfd, rv;
- const char *devname;
+ char *devname = NULL;
devfd = open_device(path, &st, &devname);
if (devfd < 0)
@@ -1508,6 +1523,7 @@ static int install_loader(const char *path, int update_only)
sync();
rv = install_bootblock(devfd, devname);
+ free(devname);
close(devfd);
sync();
--
1.9.1
---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki
Business Identity Code: 0357606 - 4
Domiciled in Helsinki
This e-mail and any attac...
2013 Jul 22
1
[PATCH 1/1 v2] Add UFS1/2 support to Extlinux installer.
...== NTFS ||
- fs_type == XFS) {
+ fs_type == XFS || fs_type == UFS1) {
if (sectmap(fd, sectp, nsect)) {
perror("bmap");
exit(1);
}
- } else if (fs_type == BTRFS) {
+ } else if (fs_type == BTRFS || fs_type == UFS2) {
int i;
sector_t *sp = sectp;
@@ -342,6 +346,7 @@ int install_bootblock(int fd, const char *device)
struct fat_boot_sector sb3;
struct ntfs_boot_sector sb4;
xfs_sb_t sb5;
+ struct ufs_super_block sb6;
bool ok = false;
if (fs_type == EXT2) {
@@ -395,11 +400,25 @@ int install_bootblock(int fd, const char *device)
ok = true;
}
+...
2013 Jul 12
2
[PATCH 001/001] Add UFS1/2 support to Extlinux installer.
...== NTFS ||
- fs_type == XFS) {
+ fs_type == XFS || fs_type == UFS1) {
if (sectmap(fd, sectp, nsect)) {
perror("bmap");
exit(1);
}
- } else if (fs_type == BTRFS) {
+ } else if (fs_type == BTRFS || fs_type == UFS2) {
int i;
sector_t *sp = sectp;
@@ -342,6 +346,7 @@ int install_bootblock(int fd, const char *device)
struct fat_boot_sector sb3;
struct ntfs_boot_sector sb4;
xfs_sb_t sb5;
+ struct ufs_super_block sb6;
bool ok = false;
if (fs_type == EXT2) {
@@ -395,11 +400,25 @@ int install_bootblock(int fd, const char *device)
ok = true;
}
+...
2014 May 29
3
[PATCH 0/2] UFS1/2 support series
From: Raphael S. Carvalho <raphael.scarv at gmail.com>
Wrote the documentation below. I think it would be good to push the doc to
the wiki as soon as the UFS support gets merged.
Unix Fast File System (UFS/FFS) 1/2 on Syslinux - (usage/install)
-----
There is a confusion about the name of this file system, then I decided to
contact the author who replied:
"The name has always been
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
...sectp = alloca(sizeof(sector_t) * nsect);
- if (fs_type == EXT2 || fs_type == VFAT || fs_type == NTFS) {
+ if (fs_type == EXT2 || fs_type == VFAT || fs_type == NTFS ||
+ fs_type == XFS) {
if (sectmap(fd, sectp, nsect)) {
perror("bmap");
exit(1);
@@ -328,6 +341,7 @@ int install_bootblock(int fd, const char *device)
struct btrfs_super_block sb2;
struct fat_boot_sector sb3;
struct ntfs_boot_sector sb4;
+ xfs_sb_t sb5;
bool ok = false;
if (fs_type == EXT2) {
@@ -335,6 +349,7 @@ int install_bootblock(int fd, const char *device)
perror("reading supe...
2014 May 29
3
[PATCH v2 0/2] UFS1/2 support series
From: Raphael S. Carvalho <raphael.scarv at gmail.com>
Change since v1:
* Fix bug on dentry structure (thank you specification; btw, sarcasm), and
consequently a bug on ufs_readdir.
* Add readlink support (applied tests for symlinks whose destionation path
were stored in blk pointers and the file itself).
* Several improvements.
Wrote the documentation below. I think it would be good to
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.