|
Let's say someone ran a command like the following:
MOUNT TYPE(*NFS) MFS('gdihq:/tmp') MNTOVRDIR('/gdihq/tmp') +
OPTIONS('rw,suid,retry=5,rsize=32768,wsize=32768,timeo=20,retrans=5,
acregmin=30,acregmax=60,acdirmin=30,acdirmax=60,soft,async,
sec=sys,vers=3:2,nocache')
Basically this says I have an existing directory called /gdihq/tmp. After
I run this command the contents of /gdihq/tmp will now be showing
everything in the /tmp directory on the remote system gdihq.
I really don't want to rely upon finding this in some source code, or
relying upon the naming convention used above.
It's an RPG program utilizing this:
/include routines/qrpglesrc,ifsio_h
/include routines/qapisrc,qp0lstdi_h
A little review shows that this may be utilized. (I didn't write this
program and assume it's downloaded code standing on the shoulders of
giants.)
https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_74/apis/qgetattr.htm
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1
Group Dekko
Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
Patrik Schindler
Sent: Tuesday, November 12, 2019 9:45 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: DSKIFS job takes a long time on occasion.
CAUTION: This email originated from outside of the organization. Do not
click links or open attachments unless you recognize the sender and know
the content is safe.
Hello Rob,
Am 12.11.2019 um 14:59 schrieb Rob Berendt <rob@xxxxxxxxx>:
Is there an attribute on a directory which says that it is an NFSmount? I'd rather not rely upon some naming convention or other such
standard to determine this.
I searched for that a bit, because in Linux I'd parse the output from the
"mount -t nfs" command to see where NFS filesystems start in the hierarchy.
Unfortunately, there's no "mount" in PASE and also no /etc/mtab. So no
avail this way.
Perhaps there are IFS APIs to look at, to see which filesystem is mounted
where. A quick search revealed nothing helpful so far, but I really did
only a quick search. Even in GO CMDMFS, there's no "work with".
Also, a call to the C "stat" function is supposed to give you an ID of the
device containing file. No idea where to go from here, though. (To map this
ID back to something helpful for determining if that "device" resembles an
NFS mount.)
Maybe this gets you a few starting points to dig deeper into.
A job which used to run in just a few minutes now takes 18 hours.
NFS was never quick in OS/400 and it's successors. ;-)
If you can describe what the job does and in wich environment it runs,
maybe there will raise further ideas how to solve this problem.
:wq! PoC
PGP-Key: DDD3 4ABF 6413 38DE - https://www.pocnet.net/poc-key.asc
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.