In my case, you do not know the filename.
The only thing you know is the Inode and Device.
The task is to *find* the filename based on knowing only the Inode and Device



-----Original Message-----
From: Buss, Troy (Logitek Systems) (Logitek Systems) 
<troy.b...@nordsonasymtek.com>
To: U2 Users List <u2-users@listserver.u2ug.org>
Sent: Fri, Mar 16, 2012 3:47 pm
Subject: Re: [U2] Turn a device and inode into file name


We use the following subroutine.   Pass in the filename in variable FNAME.   In 
he mainline is 'THIS.ACCOUNT' and of course the F.FILESTATS.XREF file variable.
We then use this information in our expanded record locks display so that we 
can 
how real file names.
UPDATE.XREF: *;*

RT "Building item lock xref... ":

PEN FNAME TO F.CHECK ELSE
 CRT "CANNOT OPEN: ":FNAME
 RETURN
ND

TATUS STATUS.INFO FROM F.CHECK THEN
 DEVICE = STATUS.INFO<11>
 XREF.ITEM = AM:THIS.ACCOUNT:"*":FNAME
 WRITE XREF.ITEM ON F.FILESTATS.XREF, DEVICE
ND

LOSE F.CHECK

ETURN
*

----Original Message-----
rom: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] 
n Behalf Of Wjhonson
ent: Friday, March 16, 2012 12:24 PM
o: u2-users@listserver.u2ug.org
ubject: [U2] Turn a device and inode into file name

nyone have an easy way to do this?
n the past I've run a batch routine to just query each and every Universe file 
or it's inode and device and build a table of these
_____________________________________________________________________________
canned by IBM Email Security Management Services powered by MessageLabs. For 
ore information please visit http://www.ers.ibm.com
This email is intended only for the use of the party to which it is addressed 
nd may contain information that is privileged, confidential, or protected by 
aw.  If you are not the intended recipient you are hereby notified that any 
issemination, copying or distribution of the email or its contents is strictly 
rohibited.  If you have received this message in error, please notify us 
mmediately, by replying to the message and deleting it from your computer.
WARNING: Internet communications are not assured to be secure or clear of 
naccuracies as information could be intercepted, corrupted, lost, destroyed, 
rrive late or incomplete, or contain viruses.  Therefore, we do not accept 
esponsibility for any errors or omissions that are present in this email, or 
ny attachment, that have arisen as a result of e-mail transmission.
____________________________________________________________________________
______________________________________________
2-Users mailing list
2-us...@listserver.u2ug.org
ttp://listserver.u2ug.org/mailman/listinfo/u2-users

_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to