Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* Issue remounting from compress-force to compress
@ 2024-10-14 13:24 Roman Mamedov
  2024-10-14 15:50 ` Filipe Manana
  0 siblings, 1 reply; 2+ messages in thread
From: Roman Mamedov @ 2024-10-14 13:24 UTC (permalink / raw)
  To: linux-btrfs

Hello,

Just faced this when trying to change a mounted FS from compress-force to just compress.

Initial state:

  # mount | grep btrfs
  /dev/mapper/wd-p1 on /mnt/p1 type btrfs (rw,relatime,compress-force=zstd:9,discard=async,space_cache=v2,subvolid=5,subvol=/)

Remounting:

  # mount /mnt/p1 -o remount,compress=zstd:9

But no effect:

  # mount | grep btrfs
  /dev/mapper/wd-p1 on /mnt/p1 type btrfs (rw,relatime,compress-force=zstd:9,discard=async,space_cache=v2,subvolid=5,subvol=/)

OK, remounting to no compression:

  # mount /mnt/p1 -o remount,compress-force=none

Success:

  # mount | grep btrfs
  /dev/mapper/wd-p1 on /mnt/p1 type btrfs (rw,relatime,discard=async,space_cache=v2,subvolid=5,subvol=/)

Now, I expect to enable just compress:

  # mount /mnt/p1 -o remount,compress=zstd:9

But suddenly, compress-force is enabled again instead:

  # mount | grep btrfs
  /dev/mapper/wd-p1 on /mnt/p1 type btrfs (rw,relatime,compress-force=zstd:9,discard=async,space_cache=v2,subvolid=5,subvol=/)

This is unexpected and seems like a bug.

The only way to achieve what I wanted was:

  # mount /mnt/p1 -o remount,compress-force=none,compress=zstd:9
  
  # mount | grep btrfs
  /dev/mapper/wd-p1 on /mnt/p1 type btrfs (rw,relatime,compress=zstd:9,discard=async,space_cache=v2,subvolid=5,subvol=/)

Kernel version is 6.8.12-2-pve (Proxmox).

-- 
With respect,
Roman

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-10-14 15:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-14 13:24 Issue remounting from compress-force to compress Roman Mamedov
2024-10-14 15:50 ` Filipe Manana

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox