Print this page
6063 pkgadd breaks with too many mountpoints


 193 /* instvol.c */
 194 extern void     regfiles_free __P((void));
 195 
 196 /* lockinst.c */
 197 extern int      lockinst __P((char *util_name, char *pkg_name, char *place));
 198 extern void     lockupd __P((char *place));
 199 extern void     unlockinst __P((void));
 200 
 201 extern char     *pathdup __P((char *s));
 202 extern char     *pathalloc __P((int n));
 203 extern char     *fixpath __P((char *path));
 204 extern char     *get_info_basedir __P((void));
 205 extern char     *get_basedir __P((void));
 206 extern char     *get_client_basedir __P((void));
 207 extern int      set_basedirs __P((int reloc, char *adm_basedir,
 208                     char *pkginst, int nointeract));
 209 extern int      eval_path __P((char **server_ptr, char **client_ptr,
 210                     char **map_ptr, char *path));
 211 extern int      get_orig_offset __P((void));
 212 extern char     *get_inst_root __P((void));
 213 extern char     *get_mount_point __P((short n));
 214 extern char     *get_remote_path __P((short n));
 215 extern void     set_env_cbdir __P((void));
 216 extern int      set_inst_root __P((char *path));
 217 extern void     put_path_params __P((void));
 218 extern int      mkpath __P((char *p));
 219 extern void     mkbasedir __P((int flag, char *path));
 220 extern int      is_an_inst_root __P((void));
 221 extern int      is_a_basedir __P((void));
 222 extern int      is_a_cl_basedir __P((void));
 223 extern int      is_relocatable __P((void));
 224 extern char     *orig_path __P((char *path));
 225 extern char     *orig_path_ptr __P((char *path));
 226 extern char     *qreason __P((int caller, int retcode, int started,
 227                         int includeZonename));
 228 extern char     *qstrdup __P((char *s));
 229 extern char     *srcpath __P((char *d, char *p, int part, int nparts));
 230 extern char     *trans_srcp_pi __P((char *local_path));
 231 extern int      copyf __P((char *from, char *to, time_t mytime));
 232 extern int      copyFile __P((int, int, char *, char *, struct stat *, long));
 233 extern int      openLocal __P((char *a_path, int a_oflag, char *a_tmpdir));
 234 extern int      dockdeps __P((char *depfile, int removeFlag,
 235                         boolean_t a_preinstallCheck));
 236 extern int      finalck __P((struct cfent *ept, int attrchg, int contchg,
 237                         boolean_t a_warning));
 238 
 239 /* dockdeps.c */
 240 extern void setUpdate __P((void));
 241 extern int  isUpdate __P((void));
 242 
 243 /* mntinfo.c */
 244 extern int      get_mntinfo __P((int map_client, char *vfstab_file));
 245 extern short    fsys __P((char *path));
 246 extern struct fstable *get_fs_entry __P((short n));
 247 extern int      mount_client __P((void));
 248 extern int      unmount_client __P((void));
 249 extern short    resolved_fsys __P((char *path));
 250 extern char     *get_server_host __P((short n));
 251 extern char     *server_map __P((char *path, short fsys_value));
 252 extern int      use_srvr_map __P((char *path, short *fsys_value));
 253 extern int      use_srvr_map_n __P((short n));
 254 extern int      is_fs_writeable __P((char *path, short *fsys_value));
 255 extern int      is_remote_fs __P((char *path, short *fsys_value));
 256 extern int      is_served __P((char *path, short *fsys_value));
 257 extern int      is_mounted __P((char *path, short *fsys_value));
 258 extern int      is_fs_writeable_n __P((short n));
 259 extern int      is_remote_fs_n __P((short n));
 260 extern int      is_served_n __P((short n));
 261 extern int      is_mounted_n __P((short n));
 262 extern fsblkcnt_t       get_blk_size_n __P((short n));
 263 extern fsblkcnt_t       get_frag_size_n __P((short n));
 264 extern fsblkcnt_t       get_blk_used_n __P((short n));
 265 extern fsblkcnt_t       get_blk_free_n __P((short n));
 266 extern fsblkcnt_t       get_inode_used_n __P((short n));
 267 extern fsblkcnt_t       get_inode_free_n __P((short n));
 268 extern void     set_blk_used_n __P((short n, fsblkcnt_t value));
 269 extern char     *get_source_name_n __P((short n));
 270 extern char     *get_fs_name_n __P((short n));
 271 extern int      load_fsentry __P((struct fstable *fs_entry, char *name,
 272                     char *fstype, char *remote_name));
 273 extern int      isreloc __P((char *pkginstdir));
 274 extern int      is_local_host __P((char *hostname));
 275 extern void     fs_tab_free __P((void));
 276 
 277 /* pkgdbmerg.c */
 278 extern int      pkgdbmerg __P((PKGserver server, VFP_T *tmpvfp,
 279                     struct cfextra **extlist));
 280 extern int      files_installed __P((void));
 281 
 282 /* ocfile.c */
 283 extern int      trunc_tcfile __P((int fd));
 284 extern int      ocfile __P((PKGserver *serverp, VFP_T **tmpvfp,
 285                         fsblkcnt_t map_blks));
 286 extern int      swapcfile __P((PKGserver server, VFP_T **a_tmpvfp,
 287                         char *pkginst, int dbchg));
 288 extern int      set_cfdir __P((char *cfdir));
 289 extern int      socfile __P((PKGserver *server, boolean_t quiet));
 290 extern int      relslock __P((void));




 193 /* instvol.c */
 194 extern void     regfiles_free __P((void));
 195 
 196 /* lockinst.c */
 197 extern int      lockinst __P((char *util_name, char *pkg_name, char *place));
 198 extern void     lockupd __P((char *place));
 199 extern void     unlockinst __P((void));
 200 
 201 extern char     *pathdup __P((char *s));
 202 extern char     *pathalloc __P((int n));
 203 extern char     *fixpath __P((char *path));
 204 extern char     *get_info_basedir __P((void));
 205 extern char     *get_basedir __P((void));
 206 extern char     *get_client_basedir __P((void));
 207 extern int      set_basedirs __P((int reloc, char *adm_basedir,
 208                     char *pkginst, int nointeract));
 209 extern int      eval_path __P((char **server_ptr, char **client_ptr,
 210                     char **map_ptr, char *path));
 211 extern int      get_orig_offset __P((void));
 212 extern char     *get_inst_root __P((void));
 213 extern char     *get_mount_point __P((uint32_t n));
 214 extern char     *get_remote_path __P((uint32_t n));
 215 extern void     set_env_cbdir __P((void));
 216 extern int      set_inst_root __P((char *path));
 217 extern void     put_path_params __P((void));
 218 extern int      mkpath __P((char *p));
 219 extern void     mkbasedir __P((int flag, char *path));
 220 extern int      is_an_inst_root __P((void));
 221 extern int      is_a_basedir __P((void));
 222 extern int      is_a_cl_basedir __P((void));
 223 extern int      is_relocatable __P((void));
 224 extern char     *orig_path __P((char *path));
 225 extern char     *orig_path_ptr __P((char *path));
 226 extern char     *qreason __P((int caller, int retcode, int started,
 227                         int includeZonename));
 228 extern char     *qstrdup __P((char *s));
 229 extern char     *srcpath __P((char *d, char *p, int part, int nparts));
 230 extern char     *trans_srcp_pi __P((char *local_path));
 231 extern int      copyf __P((char *from, char *to, time_t mytime));
 232 extern int      copyFile __P((int, int, char *, char *, struct stat *, long));
 233 extern int      openLocal __P((char *a_path, int a_oflag, char *a_tmpdir));
 234 extern int      dockdeps __P((char *depfile, int removeFlag,
 235                         boolean_t a_preinstallCheck));
 236 extern int      finalck __P((struct cfent *ept, int attrchg, int contchg,
 237                         boolean_t a_warning));
 238 
 239 /* dockdeps.c */
 240 extern void setUpdate __P((void));
 241 extern int  isUpdate __P((void));
 242 
 243 /* mntinfo.c */
 244 extern int      get_mntinfo __P((int map_client, char *vfstab_file));
 245 extern uint32_t fsys __P((char *path));
 246 extern struct fstable *get_fs_entry __P((uint32_t n));
 247 extern int      mount_client __P((void));
 248 extern int      unmount_client __P((void));
 249 extern uint32_t resolved_fsys __P((char *path));
 250 extern char     *get_server_host __P((uint32_t n));
 251 extern char     *server_map __P((char *path, uint32_t fsys_value));
 252 extern int      use_srvr_map __P((char *path, uint32_t *fsys_value));
 253 extern int      use_srvr_map_n __P((uint32_t n));
 254 extern int      is_fs_writeable __P((char *path, uint32_t *fsys_value));
 255 extern int      is_remote_fs __P((char *path, uint32_t *fsys_value));
 256 extern int      is_served __P((char *path, uint32_t *fsys_value));
 257 extern int      is_mounted __P((char *path, uint32_t *fsys_value));
 258 extern int      is_fs_writeable_n __P((uint32_t n));
 259 extern int      is_remote_fs_n __P((uint32_t n));
 260 extern int      is_served_n __P((uint32_t n));
 261 extern int      is_mounted_n __P((uint32_t n));
 262 extern fsblkcnt_t       get_blk_size_n __P((uint32_t n));
 263 extern fsblkcnt_t       get_frag_size_n __P((uint32_t n));
 264 extern fsblkcnt_t       get_blk_used_n __P((uint32_t n));
 265 extern fsblkcnt_t       get_blk_free_n __P((uint32_t n));
 266 extern fsblkcnt_t       get_inode_used_n __P((uint32_t n));
 267 extern fsblkcnt_t       get_inode_free_n __P((uint32_t n));
 268 extern void     set_blk_used_n __P((uint32_t n, fsblkcnt_t value));
 269 extern char     *get_source_name_n __P((uint32_t n));
 270 extern char     *get_fs_name_n __P((uint32_t n));
 271 extern int      load_fsentry __P((struct fstable *fs_entry, char *name,
 272                     char *fstype, char *remote_name));
 273 extern int      isreloc __P((char *pkginstdir));
 274 extern int      is_local_host __P((char *hostname));
 275 extern void     fs_tab_free __P((void));
 276 
 277 /* pkgdbmerg.c */
 278 extern int      pkgdbmerg __P((PKGserver server, VFP_T *tmpvfp,
 279                     struct cfextra **extlist));
 280 extern int      files_installed __P((void));
 281 
 282 /* ocfile.c */
 283 extern int      trunc_tcfile __P((int fd));
 284 extern int      ocfile __P((PKGserver *serverp, VFP_T **tmpvfp,
 285                         fsblkcnt_t map_blks));
 286 extern int      swapcfile __P((PKGserver server, VFP_T **a_tmpvfp,
 287                         char *pkginst, int dbchg));
 288 extern int      set_cfdir __P((char *cfdir));
 289 extern int      socfile __P((PKGserver *server, boolean_t quiet));
 290 extern int      relslock __P((void));