Displaying 9 results from an estimated 9 matches for "validate_device".
2015 Sep 10
2
[PATCH v2 1/1] extlinux: fix memory leak
...evname;
if ((devfd = open(devname, O_RDWR | O_SYNC)) < 0) {
fprintf(stderr, "%s: cannot open device %s\n", program, devname);
+ free(devname);
return -1;
}
@@ -1405,9 +1415,14 @@ static int open_device(const char *path, struct stat *st, const char **_devname)
if (validate_device(path, devfd)) {
fprintf(stderr, "%s: path %s doesn't match device %s\n",
program, path, devname);
+ free(devname);
close(devfd);
return -1;
}
+ if (_devname)
+ *_devname = devname;
+ else
+ free(devname);
return devfd;
}
@@ -1468,7 +1483,7 @@...
2015 Sep 09
1
[PATCH v1 1/1] extlinux: fix memory leak
...evname;
if ((devfd = open(devname, O_RDWR | O_SYNC)) < 0) {
fprintf(stderr, "%s: cannot open device %s\n", program, devname);
+ free(devname);
return -1;
}
@@ -1405,9 +1415,14 @@ static int open_device(const char *path, struct stat *st, const char **_devname)
if (validate_device(path, devfd)) {
fprintf(stderr, "%s: path %s doesn't match device %s\n",
program, path, devname);
+ free(devname);
close(devfd);
return -1;
}
+ if (_devname)
+ *_devname = devname;
+ else
+ free(devname);
return devfd;
}
@@ -1468,7 +1483,7 @@ static i...
2013 Jul 19
0
[PATCH 001/001] Add UFS1/2 support to Extlinux installer.
..._install_file(path, devfd, rst);
> - else if (fs_type == BTRFS)
> + else if (fs_type == BTRFS || fs_type == UFS2)
> return btrfs_install_file(path, devfd, rst);
> else if (fs_type == XFS)
> return xfs_install_file(path, devfd, rst);
> @@ -983,7 +1003,7 @@ static int validate_device(const char *path, int devfd)
> struct statfs sfs;
> int pfd;
> int rv = -1;
> -
> +
> pfd = open(path, O_RDONLY|O_DIRECTORY);
> if (pfd < 0)
> goto err;
> @@ -1063,6 +1083,17 @@ static const char *find_device(const char *mtab_file, dev_t...
2013 Jul 12
2
[PATCH 001/001] Add UFS1/2 support to Extlinux installer.
...ype == UFS1)
return ext2_fat_install_file(path, devfd, rst);
- else if (fs_type == BTRFS)
+ else if (fs_type == BTRFS || fs_type == UFS2)
return btrfs_install_file(path, devfd, rst);
else if (fs_type == XFS)
return xfs_install_file(path, devfd, rst);
@@ -983,7 +1003,7 @@ static int validate_device(const char *path, int devfd)
struct statfs sfs;
int pfd;
int rv = -1;
-
+
pfd = open(path, O_RDONLY|O_DIRECTORY);
if (pfd < 0)
goto err;
@@ -1063,6 +1083,17 @@ static const char *find_device(const char *mtab_file, dev_t dev)
done = true;
break;
}
+
+...
2015 Sep 11
0
[PATCH v2 1/1] extlinux: fix memory leak
...vname, O_RDWR | O_SYNC)) < 0) {
> fprintf(stderr, "%s: cannot open device %s\n", program,
> devname);
> + free(devname);
> return -1;
> }
>
> @@ -1405,9 +1415,14 @@ static int open_device(const char *path,
> struct stat *st, const char **_devname) if (validate_device(path,
> devfd)) { fprintf(stderr, "%s: path %s doesn't match device %s\n",
> program, path, devname);
> + free(devname);
> close(devfd);
> return -1;
> }
> + if (_devname)
> + *_devname = devname;
> + else
> + free(devname)...
2015 Sep 09
0
[PATCH v1 1/1] extlinux: fix memory leak
...evname;
if ((devfd = open(devname, O_RDWR | O_SYNC)) < 0) {
fprintf(stderr, "%s: cannot open device %s\n", program, devname);
+ free(devname);
return -1;
}
@@ -1405,9 +1415,14 @@ static int open_device(const char *path, struct stat *st, const char **_devname)
if (validate_device(path, devfd)) {
fprintf(stderr, "%s: path %s doesn't match device %s\n",
program, path, devname);
+ free(devname);
close(devfd);
return -1;
}
+ if (_devname)
+ *_devname = devname;
+ else
+ free(devname);
return devfd;
}
@@ -1468,7 +1483,7 @@ static...
2013 Jul 22
1
[PATCH 1/1 v2] Add UFS1/2 support to Extlinux installer.
...ype == UFS1)
return ext2_fat_install_file(path, devfd, rst);
- else if (fs_type == BTRFS)
+ else if (fs_type == BTRFS || fs_type == UFS2)
return btrfs_install_file(path, devfd, rst);
else if (fs_type == XFS)
return xfs_install_file(path, devfd, rst);
@@ -983,7 +1008,7 @@ static int validate_device(const char *path, int devfd)
struct statfs sfs;
int pfd;
int rv = -1;
-
+
pfd = open(path, O_RDONLY|O_DIRECTORY);
if (pfd < 0)
goto err;
@@ -1063,6 +1088,16 @@ static const char *find_device(const char *mtab_file, dev_t dev)
done = true;
break;
}
+
+...
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