similar to: [PATCH] daemon: Parse /proc/mounts instead of /etc/mtab

Displaying 20 results from an estimated 80000 matches similar to: "[PATCH] daemon: Parse /proc/mounts instead of /etc/mtab"

2011 Feb 02
0
[PATCH] appliance: Force /etc/mtab to be a symlink to /proc/mounts
I'm currently testing this patch on Rawhide, F14, Debian and Ubuntu. It's required to fix Rawhide at the moment, so I'm going to add this patch to the Rawhide SRPM. An alternative fix would be to change the daemon to always parse '/proc/mounts'. I'm not really sure which is better. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
2010 Jun 02
0
[PATCH] daemon: Parse output of old parted which didn't support -m option (RHBZ#598309).
RHEL 5's old parted didn't have the -m option. A number of commands relied on this option and thus would break on RHEL 5: https://bugzilla.redhat.com/show_bug.cgi?id=598309 This rather large patch adds a second parsing path which allows us to parse the old text-based output (it preserves the code for parsing the output of the -m option too, since if supported, that is more accurate).
2011 Mar 22
0
[PATCH] umount-all: Use /proc/mounts instead of output of 'mount' command.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top -------------- next part -------------- >From 490560439061398d47873484a55fb823be29b285 Mon Sep 17 00:00:00 2001 From: Richard W.M. Jones
2013 Mar 26
1
[bug] mount and /proc/mounts disagrees
3.8.0+ #3 This happened after ''umount /btrfs'' was interrupted by ctl-C # mount | egrep btrfs /dev/mapper/mpathe on /btrfs type btrfs (rw,degraded) # cat /etc/mtab | egrep btrfs /dev/mapper/mpathe /btrfs btrfs rw,degraded 0 0 # cat /proc/mounts | egrep btrfs # umount /btrfs umount: /btrfs: not mounted # -Anand -- To unsubscribe from this list: send the line "unsubscribe
2014 Nov 12
1
Very high system load: Samba statfs call for filesystems in /etc/mtab in: fileid_load_mount_entries()
Hello, we recently had a big problem with a very high load on our linux (Sles11 SP3) samba server version 3.6.3. We experienced a system load of up to 90 for 300 active samba users. The result was that hardly any user was able to really do anything (eg access a file via samba). One sympton was visible in a very high share of cpu *system* time (about 25% on each of the 10 CPUs). This system load
2009 Nov 25
0
Building guestfs_protocol.o in the daemon
Recently we changed the daemon so it builds guestfs_protocol.o by this rule: $(libsrcdir)/guestfs_protocol.o: force $(MAKE) -C $(libsrcdir) guestfs_protocol.o guestfsd_LDADD = \ $(libsrcdir)/guestfs_protocol.o \ #... The problem with doing this when building on Windows is that the toplevel src/ directory will be configured differently from the daemon/ directory. This means that
2010 Dec 22
2
Callbacks, log messages etc.
Inspired by but not completely related to: https://bugzilla.redhat.com/show_bug.cgi?id=664558 "RFE: Allow to set log callback in Ruby bindings" How can we make callbacks useful? First off what are we talking about? There are several callbacks that can be registered through the C API: (a) error callback http://libguestfs.org/guestfs.3.html#guestfs_set_error_handler (b) out
2009 Nov 25
1
[PATCH] daemon/Win32: Replace pread on platforms that don't have this function.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://et.redhat.com/~rjones/libguestfs/ See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html -------------- next part -------------- >From 81982306dd5e8beb56e193ed69d840a1cb976d62 Mon Sep 17
2012 Feb 15
0
corrupted /etc/mtab
Hello everyone, It seems like we have a corrupted /etc/mtab file and I just wanted to check that my plan of action is correct. df -k returns: df: cannot read table of mounted file systems: No such file or directory ls -la mtab: ?--------- ? ? ? ? ? mtab messages full of errors: EXT3-fs error (device cciss/c0d2p1): ext3_lookup: unlinked inode 847444 in dir #846977 I
2011 Jan 17
1
Assigning qemu process to cgroups
I had a go at writing a patch, but I think it's possible already without any patch. After launch you can get the PID of the qemu subprocess: guestfs_get_pid (g); --> returns PID You can use Linux to map this to a list of thread IDs: ls /proc/$PID/task/ --> returns a list of thread IDs [Yes, this is potentially racy, but in reality qemu has already started up fully after
2009 Nov 27
10
[PATCH 0/9] FOR DISCUSSION ONLY: daemon error handling
The more I look at this patch, the less I like it. I would summarise why I think it's wrong here, but it's better if you look at the message I posted on the gnulib mailing list here first: http://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00434.html Directly accessing errno on Windows is wrong: you won't see the true reasons for an error by doing that. However depending on
2018 Sep 17
0
Re: [PATCH nbdkit 1/3] common: isaligned: Use uint64_t instead of unsigned int.
On Mon, Sep 17, 2018 at 10:00:30PM +0300, Nir Soffer wrote: > On Mon, Sep 17, 2018 at 6:03 PM Richard W.M. Jones <rjones@redhat.com> > wrote: > > > This should have no effect. However it's probably better to pass the > > full type explicitly rather than using an implicit truncation. > > > > Why is it better? It's not necessarily, hence patches are
2015 Apr 03
0
supermin in Fedora Rawhide switched to using dnf instead of yum
supermin needs to download packages (eg. RPMs) when preparing the appliance. 'dnf download' finally appears to have made parallel downloads reliable[1]. Better late than never. So I have experimentally switched Rawhide's supermin to use 'dnf download' instead of the (deprecated) 'yumdownloader' program. This only affects the 'supermin --prepare' phase, which
2014 Dec 15
0
Re: index-parse.c:1256:6: error: assuming pointer wraparound does not occur when comparing P +- C1 with P +- C2 [-Werror=strict-overflow]
On Mon, Dec 15, 2014 at 05:54:51PM +0000, Richard W.M. Jones wrote: > No idea why this happens: > > index-parse.y: In function 'yyparse': > index-parse.c:1256:6: error: assuming pointer wraparound does not occur when comparing P +- C1 with P +- C2 [-Werror=strict-overflow] > if (yyss + yystacksize - 1 <= yyssp) > ^ > > It only happens on one machine,
2016 Mar 29
2
Re: [PATCH] appliance: Copy /etc/machine-id from host system into the appliance.
On Tue, Mar 29, 2016 at 03:14:15PM +0200, Pino Toscano wrote: > +# Create a machine-id with a random UUID > +dd if=/dev/urandom bs=1 count=16 status=none | od -x -A n | sed -e 's, ,,g' > /etc/machine-id Out of interest, why read single bytes, and not the whole 16 bytes in one go? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my
2009 Nov 19
2
Windows port of daemon?
I think there's some demand internally for a version of libguestfs where the appliance part actually runs on Windows. So I'm creating this thread to discuss the issue. The reason to want a Windows appliance at all is twofold: (1) better support for NTFS filesystems and Windows-native filesystem features (attributes, volume management etc), and (2) so we can run Windows CMD.EXE commands
2017 Jul 27
0
Re: [PATCH 0/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
On Thu, Jul 27, 2017 at 05:13:40PM +0200, Olaf Hering wrote: > On Thu, Jul 27, Pino Toscano wrote: > > > Is this mechanism still used there? If so, is the approach done by Rich > > acceptable for you? What are your use cases/constraints/etc? > > This is not used anymore because supermin instead of mkinitrd is used > since a while. Indeed .. Google turned up the old
2010 Dec 02
2
[PATCH 0/2] Add mkfs-opts API with optional arguments
This requires changing the generator so it can handle passing optional arguments all thr way through to the daemon, changing the protocol (see previous patch set), and implementing the new mkfs-opts call. At the moment there is just an optional blocksize argument, thus mimicking what you can already do with 'mkfs-b'. But this change will allow us in future to encode much of the rest of
2009 Sep 17
1
[PATCH] Fix code which looked for leaked FDs between each command.
-- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://et.redhat.com/~rjones/libguestfs/ See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html -------------- next part -------------- >From d5fad33b4eaa39722ea1dc96de9446ffc4805e01 Mon Sep 17
2010 Jan 21
1
/proc/mounts always shows "nobarrier" option for xfs, even when mounted with "barrier"
Ran into a confusing situation today. When I mount an xfs filesystem on a server running centos 5.4 x86_64 with kernel 2.6.18-164.9.1.el5, the barrier/nobarrier mount option as displayed in /proc/mounts is always set to "nobarrier" Here's an example: [root at host ~]# mount -o nobarrier /dev/vg1/homexfs /mnt [root at host ~]# grep xfs /proc/mounts /dev/vg1/homexfs /mnt xfs