Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number of DSCB in DASDLOAD(64) too small? #566

Closed
peter-sylvester opened this issue May 18, 2023 · 5 comments
Closed

Number of DSCB in DASDLOAD(64) too small? #566

peter-sylvester opened this issue May 18, 2023 · 5 comments
Assignees
Labels
Enhancement This issue does not describe a problem but rather describes a suggested change or improvement.

Comments

@peter-sylvester
Copy link

peter-sylvester commented May 18, 2023

The dasdload utility allows for a maximum of 1000 dscbs. This doesn't allow to put for example the whole CBT tape on a disk. Is there a reason not to increase this number?

@Fish-Git
Copy link
Member

Fish-Git commented May 18, 2023

Is there a reason not to increase this number?

None whatsoever. It is currently a hard coded constant value, which IMHO it shouldn't be. The only hard coded value should be the default number of DSCBs, but the user should be able to override that value via a command line option.

I'll get right on that for you, Peter. Thanks for reporting it.

@Fish-Git Fish-Git self-assigned this May 18, 2023
@Fish-Git Fish-Git added BUG The issue describes likely incorrect product functionality that likely needs corrected. Enhancement This issue does not describe a problem but rather describes a suggested change or improvement. IN PROGRESS... I'm working on it! (Or someone else is!) labels May 18, 2023
@Fish-Git
Copy link
Member

Peter, (@peter-sylvester)

Can you provide a simple repro for me that triggers the problem? I'd like to test my changes before committing them.

Thanks!

@Fish-Git
Copy link
Member

FYI: I have the necessary changes (I hope!) ready to commit, but am reluctant to do so until I can verify it correctly addresses the problem. Since I am quite unfamiliar with dasdload (having never in my life ever used it), I would appreciate being provided with a simple test case that reproduces the problem so I can verify my changes do indeed correct it.

Since it's only been 18 hours since I made my original request for a repro (and thus you may not have even seen it yet!), I'll go ahead and wait for another 2 or maybe 3 days before committing my changes anyway if I don't hear back from you by then. Thanks.

@Fish-Git Fish-Git added QUESTION... A question was asked but has not been answered yet, -OR- additional feedback is requested. Waiting to close... Waiting for user to report back whether problem still exists or not before closing as resolved. and removed IN PROGRESS... I'm working on it! (Or someone else is!) labels May 19, 2023
@peter-sylvester
Copy link
Author

peter-sylvester commented May 20, 2023

I just spent a few days of vacation with very limited access to Internet. Now I'm heading back home at 300km/h on a TGV with good wifi.

I seem to understand that you have copied the common code into dasdload2.h. That's good IMHO.

The offending line is the #define MAXDSCB 1000. This constant is used to allocate a table of pointers. I simply increased the value to 5000. Making this another parameter doesn't seem necessary (to me).

To test you can use a (not so) small ctrl file:

ONEBIG 3390 
test.f1 seq  myfile TRK 1 1 0 PS FB 80 800
test.f2 seq  myfile TRK 1 1 0 PS FB 80 800
...
test.1001 seq myfile TRK 1 1 0 PS FB 80 800

always with the same small myfile from which the content is taken. It should complain on the 1001st entry unless MAXDSCB is made bigger.

Fish-Git added a commit that referenced this issue May 20, 2023
@Fish-Git
Copy link
Member

To test you can use a (not so) small ctrl file:
[...]
always with the same small myfile from which the content is taken. It should complain on the 1001st entry unless MAXDSCB is made bigger.

Thanks! Problem fixed by commit 8f6ccf2.

Please refer to updated "hercload.html" file.

Closing.

@Fish-Git Fish-Git added (*WON'T FIX*) The requested change was rejected or the described behavior is by design. and removed BUG The issue describes likely incorrect product functionality that likely needs corrected. QUESTION... A question was asked but has not been answered yet, -OR- additional feedback is requested. Waiting to close... Waiting for user to report back whether problem still exists or not before closing as resolved. (*WON'T FIX*) The requested change was rejected or the described behavior is by design. labels Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement This issue does not describe a problem but rather describes a suggested change or improvement.
Projects
None yet
Development

No branches or pull requests

2 participants