Lines Matching defs:to

4  * The contents of this file are subject to the terms of the
76 * These values determine whether we will try to read a file or dir;
77 * they may be patched via /etc/system to allow users to read
85 * directory name lookup cache. The default is for the cache to be used.
91 * is to be assumed. If false (which it is by default), then when
93 * entries to be sorted (as the spec requires), and so cannot terminate
95 * non-compliant disks. This variable exists to revert to the old
96 * behavior in case someone relies on this. This option is expected to be
99 * Use "set hsfs:strict_iso9660_ordering = 1" in /etc/system to override.
104 * This tunable allows us to ignore inode numbers from rrip-1.12.
105 * In this case, we fall back to our default inode algorithm.
117 static int uppercase_cp(char *from, char *to, int size);
119 static int hs_iso_copy(char *from, char *to, int size);
172 * nhsnode, the allocate and free logic will try to reduce the number
173 * of allocated nodes by returning unreferenced nodes to the kmem_cache
240 * Free the node. Force it to be fully freed
241 * by setting the 3rd arg (nopage) to 1.
252 * Add an hsnode to the end of the free list.
288 * cache), call kmem_cache_alloc to get a new hsnode from
370 * check the directory offset for the file to avoid caching the
371 * meta data for all zero sized to the first zero sized file that
526 * Construct the data that allows us to re-read the meta data without
528 * entry, this should point to the canonical dirent, the "."
530 * to by all directory entries for that dir (including the ".")
532 * In the case of a file, simply point to the dirent for that
533 * file (there are hard links in Rock Ridge, so we need to use
534 * different data to contruct the node id).
554 * end up mapping all of them to the same node.
556 * map all files to the same meta data.
575 * to the same conclusion and just put one in. Upgrade
576 * our lock to a write lock and look again.
593 * and don't want 2 references to same symlink.
598 * No need to hold any lock because hsnode is not
654 * If the vnode does not have any pages, release the hsnode to the
658 * when the code is guaranteed to go through the path where the
660 * on the free list (and where the free lock would need to be acquired).
700 hs_addfreeb(fsp, hp); /* add to back of free list */
722 /* Convert to sector and offset */
812 * fold it to upper case.
871 * bit into the dir, and need to wrap around and
900 * If we found the entry, add it to the DNLC
902 * we enter the device vnode to the cache since that is what
905 * always point to the same device.
1006 * SUA susp to look at.
1063 * Fall back to the ISO name. Note that as in process_dirblock,
1066 * are NOT identical to fsp->hsfs_namemax on this filesystem.
1098 * has been truncated to fsp->hsfs_namemax.
1129 * Delete trailing blanks, upper-to-lower case, add NULL terminator.
1135 hs_namecopy(char *from, char *to, int size, ulong_t flags)
1147 *to++ = '.';
1148 *to = '\0';
1151 *to++ = '.';
1152 *to++ = '.';
1153 *to = '\0';
1172 to[i] = c;
1176 to[i] = '\0';
1192 hs_jnamecopy(char *from, char *to, int size, int maxsize, ulong_t flags)
1203 *to++ = '.';
1204 *to = '\0';
1207 *to++ = '.';
1208 *to++ = '.';
1209 *to = '\0';
1229 to[len] = '\0';
1233 amt = hs_ucs2_2_utf8(c, (uint8_t *)&to[len]);
1240 to[len] = '\0';
1245 * map a filename to upper case;
1250 * to create an intermedia name from on disk file names for
1254 uppercase_cp(char *from, char *to, int size)
1266 *to++ = c;
1274 * map a UCS-2 filename to UTF-8;
1279 * to create an intermedia name from on disk file names for
1283 hs_joliet_cp(char *from, char *to, int size)
1292 *to = *from;
1299 amt = hs_ucs2_2_utf8(c, (uint8_t *)to);
1305 to += amt;
1329 * Map to upper case.
1333 * to create an intermediate name from the callers name from hsfs_lookup()
1337 hs_uppercase_copy(char *from, char *to, int size)
1345 *to = '\0';
1348 *to = '\1';
1356 *to++ = c;
1371 * to create an intermediate name from the callers name from hsfs_lookup()
1374 hs_iso_copy(char *from, char *to, int size)
1382 *to = '\0';
1385 *to = '\1';
1391 *to++ = c;
1446 char *nm, /* upcase nm to compare against */
1494 * according to ISO9660, but we cannot rely on this
1497 * We therefore have to check for consistency:
1512 * Advance to the next sector boundary
1525 * plausibility and reset it to a safe value, in case
1528 * is invalid/nonexistant, we must make sure not to
1529 * blow the bounds and initialize dnamelen to a sensible
1531 * In addition to that, the ISO filename is part of the
1533 * to fit, the record is invalid and we'll advance to
1559 * from the SUA area to rrip_name_str. If no Alternate
1592 * XXX a decimal number in the range 1 to 32767.
1663 * Need to do an fbrelse() on the buffer,
1664 * as hs_makenode() may try to acquire
1795 * Convert the 16-bit character to a 32-bit character
1801 * to a 32-bit wide character