Highlighted
prupesh Absent Member.
Absent Member.
895 views

Using zAPI zCreate to create files in DOS and MAC name space

I want to use zAPI zCreate to create files in DOS and MAC namespaces on a NSS volume which is presently in LONG name space.
I have called zCreate as:
				ccode= zCreate(volKey, TaskId, zNILXID, nameSpace | zMODE_UTF8, 
file_path_create, zFILE_REGULAR, 0, 0, zRR_READ_ACCESS | zRR_WRITE_ACCESS, &file_key);



To create file in DOS name space when I pass the file path as "NSS_VOL:/USERS/dos_fileee" then I get error 20403( zERR_INVALID_NAME).

To create file in MAC name space when I pass the file path as "NSS_VOL:/USERS/mac_fileee" then I get no error but file is not created.

How to use zCreate to create files in DOS and MAC namespaces on a NSS volume?
Labels (2)
Tags (1)
0 Likes
3 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Using zAPI zCreate to create files in DOS and MAC name space

prupesh,

It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

Has your problem been resolved? If not, you might try one of the following options:

- Visit http://www.novell.com/support and search the knowledgebase and/or check all
the other self support options and support programs available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.novell.com)

Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.novell.com/faq.php

If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your Novell Forums Team
http://forums.novell.com


0 Likes
johnbaird Absent Member.
Absent Member.

Re: Using zAPI zCreate to create files in DOS and MAC name s

A DOS file name must comply with the 8.3 format and would normally be uppercase e.g. "NSS_VOL:/USERS/DOS_FILE" or "NSS_VOL:/USERS/DOS_FILE.TXT".

I assume you are trying to create a mac file on an OES Linux NSS volume. Here you do not automatically have the 4 name spaces (DOS, long, Mac, NFS) available on NSS on NetWare. The default name space is long. I'm not 100% sure of my facts here but I think only one name space can be used on a volume and that there is a volume setting allowing the desired name space to be specified.

HTH, John
0 Likes
Micro Focus Expert
Micro Focus Expert

Re: Using zAPI zCreate to create files in DOS and MAC name s

Hi,

If you run nssmu in a terminal session on the server, go to volumes, select the volume in question, on the "Logical Volume Information" screen that displays you will have an entry "Supported Name Sapce(s) field. This should show something like this: Dos Mac Unix Long

Under Name Space it will show what your "primary" name space is set to, and here you can only specify one type of name space.

Cheers,
Laura Buckley

Views/comments expressed here are entirely my own.
If you find this post helpful, please show your appreciation and click on "Like" below...
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.