Re: Divining the full pathname of a file, all logicals translated




If the database contains filenames that were not parsed with no_conceal,
then the online filename and the database filename need to be parsed with
no_conceal to see if they match and if they do, don't generate an exception.

Or maybe a table could be created using "Show Logical */table=*" that could
be used to verify that such-and-such device is the same as such-and-such-other
device.

I didn't know about an f$fid_to_name(), but I can see that it would probably
return the filename using the disk logical that the disk was mounted with.
To see what the disk was mounted with use f$getdvi(disk,"logvolnam").


Rich Jordan wrote:
On Apr 11, 10:01 pm, AEF <spamsink2...@xxxxxxxxx> wrote:
On Mar 24, 4:27 pm, Rich Jordan <jor...@xxxxxxxxxxx> wrote:
[...]

OBTW the comment about people unfamiliar with VMS syntax; I expect
they'd know enough about dev:[dir1.dir2.dir3]file.name to be able to
follow it since we'd be telling them. I'd prefer not to give them
variances that might be confusing (extra "][" and missing ".") so it
makes sense to use the most basic and consistent syntax in the stored
information.
Thanks!
Rich
Please, what are you trying to do? What is the purpose of this list?
What are the users looking for when they use this list? What are they
going to do with the file-spec when they find the one they want? Are
they expected to retrieve the file from disk or tape? If so, why do
they need the list? And how are they going to do anything with it if
they don't have even a clue as to VMS file-specs? Etc.

My apologies if I'm missing something obvious, but I have no clue as
to what the point of all this is.

If the OP is not following this thread anymore, I' asking anyone else
who is to explain to me what the whole point of this is.

As usual, without the original motivation it is difficult to come up
with reasonably "optimized" (for lack of a better word I can't think
of offhand) solution.

Thanks!

AEF

Auditing changes to or moves of designated files for compliance to
certain government regulations.

A physical change of location (hidden by logicals) is still an
auditable event requiring documentation. Hence the need to know the
physical path at the time the audit database is generated, in order to
compare it to the "current" state when an audit report is run. A hash
of each file is retained, along with file create/modify timestamps and
FID; the FID is only meaningful on a given logical drive unit so the
drive name needs to be retained also, unmasked from any logicals.

The auditors are (as expected) well trained in suboptimal operating
systems like windows, but are not VMS-aware. Providing basic VMS file
specification information is not a problem but avoiding potentially
confusing variants such as paths with the embedded ][ is just a good
thing to do. Normalizing the stored pathnames also makes later
comparison and parsing more efficient and less likely to generate a
'false positive' path change event.

The auditors may never see the actual database. They will see a
report generated comparing the current 'state' of the system against
the archived state recorded in the database. The pathnames in that
report will come from one or the other (or both) locations when an
exception is noted.
.



Relevant Pages

  • Re: store files at my web host - how
    ... I'm doing something similar with product images, so I'll post a little of my ... Then I try to get the filename alone (maybe ... to a database. ... You can grab a bit of metadata as well from the PostedFile, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: tool for finding paths to files
    ... the path and filename of the file you selected in the dialog box. ... So in my PictureLoad sample, the call is behind the "Choose a Picture" ... this to include other file formats or ALL file formats. ... is a small Access database ...
    (microsoft.public.access.forms)
  • Re: Report
    ... If your database field is a text data type and contains the filename, ... Access report would work best since Word does not support the OLE data ...
    (microsoft.public.office.misc)
  • Re: Finding pattern more than once per record
    ... > We're doing variable data printing - where a customer supplies us with an image ... > they don't reference an image from the database until it's in the library, ... > I've been trying to come up with an awk solution to extract image names from the ... > better way to specify the match pattern for the first part of the filename? ...
    (comp.lang.awk)
  • Re: rsync question
    ... found a better way to organize my music on disk. ... only ever rip CDs in iTunes itself and buy off iTunes it's never an issue. ... info that you would pull from the filename in a database (which i ...
    (comp.sys.mac.advocacy)

Loading