PNG  IHDR* pHYs+ IDATx]n#; cdLb Ǚ[at¤_:uP}>!Usă cag޿ ֵNu`ݼTâabO7uL&y^wFٝA"l[|ŲHLN밪4*sG3|Dv}?+y߉{OuOAt4Jj.u]Gz*҉sP'VQKbA1u\`& Af;HWj hsO;ogTu uj7S3/QzUr&wS`M$X_L7r2;aE+ώ%vikDA:dR+%KzƉo>eOth$z%: :{WwaQ:wz%4foɹE[9<]#ERINƻv溂E%P1i01 |Jvҗ&{b?9g=^wζXn/lK::90KwrюO\!ջ3uzuGv^;騢wq<Iatv09:tt~hEG`v;3@MNZD.1]L:{ծI3`L(÷ba")Y.iljCɄae#I"1 `3*Bdz>j<fU40⨬%O$3cGt]j%Fߠ_twJ;ABU8vP3uEԑwQ V:h%))LfraqX-ۿX]v-\9I gl8tzX ]ecm)-cgʒ#Uw=Wlێn(0hPP/ӨtQ“&J35 $=]r1{tLuǮ*i0_;NƝ8;-vݏr8+U-kruȕYr0RnC]*ެ(M:]gE;{]tg(#ZJ9y>utRDRMdr9㪩̞zֹb<ģ&wzJM"iI( .ꮅX)Qw:9,i좜\Ԛi7&N0:asϓc];=ΗOӣ APqz93 y $)A*kVHZwBƺnWNaby>XMN*45~ղM6Nvm;A=jֲ.~1}(9`KJ/V F9[=`~[;sRuk]rєT!)iQO)Y$V ی ۤmzWz5IM Zb )ˆC`6 rRa}qNmUfDsWuˤV{ Pݝ'=Kֳbg,UҘVz2ﴻnjNgBb{? ߮tcsͻQuxVCIY۠:(V뺕 ٥2;t`@Fo{Z9`;]wMzU~%UA蛚dI vGq\r82iu +St`cR.6U/M9IENDB` REDROOM
PHP 5.6.40
Preview: kpartx_id Size: 2.33 KB
/usr/lib/udev/kpartx_id

#!/bin/sh
#
# kpartx_id
#
# Generates ID information for device-mapper tables.
#
# Copyright (C) 2006 SUSE Linux Products GmbH
# Author:
#       Hannes Reinecke <hare@suse.de>
#
#
#       This program is free software; you can redistribute it and/or modify it
#       under the terms of the GNU General Public License as published by the
#       Free Software Foundation version 2 of the License.
#
# This script generates ID information used to generate persistent symlinks.
# It relies on the UUID strings generated by the various programs; the name
# of the tables are of no consequence.
#
# Please note that dmraid does not provide the UUIDs (yet); a patch has been
# sent upstream but has not been accepted yet.
#

DMSETUP=/sbin/dmsetup

MAJOR=$1
MINOR=$2
UUID=$3

if [ -z "$MAJOR" -o -z "$MINOR" ]; then
    echo "usage: $0 major minor"
    exit 1;
fi

# Device-mapper not installed; not an error
if [ ! -x $DMSETUP ] ; then
    exit 0
fi


# Table UUIDs are always '<type>-<uuid>'.
dmuuid=${UUID#*-}
dmtbl=${UUID%%-*}
dmpart=${dmtbl#part}
dmserial=
# kpartx types are 'part<num>'
if [ "$dmpart" = "$dmtbl" ] ; then
    dmpart=
else
    dmtbl=part
fi

# Set the name of the table. We're only interested in dmraid,
# multipath, and kpartx tables; everything else is ignored.
if [ "$dmtbl" = "part" ] ; then
    dmname=$($DMSETUP info  -c --noheadings -o name -u $dmuuid)
    echo "DM_MPATH=$dmname"
    # We need the dependencies of the parent table to figure out
    # the type if the parent is a multipath table
    case "$dmuuid" in
	mpath-*)
	    dmdeps=$($DMSETUP deps -u $dmuuid)
	    dmserial=${dmuuid#mpath-}
	    ;;
    esac
elif [ "$dmtbl" = "mpath" ] ; then
    dmname="$dmuuid"
    dmserial="$dmuuid"
    # We need the dependencies of the table to figure out the type
    dmdeps=$($DMSETUP deps -u $UUID)
fi

[ -n "$dmpart" ] && echo "DM_PART=$dmpart"

# Figure out the type of the map. For non-multipath maps it's
# always 'raid'.
if [ -n "$dmdeps" ] ; then
    case "$dmdeps" in
	*\(94,*)
	    echo "DM_TYPE=ccw"
	    ;;
	*\(104,* | *\(105,* | *\(106,* | *\(107,* | *\(108,* | *\(109,* | *\(110,* | *\(112,*)
	    echo "DM_TYPE=cciss"
	    ;;
	*\(9*)
	    echo "DM_TYPE=raid"
	    ;;
	*)
	    echo "DM_TYPE=scsi"
	    echo "DM_WWN=0x${dmserial#?}"
	    ;;
    esac
else
    echo "DM_TYPE=raid"
fi
if [[ $dmserial ]]; then
    echo "DM_SERIAL=$dmserial"
fi

exit 0

Directory Contents

Dirs: 2 × Files: 12

Name Size Perms Modified Actions
hwdb.d DIR
- drwxr-xr-x 2026-01-27 23:01:13
Edit Download
rules.d DIR
- drwxr-xr-x 2026-02-03 09:56:06
Edit Download
40.73 KB lrwxr-xr-x 2026-01-26 09:30:39
Edit Download
32.51 KB lrwxr-xr-x 2026-01-26 09:30:39
Edit Download
20.57 KB lrwxr-xr-x 2026-01-26 09:30:39
Edit Download
1.10 KB lrwxr-xr-x 2022-10-08 11:49:23
Edit Download
16.43 KB lrwxr-xr-x 2026-01-26 09:30:39
Edit Download
1.41 KB lrwxr-xr-x 2024-09-24 08:36:00
Edit Download
2.33 KB lrwxr-xr-x 2025-04-22 01:55:39
Edit Download
12.41 KB lrwxr-xr-x 2026-01-26 09:30:39
Edit Download
1.46 MB lrwxr-xr-x 2019-12-16 19:52:38
Edit Download
16.46 KB lrwxr-xr-x 2025-11-04 09:19:14
Edit Download
53.70 KB lrwxr-xr-x 2026-01-26 09:30:39
Edit Download
12.00 KB lrwxr-xr-x 2026-01-26 09:30:39
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).
© 2026 REDROOM — Secure File Manager. All rights reserved. Built with ❤️ & Red Dark UI