file-systems: Rewrite comment.

* gnu/build/file-systems.scm (read-bcachefs-superblock): Make comment
less damned negative.
This commit is contained in:
Tobias Geerinckx-Rice 2021-05-04 11:43:19 +02:00
parent b6269fb7bc
commit 71f15ca871
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -239,15 +239,15 @@ (define (bcachefs-superblock? sblock)
(define (read-bcachefs-superblock device) (define (read-bcachefs-superblock device)
"Return the raw contents of DEVICE's bcachefs superblock as a bytevector, or #f "Return the raw contents of DEVICE's bcachefs superblock as a bytevector, or #f
if DEVICE does not contain a bcachefs file system." if DEVICE does not contain a bcachefs file system."
;; We completely ignore the back-up superblock & any checksum errors. ;; Field offsets & lengths, in bytes. There are more (and the superblock is
;; Superblock field names, with offset & length respectively, in bytes: ;; extensible) but we need only some basic information here:
;; 0 16 bch_csum ;; 0 16 bch_csum
;; 16 8 version ;; 16 8 version
;; 24 16 magic ;; 24 16 magic
;; 40 16 uuid internal UUID, you probably don't want this ;; 40 16 uuid internal: you probably don't want this one
;; 56 16 user_uuid external UUID, the one by which to mount ;; 56 16 user_uuid external: user-visible one by which to mount
;; 72 32 label ;; 72 32 label
;; … there are more & the superblock is extensible, but we don't care yet. ;; Assume a sane file system: ignore the back-up superblock & checksums.
(read-superblock device 4096 104 bcachefs-superblock?)) (read-superblock device 4096 104 bcachefs-superblock?))
(define (bcachefs-superblock-external-uuid sblock) (define (bcachefs-superblock-external-uuid sblock)