Merge pull request #213805 from Luflosi/update/linuxPackages.apfs
linuxPackages.apfs: unstable-2022-10-20 -> 0.3.0
This commit is contained in:
commit
ceaaabef46
@ -21,9 +21,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
|
|||||||
with subtest("Enable case sensitivity and normalization sensitivity"):
|
with subtest("Enable case sensitivity and normalization sensitivity"):
|
||||||
machine.succeed(
|
machine.succeed(
|
||||||
"mkapfs -s -z /dev/vdb",
|
"mkapfs -s -z /dev/vdb",
|
||||||
# Triggers a bug, see https://github.com/linux-apfs/linux-apfs-rw/issues/15
|
"mount -o cknodes,readwrite /dev/vdb /tmp/mnt",
|
||||||
# "mount -o cknodes,readwrite /dev/vdb /tmp/mnt",
|
|
||||||
"mount -o readwrite /dev/vdb /tmp/mnt",
|
|
||||||
"echo 'Hello World 1' > /tmp/mnt/test.txt",
|
"echo 'Hello World 1' > /tmp/mnt/test.txt",
|
||||||
"[ ! -f /tmp/mnt/TeSt.TxT ] || false", # Test case sensitivity
|
"[ ! -f /tmp/mnt/TeSt.TxT ] || false", # Test case sensitivity
|
||||||
"echo 'Hello World 1' | diff - /tmp/mnt/test.txt",
|
"echo 'Hello World 1' | diff - /tmp/mnt/test.txt",
|
||||||
@ -36,13 +34,13 @@ import ./make-test-python.nix ({ pkgs, ... }: {
|
|||||||
with subtest("Disable case sensitivity and normalization sensitivity"):
|
with subtest("Disable case sensitivity and normalization sensitivity"):
|
||||||
machine.succeed(
|
machine.succeed(
|
||||||
"mkapfs /dev/vdb",
|
"mkapfs /dev/vdb",
|
||||||
"mount -o readwrite /dev/vdb /tmp/mnt",
|
"mount -o cknodes,readwrite /dev/vdb /tmp/mnt",
|
||||||
"echo 'bla bla bla' > /tmp/mnt/Test.txt",
|
"echo 'bla bla bla' > /tmp/mnt/Test.txt",
|
||||||
"echo -n 'Hello World' > /tmp/mnt/test.txt",
|
"echo -n 'Hello World' > /tmp/mnt/test.txt",
|
||||||
"echo ' 1' >> /tmp/mnt/TEST.TXT",
|
"echo ' 1' >> /tmp/mnt/TEST.TXT",
|
||||||
"umount /tmp/mnt",
|
"umount /tmp/mnt",
|
||||||
"apfsck /dev/vdb",
|
"apfsck /dev/vdb",
|
||||||
"mount -o readwrite /dev/vdb /tmp/mnt",
|
"mount -o cknodes,readwrite /dev/vdb /tmp/mnt",
|
||||||
"echo 'Hello World 1' | diff - /tmp/mnt/TeSt.TxT", # Test case insensitivity
|
"echo 'Hello World 1' | diff - /tmp/mnt/TeSt.TxT", # Test case insensitivity
|
||||||
"echo 'Hello World 2' > /tmp/mnt/\u0061\u0301.txt",
|
"echo 'Hello World 2' > /tmp/mnt/\u0061\u0301.txt",
|
||||||
"echo 'Hello World 2' | diff - /tmp/mnt/\u0061\u0301.txt",
|
"echo 'Hello World 2' | diff - /tmp/mnt/\u0061\u0301.txt",
|
||||||
|
@ -5,15 +5,18 @@
|
|||||||
, nixosTests
|
, nixosTests
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
tag = "0.3.0";
|
||||||
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "apfs";
|
pname = "apfs";
|
||||||
version = "unstable-2022-10-20-${kernel.version}";
|
version = "${tag}-${kernel.version}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "linux-apfs";
|
owner = "linux-apfs";
|
||||||
repo = "linux-apfs-rw";
|
repo = "linux-apfs-rw";
|
||||||
rev = "e6eb67c92d425d395eac1c4403629391bdd5064d";
|
rev = "v${tag}";
|
||||||
sha256 = "sha256-6rv5qZCjOqt0FaNFhA3tYg6/SdssvoT8kPVhalajgOo=";
|
sha256 = "sha256-ABFqkiIJuFapFsUIFHfw8+TujePZm7ZX/qHuFO2KdnQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
hardeningDisable = [ "pic" ];
|
hardeningDisable = [ "pic" ];
|
||||||
@ -29,6 +32,15 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "APFS module for linux";
|
description = "APFS module for linux";
|
||||||
|
longDescription = ''
|
||||||
|
The Apple File System (APFS) is the copy-on-write filesystem currently
|
||||||
|
used on all Apple devices. This module provides a degree of experimental
|
||||||
|
support on Linux.
|
||||||
|
If you make use of the write support, expect data corruption.
|
||||||
|
Read-only support is somewhat more complete, with sealed volumes,
|
||||||
|
snapshots, and all the missing compression algorithms recently added.
|
||||||
|
Encryption is still not in the works though.
|
||||||
|
'';
|
||||||
homepage = "https://github.com/linux-apfs/linux-apfs-rw";
|
homepage = "https://github.com/linux-apfs/linux-apfs-rw";
|
||||||
license = licenses.gpl2Only;
|
license = licenses.gpl2Only;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
|
Loading…
Reference in New Issue
Block a user