btrfs-progs: 4.8.2 -> 4.13.1
This commit is contained in:
parent
c559e96445
commit
801c920e95
@ -398,19 +398,15 @@ EOF
|
|||||||
|
|
||||||
# Is this a btrfs filesystem?
|
# Is this a btrfs filesystem?
|
||||||
if ($fsType eq "btrfs") {
|
if ($fsType eq "btrfs") {
|
||||||
my ($status, @id_info) = runCommand("btrfs subvol show $rootDir$mountPoint");
|
my ($status, @info) = runCommand("btrfs subvol show $rootDir$mountPoint");
|
||||||
if ($status != 0 || join("", @id_info) =~ /ERROR:/) {
|
if ($status != 0 || join("", @info) =~ /ERROR:/) {
|
||||||
die "Failed to retrieve subvolume info for $mountPoint\n";
|
die "Failed to retrieve subvolume info for $mountPoint\n";
|
||||||
}
|
}
|
||||||
my @ids = join("", @id_info) =~ m/Subvolume ID:[ \t\n]*([^ \t\n]*)/;
|
my @ids = join("", @info) =~ m/Subvolume ID:[ \t\n]*([0-9]*)/;
|
||||||
if ($#ids > 0) {
|
if ($#ids > 0) {
|
||||||
die "Btrfs subvol name for $mountPoint listed multiple times in mount\n"
|
die "Btrfs subvol name for $mountPoint listed multiple times in mount\n"
|
||||||
} elsif ($#ids == 0) {
|
} elsif ($#ids == 0) {
|
||||||
my ($status, @path_info) = runCommand("btrfs subvol list $rootDir$mountPoint");
|
my @paths = join("", @info) =~ m/^([^\n]*)/;
|
||||||
if ($status != 0) {
|
|
||||||
die "Failed to find $mountPoint subvolume id from btrfs\n";
|
|
||||||
}
|
|
||||||
my @paths = join("", @path_info) =~ m/ID $ids[0] [^\n]* path ([^\n]*)/;
|
|
||||||
if ($#paths > 0) {
|
if ($#paths > 0) {
|
||||||
die "Btrfs returned multiple paths for a single subvolume id, mountpoint $mountPoint\n";
|
die "Btrfs returned multiple paths for a single subvolume id, mountpoint $mountPoint\n";
|
||||||
} elsif ($#paths != 0) {
|
} elsif ($#paths != 0) {
|
||||||
|
@ -2,14 +2,14 @@
|
|||||||
, asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl, libxslt
|
, asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl, libxslt
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let version = "4.8.2"; in
|
let version = "4.13.1"; in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "btrfs-progs-${version}";
|
name = "btrfs-progs-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://kernel/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v${version}.tar.xz";
|
url = "mirror://kernel/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v${version}.tar.xz";
|
||||||
sha256 = "0pswcfmdnfc586770h74abp67gn2xv8fd46vxlimnmn837sj7h41";
|
sha256 = "1clavvrlkswgicqsm2yfsxqw04lsn8dra0db84jqm6j2apz80kz0";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user