Re: [systemd-devel] 5.2rc2, circular lock warning systemd-journal and btrfs_page_mkwrite

2019-06-17 Thread Lennart Poettering
On Di, 04.06.19 12:24, Chris Murphy (li...@colorremedies.com) wrote: > This is on Fedora Rawhide > systemd-242-3.git7a6d834.fc31.x86_64 > kernel 5.2.0-0.rc2.git1.2.fc31.x86_64 Please report to the kernel btrfs maintainers, this is not a userspace problem. Thanks, Lennart -- Lennart P

Re: [systemd-devel] [survey] BTRFS_IOC_DEVICES_READY return status

2015-06-17 Thread Lennart Poettering
e an OK thing to do. > > What seems strange to me is that in this case the devices don't have changed > their status. > How this problem is managed in the md/dm raid cases ? md has a daemon mdmon to my knowledge. Lennart -- Lennart Poettering, Red Hat -- To unsubscribe from thi

Re: [systemd-devel] [survey] BTRFS_IOC_DEVICES_READY return status

2015-06-15 Thread Lennart Poettering
On Mon, 15.06.15 19:23, Goffredo Baroncelli (kreij...@inwind.it) wrote: > On 2015-06-15 12:46, Lennart Poettering wrote: > > On Sat, 13.06.15 17:09, Goffredo Baroncelli (kreij...@libero.it) wrote: > > > >>> Further, the problem will be more intense in this eg. if you u

Re: [systemd-devel] [survey] BTRFS_IOC_DEVICES_READY return status

2015-06-15 Thread Lennart Poettering
tl somehow after the timeout, and then retriggers the devcies so that systemd takes note. (or, alternatively: such a scheme could even be implemented all in kernel, based on some configurable kernel setting...) Lennart -- Lennart Poettering, Red Hat -- To unsubscribe from this list: send the

Re: [systemd-devel] [survey] BTRFS_IOC_DEVICES_READY return status

2015-06-15 Thread Lennart Poettering
ev/sdc5" or so. And if I remove or add backing devices the string really should be updated. The btrfs client side tools then could use udev to get a list of the device node symlinks for each device to help the user identifying which backing devices belong to a btrfs pool. Lennart -- Lennart Poettering, Red Hat -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [survey] BTRFS_IOC_DEVICES_READY return status

2015-06-15 Thread Lennart Poettering
it should happen automatically at all, then it should be triggered by some daemon or so, but not by udev/systemd. Lennart -- Lennart Poettering, Red Hat -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [systemd-devel] install Fedora systemd-nspawn container on btrfs

2015-04-23 Thread Lennart Poettering
ese days, if they are missing and on btrfs. Lennart -- Lennart Poettering, Red Hat -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [systemd-devel] install Fedora systemd-nspawn container on btrfs

2015-04-23 Thread Lennart Poettering
On Thu, 23.04.15 19:00, arnaud gaboury (arnaud.gabo...@gmail.com) wrote: > On Thu, Apr 23, 2015 at 4:47 PM, Lennart Poettering > wrote: > > On Thu, 23.04.15 14:18, arnaud gaboury (arnaud.gabo...@gmail.com) wrote: > > > >> > Pick one: > >> > > >&g

Re: [systemd-devel] install Fedora systemd-nspawn container on btrfs

2015-04-23 Thread Lennart Poettering
awn's --bind= switch, then use yum inside of that container to install into the btrfs volume. Then get rid of the .raw image again, and you still have the btrfs volume that should be bootable. A bit complex, but you almost were there already... ;-) Lennart -- Lennart Poettering, Red Hat -

Re: [systemd-devel] install Fedora systemd-nspawn container on btrfs

2015-04-23 Thread Lennart Poettering
On Thu, 23.04.15 14:57, Andrei Borzenkov (arvidj...@gmail.com) wrote: > On Thu, Apr 23, 2015 at 2:50 PM, Lennart Poettering > wrote: > > On Thu, 23.04.15 13:45, arnaud gaboury (arnaud.gabo...@gmail.com) wrote: > > > >> Not sure what I did wrong, but I can't

Re: [systemd-devel] install Fedora systemd-nspawn container on btrfs

2015-04-23 Thread Lennart Poettering
side the raw fedora image you downloaded. You now have three linuxes, installed within each other... Pick one: a) download the raw image and use that, but it will be a loopback file with its own file system inside or: b) do the dnf/yum install root thing, and install it into a directory tree. D

Re: Recursive subvolume snapshots and deletion?

2015-03-25 Thread Lennart Poettering
On Mon, 23.03.15 08:36, Chris Mason (c...@fb.com) wrote: > On Mon, Mar 23, 2015 at 12:57 AM, Lennart Poettering > wrote: > >Heya! > > > >So what's the story on recursive btrfs snapshotting and snapshot > >removal? Since a while systemd has now by default creati

Recursive subvolume snapshots and deletion?

2015-03-22 Thread Lennart Poettering
Heya! So what's the story on recursive btrfs snapshotting and snapshot removal? Since a while systemd has now by default creating btrfs subvolumes for /var/lib/machines for example. Now, if that code is run inside a container, and the container itself already is stored in a subvolume we end up wit

Re: [systemd-devel] systemd and nested Btrfs subvolumes

2015-03-22 Thread Lennart Poettering
convention for Btrfs subvolumes. containers are recursively stackable, hence having toplevel subvolumes doesn't work, since the containers should be able to have subcontainers of their own... Also, it kinda defeats the whole point of btrfs' subvolume concept, where subvolumes are litt

Re: price to pay for nocow file bit?

2015-01-08 Thread Lennart Poettering
On Thu, 08.01.15 10:56, Zygo Blaxell (ce3g8...@umail.furryterror.org) wrote: > On Wed, Jan 07, 2015 at 06:43:15PM +0100, Lennart Poettering wrote: > > Heya! > > > > Currently, systemd-journald's disk access patterns (appending to the > > end of files, then upda

Re: price to pay for nocow file bit?

2015-01-08 Thread Lennart Poettering
On Wed, 07.01.15 15:10, Josef Bacik (jba...@fb.com) wrote: > On 01/07/2015 12:43 PM, Lennart Poettering wrote: > >Heya! > > > >Currently, systemd-journald's disk access patterns (appending to the > >end of files, then updating a few pointers in the front) result

price to pay for nocow file bit?

2015-01-07 Thread Lennart Poettering
Heya! Currently, systemd-journald's disk access patterns (appending to the end of files, then updating a few pointers in the front) result in awfully fragmented journal files on btrfs, which has a pretty negative effect on performance when accessing them. Now, to improve things a bit, I yesterday

Re: btrfs_inode_item's otime?

2015-01-07 Thread Lennart Poettering
ed and it's not ready to just simply add the otime in > advance. Exposig this as xattr sounds great to me too. Lennart -- Lennart Poettering, Red Hat -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org Mo

Re: BTRFS_IOC_TREE_SEARCH ioctl

2015-01-07 Thread Lennart Poettering
ennart -- Lennart Poettering, Red Hat -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: BTRFS_IOC_TREE_SEARCH ioctl

2015-01-05 Thread Lennart Poettering
On Mon, 05.01.15 18:22, Hugo Mills (h...@carfax.org.uk) wrote: > On Mon, Jan 05, 2015 at 06:15:12PM +0100, Lennart Poettering wrote: > > Heya, > > > > I recently added some btrfs magic to systemd's machinectl/nspawn > > tool. More specifically it can now sh

RFE: per-subvolume timestamp that is updated on every change to a subvolume

2015-01-05 Thread Lennart Poettering
Heya! I am looking for a nice way to query the overall last modification timestamp of a subvolume. i.e. the most recent mtime of *any* file or directory within a subvolume. Ideally, I think, there was a btrfs_timespec field for this in "struct btrfs_root_item", alas there isn't afaics. Any chance

btrfs_inode_item's otime?

2015-01-05 Thread Lennart Poettering
think it would be good to have an unprivileged ioctl to query the otime in btrfs... the TREE_SEARCH ioctl after all requires privileges...) Lennart -- Lennart Poettering, Red Hat -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to major

BTRFS_IOC_TREE_SEARCH ioctl

2015-01-05 Thread Lennart Poettering
Heya, I recently added some btrfs magic to systemd's machinectl/nspawn tool. More specifically it can now show the disk usage of a container that is stored in a btrfs subvolume. For that I made use of the btrfs quota logic. To read the current disk usage of a subvolume I took inspiration from btrf

Re: Extend BTRFS_IOC_DEVICES_READY for degraded RAID

2015-01-05 Thread Lennart Poettering
d idea. Instead, requiring one manual step before booting a degraded array sounds OK to me. Lennart -- Lennart Poettering, Red Hat -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-17 Thread Lennart Poettering
never really should happen in real-life. Could anyone who's expereiencing the slowdowns have a look on the journalctl output menionted above? Do you have more than a few lines printed like that? Lennart -- Lennart Poettering, Red Hat -- To unsubscribe from this list: send the line "

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-16 Thread Lennart Poettering
ed at the beginning of the file to point to the newly appended data. This is of course not easy to handle for COW file systems. But then again, it's probably not too different from access patterns of other database or database-like engines... Lennart -- Lennart Poettering, Red Hat -- To uns

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-15 Thread Lennart Poettering
ou take your ideas about our "attitude" from. God, with behaviour like that you just make us ignore you, Duncan. Lennart -- Lennart Poettering, Red Hat -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-15 Thread Lennart Poettering
for reserving space on disk, not for writing out anything. This is why journald is invoking it, to reserve the space, so that later write accesses to it will not require any reservation anymore, and hence are unlikely to fail. Lennart -- Lennart Poettering, Red Hat -- To unsubscribe from this l

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-15 Thread Lennart Poettering
d yeah, I think I have a very good reason to use fallocate(). The only reason in fact the man page explicitly mentions. Lennart -- Lennart Poettering, Red Hat -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-15 Thread Lennart Poettering
a very good explanation why fallocate() wouldn't be the right thing to invoke here, and a suggestion what we should do instead to cover this usecase... Lennart -- Lennart Poettering, Red Hat -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs"

Re: [systemd-devel] [HEADS-UP] Discoverable Partitions Spec

2014-03-10 Thread Lennart Poettering
o ask... > > In your specification, you referred the use case of "container" (via > nspawn / libvrt-lxc). which have to boot "a disk image". Why you don't > mind to use a container on a btrfs snapshot ? I think that it will be > reasonable to have different co

Re: [systemd-devel] [HEADS-UP] Discoverable Partitions Spec

2014-03-10 Thread Lennart Poettering
s to the admin the problem of combining subvolumes properly. Another option would be to introduce a high level concept of a "subvolume set" or so, which binds subvolumes together, and of which there could be a "default subvolume set". Within such a subvolume set could then use type

Re: [systemd-devel] [HEADS-UP] Discoverable Partitions Spec

2014-03-10 Thread Lennart Poettering
mple cases only, and it sounds way over the top to support installing multiple OSes into the same btrfs... I mean, people can do that, if they want to, they just have to write a proper fstab, which I think is not too much too ask... Lennart -- Lennart Poettering, Red Hat -- To unsubscribe fr

Re: [PATCH] Btrfs: add a disk info ioctl to get the disks attached to a filesystem

2010-09-30 Thread Lennart Poettering
27;s a at least one SSD in the fs, resp. at least one rotating disk in the fs. if (statvfs.f_flag & ST_SSD) printf("FS contains at least one SSD disk"); if (statvfs.f_flag & ST_ROTATING) printf("FS contains at least one rotating disk"); Lennart -- Lennart

Re: [PATCH] Btrfs: add a disk info ioctl to get the disks attached to a filesystem

2010-09-29 Thread Lennart Poettering
ices if you have a btrfs mount point. This is what Josef's patch added for us. Lennart -- Lennart Poettering - Red Hat, Inc. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] Btrfs: add a disk info ioctl to get the disks attached to a filesystem

2010-09-28 Thread Lennart Poettering
o test for ssd/rotating properly, instead of just hardcoding a check for /sys/class/block/sda/queue/rotational. I hope this explains what the fuck we are doing. Lennart -- Lennart Poettering - Red Hat, Inc. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html