diff options
Diffstat (limited to 'gnu/build')
| -rw-r--r-- | gnu/build/file-systems.scm | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gnu/build/file-systems.scm b/gnu/build/file-systems.scm index 6fd9f950939..c506a4911ff 100644 --- a/gnu/build/file-systems.scm +++ b/gnu/build/file-systems.scm | |||
| @@ -608,13 +608,16 @@ using the least destructive approach." | |||
| 608 | 608 | ||
| 609 | 609 | ||
| 610 | ;;; | 610 | ;;; |
| 611 | ;;; FAT16 file systems. | 611 | ;;; FAT16/FAT12 file systems. |
| 612 | ;;; | 612 | ;;; |
| 613 | 613 | ||
| 614 | (define (fat16-superblock? sblock) | 614 | (define (fat16-superblock? sblock) |
| 615 | "Return #t when SBLOCK is a fat16 boot record." | 615 | "Return #t when SBLOCK is a fat16 or fat12 boot record." |
| 616 | (bytevector=? (sub-bytevector sblock 54 8) | 616 | (let ((boot-record (sub-bytevector sblock 54 8))) |
| 617 | (string->utf8 "FAT16 "))) | 617 | (or (bytevector=? boot-record |
| 618 | (string->utf8 "FAT16 ")) | ||
| 619 | (bytevector=? boot-record | ||
| 620 | (string->utf8 "FAT12 "))))) | ||
| 618 | 621 | ||
| 619 | (define (read-fat16-superblock device) | 622 | (define (read-fat16-superblock device) |
| 620 | "Return the raw contents of DEVICE's fat16 superblock as a bytevector, or | 623 | "Return the raw contents of DEVICE's fat16 superblock as a bytevector, or |
