Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Christoph Anton Mitterer <calestyo@scientia.org>
To: linux-btrfs@vger.kernel.org
Subject: after creating a snapshot, subvol can't be remounted ro, but unmounted
Date: Fri, 21 Aug 2026 21:34:05 +0200	[thread overview]
Message-ID: <5b5830426d82194331a07b44e9b212958120edbc.camel@scientia.org> (raw)

Hey.

I've experience this for ages and was always too lazy to report it (and
it's not really big problem anyway):

That's all one btrfs, with a subvol at <fsroot>/data/ which is mounted
a / and the <fsroot>/ being a noauto,ro mountpoint at /data/system/.


root@heisenberg:~# mount /data/system/
root@heisenberg:~# cd /data/system/
root@heisenberg:/data/system# btrfs subvolume snapshot -r data/ snapshots/data/2026-08-21_1_live/
ERROR: Could not create subvolume: Read-only file system
root@heisenberg:/data/system# mount -o remount,rw /data/system/
root@heisenberg:/data/system# btrfs subvolume snapshot -r data/ snapshots/data/2026-08-21_1_live/
Create readonly snapshot of 'data/' in 'snapshots/data/2026-08-21_1_live/'

After I created a snapshot, I cannot remount,ro it anymore (even if I
wait longer and try multiple times:

root@heisenberg:/data/system# mount -o remount,ro /data/system/
mount: /data/system: mount point is busy.
       dmesg(1) may have more information after failed mount system call.

even if I cd somewhere else:

root@heisenberg:/data/system# cd
root@heisenberg:~# mount -o remount,ro /data/system/
mount: /data/system: mount point is busy.
       dmesg(1) may have more information after failed mount system call.

But what immediately works (even wit cwd /data/system/) is unmounting:

root@heisenberg:~# umount /data/system 
root@heisenberg:~# 


No idea whether this might be caused by any higher-level stuff (udisks
or so?) but my intuitive guess was that it might actually be something
in the fs itself.

Thanks,
Chris.

                 reply	other threads:[~2026-08-21 19:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5b5830426d82194331a07b44e9b212958120edbc.camel@scientia.org \
    --to=calestyo@scientia.org \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox