Option setting for maxdsndirlevels

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
cjpete8
Posts: 13
Joined: Thu Aug 08, 2013 10:11 am

Option setting for maxdsndirlevels

Post by cjpete8 »

What are the values that can be coded for option maxdsndirlevels? Is zero a valid value?
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Re: Option setting for maxdsndirlevels

Post by dovetail »

More information on the setting can be found here:
http://dovetail.com/docs/sftp/dsn-deter ... ndirlevels

but I notice that we don't list the option in the tables with all of the other options, nor do we list the default.
We will correct this.

The default is "NOmaxdsndirlevels", which means that this feature is not enabled.
Also, if you set maxdsndirlevels=0 then the feature will be disabled.
cjpete8
Posts: 13
Joined: Thu Aug 08, 2013 10:11 am

Re: Option setting for maxdsndirlevels

Post by cjpete8 »

I had read the doc in the manual, but I was more concerned with what the values can be set at.
Also, I'm thinking of setting maxdsndirlevels to 1 or 2 at a system wide level so it will always assume a dataset vs a directory. Do you see any issues with do this?
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Re: Option setting for maxdsndirlevels

Post by dovetail »

I don't see a problem doing this with a new setup. maxdsndirlevels=2 seems like a good default.

You would have to be careful if you changed the site-wide default - you could in theory break jobs or remote clients that depending on doing a "cd" to a level > maxdsndirlevels.
Post Reply