Searched refs:SA_MAX_RESOURCE_NAME (Results 1 - 5 of 5) sorted by relevance

/illumos-gate/usr/src/lib/libshare/common/
H A Dlibshare.h105 #define SA_MAX_RESOURCE_NAME 255 /* Maximum length of resource name */ macro
H A Dlibsharecore.c2232 * Resource names are restricted to SA_MAX_RESOURCE_NAME characters.
2261 * path is no longer than SA_MAX_RESOURCE_NAME.
2264 while ((q != NULL) && (strlen(q) > SA_MAX_RESOURCE_NAME)) {
2272 * If the path is still longer than SA_MAX_RESOURCE_NAME,
2273 * take the trailing SA_MAX_RESOURCE_NAME characters.
2275 if ((len = strlen(p)) > SA_MAX_RESOURCE_NAME) {
2276 len = SA_MAX_RESOURCE_NAME;
2277 p = strchr(p, '\0') - (SA_MAX_RESOURCE_NAME - 1);
H A Dlibshare_zfs.c528 char buff[SA_MAX_RESOURCE_NAME + 1];
531 (void) snprintf(buff, SA_MAX_RESOURCE_NAME, "%s", dataset);
/illumos-gate/usr/src/lib/libshare/smb/
H A Dlibshare_smb.c264 if (len == 0 || len > SA_MAX_RESOURCE_NAME)
1705 char buf[SA_MAX_RESOURCE_NAME + 1];
1707 size_t bufsz = SA_MAX_RESOURCE_NAME + 1;
/illumos-gate/usr/src/cmd/dfs.cmds/sharemgr/
H A Dcommands.c98 if (len == 0 || len > SA_MAX_RESOURCE_NAME)
943 while (cp != NULL && strlen(cp) > SA_MAX_RESOURCE_NAME) {
950 /* just take last SA_MAX_RESOURCE_NAME chars */
951 len = 1 + strlen(path) - SA_MAX_RESOURCE_NAME;
952 (void) memmove(path, path + len, SA_MAX_RESOURCE_NAME);
953 path[SA_MAX_RESOURCE_NAME] = '\0';

Completed in 82 milliseconds