{
  "slug": "envyfs",
  "term": "EnvyFS",
  "aliases": [
    "EnvyFS3"
  ],
  "definition": "EnvyFS is a research filesystem that compares results from different child filesystems and returns their majority result to tolerate software faults.",
  "note": "The Linux 2.6.12 prototype uses ext3, JFS and ReiserFS on one disk. It compares operation results semantically; no majority produces an I/O error. This is software diversity, not independent disk redundancy. [envy09]\n\nSubSIST coalesces matching blocks across children, but preserves duplicate blocks within each child. Its prototype leaves address mappings and reference counts volatile, so reported performance omits their persistence cost. [envy09]\n\nTable 1 reports 147 content-difference tests: 91 correct successes and 56 expected errors. These are selected injected cases, not a field failure rate. [envy09]\n\nSeparate development does not establish independent failures. Knight and Leveson found dependent errors in independently written programs for a different, non-storage task; that experiment does not measure EnvyFS reliability. [knight86]\n\nSynthetic example: three binary outputs, each wrong with probability p. Independent failures give wrong-majority probability 3p^2 - 2p^3; perfectly shared failures give p. At p = 0.01 these are 0.0298% and 1%, despite identical per-child error probabilities. This arithmetic assumes a perfect voter and identical wrong outputs, not measured EnvyFS behavior. [majority-model]",
  "status": "research",
  "advantages": [],
  "limitations": [
    {
      "text": "The design assumes non-malicious children and faults contained outside the shared VFS and voting layers; arbitrary kernel corruption is outside that boundary.",
      "citationIds": [
        "envy09"
      ]
    }
  ],
  "related": [
    "failure-domain",
    "io-shepherding",
    "checksum",
    "deduplication",
    "filesystem-consistency-invariant"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-12-02",
  "citations": [
    {
      "id": "envy09",
      "title": "Bairavasundaram et al. Tolerating File-System Mistakes with EnvyFS. USENIX ATC 2009, sections 3-6 and Table 1.",
      "url": "https://www.usenix.org/legacy/event/usenix09/tech/full_papers/bairavasundaram/bairavasundaram.pdf",
      "accessed": "2026-12-02"
    },
    {
      "id": "knight86",
      "title": "Knight and Leveson. An Experimental Evaluation of the Assumption of Independence in Multiversion Programming. IEEE TSE 12(1), 1986.",
      "url": "https://doi.org/10.1109/TSE.1986.6312924",
      "accessed": "2026-12-02"
    },
    {
      "id": "majority-model",
      "title": "Hesela: majority agreement, wrong answers and shared failures; executable synthetic example",
      "url": "https://hesela.dev/research/envyfs-majority/README.md",
      "accessed": "2026-12-02"
    }
  ],
  "provenance": [
    "Historical source synthesis, not a reproduction of the kernel prototype. [envy09]",
    "The probability example is a deliberately simplified thought experiment; p is selected, not fitted to storage observations. [majority-model]"
  ]
}
