From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0PjsDce+4l8kRAAA0tVLHw (envelope-from ) for ; Wed, 23 Dec 2020 03:51:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id yMfACce+4l83fQAA1q6Kng (envelope-from ) for ; Wed, 23 Dec 2020 03:51:35 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4E0689403EB for ; Wed, 23 Dec 2020 03:51:34 +0000 (UTC) Received: from localhost ([::1]:53066 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krvBU-0002ha-S6 for larch@yhetil.org; Tue, 22 Dec 2020 22:51:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43310) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krvBF-0002hQ-Oc for help-guix@gnu.org; Tue, 22 Dec 2020 22:51:17 -0500 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]:40123) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1krvBD-0005Pz-O0 for help-guix@gnu.org; Tue, 22 Dec 2020 22:51:17 -0500 Received: by mail-lf1-x133.google.com with SMTP id m12so36974025lfo.7 for ; Tue, 22 Dec 2020 19:51:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=/ly3Bq53ocxyrdVbDoQ3M++AtUCGY4CIzc3ASlaA53g=; b=oMunfDCS4CG7DtjsCxU96l/RrioJHeSY4WsL3k03iLBkZazE4pO8FSgonOSEvay6bC w5K+aQ2dUdezLEhz91odTVHENYzN3uhtUwLUsO0WSbYQMiVzy+3j60/XTYGzbf9InC+9 ETaDAdKbmowaPziRdNjMpJ+9Cu+prYbFkh+/vbTUtzvw1eb9nXWT7BQcmIMxPrUog5fb GkOh4+itFX3Qs0tujQnSMD/JymDt55ZWcbYXcD07rSZko1f9unmIurnFiiGMjqBfpgly SPTx5ubCe62ND7q+xstb7xgYL7aUCARLbpIuPxuMScWdyx6SxWUz08C4C28ueMwSO4pb TKSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=/ly3Bq53ocxyrdVbDoQ3M++AtUCGY4CIzc3ASlaA53g=; b=HUpD/yhnhsdga+6jK1AL2x36BpdsqbmnKu+pmn7uZ1na8X+/xuKyEeHL3YA4awPo+s PV22kAc0Cl8c/VmpyvszZ76/ecom5wk0QGrPENsqATtZ/VMhIKnjnGjy/N7VOQK806le iit3T07JZ6wV7tALMehxDDyZY/SBcq0rBXfuGXa15BEyT5+RjL6tlwTOFXLSgI3VFmY9 OhuPx+P81nbM5h6qtTZwlOIV7ruYluUgNfkMrOhLuzDL8yrKjyPqOaa5OAIw5mIl2dbY 8h+KdW55S0wtQE5hLaQTN8blr9T+t0wnhC35y+H5E/IjIJjnh9p6DF/9u2LKwyIsWvJ1 4Rdg== X-Gm-Message-State: AOAM531vPEngnHVcWvOS1WNr/iVEZu05r9GE2cfnKmyFm2dcwt0c5ymu sTjdG4Uh5WLejWtpljt9FzYCYYdMavhLyL3koXI= X-Google-Smtp-Source: ABdhPJwn+l4sBsM5nJ+PlkazMYmcj8IGfavqDgEJ/LzfCV3MsCWleAfCX0oJ3iiVSwKNuRKdyxysuUT2TbwvO1hCgf0= X-Received: by 2002:a19:6459:: with SMTP id b25mr9488546lfj.635.1608695473654; Tue, 22 Dec 2020 19:51:13 -0800 (PST) MIME-Version: 1.0 References: <87mtyburqm.fsf@nckx> In-Reply-To: From: Nathan Dehnel Date: Tue, 22 Dec 2020 21:51:02 -0600 Message-ID: Subject: Re: /dev/bcache/by-uuid directory empty To: Tobias Geerinckx-Rice Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::133; envelope-from=ncdehnel@gmail.com; helo=mail-lf1-x133.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.02 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=oMunfDCS; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 4E0689403EB X-Spam-Score: -3.02 X-Migadu-Scanner: scn1.migadu.com X-TUID: yFHzuU8zRBxa (define-module (gooby-channel packages bcache-tools) #:use-module (guix licenses) #:use-module (guix packages) #:use-module (gnu packages) #:use-module (guix build-system gnu) #:use-module (guix git-download) #:use-module (gnu packages linux) #:use-module (gnu packages pkg-config)) (define-public bcache-tools (package (name "bcache-tools") (version "1.1") (source (origin (method git-fetch) (uri (git-reference (url (string-append "https://git.kernel.org/pub/scm/linux/kernel/git/colyli/" name ".git")) (commit (string-append name "-" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1vfqm3asx7h1sjwyq45dki4wk7lkipqrx2pw2hnqm4xir85qf67h")) (patches (search-patches "bcache-tools-noprobe.patch")))) (build-system gnu-build-system) (arguments `(;;#:tests? #f ; no "check" target #:make-flags (list (string-append "PREFIX=3D" (assoc-ref %outputs "out"))) #:phases (modify-phases %standard-phases (delete 'configure)))) (inputs `(("util-linux" ,util-linux))) (native-inputs `(("pkg-config" ,pkg-config))) (home-page "https://bcache.evilpiepirate.org/") (synopsis "These are the userspace tools required for bcache.") (description "Bcache patches for the Linux kernel allow one to use SSDs to cache other block devices. It's analogous to L2Arc for ZFS, but Bcache also does writeback caching (besides just write through caching), and it's filesystem agnostic. ") (license gpl2))) I tried to make a package, but I got stuck. https://www.mail-archive.com/bug-guix@gnu.org/msg00180.html According to this, if you use gnu-build-system, all packages added to inputs get added to PKG_CONFIG_PATH, but for some reason it's not happening for util-linux, which causes a build error. On Fri, Dec 18, 2020 at 10:31 AM Nathan Dehnel wrote: > > >which is a bit more than that. Guix doesn't ship bcache-tools > (yet); are you using your own package? If so, please consider > sharing :-) > > I could try to make a package. > > >Have you tried this? > > Yes. > > On Fri, Dec 18, 2020 at 8:13 AM Tobias Geerinckx-Rice wrot= e: > > > > Nathan, > > > > You may well be the first to (try to) use bcache on Guix System. > > > > Nathan Dehnel =E5=86=99=E9=81=93=EF=BC=9A > > > The manual https://www.kernel.org/doc/Documentation/bcache.txt > > > states > > > that udev is necessary, and it is enabled: > > > > It says: > > > > --8<---------------cut here---------------start------------->8--- > > bcache-tools now ships udev rules, and bcache devices are known to > > the kernel immediately. > > --8<---------------cut here---------------end--------------->8--- > > > > which is a bit more than that. Guix doesn't ship bcache-tools > > (yet); are you using your own package? If so, please consider > > sharing :-) > > > > You'd have to add it to the RULES field of your system's > > UDEV-CONFIGURATION to make the system's udev =E2=80=98see=E2=80=99 the = rules. > > Simply installing it or adding it to your system packages isn't > > enough. > > > > The kernel docs continue: > > > > --8<---------------cut here---------------start------------->8--- > > Without udev, you can manually register devices like this:: > > > > echo /dev/sdb > /sys/fs/bcache/register > > echo /dev/sdc > /sys/fs/bcache/register > > > > Registering the backing device makes the bcache device show up in > > /dev; you can now format it and use it as normal. > > --8<---------------cut here---------------end--------------->8--- > > > > Have you tried this? > > > > Good luck, > > > > T G-R