Displaying 11 results from an estimated 11 matches for "devname_buf".
2015 Sep 10
2
[PATCH v2 1/1] extlinux: fix memory leak
...name) {
- devname = find_device_mountinfo(path, st.st_dev);
+ devname = dupname(find_device_mountinfo(path, st.st_dev));
}
#ifdef __KLIBC__
@@ -1326,7 +1337,7 @@ static const char *get_devname(const char *path)
}
atexit(device_cleanup); /* unlink the device node on exit */
- devname = devname_buf;
+ devname = dupname(devname_buf);
}
#else
@@ -1350,10 +1361,10 @@ static const char *get_devname(const char *path)
return devname;
}
-static int open_device(const char *path, struct stat *st, const char **_devname)
+static int open_device(const char *path, struct stat *st, char **_...
2015 Sep 09
1
[PATCH v1 1/1] extlinux: fix memory leak
...evname = dupname(find_device_sysfs(st.st_dev));
}
if (!devname) {
/* klibc doesn't have getmntent and friends; instead, just create
@@ -1326,7 +1337,7 @@ static const char *get_devname(const char *path)
}
atexit(device_cleanup); /* unlink the device node on exit */
- devname = devname_buf;
+ devname = dupname(devname_buf);
}
#else
@@ -1338,7 +1349,7 @@ static const char *get_devname(const char *path)
devname = find_device("/etc/mtab", st.st_dev);
}
if (!devname) {
- devname = find_device_sysfs(st.st_dev);
+ devname = dupname(find_device_sysfs(st....
2015 Sep 11
0
[PATCH v2 1/1] extlinux: fix memory leak
....st_dev);
> + devname = dupname(find_device_mountinfo(path, st.st_dev));
> }
>
> #ifdef __KLIBC__
> @@ -1326,7 +1337,7 @@ static const char *get_devname(const char *path)
> }
>
> atexit(device_cleanup); /* unlink the device node on
> exit */
> - devname = devname_buf;
> + devname = dupname(devname_buf);
> }
>
> #else
> @@ -1350,10 +1361,10 @@ static const char *get_devname(const char
> *path) return devname;
> }
>
> -static int open_device(const char *path, struct stat *st, const char
> **_devname) +static int open_devic...
2015 Sep 09
0
[PATCH v1 1/1] extlinux: fix memory leak
...evname = dupname(find_device_sysfs(st.st_dev));
}
if (!devname) {
/* klibc doesn't have getmntent and friends; instead, just create
@@ -1326,7 +1337,7 @@ static const char *get_devname(const char *path)
}
atexit(device_cleanup); /* unlink the device node on exit */
- devname = devname_buf;
+ devname = dupname(devname_buf);
}
#else
@@ -1338,7 +1349,7 @@ static const char *get_devname(const char *path)
devname = find_device("/etc/mtab", st.st_dev);
}
if (!devname) {
- devname = find_device_sysfs(st.st_dev);
+ devname = dupname(find_device_sysfs(st....
2011 Apr 15
0
[GIT PULL] syslinux command-line
...ould install the string "EXTLINUX" instead, handle both.
- */
-int already_installed(int devfd)
-{
- char buffer[8];
-
- xpread(devfd, buffer, 8, 3);
- return !memcmp(buffer, "SYSLINUX", 8) || !memcmp(buffer, "EXTLINUX",
8);
-}
-
#ifdef __KLIBC__
static char devname_buf[64];
@@ -766,7 +753,7 @@ int install_loader(const char *path, int update_only)
if (devfd < 0)
return 1;
- if (update_only && !already_installed(devfd)) {
+ if (update_only && !syslinux_already_installed(devfd)) {
fprintf(stderr, "%s: no previous syslinux boo...
2014 Dec 24
0
[PATCH 1/8] extlinux/main.c: support unmounted ext2/3/4 filesystem
...t;
#include "linuxioctl.h"
@@ -991,6 +992,12 @@ static int install_file(const char *path, int devfd, struct stat *rst)
return 1;
}
+
+static int install_file_to_device(const char *device_path, int devfd,
+ int update_only)
+{
+}
+
#ifdef __KLIBC__
static char devname_buf[64];
@@ -1452,15 +1459,26 @@ static int ext_write_adv(const char *path, const char *cfg, int devfd)
return write_adv(path, cfg);
}
-static int install_loader(const char *path, int update_only)
+static int install_loader(const char *path, int update_only, struct stat st)
{
- struct sta...
2013 Jul 22
1
[PATCH 1/1 v2] Add UFS1/2 support to Extlinux installer.
...find_device_btrfs(const char *path)
{
@@ -1276,7 +1311,7 @@ static const char *get_devname(const char *path)
fprintf(stderr, "%s: cannot create device %s\n", program, devname);
return devname;
}
-
+
atexit(device_cleanup); /* unlink the device node on exit */
devname = devname_buf;
}
@@ -1330,10 +1365,15 @@ static int open_device(const char *path, struct stat *st, const char **_devname)
fs_type = NTFS;
else if (sfs.f_type == XFS_SUPER_MAGIC)
fs_type = XFS;
+ else if (sfs.f_type == UFS1_SUPER_MAGIC)
+ fs_type = UFS1;
+ else if (sfs.f_type == UFS2_SUPER_MAG...
2013 Jul 12
2
[PATCH 001/001] Add UFS1/2 support to Extlinux installer.
...find_device_btrfs(const char *path)
{
@@ -1276,7 +1307,7 @@ static const char *get_devname(const char *path)
fprintf(stderr, "%s: cannot create device %s\n", program, devname);
return devname;
}
-
+
atexit(device_cleanup); /* unlink the device node on exit */
devname = devname_buf;
}
@@ -1330,10 +1361,15 @@ static int open_device(const char *path, struct stat *st, const char **_devname)
fs_type = NTFS;
else if (sfs.f_type == XFS_SUPER_MAGIC)
fs_type = XFS;
+ else if (sfs.f_type == UFS1_SUPER_MAGIC)
+ fs_type = UFS1;
+ else if (sfs.f_type == UFS2_SUPER_MAG...
2014 Dec 24
14
[PATCH 0/8] extlinux: support unmounted ext2/3/4 filesystem
Hello syslinux,
Merry Christmas! These patches will make extlinux work with umounted
ext2/3/4 filesystem, for example:
$ extlinux -i /dev/sdXN
or
$ extlinux -i file_block
Also it can work with something like:
$ extlinux /dev/sdXN --reset-adv
or
$ extlinux file_block --reset-adv
We don't use a new option (I planed to use "-d" but it is already in
use), it will check whether the
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
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