FS#63841 - [linux] can't hibernate to a swap file on F2FS

Attached to Project: Arch Linux
Opened by nl6720 (nl6720) - Thursday, 19 September 2019, 14:19 GMT
Last edited by Toolybird (Toolybird) - Sunday, 28 May 2023, 06:47 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
After updating to linux 5.3.arch1-1 hibernating to a swap file on F2FS doesn't work.

sep 19 13:53:49 systemd-sleep[1900]: Failed to write 'disk' to /sys/power/state: No such device
sep 19 13:53:49 systemd-sleep[1900]: Failed to suspend system. System resumed again: No such device


# cat /sys/power/state
freeze mem disk


# cat /etc/fstab
/dev/mapper/root / f2fs rw,relatime,lazytime,background_gc=on,discard,no_heap,inline_xattr,inline_data,inline_dentry,flush_merge,extent_cache,mode=adaptive,active_logs=6,alloc_mode=default,fsync_mode=posix 0 1
/swapfile none swap defaults 0 0
PARTUUID=5950c602-ced5-4a63-9b22-705a45677297 /boot vfat noauto,x-systemd.automount,x-systemd.idle-timeout=300,rw,relatime,discard,fmask=0133,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,tz=UTC,errors=remount-ro 0 2
/dev/mapper/home /home xfs rw,relatime,attr2,inode64,noquota 0 2


# cat /proc/cmdline
\\vmlinuz-linux root=/dev/mapper/root rw resume=/dev/mapper/root resume_offset=20531525 add_efi_memmap apparmor=1 security=apparmor initrd=/intel-ucode.img initrd=/initramfs-linux.img debug


# filefrag -v /swapfile
Filesystem type is: f2f52010
File size of /swapfile is 17179869184 (4194304 blocks of 4096 bytes)
ext: logical_offset: physical_offset: length: expected: flags:
0: 0.. 584076: 20531525.. 21115601: 584077:
1: 584077.. 1037699: 21115651.. 21569273: 453623: 21115602:
2: 1037700.. 2792540: 21569314.. 23324154: 1754841: 21569274:
3: 2792541.. 3513436: 23324225.. 24045120: 720896: 23324155:
4: 3513437.. 4194303: 24045192.. 24726058: 680867: 24045121: last,eof
/swapfile: 5 extents found


# grep . /sys/power/resume*
/sys/power/resume:254:0
/sys/power/resume_offset:20531525


Additional info:
* package version(s)
* config and/or log files etc.
* link to upstream bug report, if any
linux 5.3.arch1-1

Steps to reproduce:

Create a swapfile on F2FS and try to hibernate to it.
This task depends upon

Closed by  Toolybird (Toolybird)
Sunday, 28 May 2023, 06:47 GMT
Reason for closing:  No response
Additional comments about closing:  Plus it's old and stale. If still an issue, please report upstream.
Comment by Constantine (Hi-Angel) - Thursday, 19 September 2019, 21:46 GMT
Heh, looking the https://kernelnewbies.org/Linux_5.3 page for F2FS I see it has a commit called

> * Support swap file w/ DIO

Sounds suspiciously relevant, could well be what broke it. You probably can report directly upstream (ideally though, testing first whether reverting the commit helps).
Comment by Constantine (Hi-Angel) - Thursday, 19 September 2019, 21:49 GMT
> ideally though, testing first whether reverting the commit helps

I mean, [REGRESSION][BISECTED] tags on the report are always impressive.
Comment by Arvid (arvids) - Sunday, 15 December 2019, 11:46 GMT
Has this been reported upstream?
Comment by nl6720 (nl6720) - Monday, 16 December 2019, 07:31 GMT
I didn't report it upstream.
I gave up on F2FS, so this bug is not that relevant to me anymore.
Comment by Arvid (arvids) - Saturday, 22 February 2020, 21:43 GMT
  • Field changed: Percent Complete (100% → 0%)
Sorry if this is the wrong way to go about it, but I still have this issue.
Comment by freswa (frederik) - Saturday, 22 February 2020, 21:43 GMT
@Arvid, please post your linux version. Thx
Comment by Arvid (arvids) - Tuesday, 25 February 2020, 09:54 GMT
@freswa
I'm currently on 5.5.5.arch1-1, let me know if there is any logs or testing I can help with.
Comment by Arvid (arvids) - Wednesday, 26 February 2020, 08:42 GMT
@freswa
I'm currently on 5.5.5.arch1-1, let me know if there is any logs or testing I can help with.
Comment by mattia (nTia89) - Monday, 28 February 2022, 16:29 GMT
I cannot reproduce the issue. Is it still valid for you?

Loading...