Displaying 4 results from an estimated 4 matches for "find_device_mountinfo".
2015 Sep 10
2
[PATCH v2 1/1] extlinux: fix memory leak
...e = opt.device;
+ devname = strdup(opt.device);
if (!devname){
if (fs_type == BTRFS) {
/* For btrfs try to get the device name from btrfs itself */
- devname = find_device_btrfs(path);
+ devname = dupname(find_device_btrfs(path));
}
}
if (!devname) {
- 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_...
2015 Sep 09
1
[PATCH v1 1/1] extlinux: fix memory leak
...e = opt.device;
+ devname = strdup(opt.device);
if (!devname){
if (fs_type == BTRFS) {
/* For btrfs try to get the device name from btrfs itself */
- devname = find_device_btrfs(path);
+ devname = dupname(find_device_btrfs(path));
}
}
if (!devname) {
- devname = find_device_mountinfo(path, st.st_dev);
+ devname = dupname(find_device_mountinfo(path, st.st_dev));
}
#ifdef __KLIBC__
if (!devname) {
- devname = find_device_sysfs(st.st_dev);
+ devname = dupname(find_device_sysfs(st.st_dev));
}
if (!devname) {
/* klibc doesn't have getmntent and friends;...
2015 Sep 11
0
[PATCH v2 1/1] extlinux: fix memory leak
...if (!devname){
> if (fs_type == BTRFS) {
> /* For btrfs try to get the device name from btrfs
> itself */
> - devname = find_device_btrfs(path);
> + devname = dupname(find_device_btrfs(path));
> }
> }
>
> if (!devname) {
> - 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 */
> - d...
2015 Sep 09
0
[PATCH v1 1/1] extlinux: fix memory leak
...e = opt.device;
+ devname = strdup(opt.device);
if (!devname){
if (fs_type == BTRFS) {
/* For btrfs try to get the device name from btrfs itself */
- devname = find_device_btrfs(path);
+ devname = dupname(find_device_btrfs(path));
}
}
if (!devname) {
- devname = find_device_mountinfo(path, st.st_dev);
+ devname = dupname(find_device_mountinfo(path, st.st_dev));
}
#ifdef __KLIBC__
if (!devname) {
- devname = find_device_sysfs(st.st_dev);
+ devname = dupname(find_device_sysfs(st.st_dev));
}
if (!devname) {
/* klibc doesn't have getmntent and friends;...