From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1lNONk-0000pP-1S for mharc-grub-devel@gnu.org; Fri, 19 Mar 2021 19:18:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNONi-0000pG-7g for grub-devel@gnu.org; Fri, 19 Mar 2021 19:18:14 -0400 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]:41582) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lNONg-0003ZO-5z for grub-devel@gnu.org; Fri, 19 Mar 2021 19:18:13 -0400 Received: by mail-pg1-x529.google.com with SMTP id m7so4693313pgj.8 for ; Fri, 19 Mar 2021 16:18:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4GYKQrr4moWCWFXHm/82APytLQy42CVbZRoql688dC0=; b=yG/b1RbHjeyNCILzmek4LMPUdQnAQYvB41ORHKXKGzGHd5sLsOMFAEFxEZCDl3YDSk 7XQrCHA2/ywP0o6hrnDb3nNx5AidPYMYqtX9c9PqIH1H16OuhCPOvKmS7rcuGNFZcroi QWzwPEru49TDwzDYBVmeyRqE7DJzmJZQR50U1EQl7YNaGfVEqYlCtJcT4GTFALANeut2 q+AmSo35sat3NkPwGgGoxfJMEN4vdsRJWrgeVJRgy8Awxsb6EjNOb2FcqZCp3BvUvQx3 IlsCg6IuH46/l+1N8E290WNjrcqs1qPvrHLgJSRZC9+DTIPsVLY6mO9Jkw3e+Qc8hGXt mBIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4GYKQrr4moWCWFXHm/82APytLQy42CVbZRoql688dC0=; b=f/2/uQg0gapBK7VTCQ6fFEd/wCfm5ZBZb4LT9V4iE1KKIHxYhuiByLZbJgrNSKNbaI Ec/Mr+al+tqY0bDil5qjPdx2aaW6N1cmIna6rfDvylH/CV4NZxyfpxmcpcFau23092oJ BI/rgtfztOFrn3cbhT7ieFd7PSt065G0OfkBErWCO1vJD+99qY1hMS2VMq/iA6m8CAbf LD6CPV3cOQigAQ6JE0qTmSezj0LUcVDcnqYUtRZBhxNCq4m3+VzkM8vX+WklTmguHojc dBweOVDSs8H2HSldW9TkhCWo5nGftTRuuXTq0c7VxXIuA+RyRzfigBf+UEJoFhFWWkQb 3ulg== X-Gm-Message-State: AOAM530QKSkeq6vImg4NoQrZ9Lp4zOl2aAViKSyIEx9+YPE58QjjAB9t N8E9qQMjJWSHdGuakBDawF/p/WPL/3y8KA== X-Google-Smtp-Source: ABdhPJxRXQCOBY6/o0o3NqXp/kIIGz8lLfC1wNjg74HRP5/5i/brTz0V11tjbXJJ4E+Vo3jGq7DrHw== X-Received: by 2002:aa7:818e:0:b029:215:2466:3994 with SMTP id g14-20020aa7818e0000b029021524663994mr488247pfi.48.1616195890057; Fri, 19 Mar 2021 16:18:10 -0700 (PDT) Received: from localhost.localdomain ([2605:a601:ab16:db00:2328:d973:f35b:5c6b]) by smtp.gmail.com with ESMTPSA id f27sm6477690pgm.81.2021.03.19.16.18.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 16:18:09 -0700 (PDT) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Glenn Washburn Subject: [PROCFS 0/5] Add and improve (proc) entries Date: Fri, 19 Mar 2021 18:17:41 -0500 Message-Id: X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::529; envelope-from=development@efficientek.com; helo=mail-pg1-x529.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Mar 2021 23:18:14 -0000 This patch series adds proc entries to show the user some of GRUB's internal state on devices, loopback devices, and luks devices. This can be valuable when debugging grub, either as a developer, or as a user trying to determine why their config is not working as expected. Some of the same info can be gotten from the "ls" command with no arguments, however the proc entry is a lot less verbose, which is helpful when output is more than one screen's worth of data. Patch #1: Add (proc)/loopbacks which shows all configured loopback devices Patch #2-4: Improve the existing luks proc entry by adding LUKS2 support, add field names for the cryptodisk names and source device names, and adding a header to make the file more easily comprehensible Patch #5: Add (proc)/devices to show all devices grub knows about. Glenn Glenn Washburn (5): loopback: Add procfs entry 'loopbacks' to output configured loopback devices luks2: Add support for LUKS2 in (proc)/luks_script cryptodisk: Add crypto disk name and source device names to (proc)/luks_script cryptodisk: Add header line of field names to (procfs)/luks_script procfs: Add (proc)/devices to get info on grub devices. grub-core/disk/cryptodisk.c | 41 +++++++++++++---- grub-core/disk/loopback.c | 57 +++++++++++++++++++++++ grub-core/fs/proc.c | 91 +++++++++++++++++++++++++++++++++++++ 3 files changed, 179 insertions(+), 10 deletions(-) -- 2.27.0