search for: find_device_btrfs

Displaying 11 results from an estimated 11 matches for "find_device_btrfs".

2014 Dec 09
2
[PATCH] check for default subvolid and act accordingly on install
...oot/syslinux`. Signed-off-by: Jordan Beaver <jordan at beaveris.me> --- extlinux/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extlinux/main.c b/extlinux/main.c index 09740bd..c3d9612 100644 --- a/extlinux/main.c +++ b/extlinux/main.c @@ -1261,6 +1261,9 @@ static const char *find_device_btrfs(const char *path) if (!validate_device_btrfs(pfd, dfd)) rv = (const char *)devinfo.path; /* It's good! */ + /* check for default subvolume and act accordingly */ + get_default_subvol("/", subvol); + err: if (pfd >= 0) close(pfd); -- 2.1.3 -Beaver
2015 Sep 10
2
[PATCH v2 1/1] extlinux: fix memory leak
...fs sfs; @@ -1297,17 +1308,17 @@ static const char *get_devname(const char *path) } if (opt.device) - devname = 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 *pat...
2015 Sep 09
1
[PATCH v1 1/1] extlinux: fix memory leak
...fs sfs; @@ -1297,22 +1308,22 @@ static const char *get_devname(const char *path) } if (opt.device) - devname = 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); + dev...
2014 Dec 08
0
BTRFS default subvolume identification and use
...th the prebuilt binary from kernel.org which failed to identify that I had set a non 0 value via `btrfs subvolume set-default <id> <path>`. In extlinux/main.c there appears to be two different unique attempts to grab information relating to default subvolume. If the first one succeeds, `find_device_btrfs(path)`, the second is not ran, `find_device`, which in turn would call `get_default_subvol`. I found by commenting out line 1293 of extlinux/main.c that since it skips `find_device_btrfs(path)` the subvolume is set properly and I can continue to boot from subvolume and rely on set-default to work...
2015 Sep 11
0
[PATCH v2 1/1] extlinux: fix memory leak
...r *get_devname(const char > *path) } > > if (opt.device) > - devname = 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 +1...
2015 Sep 09
0
[PATCH v1 1/1] extlinux: fix memory leak
...fs sfs; @@ -1297,22 +1308,22 @@ static const char *get_devname(const char *path) } if (opt.device) - devname = 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); + dev...
2015 Apr 04
0
[PATCH] check for default subvolid and act accordingly on install
...<jordan at beaveris.me> > --- > extlinux/main.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/extlinux/main.c b/extlinux/main.c > index 09740bd..c3d9612 100644 > --- a/extlinux/main.c > +++ b/extlinux/main.c > @@ -1261,6 +1261,9 @@ static const char *find_device_btrfs(const char *path) > if (!validate_device_btrfs(pfd, dfd)) > rv = (const char *)devinfo.path; /* It's good! */ > > + /* check for default subvolume and act accordingly */ > + get_default_subvol("/", subvol); > + > err: > if (pfd &g...
2013 Jul 22
1
[PATCH 1/1 v2] Add UFS1/2 support to Extlinux installer.
...!stat(mnt->mnt_fsname, &dst) && + dst.st_rdev == dev) { + done = true; + } + + break; case NONE: break; } @@ -1187,7 +1222,7 @@ static int validate_device_btrfs(int pfd, int dfd) return -1; return 0; /* It's good! */ -} +} static const char *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;...
2013 Jul 12
2
[PATCH 001/001] Add UFS1/2 support to Extlinux installer.
...->mnt_fsname, &dst) && + dst.st_rdev == dev) { + done = true; + break; + } + + break; case NONE: break; } @@ -1187,7 +1218,7 @@ static int validate_device_btrfs(int pfd, int dfd) return -1; return 0; /* It's good! */ -} +} static const char *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;...
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