Lines Matching defs:uniq
59 static int googlefs_create_gen(fs_volume *_volume, fs_node *dir, const char *name, int omode, int perms, ino_t *vnid, fs_node **node, struct attr_entry *iattrs, bool mkdir, bool uniq);
658 * @param name name to mkdir (basename is uniq is set)
663 * @param uniq choose an unique name, appending a number if required
665 static int googlefs_create_gen(fs_volume *_volume, fs_node *dir, const char *name, int omode, int perms, ino_t *vnid, fs_node **node, struct attr_entry *iattrs, bool mkdir, bool uniq)
673 TRACE((PFS"create_gen(%ld, %Ld, '%s', 0x%08lx, %c, %c)\n", ns->nsid, dir->vnid, name, omode, mkdir?'t':'f', uniq?'t':'f'));
686 if (n && (omode & O_EXCL) && !uniq) /* already existing entry in there! */
692 for (i = 1; uniq && n && i < 5000; i++) { /* uniquify the name */
700 if (n && (uniq || mkdir)) /* still there! */
873 static int googlefs_mkdir_gen(fs_volume *_volume, fs_vnode *_dir, const char *name, int perms, fs_node **node, bool uniq)
880 TRACE((PFS"mkdir_gen(%ld, %Ld, '%s', 0x%08lx, %c)\n", ns->nsid, dir->vnid, name, perms, uniq?'t':'f'));
893 if (n && !uniq) /* already existing entry in there! */