search for: mnt_detach

Displaying 9 results from an estimated 9 matches for "mnt_detach".

2020 Jul 25
0
[klibc:master] Clean up clang warnings
...ns(-) diff --git a/usr/kinit/initrd.c b/usr/kinit/initrd.c index 7eece2ce..5833f2f2 100644 --- a/usr/kinit/initrd.c +++ b/usr/kinit/initrd.c @@ -153,7 +153,7 @@ static int run_linuxrc(int argc, char *argv[], dev_t root_dev) int olddev = open(ramdisk_name, O_RDWR); umount2("/old", MNT_DETACH); if (olddev < 0 || - ioctl(olddev, BLKFLSBUF, (long)0) || + ioctl(olddev, BLKFLSBUF, 0) || close(olddev)) { fprintf(stderr, "%s: Cannot flush initrd contents\n", diff --git a/usr/kinit/ramdisk_load.c b/usr/kinit/ramdisk_load.c index f43339c8..e3e15d8...
2007 Feb 18
0
[PATCH] umount: Add -l option for lazy unmount
...@ -17,13 +17,16 @@ int main(int argc, char *argv[]) progname = argv[0]; do { - c = getopt(argc, argv, "f"); + c = getopt(argc, argv, "fl"); if (c == EOF) break; switch (c) { case 'f': flag |= MNT_FORCE; break; + case 'l': + flag |= MNT_DETACH; + break; case '?': fprintf(stderr, "%s: invalid option -%c\n", progname, optopt); @@ -32,7 +35,7 @@ int main(int argc, char *argv[]) } while (1); if (optind + 1 != argc) { - fprintf(stderr, "Usage: %s [-f] mntpoint\n", progname); + fprintf(stderr,...
2020 Mar 27
2
[PATCH v2 5/5] Clean up clang warnings
...iff --git a/usr/kinit/initrd.c b/usr/kinit/initrd.c index 7eece2ce5488..5833f2f2c01f 100644 --- a/usr/kinit/initrd.c +++ b/usr/kinit/initrd.c @@ -153,7 +153,7 @@ static int run_linuxrc(int argc, char *argv[], dev_t root_dev) int olddev = open(ramdisk_name, O_RDWR); umount2("/old", MNT_DETACH); if (olddev < 0 || - ioctl(olddev, BLKFLSBUF, (long)0) || + ioctl(olddev, BLKFLSBUF, 0) || close(olddev)) { fprintf(stderr, "%s: Cannot flush initrd contents\n", diff --git a/usr/kinit/ramdisk_load.c b/usr/kinit/ramdisk_load.c index f43339c8fc74..e3e...
2008 Mar 25
2
bunch of small fixes
....c @@ -17,7 +17,7 @@ int main(int argc, char *argv[]) progname = argv[0]; do { - c = getopt(argc, argv, "fl"); + c = getopt(argc, argv, "fli"); if (c == EOF) break; switch (c) { @@ -27,6 +27,9 @@ int main(int argc, char *argv[]) case 'l': flag |= MNT_DETACH; break; + case 'i': + /* ignore for now; no support for umount helpers */ + break; case '?': fprintf(stderr, "%s: invalid option -%c\n", progname, optopt); @@ -35,7 +38,8 @@ int main(int argc, char *argv[]) } while (1); if (optind + 1 != argc) {...
2020 Mar 27
12
[PATCH 0/5] Clang compatibility patches
This is a series of patches for clang compatibility: - Using flags needed flags and removing unsupported flags. - Adding support for clang's LLD linker. - Removing a variety of warnings. Bill Wendling (3): [klibc] Kbuild: use "libc.a" with clang [klibc] Kbuild: Add "-fcommon" for clang builds [klibc] Clean up clang warnings Michael Davidson (1): [klibc] Kbuild:
2020 Mar 29
7
[kvm-unit-tests PATCH v3 0/4] Update patch set
- Renamed IMAGE_BASE to LD_IMAGE_BASE_OPT. - Moved "-fcommon" to KLIBCREQFLAGS in scripts/Kbuild.klibc. - Remove "dash" warning fixes which have been upstreamed. - Conditionalize the inclusion of compiler flags by using the proper compiler name or "cc-option". - Added "-Werror" to "cc-option" to catch flags that cause warnings. - Retain
2016 Feb 23
4
[PATCH v3 0/4] [FOR COMMENTS ONLY] Rework inspection.
Previously posted: https://www.redhat.com/archives/libguestfs/2015-December/msg00038.html Inspection now really succeeds on a small number of simple guests. To test it out: $ ./run guestfish -v -x -a /tmp/centos-6.img ><fs> run ><fs> debug sh "guestfs-inspection --verbose" Rich.
2015 Dec 05
6
[PATCH 0/6 v2] [FOR COMMENTS ONLY] Rework inspection.
This is a more working version. Inspection (partially) succeeds on a real guest this time :-) You can test it out on a real guest (in this case, a CentOS disk image located at /tmp/centos-6.img) by doing: $ ./run guestfish -v -x -a /tmp/centos-6.img ><fs> run ><fs> debug sh "guestfs-inspection --verbose" which will print lots of debugging, and at the end the
2016 Jan 21
8
[PATCH v3 0/6] [FOR COMMENTS ONLY] Rework inspection.
For background on this change, see: https://rwmj.wordpress.com/2015/12/06/inspection-now-with-added-prolog/ v2 was previously posted here: https://www.redhat.com/archives/libguestfs/2015-December/msg00038.html To test this patch series on a real guest, you can do: $ ./run guestfish -v -x -a /var/tmp/centos-6.img ><fs> run ><fs> debug sh "guestfs-inspection