2 * Copyright (C) 1997, 2006 Free Software Foundation, Inc.
3 * Copyright (C) 2013 Steven McDonald <steven@steven-mcdonald.id.au>
5 * ftpfs translator written by Miles Bader <miles@gnu.ai.mit.edu>
6 * Modified for trovefs by Steven McDonald <steven@steven-mcdonald.id.au>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2, or (at your option)
13 * This software is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
25 #include <hurd/netfs.h>
29 trovefs_create_node (struct trovefs_dir_entry *e, const char *rmt_path, struct node **node)
32 struct netnode *nn = malloc (sizeof (struct netnode));
42 nn->rmt_path = strdup (rmt_path);
43 nn->ncache_next = nn->ncache_prev = 0;
45 new = netfs_make_node (nn);
52 pthread_spin_lock (&nn->fs->inode_mappings_lock);
53 err = hurd_ihash_add (&nn->fs->inode_mappings, e->stat.st_ino, e);
54 pthread_spin_unlock (&nn->fs->inode_mappings_lock);