1
0
Fork 0

Merging upstream version 1.8.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-16 10:45:43 +01:00
parent 857e875fe5
commit 67e5308a54
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
874 changed files with 1460 additions and 897 deletions

22
scripts/collect-sysfs.sh Executable file
View file

@ -0,0 +1,22 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: LGPL-2.1-or-later
filename=nvme-sysfs-$(hostname)-$(uname -r).tar.xz
declare -a dirs=(
"/sys/class/nvme"
"/sys/class/nvme-fabrics"
"/sys/class/nvme-generic"
"/sys/class/nvme-subsystem"
"/sys/bus/pci/slots"
)
files=""
for d in "${dirs[@]}"; do
files+="${d} "
for l in "${d}"/*; do
files+="$(readlink -f $l) "
done
done
tar -c -J -p -f "${filename}" ${files} 2> /dev/null