Re: [systemd-devel] No space left errors on shutdown with systemd-homed /home dir

2022-07-23 Thread Chris Murphy
On Mon, Jan 31, 2022, at 11:26 PM, Zygo Blaxell wrote: > On Sat, Jan 29, 2022 at 10:53:00AM +0100, Goffredo Baroncelli wrote: > It does suck that the kernel handles resizing below the minimum size of > the filesystem so badly; however, even if it rejected the resize request > cleanly with an error

Re: [systemd-devel] No space left errors on shutdown with systemd-homed /home dir

2022-07-23 Thread Chris Murphy
On Wed, Jun 1, 2022, at 5:36 AM, Colin Guthrie wrote: > Goffredo Baroncelli wrote on 31/05/2022 19:12: > > > I suppose that colin.home is a sparse file, so even it has a length of > > 394GB, it consumes only 184GB. So to me these are valid values. It > > doesn't matter the length of the files.

Re: [systemd-devel] No space left errors on shutdown with systemd-homed /home dir

2022-07-23 Thread Chris Murphy
[sorry had to resend to get it on btrfs list, due to html in the original :\] On Wed, Jun 1, 2022, at 5:36 AM, Colin Guthrie wrote: > Goffredo Baroncelli wrote on 31/05/2022 19:12: > > > I suppose that colin.home is a sparse file, so even it has a length of > > 394GB, it consumes only 184GB. So

Re: [systemd-devel] No space left errors on shutdown with systemd-homed /home dir

2022-05-31 Thread Colin Guthrie
Hi, Neal Gompa wrote on 01/02/2022 19:55: On Tue, Feb 1, 2022 at 2:02 PM Colin Guthrie wrote: Goffredo Baroncelli wrote on 30/01/2022 09:27: On 29/01/2022 19.01, Chris Murphy wrote: On Sat, Jan 29, 2022 at 2:53 AM Goffredo Baroncelli wrote: I think that for the systemd uses cases (single

Re: [systemd-devel] No space left errors on shutdown with systemd-homed /home dir

2022-02-01 Thread Neal Gompa
On Tue, Feb 1, 2022 at 2:02 PM Colin Guthrie wrote: > > Goffredo Baroncelli wrote on 30/01/2022 09:27: > > On 29/01/2022 19.01, Chris Murphy wrote: > >> On Sat, Jan 29, 2022 at 2:53 AM Goffredo Baroncelli > >> wrote: > >>> > >>> I think that for the systemd uses cases (singled device FS), a simpl

Re: [systemd-devel] No space left errors on shutdown with systemd-homed /home dir

2022-01-29 Thread Chris Murphy
On Sat, Jan 29, 2022 at 2:53 AM Goffredo Baroncelli wrote: > > I think that for the systemd uses cases (singled device FS), a simpler > approach would be: > > fstatfs(fd, &sfs) > needed = sfs.f_blocks - sfs.f_bavail; > needed *= sfs.f_bsize > > needed = roundup_64(needed, 3*(10

Re: [systemd-devel] No space left errors on shutdown with systemd-homed /home dir

2022-01-27 Thread Chris Murphy
On Wed, Jan 26, 2022 at 4:19 PM Boris Burkov wrote: > > On Thu, Jan 27, 2022 at 12:07:53AM +0200, Apostolos B. wrote: > > This is what homectl inspect user reports: > > > > Disk Size: 128.0G > > Disk Usage: 3.8G (= 3.1%) > > Disk Free: 124.0G (= 96.9%) > > > > and this is what btrfs usage r