kpartx bug when using very long paths?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is it possible, that there is a bug in kpartx when using very long paths?

Test 1 (short paths, works):
----------

#!/bin/bash
set -x
set -e

losetup --all

kpartx -a -s -v /home/tester/whonix_binary/Whonix-Gateway-8.6.1.6.raw
losetup --all
kpartx -d -s -v /home/tester/whonix_binary/Whonix-Gateway-8.6.1.6.raw

losetup --all

Output 1:
----------

sudo ./testscript
+ set -e
+ losetup --all
+ kpartx -a -s -v /home/tester/whonix_binary/Whonix-Gateway-8.6.1.6.raw
add map loop0p1 (254:0): 0 209711104 linear /dev/loop0 4096
+ losetup --all
/dev/loop0: [0801]:5898359
(/home/tester/whonix_binary/Whonix-Gateway-8.6.1.6.raw)
+ kpartx -d -s -v /home/tester/whonix_binary/Whonix-Gateway-8.6.1.6.raw
del devmap : loop0p1
loop deleted : /dev/loop0
+ losetup --all

Test 2 (long paths, fails):
----------

#!/bin/bash
set -x
set -e

losetup --all

kpartx -a -s -v
/home/tester/whonix_binary/Whonix-Gateway-8.6.1.6_report_tempfolder/raw_folder/Whonix-Gateway-8.6.1.6.raw
losetup --all
kpartx -d -s -v
/home/tester/whonix_binary/Whonix-Gateway-8.6.1.6_report_tempfolder/raw_folder/Whonix-Gateway-8.6.1.6.raw

losetup --all

Output 2:
----------

sudo ./testscript
+ set -e
+ losetup --all
+ kpartx -a -s -v
/home/tester/whonix_binary/Whonix-Gateway-8.6.1.6_report_tempfolder/raw_folder/Whonix-Gateway-8.6.1.6.raw
add map loop0p1 (254:0): 0 209711104 linear /dev/loop0 4096
+ losetup --all
/dev/loop0: [0801]:5898422
(/home/tester/whonix_binary/Whonix-Gateway-8.6.1.6_report_tempfolder/raw_folder/Whonix-Gateway-8.6.1.6.raw)
+ kpartx -d -s -v
/home/tester/whonix_binary/Whonix-Gateway-8.6.1.6_report_tempfolder/raw_folder/Whonix-Gateway-8.6.1.6.raw
+ losetup --all
/dev/loop0: [0801]:5898422
(/home/tester/whonix_binary/Whonix-Gateway-8.6.1.6_report_tempfolder/raw_folder/Whonix-Gateway-8.6.1.6.raw)

----------

(Same file, different path.)

In second run, loop is not deleted for some reason. Perhaps a bug?

kpartx version:
0.4.9+git0.4dfdaf2b-7~deb7u2

All the best,
Patrick

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel




[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux