Skip to content

Wrong F2FS mounting #22982

Closed
Closed

Description

@MiloLug

systemd version the issue has been seen with

250.4-2

Used distribution

Arch Linux

Linux kernel version used (uname -a)

5.17.1-arch1-1

CPU architecture issue was seen on

x86_64

Expected behaviour you didn't see

filesystem should've mounted without issues

Unexpected behaviour you saw

systemd-gpt-auto-generator fails to create mount services for F2FS filesystem when in /etc/fstab option atgc is specified and mounts it r/o instead

Steps to reproduce the problem

add atgc to /etc/fstab mount otptions of an f2fs partition

Activity

  1. keszybz commented on Apr 5, 2022

    @keszybz
    Member

    Please attach dmesg output.

    This some like the issue is in some other place. Systemd doesn't know anything about "atgc" so it would just pass the parameter through to the mount command.

  2. added
    needs-reporter-feedback ❓
    on Apr 6, 2022
  3. MiloLug commented on Apr 6, 2022

    @MiloLug
    Author

    Dmesg:
    image

  4. MiloLug commented on Apr 6, 2022

    @MiloLug
    Author

    Also, it works correctly if systemd.gpt_auto=no and fstab=no is passed to kernel cmdline, but otherwise fails to create mount

  5. medhefgo commented on Apr 6, 2022

    @medhefgo
    Contributor

    Log at the logs, it says "switch atgc option is not allowed", so the remount to rw is refused by the kernel (I even looked at the kernel code).

    Also, it works correctly if systemd.gpt_auto=no and fstab=no is passed to kernel cmdline, but otherwise fails to create mount

    Of course it works with those options because it doesn't look at options provided by fstab then.

  6. added and removed
    needs-reporter-feedback ❓
    on Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions