[nbdkit PATCH 0/3] Add nozero filter
by Eric Blake
I still need to add testsuite coverage. Perhaps it might be easier
if I create a new '--filter=log logfile=foo' filter that produces
a log of which commands a client sent, then compare the log using
a known client that uses write_zeroes (qemu-io works well) both
with and without --filter=nozero to prove that the change in
advertisement changes the commands sent over the wire (that would
also test the log filter at the same time...).
I'll wait for a review on this series, particularly since patch 2
intentionally breaks filter ABI (more ABI/API breaks on the way
when I resubmit my FUA work; it would be nice to make all the API
breaks before v1.1.29, rather than releasing versions while things
are still in flux).
Note that even if we try hard to let newer nbdkit load an older
filter (which I did not do here), we absolutely cannot let older
nbdkit load a newer filter - while we have sizing limits to
guarantee we don't call beyond the end of an older filter's
smaller struct, there are no sizing limits in the other
direction to prevent a newer filter to know that it cannot call
beyond the end of our smaller nbdkit_next_ops.
Eric Blake (3):
connections: Don't advertise TRIM on readonly connection
filter: Add .can_zero/.can_fua overrides
filters: Add nozero filter
TODO | 2 +-
configure.ac | 3 +-
docs/nbdkit-filter.pod | 30 +++++++++++-
docs/nbdkit.pod | 1 +
filters/Makefile.am | 1 +
filters/nozero/Makefile.am | 62 ++++++++++++++++++++++++
filters/nozero/nbdkit-nozero-filter.pod | 84 +++++++++++++++++++++++++++++++++
filters/nozero/nozero.c | 68 ++++++++++++++++++++++++++
include/nbdkit-filter.h | 8 +++-
src/connections.c | 45 +++++++++++++-----
src/filters.c | 70 ++++++++++++++++++++++++---
src/internal.h | 2 +
src/plugins.c | 22 +++++++++
13 files changed, 376 insertions(+), 22 deletions(-)
create mode 100644 filters/nozero/Makefile.am
create mode 100644 filters/nozero/nbdkit-nozero-filter.pod
create mode 100644 filters/nozero/nozero.c
--
2.14.3
6 years, 10 months
[nbdkit PATCH] maint: Improve ./nbdkit handling of --opt=value
by Eric Blake
Although useful for in-tree debugging, the ./nbdkit script was not
very nice when it comes to using the '--longopt=value' single-string
form of options, compared to the two-string '--longopt value' form.
Since we used a glob for the multiple spellings of --exportname and
--pidfile, the script would try to treat the next argument literally
instead of recognizing that the argument was already consumed.
Likewise, the script was not recognizing '--filter=foo'.
Since the script already relies on bash, we can exploit bash's
case fallthrough (using ';&' instead of ';;'), to rewrite inline
--filter=foo without having to duplicate logic.
This does NOT try to honor option abbreviations. If you are testing
that aspect of getopt_long, don't use this script ;)
Signed-off-by: Eric Blake <eblake(a)redhat.com>
---
I'm pushing this one now, as it tripped me up during testing.
nbdkit.in | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/nbdkit.in b/nbdkit.in
index d1caf57..996616d 100644
--- a/nbdkit.in
+++ b/nbdkit.in
@@ -65,6 +65,11 @@ verbose=
while [ $# -gt 0 ]; do
case "$1" in
# Flags that take an argument. We must not rewrite the argument.
+ # But make sure globs don't mishandle longopts with =.
+ --export*=* | --pid*=*)
+ args[$i]="$1"
+ shift
+ ;;
-e | --export* | -g | --group | -i | --ip* | -P | --pid* | -p | --port | --run | --selinux-label | -t | --threads | --tls | --tls-certificates | -U | --unix | -u | --user)
args[$i]="$1"
((++i))
@@ -80,6 +85,11 @@ while [ $# -gt 0 ]; do
;;
# Filters can be rewritten if purely alphanumeric.
+ --filter=*)
+ tmp=${1#*=}
+ shift
+ set - --filter "$tmp" "$@"
+ ;& # fallthru
--filter)
args[$i]="--filter"
((++i))
--
2.14.3
6 years, 10 months
[PATCH nbdkit] Change the default protocol to newstyle.
by Richard W.M. Jones
nbdkit <= 1.1.28 defaulted to the oldstyle protocol for compatibility
with qemu and libguestfs. However qemu >= 2.6 can now work with
either protocol and is widely installed. Also newstyle is required
for newer features such as export names and TLS. In addition
nbd-client dropped support for oldstyle entirely.
You can select the oldstyle protocol by adding ‘-o’, and it is still
tested.
---
TODO | 6 ++++++
docs/nbdkit.pod | 29 +++++++++++++++--------------
src/main.c | 2 +-
tests/test-single.sh | 2 +-
4 files changed, 23 insertions(+), 16 deletions(-)
diff --git a/TODO b/TODO
index bb99456..dba5aba 100644
--- a/TODO
+++ b/TODO
@@ -74,3 +74,9 @@ nbdkit processes.
The nbd plugin (plugins/nbd) already contains an NBD client, so we
could factor this client out and make it available to other plugins to
use.
+
+Tests
+-----
+
+* tests/test-single.sh: This test (of the -s option) needs
+ considerable work.
diff --git a/docs/nbdkit.pod b/docs/nbdkit.pod
index 2d17b74..1167245 100644
--- a/docs/nbdkit.pod
+++ b/docs/nbdkit.pod
@@ -67,7 +67,7 @@ L<guestfish(1)>:
Serve file F<disk.img> on port 10809, requiring clients to use
encrypted (TLS) connections:
- nbdkit --newstyle --tls=require file file=disk.img
+ nbdkit --tls=require file file=disk.img
=head2 Combining plugins and filters
@@ -128,7 +128,7 @@ This option implies I<--foreground>.
=item B<--exportname> EXPORTNAME
-Set the exportname and use the newstyle protocol (implies I<-n>).
+Set the exportname.
If not set, exportname C<""> (empty string) is used. Exportnames are
not allowed with the oldstyle protocol.
@@ -175,8 +175,10 @@ interfaces. See also I<-p>.
=item B<--newstyle>
-Use the newstyle NBD protocol instead of the default (oldstyle)
-protocol. See L</NEW STYLE VS OLD STYLE PROTOCOL> below.
+Use the newstyle NBD protocol protocol. This is the default in nbdkit
+E<ge> 1.1.29. In earlier versions the default was oldstyle.
+
+See L</NEW STYLE VS OLD STYLE PROTOCOL> below.
=item B<-o>
@@ -184,10 +186,11 @@ protocol. See L</NEW STYLE VS OLD STYLE PROTOCOL> below.
=item B<--oldstyle>
-Use the oldstyle NBD protocol. This is currently the default (unless
-you use I<-n> or I<-e>), so this flag does nothing, but it is possible
-we might change the default protocol in future. See L</NEW STYLE VS
-OLD STYLE PROTOCOL> below.
+Use the oldstyle NBD protocol. This I<was> the default in nbdkit
+E<le> 1.1.28, but now the default is newstyle. Note this is
+incompatible with newer features such as export names and TLS.
+
+See L</NEW STYLE VS OLD STYLE PROTOCOL> below.
=item B<-P> PIDFILE
@@ -527,12 +530,10 @@ The NBD protocol comes in two incompatible forms that we call
use depends on the client and cannot be known in advance, nor can it
be negotiated from the server side.
-nbdkit currently defaults to the oldstyle protocol for compatibility
-with qemu and libguestfs. This is also the same behaviour as qemu-nbd
-E<le> 2.5. Use the I<-n> or I<--newstyle> flag on the command line to
-use the newstyle protocol. Use the I<-e> or I<--exportname> flag to
-set the exportname for the newstyle protocol. Use the I<-o> or
-I<--oldstyle> flag to force the oldstyle protocol.
+nbdkit defaults to the newstyle protocol since nbdkit E<ge> 1.1.29.
+Use the I<-e> or I<--exportname> flag to set the optional exportname
+for the newstyle protocol. Use the I<-o> or I<--oldstyle> flag to
+force the oldstyle protocol.
Some common clients and the protocol they require:
diff --git a/src/main.c b/src/main.c
index e5d9093..67cbbde 100644
--- a/src/main.c
+++ b/src/main.c
@@ -80,7 +80,7 @@ int exit_with_parent; /* --exit-with-parent */
const char *exportname; /* -e */
int foreground; /* -f */
const char *ipaddr; /* -i */
-int newstyle; /* -n */
+int newstyle = 1; /* 0 = -o, 1 = -n */
char *pidfile; /* -P */
const char *port; /* -p */
int readonly; /* -r */
diff --git a/tests/test-single.sh b/tests/test-single.sh
index 5f60367..d7783a6 100755
--- a/tests/test-single.sh
+++ b/tests/test-single.sh
@@ -38,4 +38,4 @@ source ./functions.sh
# Test nbdkit -s option.
# XXX Not sure what is a really good test of this.
-nbdkit -s example1 </dev/null
+nbdkit -o -s example1 </dev/null
--
2.13.2
6 years, 10 months
[nbdkit PATCH 0/2] Miscellaneous patches
by Eric Blake
These are relatively independent enough from my ongoing work to
add FUA support that I'll post them now.
Eric Blake (2):
todo: More items
include: Properly decorate attributes in public headers
TODO | 15 ++++++++++++++-
include/nbdkit-common.h | 4 ++--
2 files changed, 16 insertions(+), 3 deletions(-)
--
2.14.3
6 years, 10 months
[RFC] Inconsistent output of guestfs_list_filesystems
by Mykola Ivanets
Before I rush to change something I request your comments on the subject.
Let me know what do you think and if it does make sense.
The issue: guesfs_list_filesystems is inconsistent in its output.
For, example, it filters out partitioned physical devices but doesn't do the same for MD devices.
More over, according to its name and API documentation guestfs_list_filesystem should return something
which potentially can be mounted (SWAP is an exclusion and it is stated in API doc).
It is the reason partitioned physical devices are filtered out:
they are not mountable even in theory (they don't contain filesystem if they contain partition(s)).
Another example of non-mountable block device is extended MSDOS partition.
Also nothing stops you from creating partition table and partitions on logical volume
(yes, it is probably uncommon but nevertheless). In this case such partitions are ignored completely.
Yet another example is Windows dynamic disks aka LDM: guestfs_list_filesystems returns both
ldm_vol_ and ldm_part_ but strongly speaking only volumes should be considered as mountables.
And last example is again with Windows dynamic disks and their physical counterparts:
guestfs_list_filesystems filters out disks with MBR type byte 0x42 but what about GPT?
Patch #1 will add one more test to demonstrate one of the issues described above (partitioned MD device).
Patch #2 will define function which tells if device is partitioned (yes, it doesn't work with dm-devices).
Patch #3 fixes the issue with partitioned MD devices.
At the moment don't pay too much attention at the code itself - it is just a quick way to demonstrate the issue.
6 years, 10 months
Trying to mount vmdk - kernel panic not syncing: Attempted to kill init! exitcode=0x00000100
by James Cook
Hallo
I'm trying to mount individual vmdks from a crashed Esxi server (the HDD
is suffering sector failures).
Using a rescue system I can mount the Esxi with vmfs-fuse.
I copied the files across to a data rescue machine and here guestmount
did work for all but one vmdk - even though the VMs were not necessarily
shutdown gently.
I changed the vmfuse version on the rescue system - with which I'm
accessing the "crashed" server's data (the HDD).
Then the original data rescue machine was deleted by accident. So I've
created a new data rescue machine, and I've copied the vms/vmdk files
from the original server to this new data rescue system.
The only problem is that I now can't get guestmount to work on the vmdks
(as it did before) :(
The reasons could be:
1. further data degradation on the original server - but rsync reported
no errors
2. the new vmfs-fuse doesn't mount vmdk files correctly so copying you
don't get the real thing - again rsync (at file level) reported no
errors
3. the environment in which I am now calling guestmount is somehow
different.
* sgdisk -p ldap-flat.vmdk**
*
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory.
***************************************************************
Disk ldap-flat.vmdk: 16777216 sectors, 8.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 7B246364-5907-403D-AE5C-EA41DAE75038
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 16777182
Partitions will be aligned on 2048-sector boundaries
Total free space is 6077 sectors (3.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 499711 243.0 MiB 8300 Linux filesystem
5 501760 16775167 7.8 GiB 8E00 Linux LVM
*guestmount --trace --verbose --rw -a /root/BackupsLdap/ldap.vmdk -i /mnt*
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: create: flags = 0, handle = 0x11cafa0, program = guestmount
libguestfs: trace: set_trace true
libguestfs: trace: set_trace = 0
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: trace: set_recovery_proc true
libguestfs: trace: set_recovery_proc = 0
libguestfs: trace: add_drive "/root/BackupsLdap/ldap.vmdk"
libguestfs: trace: add_drive = 0
libguestfs: trace: launch
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp"
libguestfs: trace: version
libguestfs: trace: version = <struct guestfs_version *>
libguestfs: trace: get_backend
libguestfs: trace: get_backend = "direct"
libguestfs: launch: program=guestmount
libguestfs: launch: version=1.32.2
libguestfs: launch: backend registered: unix
libguestfs: launch: backend registered: uml
libguestfs: launch: backend registered: libvirt
libguestfs: launch: backend registered: direct
libguestfs: launch: backend=direct
libguestfs: launch: tmpdir=/tmp/libguestfsXPjfXL
libguestfs: launch: umask=0022
libguestfs: launch: euid=0
libguestfs: trace: get_backend_setting "force_tcg"
libguestfs: trace: get_backend_setting = NULL (error)
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: [00000ms] begin building supermin appliance
libguestfs: [00000ms] run supermin
libguestfs: command: run: /usr/bin/supermin
libguestfs: command: run: \ --build
libguestfs: command: run: \ --verbose
libguestfs: command: run: \ --if-newer
libguestfs: command: run: \ --lock /var/tmp/.guestfs-0/lock
libguestfs: command: run: \ --copy-kernel
libguestfs: command: run: \ -f ext2
libguestfs: command: run: \ --host-cpu x86_64
libguestfs: command: run: \ /usr/lib/x86_64-linux-gnu/guestfs/supermin.d
libguestfs: command: run: \ -o /var/tmp/.guestfs-0/appliance.d
supermin: version: 5.1.14
supermin: package handler: debian/dpkg
supermin: acquiring lock on /var/tmp/.guestfs-0/lock
supermin: if-newer: output does not need rebuilding
libguestfs: [00007ms] finished building supermin appliance
libguestfs: [00007ms] begin testing qemu features
libguestfs: command: run: /usr/bin/qemu-system-x86_64
libguestfs: command: run: \ -display none
libguestfs: command: run: \ -help
libguestfs: command: run: /usr/bin/qemu-system-x86_64
libguestfs: command: run: \ -display none
libguestfs: command: run: \ -version
libguestfs: qemu version 2.5
libguestfs: command: run: /usr/bin/qemu-system-x86_64
libguestfs: command: run: \ -display none
libguestfs: command: run: \ -machine accel=kvm:tcg
libguestfs: command: run: \ -device ?
libguestfs: [00080ms] finished testing qemu features
libguestfs: trace: get_backend_setting "gdb"
libguestfs: trace: get_backend_setting = NULL (error)
[00081ms] /usr/bin/qemu-system-x86_64 \
-global virtio-blk-pci.scsi=off \
-nodefconfig \
-enable-fips \
-nodefaults \
-display none \
-machine accel=kvm:tcg \
-cpu host \
-m 500 \
-no-reboot \
-rtc driftfix=slew \
-no-hpet \
-global kvm-pit.lost_tick_policy=discard \
-kernel /var/tmp/.guestfs-0/appliance.d/kernel \
-initrd /var/tmp/.guestfs-0/appliance.d/initrd \
-device virtio-scsi-pci,id=scsi \
-drive
file=/root/BackupsLdap/ldap.vmdk,cache=writeback,id=hd0,if=none \
-device scsi-hd,drive=hd0 \
-drive
file=/var/tmp/.guestfs-0/appliance.d/root,snapshot=on,id=appliance,cache=unsafe,if=none
\
-device scsi-hd,drive=appliance \
-device virtio-serial-pci \
-serial stdio \
-device sga \
-chardev socket,path=/tmp/libguestfsXPjfXL/guestfsd.sock,id=channel0 \
-device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \
-append 'panic=1 console=ttyS0 udevtimeout=6000
udev.event-timeout=6000 no_timer_check acpi=off printk.time=1
cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm'
Could not open option rom 'sgabios.bin': No such file or directory
[ 0.000000] random: get_random_bytes called from
start_kernel+0x42/0x504 with crng_init=0
[ 0.000000] Linux version 4.13.0-26-generic (buildd@lgw01-amd64-031)
(gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5))
#29~16.04.2-Ubuntu SMP Tue Jan 9 22:00:44 UTC 2018 (Ubuntu
4.13.0-26.29~16.04.2-generic 4.13.13)
[ 0.000000] Command line: panic=1 console=ttyS0 udevtimeout=6000
udev.event-timeout=6000 no_timer_check acpi=off printk.time=1
cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating
point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832
bytes, using 'standard' format.
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff]
reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff]
reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000001f3dffff] usable
[ 0.000000] BIOS-e820: [mem 0x000000001f3e0000-0x000000001f3fffff]
reserved
[ 0.000000] BIOS-e820: [mem 0x00000000feffc000-0x00000000feffffff]
reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff]
reserved
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] random: fast init done
[ 0.000000] SMBIOS 2.8 present.
[ 0.000000] DMI: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
Ubuntu-1.8.2-1ubuntu1 04/01/2014
[ 0.000000] Hypervisor detected: KVM
[ 0.000000] tsc: Fast TSC calibration using PIT
[ 0.000000] e820: last_pfn = 0x1f3e0 max_arch_pfn = 0x400000000
[ 0.000000] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WC UC- WT
[ 0.000000] found SMP MP-table at [mem 0x000f6630-0x000f663f] mapped
at [ffff8e81400f6630]
[ 0.000000] Scanning 1 areas for low memory corruption
[ 0.000000] RAMDISK: [mem 0x1f118000-0x1f3dffff]
[ 0.000000] No NUMA configuration found
[ 0.000000] Faking a node at [mem 0x0000000000000000-0x000000001f3dffff]
[ 0.000000] NODE_DATA(0) allocated [mem 0x1f0ed000-0x1f117fff]
[ 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
[ 0.000000] kvm-clock: cpu 0, msr 0:1f06d001, primary cpu clock
[ 0.000000] kvm-clock: using sched offset of 1089201742 cycles
[ 0.000000] clocksource: kvm-clock: mask: 0xffffffffffffffff
max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff]
[ 0.000000] DMA32 [mem 0x0000000001000000-0x000000001f3dffff]
[ 0.000000] Normal empty
[ 0.000000] Device empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000001000-0x000000000009efff]
[ 0.000000] node 0: [mem 0x0000000000100000-0x000000001f3dffff]
[ 0.000000] Initmem setup node 0 [mem
0x0000000000001000-0x000000001f3dffff]
[ 0.000000] SFI: Simple Firmware Interface v0.81
http://simplefirmware.org
[ 0.000000] Intel MultiProcessor Specification v1.4
[ 0.000000] MPTABLE: OEM ID: BOCHSCPU
[ 0.000000] MPTABLE: Product ID: 0.1
[ 0.000000] MPTABLE: APIC at: 0xFEE00000
[ 0.000000] Processor #0 (Bootup-CPU)
[ 0.000000] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI
0-23
[ 0.000000] Processors: 1
[ 0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[ 0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
[ 0.000000] PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
[ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000effff]
[ 0.000000] PM: Registered nosave memory: [mem 0x000f0000-0x000fffff]
[ 0.000000] e820: [mem 0x1f400000-0xfeffbfff] available for PCI devices
[ 0.000000] Booting paravirtualized kernel on KVM
[ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff
max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[ 0.000000] setup_percpu: NR_CPUS:8192 nr_cpumask_bits:1 nr_cpu_ids:1
nr_node_ids:1
[ 0.000000] percpu: Embedded 46 pages/cpu @ffff8e815ee00000 s149784
r8192 d30440 u2097152
[ 0.000000] KVM setup async PF for cpu 0
[ 0.000000] kvm-stealtime: cpu 0, msr 1ee131c0
[ 0.000000] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes)
[ 0.000000] Built 1 zonelists in Node order, mobility grouping on.
Total pages: 125849
[ 0.000000] Policy zone: DMA32
[ 0.000000] Kernel command line: panic=1 console=ttyS0
udevtimeout=6000 udev.event-timeout=6000 no_timer_check acpi=off
printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0
guestfs_verbose=1 TERM=xterm
[ 0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.000000] Memory: 473572K/511480K available (12300K kernel code,
2480K rwdata, 4004K rodata, 2372K init, 2368K bss, 37908K reserved, 0K
cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Kernel/User page tables isolation: enabled
[ 0.000000] ftrace: allocating 37814 entries in 148 pages
[ 0.004000] Hierarchical RCU implementation.
[ 0.004000] \tRCU restricting CPUs from NR_CPUS=8192 to nr_cpu_ids=1.
[ 0.004000] \tTasks RCU enabled.
[ 0.004000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.004000] NR_IRQS: 524544, nr_irqs: 256, preallocated irqs: 16
[ 0.004000] Console: colour *CGA 80x25
[ 0.004000] console [ttyS0] enabled
[ 0.004005] tsc: Detected 3399.998 MHz processor
[ 0.004429] Calibrating delay loop (skipped) preset value.. 6799.99
BogoMIPS (lpj=13599992)
[ 0.004776] pid_max: default: 32768 minimum: 301
[ 0.005236] Security Framework initialized
[ 0.005619] Yama: becoming mindful.
[ 0.005954] AppArmor: AppArmor initialized
[ 0.006440] Dentry cache hash table entries: 65536 (order: 7, 524288
bytes)
[ 0.007102] Inode-cache hash table entries: 32768 (order: 6, 262144
bytes)
[ 0.008007] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.008613] Mountpoint-cache hash table entries: 1024 (order: 1, 8192
bytes)
[ 0.009737] Disabling memory control group subsystem
[ 0.010278] mce: CPU supports 10 MCE banks
[ 0.010684] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[ 0.011198] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
[ 0.018156] Freeing SMP alternatives memory: 36K
[ 0.019349] smpboot: Max logical packages: 1
[ 0.019855] x2apic enabled
[ 0.020003] Switched APIC routing to physical x2apic.
[ 0.021052] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[ 0.021626] smpboot: CPU0: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
(family: 0x6, model: 0x3a, stepping: 0x9)
[ 0.022566] Performance Events: IvyBridge events, Intel PMU driver.
[ 0.023148] ... version: 2
[ 0.023535] ... bit width: 48
[ 0.023898] ... generic registers: 4
[ 0.024000] ... value mask: 0000ffffffffffff
[ 0.024000] ... max period: 000000007fffffff
[ 0.024000] ... fixed-purpose events: 3
[ 0.024000] ... event mask: 000000070000000f
[ 0.024026] Hierarchical SRCU implementation.
[ 0.024906] smp: Bringing up secondary CPUs ...
[ 0.025324] smp: Brought up 1 node, 1 CPU
[ 0.025689] smpboot: Total of 1 processors activated (6799.99 BogoMIPS)
[ 0.026478] devtmpfs: initialized
[ 0.026818] x86/mm: Memory block size: 128MB
[ 0.027329] evm: security.selinux
[ 0.027630] evm: security.SMACK64
[ 0.027930] evm: security.SMACK64EXEC
[ 0.028005] evm: security.SMACK64TRANSMUTE
[ 0.028366] evm: security.SMACK64MMAP
[ 0.028690] evm: security.ima
[ 0.028953] evm: security.capability
[ 0.029376] clocksource: jiffies: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.030266] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.030814] pinctrl core: initialized pinctrl subsystem
[ 0.031403] RTC time: 11:27:41, date: 01/22/18
[ 0.031848] NET: Registered protocol family 16
[ 0.032152] cpuidle: using governor ladder
[ 0.032532] cpuidle: using governor menu
[ 0.033009] PCI: Using configuration type 1 for base access
[ 0.033587] core: PMU erratum BJ122, BV98, HSD29 workaround disabled,
HT off
[ 0.034877] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.035586] ACPI: Interpreter disabled.
[ 0.036060] SCSI subsystem initialized
[ 0.036440] vgaarb: loaded
[ 0.036712] usbcore: registered new interface driver usbfs
[ 0.037242] usbcore: registered new interface driver hub
[ 0.037726] usbcore: registered new device driver usb
[ 0.038206] EDAC MC: Ver: 3.0.0
[ 0.038571] PCI: Probing PCI hardware
[ 0.038925] PCI host bridge to bus 0000:00
[ 0.039296] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 0.039876] pci_bus 0000:00: root bus resource [mem
0x00000000-0xffffffffff]
[ 0.040011] pci_bus 0000:00: No busn resource found for root bus,
will use [bus 00-ff]
[ 0.044026] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io
0x01f0-0x01f7]
[ 0.044663] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io 0x03f6]
[ 0.045261] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io
0x0170-0x0177]
[ 0.045883] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io 0x0376]
[ 0.046895] pci 0000:00:01.3: quirk: [io 0x0600-0x063f] claimed by
PIIX4 ACPI
[ 0.047561] pci 0000:00:01.3: quirk: [io 0x0700-0x070f] claimed by
PIIX4 SMB
[ 0.058866] pci 0000:00:01.0: PIIX/ICH IRQ router [8086:7000]
[ 0.059525] NetLabel: Initializing
[ 0.059832] NetLabel: domain hash size = 128
[ 0.060003] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
[ 0.060512] NetLabel: unlabeled traffic allowed by default
[ 0.061141] clocksource: Switched to clocksource kvm-clock
[ 0.066592] VFS: Disk quotas dquot_6.6.0
[ 0.066993] VFS: Dquot-cache hash table entries: 512 (order 0, 4096
bytes)
[ 0.067643] AppArmor: AppArmor Filesystem Enabled
[ 0.068119] pnp: PnP ACPI: disabled
[ 0.069283] NET: Registered protocol family 2
[ 0.069775] TCP established hash table entries: 4096 (order: 3, 32768
bytes)
[ 0.070426] TCP bind hash table entries: 4096 (order: 4, 65536 bytes)
[ 0.070983] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.071620] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.072139] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.072729] NET: Registered protocol family 1
[ 0.073106] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[ 0.073631] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[ 0.074156] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[ 0.074740] Unpacking initramfs...
[ 0.076021] Freeing initrd memory: 2848K
[ 0.076499] platform rtc_cmos: registered platform RTC device (no PNP
device found)
[ 0.077218] Scanning for low memory corruption every 60 seconds
[ 0.077863] audit: initializing netlink subsys (disabled)
[ 0.078580] Initialise system trusted keyrings
[ 0.078981] Key type blacklist registered
[ 0.079359] audit: type=2000 audit(1516620462.007:1):
state=initialized audit_enabled=0 res=1
[ 0.080116] workingset: timestamp_bits=36 max_order=17 bucket_order=0
[ 0.081372] zbud: loaded
[ 0.081837] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.082423] fuse init (API version 7.26)
[ 0.083391] Key type asymmetric registered
[ 0.083771] Asymmetric key parser 'x509' registered
[ 0.084221] Block layer SCSI generic (bsg) driver version 0.4 loaded
(major 247)
[ 0.084905] io scheduler noop registered
[ 0.085252] io scheduler deadline registered
[ 0.085642] io scheduler cfq registered (default)
[ 0.086201] virtio-pci 0000:00:02.0: PCI->APIC IRQ transform: INT A
-> IRQ 10
[ 0.086849] virtio-pci 0000:00:02.0: virtio_pci: leaving for legacy
driver
[ 0.087669] virtio-pci 0000:00:03.0: PCI->APIC IRQ transform: INT A
-> IRQ 11
[ 0.088345] virtio-pci 0000:00:03.0: virtio_pci: leaving for legacy
driver
[ 0.089293] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[ 0.112137] serial8250: ttyS0 at I/O 0x3f8 (irq = 4, base_baud =
115200) is a 16550A
[ 0.129627] Linux agpgart interface v0.103
[ 0.130971] loop: module loaded
[ 0.132128] scsi host0: ata_piix
[ 0.132604] scsi host1: ata_piix
[ 0.133049] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc060 irq 14
[ 0.133903] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc068 irq 15
[ 0.135027] libphy: Fixed MDIO Bus: probed
[ 0.135566] tun: Universal TUN/TAP device driver, 1.6
[ 0.136217] PPP generic driver version 2.4.2
[ 0.136819] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.137626] ehci-pci: EHCI PCI platform driver
[ 0.138205] ehci-platform: EHCI generic platform driver
[ 0.138884] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.139638] ohci-pci: OHCI PCI platform driver
[ 0.140250] ohci-platform: OHCI generic platform driver
[ 0.140726] uhci_hcd: USB Universal Host Controller Interface driver
[ 0.141336] i8042: PNP: No PS/2 controller found.
[ 0.141761] i8042: Probing ports directly.
[ 0.142681] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 0.143129] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 0.143659] mousedev: PS/2 mouse device common for all mice
[ 0.144371] input: AT Translated Set 2 keyboard as
/devices/platform/i8042/serio0/input/input0
[ 0.145513] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[ 0.146136] rtc_cmos rtc_cmos: alarms up to one day, 114 bytes nvram
[ 0.146729] i2c /dev entries driver
[ 0.147070] device-mapper: uevent: version 1.0.3
[ 0.147526] device-mapper: ioctl: 4.37.0-ioctl (2017-09-20)
initialised: dm-devel(a)redhat.com
[ 0.148318] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.149042] NET: Registered protocol family 10
[ 0.149656] Segment Routing with IPv6
[ 0.150027] NET: Registered protocol family 17
[ 0.150429] Key type dns_resolver registered
[ 0.150908] RAS: Correctable Errors collector initialized.
[ 0.151440] sched_clock: Marking stable (148305529, 0)->(218070097,
-69764568)
[ 0.152180] registered taskstats version 1
[ 0.152565] Loading compiled-in X.509 certificates
[ 0.153628] Loaded X.509 cert 'Build time autogenerated kernel key:
b1931af2efdddab2cc28005a48cb6f00161c7d17'
[ 0.154517] zswap: loaded using pool lzo/zbud
[ 0.155062] Key type big_key registered
[ 0.155411] Key type trusted registered
[ 0.155805] Key type encrypted registered
[ 0.156199] AppArmor: AppArmor sha1 policy hashing enabled
[ 0.156685] ima: No TPM chip found, activating TPM-bypass! (rc=-19)
[ 0.157280] evm: HMAC attrs: 0x1
[ 0.157670] Magic number: 2:713:479
[ 0.158094] rtc_cmos rtc_cmos: setting system clock to 2018-01-22
11:27:41 UTC (1516620461)
[ 0.158854] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 0.159418] EDD information not available.
[ 0.302201] Freeing unused kernel memory: 2372K
[ 0.302804] Write protecting the kernel read-only data: 18432k
[ 0.303957] Freeing unused kernel memory: 2024K
[ 0.304789] Freeing unused kernel memory: 92K
[ 0.307475] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[ 0.308314] x86/mm: Checking user space page tables
[ 0.310888] x86/mm: Checked W+X mappings: passed, no W+X pages found.
supermin: mounting /proc
supermin: uptime: 0.31 0.15
supermin: ext2 mini initrd starting up: 5.1.14 zlib xz
supermin: cmdline: panic=1 console=ttyS0 udevtimeout=6000
udev.event-timeout=6000 no_timer_check acpi=off printk.time=1
cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm
supermin: mounting /sys
supermin: internal insmod crc32-pclmul.ko
supermin: internal insmod crct10dif-pclmul.ko
supermin: internal insmod crc32_generic.ko
supermin: internal insmod virtio_blk.ko
supermin: internal insmod virtio-rng.ko
supermin: internal insmod crypto_engine.ko
supermin: internal insmod virtio_crypto.ko
supermin: internal insmod drm.ko
supermin: internal insmod fb_sys_fops.ko
supermin: internal insmod syscopyarea.ko
supermin: internal insmod sysfillrect.ko
supermin: internal insmod sysimgblt.ko
supermin: internal insmod drm_kms_helper.ko
supermin: internal insmod ttm.ko
supermin: internal insmod virtio-gpu.ko
supermin: internal insmod ideapad_slidebar.ko
[ 0.336645] ideapad_slidebar: DMI does not match
insmod: init_module: ideapad_slidebar.ko: No such device
supermin: internal insmod virtio_net.ko
supermin: internal insmod video.ko
supermin: internal insmod sparse-keymap.ko
supermin: internal insmod wmi.ko
insmod: init_module: wmi.ko: No such device
supermin: internal insmod ideapad-laptop.ko
[ 0.343249] ideapad_laptop: Unknown symbol wmi_remove_notify_handler
(err 0)
[ 0.343878] ideapad_laptop: Unknown symbol wmi_install_notify_handler
(err 0)
insmod: init_module: ideapad-laptop.ko: Unknown symbol in module
supermin: internal insmod megaraid.ko
supermin: internal insmod megaraid_mm.ko
[ 0.347169] megaraid cmm: 2.20.2.7 (Release Date: Sun Jul 16 00:01:03
EST 2006)
supermin: internal insmod megaraid_mbox.ko
[ 0.349056] megaraid: 2.20.5.1 (Release Date: Thu Nov 16 15:32:35 EST
2006)
supermin: internal insmod megaraid_sas.ko
[ 0.351515] megasas: 07.701.17.00-rc1
supermin: internal insmod scsi_transport_spi.ko
supermin: internal insmod sym53c8xx.ko
supermin: internal insmod virtio_scsi.ko
[ 0.355937] scsi host2: Virtio SCSI HBA
[ 0.356777] scsi 2:0:0:0: Direct-Access QEMU QEMU HARDDISK
2.5+ PQ: 0 ANSI: 5
[ 0.357800] scsi 2:0:1:0: Direct-Access QEMU QEMU HARDDISK
2.5+ PQ: 0 ANSI: 5
[ 0.372916] sd 2:0:0:0: Attached scsi generic sg0 type 0
[ 0.373515] sd 2:0:0:0: [sda] 16777216 512-byte logical blocks: (8.59
GB/8.00 GiB)
[ 0.374233] sd 2:0:0:0: [sda] Write Protect is off
[ 0.374707] sd 2:0:0:0: [sda] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[ 0.375540] sd 2:0:1:0: Attached scsi generic sg1 type 0
[ 0.376481] sd 2:0:1:0: [sdb] 8388608 512-byte logical blocks: (4.29
GB/4.00 GiB)
[ 0.377204] sd 2:0:1:0: [sdb] Write Protect is off
[ 0.377742] sd 2:0:1:0: [sdb] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[ 0.378984] sda: sda1 sda2 < sda5 >
[ 0.379814] sd 2:0:0:0: [sda] Attached SCSI disk
[ 0.380444] sd 2:0:1:0: [sdb] Attached SCSI disk
supermin: internal insmod virtio_input.ko
supermin: internal insmod crc-itu-t.ko
supermin: internal insmod crc4.ko
supermin: internal insmod crc7.ko
supermin: internal insmod crc8.ko
supermin: internal insmod libcrc32c.ko
supermin: picked /sys/block/sdb/dev as root device
supermin: creating /dev/root as block special 8:16
supermin: mounting new root on /root
[ 0.387436] EXT4-fs (sdb): mounting ext2 file system using the ext4
subsystem
[ 0.389320] EXT4-fs (sdb): mounted filesystem without journal. Opts:
supermin: chroot
execl: /init: No such file or directory
supermin: debug: listing directory /
2 d .. 040755 4096 0:0
1124 d root 040700 4096 0:0
451 d lib 040755 4096 0:0
2 d . 040755 4096 0:0
269 d sbin 040775 4096 0:0
1312 d tmp 041777 4096 0:0
411 d boot 040755 4096 0:0
271 d bin 040755 4096 0:0
1121 d lib64 040755 4096 0:0
412 d dev 040755 4096 0:0
268 - init 100755 4754 0:0
1123 d proc 040555 4096 0:0
11 d lost+found 040700 16384 0:0
1125 d run 040755 4096 0:0
450 d home 040755 4096 0:0
263 d usr 040775 4096 0:0
1311 d sys 040555 4096 0:0
12 d etc 040775 4096 0:0
434 d var 040755 4096 0:0
supermin: debug: listing directory /bin
377 - sync 100755 31408 0:0
2 d .. 040755 4096 0:0
341 - mktemp 100755 39728 0:0
388 - tailf 100755 23144 0:0
390 - tempfile 100755 10416 0:0
389 - tar 100755 383632 0:0
362 l pidof 120777 14 0:0 -> \xdf\x10
278 - btrfs-image 100755 270136 0:0
369 - rmdir 100755 39632 0:0
344 - mountpoint 100755 14768 0:0
326 - kmod 100755 150600 0:0
300 - chmod 100755 56112 0:0
335 - ls 100755 126584 0:0
289 l bzegrep 120777 6 0:0 -> \x19\v
287 l bzcmp 120777 6 0:0 -> \x17\v
296 - bzmore 100755 1297 0:0
310 - echo 100755 31376 0:0
288 - bzdiff 100755 2140 0:0
346 - mv 100755 130488 0:0
358 - ntfsls 100755 31928 0:0
293 - bzip2 100755 31288 0:0
373 l sh 120777 4 0:0 -> P\x11
361 - ntfswipe 100755 47752 0:0
291 l bzfgrep 120777 6 0:0 -> \x1c\v
316 - fuser 100755 36024 0:0
284 - btrfstune 100755 249464 0:0
306 - dd 100755 72632 0:0
348 - ntfs-3g 104755 142032 0:0
376 - stty 100755 72496 0:0
375 - ss 100755 115816 0:0
354 - ntfscmp 100755 34920 0:0
271 d . 040755 4096 0:0
351 - ntfs-3g.usermap 100755 18424 0:0
330 - lesskey 100755 19824 0:0
398 - vdir 100755 126584 0:0
327 - less 100755 170728 0:0
371 - sed 100755 73424 0:0
393 - udevadm 100755 449136 0:0
370 - run-parts 100755 19320 0:0
273 - btrfs 100755 520992 0:0
318 - getfacl 100755 23752 0:0
272 - bash 100755 1037528 0:0
302 - cp 100755 151024 0:0
383 - systemd-inhibit 100755 281840 0:0
379 l systemd 120777 20 0:0 -> 5\x12
320 - gunzip 100755 2301 0:0
385 - systemd-notify 100755 35248 0:0
352 - ntfscat 100755 26728 0:0
387 - systemd-tty-ask-password-agent 100755 68032 0:0
286 - bzcat 100755 31288 0:0
333 - loginctl 100755 453848 0:0
356 - ntfsfix 100755 39024 0:0
323 - ip 100755 376192 0:0
400 - which 100755 946 0:0
363 - plymouth 100755 35504 0:0
336 - lsblk 100755 77280 0:0
343 - mount 104755 40152 0:0
313 - fgrep 100755 28 0:0
380 - systemd-ask-password 100755 51656 0:0
404 - zegrep 100755 140 0:0
340 - mknod 100755 64496 0:0
338 - mkdir 100755 76848 0:0
294 - bzip2recover 100755 14616 0:0
394 - ulockmgr_server 100755 14328 0:0
331 - lesspipe 100755 7764 0:0
281 - btrfs-show-super 100755 253816 0:0
397 - uncompress 100755 2301 0:0
407 - zgrep 100755 5938 0:0
382 - systemd-hwdb 100755 64080 0:0
365 - pwd 100755 31472 0:0
372 - setfacl 100755 36296 0:0
368 - rm 100755 60272 0:0
408 - zless 100755 2037 0:0
366 l rbash 120777 4 0:0 ->
\x11
374 - sleep 100755 31408 0:0
347 - networkctl 100755 678496 0:0
311 - egrep 100755 28 0:0
305 - date 100755 68464 0:0
359 - ntfsmove 100755 30824 0:0
364 - ps 100755 97408 0:0
345 - mt-gnu 100755 68824 0:0
381 - systemd-escape 100755 39344 0:0
406 - zforce 100755 2131 0:0
297 - cat 100755 52080 0:0
276 - btrfs-debug-tree 100755 249464 0:0
295 l bzless 120777 6 0:0 -> *\v
277 - btrfs-find-root 100755 245368 0:0
399 - wdctl 100755 31376 0:0
290 - bzexe 100755 4877 0:0
322 - gzip 100755 98240 0:0
350 - ntfs-3g.secaudit 100755 67608 0:0
395 - umount 104755 27608 0:0
384 - systemd-machine-id-setup 100755 47544 0:0
396 - uname 100755 31440 0:0
367 - readlink 100755 39632 0:0
337 l lsmod 120777 4 0:0 -> \xdd\xe
304 - dash 100755 154072 0:0
307 - df 100755 97912 0:0
280 - btrfs-select-super 100755 245368 0:0
275 - btrfs-convert 100755 278376 0:0
391 - touch 100755 64432 0:0
274 - btrfs-calc-size 100755 249464 0:0
325 - kill 100755 23152 0:0
402 - zcmp 100755 1777 0:0
324 - journalctl 100755 498936 0:0
317 - fusermount 104755 30800 0:0
329 l lessfile 120777 8 0:0 -> \a\xe
401 - zcat 100755 1937 0:0
328 - lessecho 100755 10256 0:0
303 - cpio 100755 141472 0:0
321 - gzexe 100755 5927 0:0
349 - ntfs-3g.probe 100755 10312 0:0
301 - chown 100755 64368 0:0
409 - zmore 100755 1910 0:0
283 l btrfsck 120777 5 0:0 -> \xc8
319 - grep 100755 211224 0:0
403 - zdiff 100755 5764 0:0
332 - ln 100755 56152 0:0
298 - chacl 100755 14752 0:0
357 - ntfsinfo 100755 55416 0:0
342 - more 100755 39768 0:0
285 - bunzip2 100755 31288 0:0
392 - true 100755 27280 0:0
282 - btrfs-zero-log 100755 245368 0:0
360 - ntfstruncate 100755 38944 0:0
386 - systemd-tmpfiles 100755 133704 0:0
308 - dir 100755 126584 0:0
378 - systemctl 100755 659848 0:0
314 - findmnt 100755 49576 0:0
315 - fsck.btrfs 100755 1185 0:0
353 - ntfscluster 100755 30824 0:0
339 - mkfs.btrfs 100755 265928 0:0
405 - zfgrep 100755 140 0:0
299 - chgrp 100755 60272 0:0
355 - ntfsfallocate 100755 34928 0:0
309 - dmesg 100755 60680 0:0
334 - lowntfs-3g 100755 105136 0:0
279 - btrfs-map-logical 100755 249464 0:0
312 - false 100755 27280 0:0
410 - znew 100755 5047 0:0
292 - bzgrep 100755 3642 0:0
supermin: debug: listing directory /lib
2 d .. 040755 4096 0:0
451 d . 040755 4096 0:0
485 d systemd 040755 4096 0:0
839 d udev 040755 4096 0:0
483 d modprobe.d 040755 4096 0:0
902 d x86_64-linux-gnu 040755 8192 0:0
469 d init 040755 4096 0:0
4003 d modules 040755 4096 0:0
452 d cryptsetup 040755 4096 0:0
472 - klibc-k3La8MUnuzHQ0_kG8hokcGAC0PA.so 100755 70952 0:0
473 l libhandle.so.1 120777 18 0:0 -> \x81\x14
474 - libhandle.so.1.0.3 100644 14464 0:0
475 d lsb 040755 4096 0:0
supermin: debug: listing directory /lib64
2 d .. 040755 4096 0:0
1121 d . 040755 4096 0:0
1122 l ld-linux-x86-64.so.2 120777 32 0:0 -> y:
[ 0.462418] Kernel panic - not syncing: Attempted to kill init!
exitcode=0x00000100
[ 0.462418]
[ 0.463238] CPU: 0 PID: 1 Comm: init Not tainted 4.13.0-26-generic
#29~16.04.2-Ubuntu
[ 0.463909] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
BIOS Ubuntu-1.8.2-1ubuntu1 04/01/2014
[ 0.464749] Call Trace:
[ 0.464969] dump_stack+0x63/0x8b
[ 0.465285] panic+0xe4/0x23d
[ 0.465547] do_exit+0xae6/0xaf0
[ 0.465831] ? dput+0x34/0x1f0
[ 0.466100] do_group_exit+0x43/0xb0
[ 0.466436] SyS_exit_group+0x14/0x20
[ 0.466760] entry_SYSCALL_64_fastpath+0x1e/0x81
[ 0.467162] RIP: 0033:0x451579
[ 0.467458] RSP: 002b:00007ffecd45ca88 EFLAGS: 00000246 ORIG_RAX:
00000000000000e7
[ 0.468106] RAX: ffffffffffffffda RBX: 000000000202fca3 RCX:
0000000000451579
[ 0.468745] RDX: 0000000000000008 RSI: 0000000000000001 RDI:
0000000000000001
[ 0.469355] RBP: 000000000202fc30 R08: 000000000000003c R09:
00000000000000e7
[ 0.469996] R10: ffffffffffffffd0 R11: 0000000000000246 R12:
0000000000000000
[ 0.470614] R13: 0044b82fa09b5a53 R14: 0000000000000000 R15:
000000000202fc30
[ 0.471404] Kernel Offset: 0x13800000 from 0xffffffff81000000
(relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[ 0.472379] Rebooting in 1 seconds..
libguestfs: error: appliance closed the connection unexpectedly, see
earlier error messages
libguestfs: child_cleanup: 0x11cafa0: child process died
libguestfs: sending SIGTERM to process 30658
libguestfs: error: guestfs_launch failed, see earlier error messages
libguestfs: trace: launch = -1 (error)
libguestfs: trace: close
libguestfs: closing guestfs handle 0x11cafa0 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfsXPjfXL
6 years, 10 months
[PATCH] customize: Use libxcrypt if available to provide crypt(3).
by Richard W.M. Jones
glibc 2.27 removes crypt(3) and suggests using libxcrypt.
libxcrypt requires <crypt.h> to be included.
---
customize/Makefile.am | 1 +
customize/crypt-c.c | 4 ++++
m4/guestfs-misc-libraries.m4 | 27 +++++++++++++++++++--------
3 files changed, 24 insertions(+), 8 deletions(-)
diff --git a/customize/Makefile.am b/customize/Makefile.am
index b4ec9286a..a22e25c46 100644
--- a/customize/Makefile.am
+++ b/customize/Makefile.am
@@ -100,6 +100,7 @@ libcustomize_a_CPPFLAGS = \
-I$(top_srcdir)/common/edit
libcustomize_a_CFLAGS = \
$(WARN_CFLAGS) $(WERROR_CFLAGS) \
+ $(LIBCRYPT_CFLAGS) \
$(LIBVIRT_CFLAGS) \
$(LIBXML2_CFLAGS) \
-fPIC
diff --git a/customize/crypt-c.c b/customize/crypt-c.c
index 70e6ea7f5..d5425cfaa 100644
--- a/customize/crypt-c.c
+++ b/customize/crypt-c.c
@@ -22,6 +22,10 @@
#include <stdlib.h>
#include <unistd.h>
+#if HAVE_CRYPT_H
+#include <crypt.h>
+#endif
+
#include <caml/alloc.h>
#include <caml/memory.h>
#include <caml/mlvalues.h>
diff --git a/m4/guestfs-misc-libraries.m4 b/m4/guestfs-misc-libraries.m4
index 2f371873f..f05a56fb8 100644
--- a/m4/guestfs-misc-libraries.m4
+++ b/m4/guestfs-misc-libraries.m4
@@ -17,14 +17,25 @@
dnl Miscellaneous libraries used by other programs.
-dnl Check if crypt() is provided by a separate library.
-old_LIBS="$LIBS"
-AC_SEARCH_LIBS([crypt],[crypt])
-LIBS="$old_LIBS"
-if test "$ac_cv_search_crypt" = "-lcrypt" ; then
- LIBCRYPT_LIBS="-lcrypt"
-fi
-AC_SUBST([LIBCRYPT_LIBS])
+dnl glibc 2.27 removes crypt(3) and suggests using libxcrypt.
+PKG_CHECK_MODULES([LIBCRYPT], [libxcrypt], [
+ AC_SUBST([LIBCRYPT_CFLAGS])
+ AC_SUBST([LIBCRYPT_LIBS])
+],[
+ dnl Check if crypt() is provided by another library.
+ old_LIBS="$LIBS"
+ AC_SEARCH_LIBS([crypt],[crypt])
+ LIBS="$old_LIBS"
+ if test "$ac_cv_search_crypt" = "-lcrypt" ; then
+ LIBCRYPT_LIBS="-lcrypt"
+ fi
+ AC_SUBST([LIBCRYPT_LIBS])
+])
+
+dnl Do we need to include <crypt.h>?
+old_CFLAGS="$CFLAGS"
+AC_CHECK_HEADERS([crypt.h])
+CFLAGS="$old_CFLAGS"
dnl liblzma can be used by virt-builder (optional).
PKG_CHECK_MODULES([LIBLZMA], [liblzma], [
--
2.13.2
6 years, 10 months
[PATCH] lib: docs: State that guestfs_list_filesystems is no longer requires to be used soon after launch when nothing is mounted
by Mykola Ivanets
guestfs_list_filesystems uses mount/umount to discover btrfs sub-volumes and since 1.37 it generates random mountpoint so it will longer affect already mounted filesystems if either.
---
generator/actions_core.ml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/generator/actions_core.ml b/generator/actions_core.ml
index ed8cb16..9a695c0 100644
--- a/generator/actions_core.ml
+++ b/generator/actions_core.ml
@@ -9674,7 +9674,8 @@ content of the device is undetermined or empty.
This command runs other libguestfs commands, which might include
C<guestfs_mount> and C<guestfs_umount>, and therefore you should
-use this soon after launch and only when nothing is mounted.
+use this soon after launch and only when nothing is mounted
+(it is no longer a requirement since 1.37).
Not all of the filesystems returned will be mountable. In
particular, swap partitions are returned in the list. Also
--
2.9.5
6 years, 10 months