112 |
|
|
113 |
/* Parse our command line arguments. */ |
/* Parse our command line arguments. */ |
114 |
argp_parse (&argp, argc, argv, ARGP_IN_ORDER, 0, 0); |
argp_parse (&argp, argc, argv, ARGP_IN_ORDER, 0, 0); |
115 |
|
|
116 |
task_get_bootstrap_port (mach_task_self (), &bootstrap); |
task_get_bootstrap_port (mach_task_self (), &bootstrap); |
117 |
netfs_init (); |
netfs_init (); |
118 |
|
|
147 |
netfs_root_node->nn_stat.st_ino = 2; |
netfs_root_node->nn_stat.st_ino = 2; |
148 |
netfs_root_node->nn_stat.st_mode = |
netfs_root_node->nn_stat.st_mode = |
149 |
S_IFDIR | (ul_stat.st_mode & ~S_IFMT & ~S_ITRANS); |
S_IFDIR | (ul_stat.st_mode & ~S_IFMT & ~S_ITRANS); |
150 |
|
netfs_root_node->nn_translated = 0; |
151 |
|
|
152 |
/* If the underlying node isn't a directory, propagate read permission to |
/* If the underlying node isn't a directory, propagate read permission to |
153 |
execute permission since we need that for lookups. */ |
execute permission since we need that for lookups. */ |
163 |
|
|
164 |
fshelp_touch (&netfs_root_node->nn_stat, TOUCH_ATIME|TOUCH_MTIME|TOUCH_CTIME, |
fshelp_touch (&netfs_root_node->nn_stat, TOUCH_ATIME|TOUCH_MTIME|TOUCH_CTIME, |
165 |
hostmux_maptime); |
hostmux_maptime); |
166 |
|
|
167 |
for (;;) /* ?? */ |
for (;;) /* ?? */ |
168 |
netfs_server_loop (); |
netfs_server_loop (); |
169 |
} |
} |