Integrity Servers
1752735 Members
5429 Online
108789 Solutions
New Discussion юеВ

Re: efi_ls shows wrong entry names when containing space character

 
Jdamian
Respected Contributor

efi_ls shows wrong entry names when containing space character

HP-UX 11.23 IA

The tool "efi_ls" shows wrong entry names when they have the space character.

Al least this happens for directories. The commands efi_mkdir and efi_rmdir create and remove succesfully the directories but the efi_ls shows wrongly:

# efi_ls -d /dev/rdsk/c2t5d0s1
FileName Last Modified Size
EFI/ 9/17/2008 0
STARTUP.NSH 9/17/2008 296

total space 523251712 bytes, free space 519847936 bytes

# efi_mkdir -d /dev/rdsk/c2t5d0s1 "/ab c"

# efi_ls -d /dev/rdsk/c2t5d0s1
FileName Last Modified Size
EFI/ 9/17/2008 0
STARTUP.NSH 9/17/2008 296
AB/ 10/14/2008 0

# efi_rmdir -d /dev/rdsk/c2t5d0s1 /"ab c"

# efi_ls -d /dev/rdsk/c2t5d0s1
FileName Last Modified Size
EFI/ 9/17/2008 0
STARTUP.NSH 9/17/2008 296

total space 523251712 bytes, free space 519847936 bytes

I found this because I'm creating a script efi_lsr.sh to make up for the non-existing efi_lsr command.
6 REPLIES 6

Re: efi_ls shows wrong entry names when containing space character

Oscar,

works OK on 11iv3:

# efi_ls -d /dev/rdsk/c0t10d0s1
FileName Last Modified Size
EFI/ 3/ 4/2008 0
STARTUP.NSH 7/17/2008 296

total space 523251712 bytes, free space 520032256 bytes

# efi_mkdir -d /dev/rdsk/c0t10d0s1 "/ab c"
# efi_ls -d /dev/rdsk/c0t10d0s1
FileName Last Modified Size
EFI/ 3/ 4/2008 0
STARTUP.NSH 7/17/2008 296
ab c/ 10/14/2008 0

total space 523251712 bytes, free space 520028160 bytes

# efi_rmdir -d /dev/rdsk/c0t10d0s1 "/ab c"
# efi_ls -d /dev/rdsk/c0t10d0s1
FileName Last Modified Size
EFI/ 3/ 4/2008 0
STARTUP.NSH 7/17/2008 296

The only relevant 11.23 patch is PHCO_31574, but I assume that you have that as it was part of the Sep 2004 release.

HTH

Duncan

I am an HPE Employee
Accept or Kudo

Re: efi_ls shows wrong entry names when containing space character

Could it be a fix in an actual firmware patch rather than an OS patch?

What model server is this? What version of EFI is installed?

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Jdamian
Respected Contributor

Re: efi_ls shows wrong entry names when containing space character

Firmware info:
Firmware revision = 04.03
FP SWA driver revision: 1.18
IPMI is supported on this system.
BMC version: 5.23

Platform info:
model string = "ia64 hp server rx6600"
Jdamian
Respected Contributor

Re: efi_ls shows wrong entry names when containing space character

EFI version 2.00 [14.62]
EFI64 Running on Intel(R) Itanium Processor Family
UEFI 2.0 IPF server rx6600 7.12 [Fri Feb 23 17:21:28 2007] firmware by HP
Sameer_Nirmal
Honored Contributor

Re: efi_ls shows wrong entry names when containing space character

Maybe the efi_ls command on HP-UX 11.23 IA is discarding the "space" character.

I would verify the directory listing using EFI shell. Nevertheless, I would log a call with HP OS support.
Jdamian
Respected Contributor

Re: efi_ls shows wrong entry names when containing space character

This behaviour is found even whether the -b option is used... Yes, there are other options not explained in manual pages efi_ls(1M):

# efi_ls -h
USAGE: efi_ls [-d DeviceFile] [-bhs] [dirpath]
Version 1.20
-b: list efi boot directory
-h: shows help
-s: list in 8.3 short name only