{
  "slug": "btrfs-read-only-subvolume",
  "term": "Btrfs read-only subvolume",
  "aliases": [
    "Btrfs subvolume ro property"
  ],
  "definition": "A Btrfs read-only subvolume is a subvolume whose ro property prevents modification of its file contents and directory hierarchy.",
  "note": "The flag is the subvolume property ro, read with btrfs property get and changed with btrfs property set, and btrfs subvolume snapshot -r creates a snapshot with it already set. The property belongs to the subvolume, not its access path: a read-only mount does not set it. [property] [subvolume]\n\nRead-only snapshots are the building blocks of incremental send, which derives a stream from the differences between unmodified snapshots. Every snapshot named in one send command must be read-only, the flag cannot change while a send uses the snapshot, and a read-only mount is not accepted in its place because another writable mount of the same subvolume could exist. [subvolume] [send]\n\nA snapshot created by receive is read-only and carries a received_uuid identifying the subvolume that produced the stream. Making it read-write means resetting that identifier, so btrfs property set requires the force option for it. A parent snapshot does not include nested subvolume contents: those locations appear as empty stubs with inode number 2, while a subvolume root always has inode number 256. [subvolume] [property]",
  "limitations": [
    {
      "text": "This is not device-wide write protection or an independent backup.",
      "citationIds": [
        "subvolume"
      ]
    },
    {
      "text": "The received_uuid safety checks date from version 5.14.2, so subvolumes received earlier may already be read-write while still carrying a valid received_uuid, which can disturb later send and receive.",
      "citationIds": [
        "subvolume"
      ]
    },
    {
      "text": "Clearing the flag on a snapshot that serves as an incremental parent allows changes that can lead to unexpected content in later incremental streams.",
      "citationIds": [
        "subvolume"
      ]
    }
  ],
  "related": [
    "btrfs",
    "btrfs-send-stream",
    "btrfs-received-uuid",
    "snapshot",
    "read-only-mount",
    "block-device-read-only",
    "dm-integrity-recovery-mode"
  ],
  "citations": [
    {
      "id": "property",
      "title": "Btrfs documentation: subvolume ro property",
      "url": "https://btrfs.readthedocs.io/en/stable/btrfs-property.html",
      "accessed": "2026-10-23"
    },
    {
      "id": "subvolume",
      "title": "Btrfs documentation: subvolume flags and non-recursive snapshots",
      "url": "https://btrfs.readthedocs.io/en/stable/btrfs-subvolume.html",
      "accessed": "2026-10-23"
    },
    {
      "id": "hesela",
      "title": "Hesela: Btrfs tree logs and read-only scope boundaries",
      "url": "https://hesela.com/analyses/btrfs-tree-log-read-only-replay/#read-only-scopes",
      "accessed": "2026-10-15"
    },
    {
      "id": "send",
      "title": "Btrfs documentation: btrfs-send(8), read-only snapshot requirement",
      "url": "https://btrfs.readthedocs.io/en/stable/btrfs-send.html",
      "accessed": "2026-10-23"
    }
  ],
  "status": "shipping",
  "advantages": [
    {
      "text": "Because the flag is stored with the subvolume, it applies through every mount of that subvolume, unlike a per-mount read-only option.",
      "citationIds": [
        "send",
        "subvolume"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-10-23",
  "provenance": [
    "property is the Btrfs btrfs-property(8) page, read in the subvolume ro property, the -f option and the examples.",
    "subvolume is the Btrfs btrfs-subvolume(8) page, read in subvolume flags, nested subvolumes, inode numbers and the snapshot -r option.",
    "send is the Btrfs btrfs-send(8) page, read in the requirements for snapshots used by one send command.",
    "All three pages are the stable documentation as rendered on the access date, with no file system experiment."
  ]
}
