]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
death to trailing whitespace BP--openafs-stable-1_6_x
authorMarcus Watts <mdw@umich.edu>
Tue, 17 Aug 2010 03:52:36 +0000 (23:52 -0400)
committerDerrick Brashear <shadow@dementia.org>
Tue, 17 Aug 2010 04:32:53 +0000 (21:32 -0700)
if we're gonna clean up...

Change-Id: I5ab03f29468577b62dacab41a67eadfd8c43f812
Reviewed-on: http://gerrit.openafs.org/2463
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
1319 files changed:
src/JAVA/libjafs/Internal.h
src/WINNT/afs_setup_utils/animate_icon.h
src/WINNT/afs_setup_utils/forceremove.h
src/WINNT/afs_setup_utils/progress_dlg.h
src/WINNT/afs_setup_utils/resource.h
src/WINNT/afs_setup_utils/sutil.h
src/WINNT/afsadmsvr/TaAfsAdmSvr.h
src/WINNT/afsadmsvr/TaAfsAdmSvrCallback.h
src/WINNT/afsadmsvr/TaAfsAdmSvrClient.h
src/WINNT/afsadmsvr/TaAfsAdmSvrClientBind.h
src/WINNT/afsadmsvr/TaAfsAdmSvrClientCache.h
src/WINNT/afsadmsvr/TaAfsAdmSvrClientInternal.h
src/WINNT/afsadmsvr/TaAfsAdmSvrClientNotify.h
src/WINNT/afsadmsvr/TaAfsAdmSvrClientPing.h
src/WINNT/afsadmsvr/TaAfsAdmSvrCommon.h
src/WINNT/afsadmsvr/TaAfsAdmSvrDebug.h
src/WINNT/afsadmsvr/TaAfsAdmSvrGeneral.h
src/WINNT/afsadmsvr/TaAfsAdmSvrInternal.h
src/WINNT/afsadmsvr/TaAfsAdmSvrProperties.h
src/WINNT/afsadmsvr/TaAfsAdmSvrSearch.h
src/WINNT/afsadmsvr/resource.h
src/WINNT/afsapplib/afsapplib.h
src/WINNT/afsapplib/al_admsvr.h
src/WINNT/afsapplib/al_dynlink.h
src/WINNT/afsapplib/al_messages.h
src/WINNT/afsapplib/al_progress.h
src/WINNT/afsapplib/al_resource.h
src/WINNT/afsapplib/al_wizard.h
src/WINNT/afsapplib/checklist.h
src/WINNT/afsapplib/ctl_date.h
src/WINNT/afsapplib/ctl_elapsed.h
src/WINNT/afsapplib/ctl_sockaddr.h
src/WINNT/afsapplib/ctl_spinner.h
src/WINNT/afsapplib/ctl_time.h
src/WINNT/afsapplib/dialog.h
src/WINNT/afsapplib/fastlist.h
src/WINNT/afsapplib/hashlist.h
src/WINNT/afsapplib/regexp.h
src/WINNT/afsapplib/resize.h
src/WINNT/afsapplib/settings.h
src/WINNT/afsapplib/subclass.h
src/WINNT/afsclass/afsclass.h
src/WINNT/afsclass/afsclassfn.h
src/WINNT/afsclass/c_agg.h
src/WINNT/afsclass/c_cell.h
src/WINNT/afsclass/c_debug.h
src/WINNT/afsclass/c_grp.h
src/WINNT/afsclass/c_ident.h
src/WINNT/afsclass/c_identlist.h
src/WINNT/afsclass/c_notify.h
src/WINNT/afsclass/c_set.h
src/WINNT/afsclass/c_svc.h
src/WINNT/afsclass/c_svr.h
src/WINNT/afsclass/c_usr.h
src/WINNT/afsclass/internal.h
src/WINNT/afsclass/worker.h
src/WINNT/afsd/afsd.h
src/WINNT/afsd/afsd_flushvol.h
src/WINNT/afsd/afsd_init.h
src/WINNT/afsd/afsdicon.h
src/WINNT/afsd/afskfw-int.h
src/WINNT/afsd/afskfw.h
src/WINNT/afsd/cm.h
src/WINNT/afsd/cm_access.h
src/WINNT/afsd/cm_aclent.h
src/WINNT/afsd/cm_btree.h
src/WINNT/afsd/cm_buf.h
src/WINNT/afsd/cm_callback.h
src/WINNT/afsd/cm_cell.h
src/WINNT/afsd/cm_config.h
src/WINNT/afsd/cm_conn.h
src/WINNT/afsd/cm_daemon.h
src/WINNT/afsd/cm_dcache.h
src/WINNT/afsd/cm_dir.h
src/WINNT/afsd/cm_dnlc.h
src/WINNT/afsd/cm_dns.h
src/WINNT/afsd/cm_dns_private.h
src/WINNT/afsd/cm_ioctl.h
src/WINNT/afsd/cm_memmap.h
src/WINNT/afsd/cm_nls.h
src/WINNT/afsd/cm_performance.h
src/WINNT/afsd/cm_rpc.h
src/WINNT/afsd/cm_scache.h
src/WINNT/afsd/cm_server.h
src/WINNT/afsd/cm_user.h
src/WINNT/afsd/cm_utils.h
src/WINNT/afsd/cm_vnodeops.h
src/WINNT/afsd/cm_volstat.h
src/WINNT/afsd/cm_volume.h
src/WINNT/afsd/fs.h
src/WINNT/afsd/fs_utils.h
src/WINNT/afsd/krb.h
src/WINNT/afsd/krb_prot.h
src/WINNT/afsd/smb.h
src/WINNT/afsd/smb3.h
src/WINNT/afsd/smb_iocons.h
src/WINNT/afsd/smb_ioctl.h
src/WINNT/afslegal/resource.h
src/WINNT/afsreg/afsreg.h
src/WINNT/afsreg/afssw.h
src/WINNT/afsreg/syscfg.h
src/WINNT/afsreg/vptab.h
src/WINNT/afssvrcfg/admin_info_dlg.h
src/WINNT/afssvrcfg/afscfg.h
src/WINNT/afssvrcfg/cfg_utils.h
src/WINNT/afssvrcfg/char_conv.h
src/WINNT/afssvrcfg/config.h
src/WINNT/afssvrcfg/create_partition_dlg.h
src/WINNT/afssvrcfg/get_cur_config.h
src/WINNT/afssvrcfg/get_pw_dlg.h
src/WINNT/afssvrcfg/graphics.h
src/WINNT/afssvrcfg/hourglass.h
src/WINNT/afssvrcfg/logfile.h
src/WINNT/afssvrcfg/partition_utils.h
src/WINNT/afssvrcfg/resource.h
src/WINNT/afssvrcfg/salvage_results_dlg.h
src/WINNT/afssvrcfg/toolbox.h
src/WINNT/afssvrcfg/validation.h
src/WINNT/afssvrcfg/volume_utils.h
src/WINNT/afssvrcpa/cpl_interface.h
src/WINNT/afssvrcpa/resource.h
src/WINNT/afssvrmgr/action.h
src/WINNT/afssvrmgr/agg_col.h
src/WINNT/afssvrmgr/agg_general.h
src/WINNT/afssvrmgr/agg_prop.h
src/WINNT/afssvrmgr/agg_tab.h
src/WINNT/afssvrmgr/alert.h
src/WINNT/afssvrmgr/cmdline.h
src/WINNT/afssvrmgr/columns.h
src/WINNT/afssvrmgr/command.h
src/WINNT/afssvrmgr/creds.h
src/WINNT/afssvrmgr/dispatch.h
src/WINNT/afssvrmgr/dispguts.h
src/WINNT/afssvrmgr/display.h
src/WINNT/afssvrmgr/exportcl.h
src/WINNT/afssvrmgr/general.h
src/WINNT/afssvrmgr/helpfunc.h
src/WINNT/afssvrmgr/messages.h
src/WINNT/afssvrmgr/options.h
src/WINNT/afssvrmgr/prefs.h
src/WINNT/afssvrmgr/problems.h
src/WINNT/afssvrmgr/propcache.h
src/WINNT/afssvrmgr/resource.h
src/WINNT/afssvrmgr/set_clone.h
src/WINNT/afssvrmgr/set_col.h
src/WINNT/afssvrmgr/set_create.h
src/WINNT/afssvrmgr/set_createrep.h
src/WINNT/afssvrmgr/set_delete.h
src/WINNT/afssvrmgr/set_dump.h
src/WINNT/afssvrmgr/set_general.h
src/WINNT/afssvrmgr/set_move.h
src/WINNT/afssvrmgr/set_prop.h
src/WINNT/afssvrmgr/set_quota.h
src/WINNT/afssvrmgr/set_release.h
src/WINNT/afssvrmgr/set_rename.h
src/WINNT/afssvrmgr/set_repprop.h
src/WINNT/afssvrmgr/set_restore.h
src/WINNT/afssvrmgr/set_tab.h
src/WINNT/afssvrmgr/subset.h
src/WINNT/afssvrmgr/svc_col.h
src/WINNT/afssvrmgr/svc_create.h
src/WINNT/afssvrmgr/svc_delete.h
src/WINNT/afssvrmgr/svc_general.h
src/WINNT/afssvrmgr/svc_prop.h
src/WINNT/afssvrmgr/svc_startstop.h
src/WINNT/afssvrmgr/svc_tab.h
src/WINNT/afssvrmgr/svc_viewlog.h
src/WINNT/afssvrmgr/svr_address.h
src/WINNT/afssvrmgr/svr_col.h
src/WINNT/afssvrmgr/svr_execute.h
src/WINNT/afssvrmgr/svr_general.h
src/WINNT/afssvrmgr/svr_getdates.h
src/WINNT/afssvrmgr/svr_hosts.h
src/WINNT/afssvrmgr/svr_install.h
src/WINNT/afssvrmgr/svr_prop.h
src/WINNT/afssvrmgr/svr_prune.h
src/WINNT/afssvrmgr/svr_salvage.h
src/WINNT/afssvrmgr/svr_security.h
src/WINNT/afssvrmgr/svr_syncvldb.h
src/WINNT/afssvrmgr/svr_uninstall.h
src/WINNT/afssvrmgr/svr_window.h
src/WINNT/afssvrmgr/svrmgr.h
src/WINNT/afssvrmgr/task.h
src/WINNT/afssvrmgr/window.h
src/WINNT/afsusrmgr/TaAfsUsrMgr.h
src/WINNT/afsusrmgr/action.h
src/WINNT/afsusrmgr/browse.h
src/WINNT/afsusrmgr/cell_prop.h
src/WINNT/afsusrmgr/cmdline.h
src/WINNT/afsusrmgr/columns.h
src/WINNT/afsusrmgr/command.h
src/WINNT/afsusrmgr/creds.h
src/WINNT/afsusrmgr/display.h
src/WINNT/afsusrmgr/errdata.h
src/WINNT/afsusrmgr/general.h
src/WINNT/afsusrmgr/grp_col.h
src/WINNT/afsusrmgr/grp_create.h
src/WINNT/afsusrmgr/grp_delete.h
src/WINNT/afsusrmgr/grp_prop.h
src/WINNT/afsusrmgr/grp_rename.h
src/WINNT/afsusrmgr/grp_tab.h
src/WINNT/afsusrmgr/helpfunc.h
src/WINNT/afsusrmgr/mch_col.h
src/WINNT/afsusrmgr/mch_create.h
src/WINNT/afsusrmgr/mch_delete.h
src/WINNT/afsusrmgr/mch_tab.h
src/WINNT/afsusrmgr/messages.h
src/WINNT/afsusrmgr/options.h
src/WINNT/afsusrmgr/resource.h
src/WINNT/afsusrmgr/task.h
src/WINNT/afsusrmgr/usr_col.h
src/WINNT/afsusrmgr/usr_cpw.h
src/WINNT/afsusrmgr/usr_create.h
src/WINNT/afsusrmgr/usr_delete.h
src/WINNT/afsusrmgr/usr_prop.h
src/WINNT/afsusrmgr/usr_search.h
src/WINNT/afsusrmgr/usr_tab.h
src/WINNT/afsusrmgr/window.h
src/WINNT/afsusrmgr/winlist.h
src/WINNT/aklog/aklog.h
src/WINNT/client_config/afs_config.h
src/WINNT/client_config/cellservdb.h
src/WINNT/client_config/config.h
src/WINNT/client_config/drivemap.h
src/WINNT/client_config/isadmin.h
src/WINNT/client_config/pagesize.h
src/WINNT/client_config/resource.h
src/WINNT/client_config/tab_advanced.h
src/WINNT/client_config/tab_drives.h
src/WINNT/client_config/tab_general.h
src/WINNT/client_config/tab_hosts.h
src/WINNT/client_config/tab_prefs.h
src/WINNT/client_cpa/cpl_interface.h
src/WINNT/client_cpa/resource.h
src/WINNT/client_creds/advtab.h
src/WINNT/client_creds/afscreds.h
src/WINNT/client_creds/afswiz.h
src/WINNT/client_creds/creds.h
src/WINNT/client_creds/credstab.h
src/WINNT/client_creds/ipaddrchg.h
src/WINNT/client_creds/mounttab.h
src/WINNT/client_creds/resource.h
src/WINNT/client_creds/settings.h
src/WINNT/client_creds/shortcut.h
src/WINNT/client_creds/trayicon.h
src/WINNT/client_creds/window.h
src/WINNT/client_exp/add_acl_entry_dlg.h
src/WINNT/client_exp/add_submount_dlg.h
src/WINNT/client_exp/afs_shl_ext.h
src/WINNT/client_exp/auth_dlg.h
src/WINNT/client_exp/clear_acl_dlg.h
src/WINNT/client_exp/copy_acl_dlg.h
src/WINNT/client_exp/down_servers_dlg.h
src/WINNT/client_exp/fs.h
src/WINNT/client_exp/gui2fs.h
src/WINNT/client_exp/help.h
src/WINNT/client_exp/hourglass.h
src/WINNT/client_exp/klog_dlg.h
src/WINNT/client_exp/make_mount_point_dlg.h
src/WINNT/client_exp/make_symbolic_link_dlg.h
src/WINNT/client_exp/mount_points_dlg.h
src/WINNT/client_exp/msgs.h
src/WINNT/client_exp/partition_info_dlg.h
src/WINNT/client_exp/resource.h
src/WINNT/client_exp/results_dlg.h
src/WINNT/client_exp/set_afs_acl.h
src/WINNT/client_exp/shell_ext.h
src/WINNT/client_exp/stdafx.h
src/WINNT/client_exp/submount_info.h
src/WINNT/client_exp/submounts_dlg.h
src/WINNT/client_exp/symlinks_dlg.h
src/WINNT/client_exp/unlog_dlg.h
src/WINNT/client_exp/volume_inf.h
src/WINNT/client_exp/volume_info.h
src/WINNT/client_osi/basic.h
src/WINNT/client_osi/largeint.h
src/WINNT/client_osi/main.h
src/WINNT/client_osi/osi.h
src/WINNT/client_osi/osibasel.h
src/WINNT/client_osi/osidb.h
src/WINNT/client_osi/osidebug.h
src/WINNT/client_osi/osifd.h
src/WINNT/client_osi/osiltype.h
src/WINNT/client_osi/osiqueue.h
src/WINNT/client_osi/osisleep.h
src/WINNT/client_osi/osistatl.h
src/WINNT/client_osi/osiutils.h
src/WINNT/client_osi/perf.h
src/WINNT/client_osi/trylock.h
src/WINNT/eventlog/logevent.h
src/WINNT/license/multistring.h
src/WINNT/netidmgr_plugin/afscred.h
src/WINNT/netidmgr_plugin/afsfuncs.h
src/WINNT/netidmgr_plugin/afsnewcreds.h
src/WINNT/netidmgr_plugin/afspext.h
src/WINNT/netidmgr_plugin/dynimport.h
src/WINNT/netidmgr_plugin/krb5common.h
src/WINNT/netidmgr_plugin/langres.h
src/WINNT/pthread/pthread.h
src/WINNT/talocale/tal_alloc.h
src/WINNT/talocale/tal_dialog.h
src/WINNT/talocale/tal_string.h
src/WINNT/talocale/talocale.h
src/afs/AIX/osi_inode.h
src/afs/AIX/osi_machdep.h
src/afs/AIX/osi_prototypes.h
src/afs/AIX/osi_vfs.h
src/afs/DARWIN/osi_inode.h
src/afs/DARWIN/osi_machdep.h
src/afs/DARWIN/osi_prototypes.h
src/afs/DFBSD/osi_prototypes.h
src/afs/FBSD/osi_inode.h
src/afs/FBSD/osi_machdep.h
src/afs/FBSD/osi_prototypes.h
src/afs/HPUX/osi_inode.h
src/afs/HPUX/osi_machdep.h
src/afs/IRIX/osi_inode.h
src/afs/IRIX/osi_machdep.h
src/afs/IRIX/osi_prototypes.h
src/afs/IRIX/osi_vfs.h
src/afs/LINUX/osi_machdep.h
src/afs/LINUX/osi_prototypes.h
src/afs/LINUX24/osi_machdep.h
src/afs/LINUX24/osi_prototypes.h
src/afs/OBSD/osi_inode.h
src/afs/OBSD/osi_machdep.h
src/afs/SOLARIS/osi_inode.h
src/afs/SOLARIS/osi_machdep.h
src/afs/SOLARIS/osi_prototypes.h
src/afs/UKERNEL/afs_usrops.h
src/afs/UKERNEL/afsincludes.h
src/afs/UKERNEL/osi_machdep.h
src/afs/UKERNEL/osi_prototypes.h
src/afs/UKERNEL/sysincludes.h
src/afs/afs.h
src/afs/afs_analyze.c
src/afs/afs_axscache.c
src/afs/afs_axscache.h
src/afs/afs_buffer.c
src/afs/afs_bypasscache.c
src/afs/afs_bypasscache.h
src/afs/afs_call.c
src/afs/afs_callback.c
src/afs/afs_cbqueue.c
src/afs/afs_cbqueue.h
src/afs/afs_cell.c
src/afs/afs_chunk.c
src/afs/afs_chunkops.h
src/afs/afs_conn.c
src/afs/afs_daemons.c
src/afs/afs_dcache.c
src/afs/afs_disconnected.c
src/afs/afs_error.c
src/afs/afs_exporter.c
src/afs/afs_icl.c
src/afs/afs_init.c
src/afs/afs_lock.c
src/afs/afs_mariner.c
src/afs/afs_md5.c
src/afs/afs_md5.h
src/afs/afs_memcache.c
src/afs/afs_nfsclnt.c
src/afs/afs_nfsdisp.c
src/afs/afs_osi.c
src/afs/afs_osi.h
src/afs/afs_osi_alloc.c
src/afs/afs_osi_pag.c
src/afs/afs_osi_uio.c
src/afs/afs_osi_vget.c
src/afs/afs_osi_vm.c
src/afs/afs_osidnlc.c
src/afs/afs_osidnlc.h
src/afs/afs_pag_call.c
src/afs/afs_pag_cred.c
src/afs/afs_pioctl.c
src/afs/afs_prototypes.h
src/afs/afs_segments.c
src/afs/afs_server.c
src/afs/afs_stat.c
src/afs/afs_stats.h
src/afs/afs_syscall.c
src/afs/afs_trace.et
src/afs/afs_user.c
src/afs/afs_util.c
src/afs/afs_util.h
src/afs/afs_vcache.c
src/afs/afs_volume.c
src/afs/afs_warn.c
src/afs/afsincludes.h
src/afs/discon.h
src/afs/exporter.h
src/afs/lock.h
src/afs/nfsclient.h
src/afs/sysincludes.h
src/afs/voldefs.h
src/afs/volerrors.h
src/afsd/afsd.c
src/afsd/vsys.c
src/afsmonitor/afsmon-labels.h
src/afsmonitor/afsmon-output.c
src/afsmonitor/afsmon-parselog.c
src/afsmonitor/afsmon-win.c
src/afsmonitor/afsmonitor.c
src/afsmonitor/afsmonitor.h
src/afsweb/apache_afs_cache.c
src/afsweb/apache_afs_cache.h
src/afsweb/apache_afs_client.c
src/afsweb/apache_afs_module.c
src/afsweb/apache_afs_plugin.c
src/afsweb/apache_afs_utils.c
src/afsweb/apache_afs_utils.h
src/afsweb/apache_afs_weblog.c
src/afsweb/apache_api.h
src/afsweb/apache_includes/alloc.h
src/afsweb/apache_includes/buff.h
src/afsweb/apache_includes/conf.h
src/afsweb/apache_includes/http_conf_globals.h
src/afsweb/apache_includes/httpd.h
src/afsweb/nsafs.c
src/afsweb/nsafs.h
src/afsweb/securehash.c
src/afsweb/weblog.c
src/afsweb/weblog_errors.h
src/aklog/aklog.c
src/aklog/aklog.h
src/aklog/asetkey.c
src/aklog/klog.c
src/aklog/krb_util.c
src/aklog/linked_list.c
src/aklog/linked_list.h
src/aklog/skipwrap.h
src/audit/audit.c
src/audit/audit.h
src/auth/acfg_errors.et
src/auth/auth.p.h
src/auth/authcon.c
src/auth/cellconfig.c
src/auth/cellconfig.p.h
src/auth/copyauth.c
src/auth/keys.h
src/auth/ktc.c
src/auth/ktc.h
src/auth/ktc_errors.et
src/auth/ktc_nt.c
src/auth/setkey.c
src/auth/userok.c
src/auth/writeconfig.c
src/bozo/bnode.c
src/bozo/bnode.p.h
src/bozo/bos.c
src/bozo/bos_util.c
src/bozo/boserr.et
src/bozo/bosint.xg
src/bozo/bosoprocs.c
src/bozo/bosprototypes.h
src/bozo/bosserver.c
src/bozo/cronbnodeops.c
src/bozo/ezbnodeops.c
src/bozo/fsbnodeops.c
src/bozo/smail-notifier.c
src/bu_utils/fms.c
src/bubasics/backmon.xg
src/bubasics/bubasics.h
src/bubasics/bumon.xg
src/bubasics/butc.xg
src/bubasics/butc_errs.et
src/bubasics/butm.p.h
src/bubasics/butm_errs.et
src/bubasics/butx_errs.et
src/bubasics/tcdata.p.h
src/bucoord/bc.p.h
src/bucoord/bc_status.c
src/bucoord/btest.c
src/bucoord/bucoord_errs.et
src/bucoord/bucoord_prototypes.h
src/bucoord/commands.c
src/bucoord/config.c
src/bucoord/dlq.c
src/bucoord/dsstub.c
src/bucoord/dsvs.c
src/bucoord/dump.c
src/bucoord/dump_sched.c
src/bucoord/error_macros.h
src/bucoord/expire.c
src/bucoord/main.c
src/bucoord/restore.c
src/bucoord/server.c
src/bucoord/status.c
src/bucoord/tape_hosts.c
src/bucoord/ttest.c
src/bucoord/ubik_db_if.c
src/bucoord/vol_sets.c
src/bucoord/volstub.c
src/budb/budb.rg
src/budb/budb_client.p.h
src/budb/budb_errs.et
src/budb/budb_prototypes.h
src/budb/database.c
src/budb/database.h
src/budb/db_alloc.c
src/budb/db_dump.c
src/budb/db_hash.c
src/budb/db_lock.c
src/budb/db_lock.h
src/budb/db_text.c
src/budb/dbs_dump.c
src/budb/error_macros.h
src/budb/globals.h
src/budb/ol_verify.c
src/budb/procs.c
src/budb/server.c
src/budb/struct_ops.c
src/butc/afsxbsa.c
src/butc/afsxbsa.h
src/butc/butc_prototypes.h
src/butc/butc_xbsa.c
src/butc/butc_xbsa.h
src/butc/common.h
src/butc/dbentries.c
src/butc/dump.c
src/butc/error_macros.h
src/butc/list.c
src/butc/lwps.c
src/butc/read_tape.c
src/butc/recoverDb.c
src/butc/tcmain.c
src/butc/tcprocs.c
src/butc/tcstatus.c
src/butc/tcudbprocs.c
src/butc/tdump.c
src/butc/test.c
src/butc/test_budb.c
src/butm/butm_test.c
src/butm/error_macros.h
src/butm/file_tm.c
src/butm/test_ftm.c
src/cmd/cmd.c
src/cmd/cmd.p.h
src/cmd/cmd_errors.et
src/comerr/com_err.h
src/comerr/compile_et.c
src/comerr/error_table_nt.c
src/comerr/error_table_nt.h
src/comerr/et_lex.lex_nt.c
src/config/afs_args.h
src/config/afs_sysnames.h
src/config/afsconfig-windows.h
src/config/config.c
src/config/debug.h
src/config/icl.h
src/config/mc.c
src/config/mkvers.c
src/config/param.alpha_dux40.h
src/config/param.alpha_dux50.h
src/config/param.alpha_dux51.h
src/config/param.amd64_linux24.h
src/config/param.amd64_linux26.h
src/config/param.amd64_w2k.h
src/config/param.arm_darwin_100.h
src/config/param.hp_ux102.h
src/config/param.hp_ux110.h
src/config/param.hp_ux1123.h
src/config/param.hp_ux11i.h
src/config/param.i386_linux22.h
src/config/param.i386_nt40.h
src/config/param.i386_obsd31.h
src/config/param.i386_obsd32.h
src/config/param.i386_obsd33.h
src/config/param.i386_obsd34.h
src/config/param.i386_obsd35.h
src/config/param.i386_obsd36.h
src/config/param.i386_obsd37.h
src/config/param.i386_obsd38.h
src/config/param.i386_obsd39.h
src/config/param.i386_obsd40.h
src/config/param.i386_obsd41.h
src/config/param.i386_obsd42.h
src/config/param.i386_obsd43.h
src/config/param.i386_obsd44.h
src/config/param.i386_obsd45.h
src/config/param.i386_obsd46.h
src/config/param.i386_umlinux22.h
src/config/param.i386_w2k.h
src/config/param.i64_w2k.h
src/config/param.ia64_hpux1122.h
src/config/param.ia64_hpux1123.h
src/config/param.ia64_linux24.h
src/config/param.ia64_linux26.h
src/config/param.nbsd20.h
src/config/param.nbsd21.h
src/config/param.nbsd30.h
src/config/param.nbsd40.h
src/config/param.nbsd50.h
src/config/param.obsd31.h
src/config/param.obsd32.h
src/config/param.obsd33.h
src/config/param.obsd34.h
src/config/param.obsd35.h
src/config/param.obsd36.h
src/config/param.obsd37.h
src/config/param.obsd38.h
src/config/param.obsd39.h
src/config/param.obsd40.h
src/config/param.obsd41.h
src/config/param.obsd42.h
src/config/param.obsd43.h
src/config/param.obsd44.h
src/config/param.obsd45.h
src/config/param.obsd46.h
src/config/param.rs_aix42.h
src/config/param.rs_aix51.h
src/config/param.rs_aix52.h
src/config/param.rs_aix53.h
src/config/param.rs_aix61.h
src/config/param.s390_linux22.h
src/config/param.s390_linux24.h
src/config/param.s390_linux26.h
src/config/param.s390x_linux24.h
src/config/param.s390x_linux26.h
src/config/param.sgi_65.h
src/config/param.sparc64_linux22.h
src/config/param.sparc64_linux24.h
src/config/param.sparc64_linux26.h
src/config/param.sparc_linux22.h
src/config/param.sparc_linux24.h
src/config/param.sun4_413.h
src/config/param.sun4x_510.h
src/config/param.sun4x_511.h
src/config/param.sun4x_55.h
src/config/param.sun4x_56.h
src/config/param.sun4x_57.h
src/config/param.sun4x_58.h
src/config/param.sun4x_59.h
src/config/param.sunx86_510.h
src/config/param.sunx86_511.h
src/config/param.sunx86_54.h
src/config/param.sunx86_57.h
src/config/param.sunx86_58.h
src/config/param.sunx86_59.h
src/config/param.x86_darwin_100.h
src/config/permit_xprt.h
src/config/stds.h
src/config/touch.c
src/config/util_cr.c
src/config/venus.h
src/config/vioc.h
src/des/cksum.c
src/des/conf-winnt.h
src/des/crypt.c
src/des/des.c
src/des/des_conf.h
src/des/new_rnd_key.c
src/des/stats.h
src/dir/buffer.c
src/dir/dir.c
src/dir/salvage.c
src/export/cfgafs.c
src/export/cfgexport.c
src/export/export.c
src/export/export.h
src/export/sym.h
src/export/symtab.c
src/finale/translate_et.c
src/finale/translate_et_nt.c
src/fsint/afsaux.c
src/fsint/afscbint.xg
src/fsint/afsint.xg
src/fsint/common.xg
src/fsint/pagcb.xg
src/fsprobe/fsprobe.c
src/fsprobe/fsprobe.h
src/fsprobe/fsprobe_callback.c
src/fsprobe/fsprobe_test.c
src/gtx/X11windows.c
src/gtx/cb_test.c
src/gtx/curses_test.c
src/gtx/curseswindows.c
src/gtx/dumbwindows.c
src/gtx/frame.c
src/gtx/gtxX11win.h
src/gtx/gtxcurseswin.h
src/gtx/gtxdumbwin.h
src/gtx/gtxframe.h
src/gtx/gtxinput.h
src/gtx/gtxkeymap.h
src/gtx/gtxlightobj.h
src/gtx/gtxobjdict.h
src/gtx/gtxobjects.h
src/gtx/gtxtest.c
src/gtx/gtxtextcb.h
src/gtx/gtxtextobj.h
src/gtx/gtxwindows.h
src/gtx/input.c
src/gtx/keymap.c
src/gtx/lightobject.c
src/gtx/objdict.c
src/gtx/object_test.c
src/gtx/objects.c
src/gtx/screen_test.c
src/gtx/textcb.c
src/gtx/textobject.c
src/gtx/windows.c
src/kauth/admin_tools.c
src/kauth/authclient.c
src/kauth/client.c
src/kauth/decode_ticket.c
src/kauth/kaaux.c
src/kauth/kaauxdb.c
src/kauth/kadatabase.c
src/kauth/kaerrors.et
src/kauth/kalocalcell.c
src/kauth/kalog.c
src/kauth/kalog.h
src/kauth/kaopcodes.h
src/kauth/kaport.h
src/kauth/kaprocs.c
src/kauth/kas.c
src/kauth/kaserver.c
src/kauth/kaserver.h
src/kauth/kauth.rg
src/kauth/kauth_internal.h
src/kauth/kautils.c
src/kauth/kautils.p.h
src/kauth/kdb.c
src/kauth/kkids.c
src/kauth/klog.c
src/kauth/klogin.c
src/kauth/knfs.c
src/kauth/kpasswd.c
src/kauth/kpwvalid.c
src/kauth/krb_tf.c
src/kauth/krb_udp.c
src/kauth/manyklog.c
src/kauth/rebuild.c
src/kauth/token.c
src/kauth/user.c
src/kauth/user_nt.c
src/kopenafs/kopenafs.c
src/kopenafs/kopenafs.h
src/kopenafs/test-setpag.c
src/kopenafs/test-unlog.c
src/libacl/acl.h
src/libacl/aclprocs.c
src/libacl/netprocs.c
src/libacl/prs_fs.h
src/libadmin/adminutil/afs_AdminErrors.h
src/libadmin/adminutil/afs_AdminInternal.h
src/libadmin/adminutil/afs_utilAdmin.h
src/libadmin/afs_Admin.h
src/libadmin/bos/afs_bosAdmin.h
src/libadmin/cfg/afs_cfgAdmin.h
src/libadmin/cfg/cfginternal.h
src/libadmin/client/afs_clientAdmin.h
src/libadmin/kas/afs_kasAdmin.h
src/libadmin/pts/afs_ptsAdmin.h
src/libadmin/test/bos.h
src/libadmin/test/client.h
src/libadmin/test/common.h
src/libadmin/test/kas.h
src/libadmin/test/pts.h
src/libadmin/test/util.h
src/libadmin/test/vos.h
src/libadmin/vos/afs_vosAdmin.h
src/libadmin/vos/lockprocs.h
src/libadmin/vos/vosutils.h
src/libadmin/vos/vsprocs.h
src/libuafs/linktest.c
src/log/kseal.c
src/log/tokens.c
src/log/unlog.c
src/lwp/fasttime.c
src/lwp/iomgr.c
src/lwp/lock.c
src/lwp/lock.h
src/lwp/lwp.c
src/lwp/lwp.h
src/lwp/lwp_elf.h
src/lwp/lwp_nt.c
src/lwp/preempt.c
src/lwp/preempt.h
src/lwp/process.c
src/lwp/rw.c
src/lwp/test/seltest.h
src/lwp/timer.c
src/lwp/timer.h
src/lwp/waitkey.c
src/mcas/amd64_defns.h
src/mcas/bst_lock_fraser.c
src/mcas/bst_lock_kung.c
src/mcas/bst_lock_manber.c
src/mcas/gc.c
src/mcas/mcas.c
src/mcas/osi_mcas_atomic.h
src/mcas/portable_defns.h
src/mcas/ptst.c
src/mcas/rb_lock_concurrentwriters.c
src/mcas/rb_lock_mutex.c
src/mcas/rb_lock_serialisedwriters.c
src/mcas/rb_stm.c
src/mcas/replay.c
src/mcas/set_adt.h
src/mcas/set_harness.c
src/mcas/set_queue_adt.h
src/mcas/skip_cas.c
src/mcas/skip_cas_adt.c
src/mcas/skip_cas_func.c
src/mcas/skip_mcas.c
src/mcas/skip_stm.c
src/mcas/solaris_amd64_defns.h
src/mcas/solaris_x86_defns.h
src/mcas/stm_fraser.c
src/mcas/stm_herlihy.c
src/mcas/stm_lock.c
src/pam/afs_account.c
src/pam/afs_auth.c
src/pam/afs_message.c
src/pam/afs_message.h
src/pam/afs_pam_msg.c
src/pam/afs_pam_msg.h
src/pam/afs_password.c
src/pam/afs_session.c
src/pam/afs_setcred.c
src/pam/afs_util.c
src/pam/afs_util.h
src/pam/test_pam.c
src/procmgmt/afskill.c
src/procmgmt/pmgtprivate.h
src/procmgmt/procmgmt.h
src/procmgmt/procmgmt_nt.c
src/procmgmt/procmgmt_unix.c
src/procmgmt/redirect_nt.c
src/ptserver/db_verify.c
src/ptserver/display.c
src/ptserver/error_macros.h
src/ptserver/map.c
src/ptserver/pt_util.c
src/ptserver/ptclient.c
src/ptserver/ptclient.h
src/ptserver/pterror.et
src/ptserver/ptint.xg
src/ptserver/ptopcodes.h
src/ptserver/ptprocs.c
src/ptserver/ptprototypes.h
src/ptserver/pts.c
src/ptserver/ptserver.c
src/ptserver/ptserver.h
src/ptserver/ptuser.c
src/ptserver/ptuser.h
src/ptserver/ptutils.c
src/ptserver/readgroup.c
src/ptserver/readpwd.c
src/ptserver/testpt.c
src/ptserver/ubik.c
src/ptserver/utils.c
src/rx/AIX/rx_kmutex.h
src/rx/DARWIN/rx_kmutex.h
src/rx/FBSD/rx_kmutex.h
src/rx/HPUX/rx_kmutex.h
src/rx/IRIX/rx_kmutex.h
src/rx/LINUX/rx_kmutex.h
src/rx/LINUX24/rx_kmutex.h
src/rx/NBSD/rx_kmutex.h
src/rx/OBSD/rx_kmutex.h
src/rx/SOLARIS/rx_kmutex.h
src/rx/UKERNEL/rx_kcommon.h
src/rx/UKERNEL/rx_kmutex.h
src/rx/rx.c
src/rx/rx.h
src/rx/rx_clock.c
src/rx/rx_clock.h
src/rx/rx_clock_nt.c
src/rx/rx_conncache.c
src/rx/rx_event.c
src/rx/rx_event.h
src/rx/rx_getaddr.c
src/rx/rx_globals.c
src/rx/rx_globals.h
src/rx/rx_kcommon.c
src/rx/rx_kcommon.h
src/rx/rx_kernel.h
src/rx/rx_lwp.c
src/rx/rx_lwp.h
src/rx/rx_misc.c
src/rx/rx_misc.h
src/rx/rx_multi.c
src/rx/rx_multi.h
src/rx/rx_null.c
src/rx/rx_null.h
src/rx/rx_packet.c
src/rx/rx_packet.h
src/rx/rx_prototypes.h
src/rx/rx_pthread.c
src/rx/rx_pthread.h
src/rx/rx_queue.h
src/rx/rx_rdwr.c
src/rx/rx_trace.c
src/rx/rx_trace.h
src/rx/rx_user.c
src/rx/rx_user.h
src/rx/rx_xmit_nt.c
src/rx/rx_xmit_nt.h
src/rx/rxperf.c
src/rx/test/generator.h
src/rx/xdr.c
src/rx/xdr.h
src/rx/xdr_afsuuid.c
src/rx/xdr_array.c
src/rx/xdr_arrayn.c
src/rx/xdr_float.c
src/rx/xdr_int32.c
src/rx/xdr_mem.c
src/rx/xdr_prototypes.h
src/rx/xdr_rec.c
src/rx/xdr_refernce.c
src/rx/xdr_rx.c
src/rx/xdr_stdio.c
src/rx/xdr_update.c
src/rxdebug/rxdebug.c
src/rxdebug/rxdumptrace.c
src/rxgen/rpc_clntout.c
src/rxgen/rpc_cout.c
src/rxgen/rpc_errors.h
src/rxgen/rpc_hout.c
src/rxgen/rpc_main.c
src/rxgen/rpc_parse.c
src/rxgen/rpc_parse.h
src/rxgen/rpc_scan.c
src/rxgen/rpc_scan.h
src/rxgen/rpc_svcout.c
src/rxgen/rpc_util.c
src/rxgen/rpc_util.h
src/rxgen/rxgen_consts.h
src/rxkad/bg-fcrypt.c
src/rxkad/crc.c
src/rxkad/crypt_conn.c
src/rxkad/fc_test.c
src/rxkad/fcrypt.c
src/rxkad/fcrypt.h
src/rxkad/hash.h
src/rxkad/lifetimes.h
src/rxkad/md4.c
src/rxkad/md4.h
src/rxkad/md5.c
src/rxkad/md5.h
src/rxkad/private_data.h
src/rxkad/rxkad.p.h
src/rxkad/rxkad_client.c
src/rxkad/rxkad_common.c
src/rxkad/rxkad_errs.et
src/rxkad/rxkad_prototypes.h
src/rxkad/rxkad_server.c
src/rxkad/sboxes.h
src/rxkad/tcrypt.c
src/rxkad/test/stress_internal.h
src/rxkad/ticket.c
src/rxkad/ticket5.c
src/rxkad/v5gen.c
src/rxstat/rxstat.c
src/rxstat/rxstat.xg
src/scout/scout.c
src/sgistuff/rcmd.c
src/sgistuff/sgi_auth.c
src/sgistuff/ta-rauth.c
src/sys/afssyscalls.c
src/sys/afssyscalls.h
src/sys/fixit.c
src/sys/glue.c
src/sys/icreate.c
src/sys/idec.c
src/sys/iinc.c
src/sys/iopen.c
src/sys/iread.c
src/sys/istat.c
src/sys/iwrite.c
src/sys/pagsh.c
src/sys/pioctl.c
src/sys/pioctl_nt.c
src/sys/pioctl_nt.h
src/sys/rmtsys.xg
src/sys/rmtsysc.c
src/sys/rmtsysd.c
src/sys/rmtsysnet.c
src/sys/rmtsyss.c
src/sys/setpag.c
src/sys/sys_prototypes.h
src/sys/xfsattrs.h
src/tests/afsdump_dirlist.c
src/tests/afsdump_extract.c
src/tests/afsdump_scan.c
src/tests/afsdump_xsed.c
src/tests/append-over-page.c
src/tests/apwd.c
src/tests/asu.c
src/tests/backuphdr.c
src/tests/blocks-new-file.c
src/tests/create-dirs.c
src/tests/create-files.c
src/tests/create-remove.c
src/tests/create-stat.c
src/tests/create-symlinks.c
src/tests/directory.c
src/tests/dump.c
src/tests/dumpfmt.h
src/tests/dumpscan.h
src/tests/dumpscan_errs.et
src/tests/dumptool.c
src/tests/err.c
src/tests/err.h
src/tests/errx.c
src/tests/exit-wo-close.c
src/tests/fchmod.c
src/tests/fhbench.c
src/tests/fs_lib.c
src/tests/fsx.c
src/tests/ga-test.c
src/tests/hardlink1.c
src/tests/hardlink2.c
src/tests/hardlink4.c
src/tests/int64.c
src/tests/intNN.h
src/tests/internal.h
src/tests/intr-read.c
src/tests/invalidate-file.c
src/tests/kill-softer.c
src/tests/kill-softly.c
src/tests/large-dir.c
src/tests/large-dir2.c
src/tests/large-dir3.c
src/tests/make-page.c
src/tests/mkdir2.c
src/tests/mkdir3.c
src/tests/mmap-and-read.c
src/tests/mmap-cat.c
src/tests/mmap-shared-write.c
src/tests/mmap-vs-read.c
src/tests/mmap-vs-read2.c
src/tests/parsedump.c
src/tests/parsetag.c
src/tests/parsevnode.c
src/tests/parsevol.c
src/tests/pathname.c
src/tests/pine.c
src/tests/primitive.c
src/tests/read-vs-mmap.c
src/tests/read-vs-mmap2.c
src/tests/read-write.c
src/tests/readdir-vs-lstat.c
src/tests/rename-under-feet.c
src/tests/rename5.c
src/tests/rename6.c
src/tests/repair.c
src/tests/rm-rf.c
src/tests/snprintf.c
src/tests/stagehdr.c
src/tests/stagehdr.h
src/tests/still-there-p.c
src/tests/strange-characters-c.c
src/tests/symlink.c
src/tests/test-parallel1.c
src/tests/test-parallel2.c
src/tests/test-setgroups.c
src/tests/test-setpag.c
src/tests/truncate-files.c
src/tests/truncate.c
src/tests/util.c
src/tests/utime-dir.c
src/tests/utime-file.c
src/tests/verr.c
src/tests/verrx.c
src/tests/vwarn.c
src/tests/vwarnx.c
src/tests/warn.c
src/tests/warnerr.c
src/tests/warnx.c
src/tests/write-closed.c
src/tests/write-closed2.c
src/tests/write-large.c
src/tests/write-rand.c
src/tests/write-ro-file.c
src/tests/write-ucc.c
src/tests/write3.c
src/tests/xf_errs.et
src/tests/xf_files.c
src/tests/xf_printf.c
src/tests/xf_profile.c
src/tests/xf_rxcall.c
src/tests/xfiles.c
src/tests/xfiles.h
src/tsalvaged/salvsync-debug.c
src/tsm41/aix41_auth.c
src/tsm41/aix41_ident.c
src/tsm41/aix5_auth.c
src/tsm41/aix_aklog.c
src/tsm41/aix_auth_common.c
src/tsm41/aix_auth_prototypes.h
src/tsm41/aix_ident_prototypes.h
src/tsm41/aix_ktc.c
src/tviced/serialize_state.c
src/tviced/serialize_state.h
src/tviced/state_analyzer.c
src/ubik/beacon.c
src/ubik/disk.c
src/ubik/lock.c
src/ubik/phys.c
src/ubik/recovery.c
src/ubik/remote.c
src/ubik/ubik.c
src/ubik/ubik.p.h
src/ubik/ubik_int.xg
src/ubik/ubikclient.c
src/ubik/ubikcmd.c
src/ubik/udebug.c
src/ubik/uerrors.et
src/ubik/uinit.c
src/ubik/utst_client.c
src/ubik/utst_int.xg
src/ubik/utst_server.c
src/ubik/vote.c
src/update/client.c
src/update/global.h
src/update/server.c
src/update/update.xg
src/update/utils.c
src/usd/usd.h
src/usd/usd_file.c
src/usd/usd_nt.c
src/uss/uss.c
src/uss/uss_acl.c
src/uss/uss_acl.h
src/uss/uss_common.c
src/uss/uss_common.h
src/uss/uss_fs.c
src/uss/uss_fs.h
src/uss/uss_kauth.c
src/uss/uss_kauth.h
src/uss/uss_procs.c
src/uss/uss_procs.h
src/uss/uss_ptserver.c
src/uss/uss_ptserver.h
src/uss/uss_vol.h
src/util/afs_atomlist.c
src/util/afs_atomlist.h
src/util/afs_lhash.c
src/util/afs_lhash.h
src/util/afsutil.h
src/util/afsutil_prototypes.h
src/util/assert.c
src/util/assert.h
src/util/base32.c
src/util/base64.c
src/util/casestrcpy.c
src/util/dirent_nt.h
src/util/dirpath.c
src/util/dirpath_nt.h
src/util/errmap_nt.c
src/util/errmap_nt.h
src/util/errors.h
src/util/fileutil.c
src/util/fileutil.h
src/util/flipbase64.c
src/util/fstab.c
src/util/get_krbrlm.c
src/util/hostparse.c
src/util/hputil.c
src/util/isathing.c
src/util/itc.h
src/util/kreltime.c
src/util/ktime.c
src/util/ktime.h
src/util/magic.h
src/util/netutils.c
src/util/netutils.h
src/util/packages.h
src/util/potpourri.h
src/util/pthread_glock.c
src/util/pthread_glock.h
src/util/pthread_nosigs.h
src/util/readdir_nt.c
src/util/regex.c
src/util/remote.h
src/util/rxkstats.c
src/util/secutil_nt.c
src/util/secutil_nt.h
src/util/serverLog.c
src/util/snprintf.c
src/util/strnlen.c
src/util/sys.c
src/util/uuid.c
src/util/vice.h
src/util/volparse.c
src/util/winsock_nt.c
src/venus/cacheout.c
src/venus/cmdebug.c
src/venus/dedebug.c
src/venus/fs.c
src/venus/fstrace.c
src/venus/gcpags.c
src/venus/kdump.c
src/venus/livesys.c
src/venus/twiddle.c
src/venus/up.c
src/venus/whatfid.c
src/vfsck/dir.c
src/vfsck/dirutils.c
src/vfsck/fsck.h
src/vfsck/inode.c
src/vfsck/main.c
src/vfsck/pass1.c
src/vfsck/pass2.c
src/vfsck/pass3.c
src/vfsck/pass4.c
src/vfsck/pass5.c
src/vfsck/proplist.c
src/vfsck/setup.c
src/vfsck/ufs_subr.c
src/vfsck/ufs_tables.c
src/vfsck/utilities.c
src/vfsck/vprintf.c
src/viced/afsfileprocs.c
src/viced/callback.c
src/viced/callback.h
src/viced/check_sysid.c
src/viced/fs_stats.h
src/viced/fsprobe.c
src/viced/host.c
src/viced/host.h
src/viced/physio.c
src/viced/profile.c
src/viced/viced.c
src/viced/viced.h
src/viced/viced_prototypes.h
src/vlserver/cnvldb.c
src/vlserver/cnvldb.h
src/vlserver/sascnvldb.c
src/vlserver/vl_errors.et
src/vlserver/vl_opcodes.h
src/vlserver/vlclient.c
src/vlserver/vldb_check.c
src/vlserver/vldbint.xg
src/vlserver/vlprocs.c
src/vlserver/vlserver.c
src/vlserver/vlserver.p.h
src/vlserver/vlutils.c
src/vol/clone.c
src/vol/common.c
src/vol/daemon_com.c
src/vol/daemon_com.h
src/vol/devname.c
src/vol/fssync-client.c
src/vol/fssync-debug.c
src/vol/fssync-server.c
src/vol/fssync.h
src/vol/gi.c
src/vol/ihandle.c
src/vol/ihandle.h
src/vol/listinodes.c
src/vol/namei_ops.c
src/vol/namei_ops.h
src/vol/nfs.h
src/vol/ntops.c
src/vol/ntops.h
src/vol/nuke.c
src/vol/partition.c
src/vol/partition.h
src/vol/physio.c
src/vol/purge.c
src/vol/salvage.h
src/vol/salvaged.c
src/vol/salvager.c
src/vol/salvsync-client.c
src/vol/salvsync-server.c
src/vol/salvsync.h
src/vol/test/listVicepx.h
src/vol/viceinode.h
src/vol/vnode.c
src/vol/vnode.h
src/vol/vnode_inline.h
src/vol/vol-bless.c
src/vol/vol-info.c
src/vol/vol-salvage.c
src/vol/vol-salvage.h
src/vol/voldefs.h
src/vol/volinodes.h
src/vol/volume.c
src/vol/volume.h
src/vol/volume_inline.h
src/vol/vutil.c
src/vol/vutils.h
src/vol/xfs_size_check.c
src/volser/common.c
src/volser/dump.h
src/volser/dumpstuff.c
src/volser/dumpstuff.h
src/volser/lockdata.h
src/volser/lockprocs.c
src/volser/physio.c
src/volser/physio.h
src/volser/restorevol.c
src/volser/vol-dump.c
src/volser/vol.h
src/volser/vol_split.c
src/volser/volerr.et
src/volser/volint.xg
src/volser/volmain.c
src/volser/volprocs.c
src/volser/volser.p.h
src/volser/volser_internal.h
src/volser/volser_prototypes.h
src/volser/voltrans.c
src/volser/vos.c
src/volser/vsprocs.c
src/volser/vsutils.c
src/xstat/xstat_cm.c
src/xstat/xstat_cm.h
src/xstat/xstat_cm_test.c
src/xstat/xstat_fs.c
src/xstat/xstat_fs.h
src/xstat/xstat_fs_callback.c
src/xstat/xstat_fs_test.c

index 29d9129e4113a7047b5a19c1eb492e1abaaa1f83..3fdd877e6ae3463bb88eae562391c8bb01d827ec 100644 (file)
@@ -14,7 +14,7 @@
 #define JAFSADMMETHODNOTFOUND 1052    // Trouble finding a Java method
 #define JAFSADMFIELDNOTFOUND  1053    // Trouble finding a Java field
 
-// make an identity out of a full name (possibly including an instance ) 
+// make an identity out of a full name (possibly including an instance )
 void internal_makeKasIdentity( const char *fullName, kas_identity_p who );
 
 void internal_getUserClass( JNIEnv *env, jobject user );
@@ -51,7 +51,7 @@ void throwAFSSecurityException( JNIEnv *env, int code );
 // throw an exception with an error code
 void throwException( JNIEnv *env, jclass *excCls, char *excClsName, jmethodID *initID, int code );
 
-// reclaim global memory used by exceptions 
+// reclaim global memory used by exceptions
 void reclaimExceptionMemory( JNIEnv *env, jclass cls );
 
 int setError(JNIEnv *env, jobject *obj, int code);
index 7a8ad70b7a9d742ebddb5751eb5c4338520abf2e..c8f523bc7f7be077518c95baa08a501b4de6cdac 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index f6c1d317c62a77c3cdc56733cd151cc1123972d2..619ec7220234fbf2a1316b280e31c097f67b5823 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ef0ce51a1e3ede53e8b66ef79d582aeaf208b06b..a77efc72e158cd48ffb354bda4cf5526c2512d86 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 4c3090145a77509a7f6f152d7df6eaa82ff95262..9996b16dd1863e694114a5c8dd1a91255a6d0f3f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
 #define IDC_STATIC                      -1
 
 #define IDS_INSTALLATION_FAILURE                0
-#define IDS_SCM_OPEN_FAILED                     1 
-#define IDS_SERVICE_CREATE_FAILED              2 
-#define IDS_SERVICE_OPEN_FAILED                3 
-#define IDS_SERVICE_QUERY_FAILED               4 
-#define IDS_SERVICE_STOP_FAILED                5 
-#define IDS_SERVICE_DELETE_FAILED              6 
-#define IDS_REG_DELETE_VALUE_ERROR                     7 
-#define IDS_SERVICE_ENABLE_FAILED                      8 
-#define IDS_OLE_DLL_INSTALL_FAILED                     9 
+#define IDS_SCM_OPEN_FAILED                     1
+#define IDS_SERVICE_CREATE_FAILED              2
+#define IDS_SERVICE_OPEN_FAILED                3
+#define IDS_SERVICE_QUERY_FAILED               4
+#define IDS_SERVICE_STOP_FAILED                5
+#define IDS_SERVICE_DELETE_FAILED              6
+#define IDS_REG_DELETE_VALUE_ERROR                     7
+#define IDS_SERVICE_ENABLE_FAILED                      8
+#define IDS_OLE_DLL_INSTALL_FAILED                     9
 #define IDS_OLE_DLL_UNINSTALL_FAILED           10
 #define IDS_EXTENSION_DLL_UNINSTALL_FAILED             11
 #define IDS_EXTENSION_DLL_INSTALL_FAILED               12
@@ -45,7 +45,7 @@
 
 #define IDS_PRESERVE_LIGHT_CLIENT_CONFIG_INFO   32
 #define IDS_PRESERVE_CC_CONFIG_INFO             33
-                                                
+
 #define IDD_LICENSE                     36
 #define IDC_LOGO                        1000
 #define IDC_MSG                         1001
@@ -62,7 +62,7 @@
 #define IDI_SPINSTOP                    20009
 
 // Next default values for new objects
-// 
+//
 #ifdef APSTUDIO_INVOKED
 #ifndef APSTUDIO_READONLY_SYMBOLS
 #define _APS_NEXT_RESOURCE_VALUE        37
index c92230f7884f025fb066a3396f4bc7e8961e5114..c5665389333fa2c13848ce226b41134172e394ec 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 2f4f203ca5c3b05b8d702b3cb3d2b5d3478823da..f200132255add35c7e06c376ec280371cb12ea05 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 81228c6f2e12cbde81d7f652499363cad28ddbd1..e63d78d2051efc1222287b76f7cda49279a9b0e4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 945e9af222a010933065098513c604143e45715c..55e193489a110919d2b20eb27524719dac04c332 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 834c38ba89280e67652e57d4638b07f7b1236929..a40f51caf0bc2a126de29698b59d131e3a0ab5a5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a78593a929aceb7a5d619bfa3052e3fa72640935..7015f7bd5c35c28e77904b5f32553ef4d939d2e4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 3f4cae28ef3b756d6e1fd831c90bb856ae59f547..041fb56d8783dede2fe6853d3dc31bcdf997c2a2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 5920f848e5928d4bce0c5c834d47756f0971c39e..e14da0a5f73a1150674d2d1011c96f8752a210da 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 276fe81e338e7f66959c76e712e74dcb9c388e9d..013d96db63845f5105bbaf538c3a4a06357c0242 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 6503c62eab35561f3a28e454ca41183fd66ecb07..51ddcb4f905e2749dc92a0501b5a714b039973ed 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 3eb5584b001412acad5320bf654f215598ca5e04..b03bbbd506eccd3dcf90df533a9b75957682fbac 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 3725ac1c9cb28bb618eaed322e66b45cd99508b1..a5f49f6c8368cfc7094f0041b33e17a0d7f3c34c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 191e6e49a51c4179486dd1c23a07423da29f19b0..26dc0cc6c5e03588450c007e480e994f0f2447ed 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 7a732af8ad7474db74f210f92e43fd3266ebea8f..ee57fd728c298c56a6c7dfd456536701e428e9a4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 2332ecddd2d9cfe1981961ff9cd0baaeb92bcec9..91c0abacac1cac903bb418e7f2de4e7285517901 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c963e2349850f9b06f554ebcb04a60f915680ce1..2d07b95d7f1333577260b6794d91eef92a63bf56 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -10,7 +10,7 @@
 #define IDI_MAIN                        102
 
 // Next default values for new objects
-// 
+//
 #ifdef APSTUDIO_INVOKED
 #ifndef APSTUDIO_READONLY_SYMBOLS
 #define _APS_NO_MFC                     1
index 5a247274fbad223460c0dbaee6c73be63290643a..5d6cd3e5e850b51afbb32e6299262767912689b2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
          // take a few moments and examine their headers individually to
          // see what they can do for your application.
          //
-         // Each header is associated with one source file, and each pair 
-         // can easily (well, hopefully easily) be copied off to other 
+         // Each header is associated with one source file, and each pair
+         // can easily (well, hopefully easily) be copied off to other
          // applications.
          //
 #include <WINNT/hashlist.h>    // general-purpose list management code
@@ -486,7 +486,7 @@ EXPORTED void cdecl ImmediateErrorDialog (DWORD dwStatus, int idsError, LPTSTR p
  *       TranslateMessage (&msg);
  *       DispatchMessage (&msg);
  *       }
- * 
+ *
  * An equivalent technique is:
  *
  *    AfsAppLib_MainPump();
index debc0047abd6ca9574760bc48644255a299b9065..d77449dc04edfdb0353f1d988e4bc697749e6d4c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 7d591a1e6db5be6357a43729aa0ae5f8818ecfb3..a312b7502ad4fad8bc7194557a0a5bcd569e2b3a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 4c0f6eb5c2faa98276fa62b9d85f437bfee244db..8281a7a8d790201b19e1bd7177410357ae12a232 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index af58c22e81bfe201fff5855f249d25a00a35e5a4..fdb371933d39345df6ffae9a7023feb87ae8f32f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -17,7 +17,7 @@
 /*
  * PROGRESS DIALOGS ___________________________________________________________
  *
- * The PROGRESSDISPLAY object is probably one of the most esoteric 
+ * The PROGRESSDISPLAY object is probably one of the most esoteric
  * utilities in this library. It provides a convenient way to package
  * up a background thread, and associate it with a dialog telling the user
  * what's going on. It sounds a little hokey, and honestly isn't that
index a240a399381279ded542b0240987ef0348d2bb20..1d756724d5d5296698ca9416da828249f38f9d0e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -95,7 +95,7 @@
 #define IDC_STATIC                      -1
 
 // Next default values for new objects
-// 
+//
 #ifdef APSTUDIO_INVOKED
 #ifndef APSTUDIO_READONLY_SYMBOLS
 #define _APS_NO_MFC                     1
index a9a50eb3d1ff083cf6da195916bdccba6f3a2705..e44671f7bad07babdbdd74bc95c16573f5c06530 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 08bf8f9c47b41020c96cfbe81bdf70bb95ecf267..4afcf9303c5d508009f05c1a6f39792c5cee5cdb 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -34,7 +34,7 @@ EXPORTED BOOL RegisterCheckListClass (void);
 #define WC_CHECKLIST  TEXT("OpenAFS_CheckList")
 
 
-#define LB_GETCHECK   (WM_USER+300)   // int iItem=wp  
+#define LB_GETCHECK   (WM_USER+300)   // int iItem=wp
 #define LB_SETCHECK   (WM_USER+301)   // int iItem=wp, BOOL fChecked=lp
 
 #define LBN_CLICKED   BN_CLICKED
index 58aee0a457a8569743700a1761d4c86320e5412c..ba7e32da2880eaba53b210149d88bf9d939a414e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 5e3b529b473512d2bf5c2e1f5dd46b7a4bf21b79..a250f9f6a4740b81aa8b8ff4df634977da0df53c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 5ab3cc57315c9f6c252dd117c266f0495c610b87..ab7f91b2faa66b6d67d5280a0d2eed9ffb748292 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1328c82bd819fe22f00d52abbf052fcb5cade11d..614f23ce54912d9d0f74fa256497d11ff445ee02 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 50b15c1ce990b315bb6090988685b1ee6e454187..d50dabd9a6116f6f1a5a9d6537355aec82993490 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index b2699010529f1c02474881375ce10db30c15a991..ec126732c1bf01e9907a586a2a5b92c83966a415 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -267,7 +267,7 @@ EXPORTED HTREEITEM TV_RecursiveFind (HWND hTree, HTREEITEM htiRoot, LPARAM lpToF
 
 
 /*
- *** COMMDLG      
+ *** COMMDLG
  *
  */
 
index 79788792bb381bf8b7f7fa6d6bcc24a2bd83fc09..d4fb69f53ae81d667c260b8260028426a4beb4a6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -275,7 +275,7 @@ typedef BOOL (CALLBACK * LPFASTLISTTEXTCALLBACK)( HWND hList, LPFLN_GETITEMTEXT_
  *    struct {
  *       NMHDR hdr;
  *       // window- and message-specific elements ...
- *    } 
+ *    }
  * Thus, by casing the LPARAM value to LPNMHDR, information about the
  * notification can be obtained from any notification structure.
  * If a notification message is handled, the handler must return TRUE.
@@ -633,11 +633,11 @@ typedef BOOL (CALLBACK * LPFASTLISTTEXTCALLBACK)( HWND hList, LPFLN_GETITEMTEXT_
         // HLISTITEM FastList_FindPrevious (HWND hList, HLISTITEM hItem)
         //
 #define FastList_FindFirst(_hList)  \
-           FastList_FindList(_hList,0,FLM_FINDLIST_FIRST) 
+           FastList_FindList(_hList,0,FLM_FINDLIST_FIRST)
 #define FastList_FindNext(_hList,_hItem)  \
-           FastList_FindList(_hList,_hItem,FLM_FINDLIST_NEXT) 
+           FastList_FindList(_hList,_hItem,FLM_FINDLIST_NEXT)
 #define FastList_FindPrevious(_hList,_hItem)  \
-           FastList_FindList(_hList,_hItem,FLM_FINDLIST_PREVIOUS) 
+           FastList_FindList(_hList,_hItem,FLM_FINDLIST_PREVIOUS)
 #define FastList_FindList(_hList,_hItem,_dwCode) \
            (HLISTITEM)SendMessage (_hList, FLM_FINDLIST, (WPARAM)(_hItem), (LPARAM)(_dwCode))
 #define FLM_FINDLIST            (FLM_FIRST + 0x001D)
@@ -652,15 +652,15 @@ typedef BOOL (CALLBACK * LPFASTLISTTEXTCALLBACK)( HWND hList, LPFLN_GETITEMTEXT_
         // HLISTITEM FastList_FindNextSibling (HWND hList, HLISTITEM hItem)
         //
 #define FastList_FindFirstInRoot(_hList)  \
-           FastList_FindTree(_hList,0,FLM_FINDTREE_CHILD) 
+           FastList_FindTree(_hList,0,FLM_FINDTREE_CHILD)
 #define FastList_FindParent(_hList,_hItem)  \
-           FastList_FindTree(_hList,_hItem,FLM_FINDTREE_PARENT) 
+           FastList_FindTree(_hList,_hItem,FLM_FINDTREE_PARENT)
 #define FastList_FindFirstChild(_hList,_hItem)  \
-           FastList_FindTree(_hList,_hItem,FLM_FINDTREE_CHILD) 
+           FastList_FindTree(_hList,_hItem,FLM_FINDTREE_CHILD)
 #define FastList_FindPreviousSibling(_hList,_hItem)  \
-           FastList_FindTree(_hList,_hItem,FLM_FINDTREE_PREVIOUS) 
+           FastList_FindTree(_hList,_hItem,FLM_FINDTREE_PREVIOUS)
 #define FastList_FindNextSibling(_hList,_hItem)  \
-           FastList_FindTree(_hList,_hItem,FLM_FINDTREE_NEXT) 
+           FastList_FindTree(_hList,_hItem,FLM_FINDTREE_NEXT)
 #define FastList_FindTree(_hList,_hItem,_dwCode) \
            (HLISTITEM)SendMessage (_hList, FLM_FINDTREE, (WPARAM)(_hItem), (LPARAM)(_dwCode))
 #define FLM_FINDTREE            (FLM_FIRST + 0x001E)
@@ -673,7 +673,7 @@ typedef BOOL (CALLBACK * LPFASTLISTTEXTCALLBACK)( HWND hList, LPFLN_GETITEMTEXT_
         // HLISTITEM FastList_FindNextSelected (HWND hList, HLISTITEM hItemPrevious)
         //
 #define FastList_FindFirstSelected(_hList)  \
-           FastList_FindNextSelected(_hList,0) 
+           FastList_FindNextSelected(_hList,0)
 #define FastList_FindNextSelected(_hList,_hItem) \
            (HLISTITEM)SendMessage (_hList, FLM_FINDSELECTED, (WPARAM)(_hItem), 0)
 #define FLM_FINDSELECTED        (FLM_FIRST + 0x001F)
@@ -690,7 +690,7 @@ typedef BOOL (CALLBACK * LPFASTLISTTEXTCALLBACK)( HWND hList, LPFLN_GETITEMTEXT_
 #define FastList_FindNextItem(_hList,_ppEnum)  \
            (HLISTITEM)SendMessage (_hList, FLM_FINDNEXTITEM, (WPARAM)(_ppEnum), 0)
 #define FastList_FindClose(_hList,_ppEnum) \
-           (void)SendMessage (_hList, FLM_FINDCLOSE, (WPARAM)(_ppEnum), 0) 
+           (void)SendMessage (_hList, FLM_FINDCLOSE, (WPARAM)(_ppEnum), 0)
 #define FLM_FINDITEM            (FLM_FIRST + 0x0020)
 #define FLM_FINDNEXTITEM        (FLM_FIRST + 0x0021)
 #define FLM_FINDCLOSE           (FLM_FIRST + 0x0022)
@@ -708,9 +708,9 @@ typedef BOOL (CALLBACK * LPFASTLISTTEXTCALLBACK)( HWND hList, LPFLN_GETITEMTEXT_
         // HLISTITEM FastList_FindNextVisible (HWND hList, HLISTITEM hItem)
         //
 #define FastList_FindFirstVisible(_hList)  \
-           FastList_FindVisible(_hList,0,FLM_FINDVISIBLE_FIRST) 
+           FastList_FindVisible(_hList,0,FLM_FINDVISIBLE_FIRST)
 #define FastList_FindNextVisible(_hList,_hItem)  \
-           FastList_FindVisible(_hList,_hItem,FLM_FINDVISIBLE_NEXT) 
+           FastList_FindVisible(_hList,_hItem,FLM_FINDVISIBLE_NEXT)
 #define FastList_FindVisible(_hList,_hItem,_dwCode) \
            (HLISTITEM)SendMessage (_hList, FLM_FINDVISIBLE, (WPARAM)(_hItem), (LPARAM)(_dwCode))
 #define FLM_FINDVISIBLE         (FLM_FIRST + 0x0024)
index a6dbb60a544ce2c5ccf6445017f97e35323b66d0..25537c2cf0e51c066e73b4000c84d85255a30689 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -98,7 +98,7 @@
  * // Find all objects with 473 as a dwKey element. Since we're walking the
  * // whole list, the ENUMERATION object will be deleted automatically.
  *
- * for (LPENUM pEnum = pKey->FindFirst (&dwKeyFind); pEnum; pEnum = pEnum->FindNext()) 
+ * for (LPENUM pEnum = pKey->FindFirst (&dwKeyFind); pEnum; pEnum = pEnum->FindNext())
  * {
  *    OBJECT *pObj = (OBJECT*)(pEnum->GetObject());
  *    printf ("%s", pObj->szText);
  * // to free the ENUMERATION object explicitly.
  *
  * LPENUM pEnum;
- * if ((pEnum = pKey->FindFirst (&dwKeyFind)) != NULL) 
+ * if ((pEnum = pKey->FindFirst (&dwKeyFind)) != NULL)
  * {
  *    hl.Remove (pEnum->GetObject());
  *    delete pEnum;
index 7e29034856c2edee2223fc18994ea80da9de7b8e..7ed818381e821fc54b7e1cb725123986d3119560 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 63ca2213bdf9f76c1ba420a50018324c0795dd55..94d4beef79f933391a9c3203547d99acd1c83e80 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1801d9b5fed373b7880471a3e9bf40202d0660d1..52c672e6a64affda4ad6ae1229d7a96724cd9841 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index d4ef39765344ffb05e59619135c5d52e77b387e7..5e64b3b908f2f856675021072bb789065dcfaab5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 59e8b5ab48037d31c7e4c0ee80501cd067ad52bf..29372fd179cdc3d8333dd9071eeff424afb7e55f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 3e8daf0b43011223befa193913e5474db387c692..07109925efa42478f34b71702241eaa8ccf58a59 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index b524065c220131a88af057a6114ec0c687137d40..ba5f1d4354dfcb9792169d7fd820021878f420b7 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 03a6dc3668925bb53a1d4f4788a21499f58b00d7..f9802e44fe465aacaafa5429bdb9169e00a597cf 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a9162a2c8f46d2b3857394f83eb4d8251427976a..001821e930fe8979f4926357f739731123f56561 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 0fd4257d109a26503d55e84b891c21fd8f6fb6af..adaad0df1254f4b66b94d1bc000df4d9cafe0c4a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ca7fd9d232a374668c7890aa4fbf22aba8eac3e9..33b66f8e046d9fcd2c0cb4959e64d8ff4d42ca54 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 93ea3ed10db4326e4c4af70f40771622612d1244..222703d0d125be930c7b82eac2b0f9f378cbaf02 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index fc7ab9138726d6ceceec299576a6f889542b7fb3..3d3306dcf6d8a5f6b0d2036b7dc3006ce3dbe5da 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index aa36c77fb86e20b64230eeb4ec9b31d3facdc4fe..acd64099faf713e357ce6a165a392307f7f1ae58 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index db703e22da8b86514fcb78cfaa493346795ce016..e8a74b538c3bf014658e0b690adb03d9445a271a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a9f80c8283a31b64bebe02090267464ea76dc6d9..f11090e4ac6ece10a335d5ec9b8f42740196c439 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c25db4e2346ed46b90269dc4b130acf1f786060f..b8bd3099d95345b79f18b92f2085330a71262be5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index d60a286228f770d4e8c31f23a38ec03561c04711..27634b0bd3cf8ae80921970e3d081023b922bd27 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index f1e033d17eeead709e485d26f5bab1f50d2db11f..ef73523fee53250ceba75da927fcf4c7ba31e2e2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index f1efa735d80e446fc33f573f5dc74426505e89fd..04a08cdd4eb8eb2c9b779b904ddf7484f9e76a77 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ca632612b05b26b28ad6adfebc3d3c5b3d0e49d0..4b891ae4eefe36736a97df1e99e8f968e12a9a75 100644 (file)
@@ -1,6 +1,6 @@
 //
 //     AFSD_FLUSHVOL.H
-// 
+//
 //     Include file for routines that handle flushing AFS volumes
 //     in response to System Power event notification such as
 //     Hibernate request.
@@ -13,7 +13,7 @@
 #include <Winnetwk.h>
 #include "fs_utils.h"
 
-// handles 
+// handles
 typedef struct _tagFLUSHVOLTHREADINFO {
        HANDLE  hEventPowerEvent;
        HANDLE  hEventResumeMain;
index 5678bb36962617258043f27a061741efc96e52c1..27782e5869779760537e7f2e25cb7b9bd910bac3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 19027685e5cd5c88190c16186353244011b0ba48..fb51844c7d6ba3de7fa3937cd1f3d6e57610ad75 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 8764ee8eaca47a4620491e1c20960f6e2cb8b73c..fe8935fd6fbf777513d4bc6a4b4a91eab854d92e 100644 (file)
@@ -2,20 +2,20 @@
 * Copyright (c) 2004, 2005, 2006, 2007 Secure Endpoints Inc.
 * Copyright (c) 2003 SkyRope, LLC
  * All rights reserved.
- * 
- * Redistribution and use in source and binary forms, with or without 
+ *
+ * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
- * 
- * - Redistributions of source code must retain the above copyright notice, 
+ *
+ * - Redistributions of source code must retain the above copyright notice,
  *   this list of conditions and the following disclaimer.
- * - Redistributions in binary form must reproduce the above copyright notice, 
- *   this list of conditions and the following disclaimer in the documentation 
+ * - Redistributions in binary form must reproduce the above copyright notice,
+ *   this list of conditions and the following disclaimer in the documentation
  *   and/or other materials provided with the distribution.
- * - Neither the name of Skyrope, LLC nor the names of its contributors may be 
- *   used to endorse or promote products derived from this software without 
+ * - Neither the name of Skyrope, LLC nor the names of its contributors may be
+ *   used to endorse or promote products derived from this software without
  *   specific prior written permission from Skyrope, LLC.
  *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
  * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
index d9fb66a9074ae770c4a9c2937db036d7ad7d7717..83c66f181e34587254eb10e6cbfaed2aa7ef08f7 100644 (file)
@@ -2,20 +2,20 @@
 * Copyright (c) 2004, 2005, 2006 Secure Endpoints Inc.
 * Copyright (c) 2003 SkyRope, LLC
  * All rights reserved.
- * 
- * Redistribution and use in source and binary forms, with or without 
+ *
+ * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
- * 
- * - Redistributions of source code must retain the above copyright notice, 
+ *
+ * - Redistributions of source code must retain the above copyright notice,
  *   this list of conditions and the following disclaimer.
- * - Redistributions in binary form must reproduce the above copyright notice, 
- *   this list of conditions and the following disclaimer in the documentation 
+ * - Redistributions in binary form must reproduce the above copyright notice,
+ *   this list of conditions and the following disclaimer in the documentation
  *   and/or other materials provided with the distribution.
- * - Neither the name of Skyrope, LLC nor the names of its contributors may be 
- *   used to endorse or promote products derived from this software without 
+ * - Neither the name of Skyrope, LLC nor the names of its contributors may be
+ *   used to endorse or promote products derived from this software without
  *   specific prior written permission from Skyrope, LLC.
  *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
  * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
@@ -51,7 +51,7 @@ int  KFW_is_available(void);
 int  KFW_AFS_destroy_tickets_for_cell(char *);
 int  KFW_AFS_destroy_tickets_for_principal(char *);
 int  KFW_AFS_renew_expiring_tokens(void);
-int  KFW_AFS_get_cred( char * username, 
+int  KFW_AFS_get_cred( char * username,
                         char * cell,
                         char * password,
                         int lifetime,
index ae10f05ed037f90603dbc787796fbc41a7eb648d..0e2b70be838b6c64f68ffed6245b516ab88e44e2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
 #define LOCK_HIERARCHY_SERVER                  640
 #define LOCK_HIERARCHY_CALLBACK_GLOBAL         645
 #define LOCK_HIERARCHY_SERVER_GLOBAL           650
-#define LOCK_HIERARCHY_CONN                    660 
+#define LOCK_HIERARCHY_CONN                    660
 #define LOCK_HIERARCHY_VOLUME_GLOBAL           670
 #define LOCK_HIERARCHY_DNLC_GLOBAL             690
 #define LOCK_HIERARCHY_FREELANCE_GLOBAL        700
index 2dd8deb8d04c15ac4e2c819a8626d6567cb5c99d..5367b9bb68928e4ef7720c184ae85ef5f918a034 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index fae82bbf7d0eda39b5ec1e9982ea9be8a79eb90b..40cba003e9338dd4677e6346fab2156a646db2e2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -21,7 +21,7 @@
  */
 typedef struct cm_aclent {
     osi_queue_t q;             /* for quick removal from LRUQ */
-    afs_uint32 magic;           
+    afs_uint32 magic;
     struct cm_aclent *nextp;   /* next guy same vnode */
     struct cm_scache *backp;   /* back ptr to vnode */
     struct cm_user *userp;     /* user whose access is cached */
index 7b039c08859a5f274896d1ba19ecdb84e91ab1a5..62917c0d0cd3b69b2f1eee847d5bd5c649ae8c91 100644 (file)
@@ -1,6 +1,6 @@
-/* 
- * Copyright 2007 Secure Endpoints Inc.  
- * 
+/*
+ * Copyright 2007 Secure Endpoints Inc.
+ *
  * All Rights Reserved.
  *
  * This software has been released under the terms of the IBM Public
@@ -172,7 +172,7 @@ typedef struct cm_direnum {
     cm_direnum_entry_t         entry[1];
 } cm_direnum_t;
 
-long cm_BPlusDirEnumerate(cm_scache_t *dscp, cm_user_t *userp, cm_req_t *reqp, 
+long cm_BPlusDirEnumerate(cm_scache_t *dscp, cm_user_t *userp, cm_req_t *reqp,
                           afs_uint32 locked, clientchar_t *maskp, afs_uint32 fetchStatus, cm_direnum_t **enumpp);
 long cm_BPlusDirNextEnumEntry(cm_direnum_t *enump, cm_direnum_entry_t **entrypp);
 long cm_BPlusDirPeekNextEnumEntry(cm_direnum_t *enump, cm_direnum_entry_t **entrypp);
@@ -190,7 +190,7 @@ extern afs_uint64 bplus_free_time;
 
 
 /************ Accessor Macros *****************************************/
-                       
+
 /* low level definition of Nptr value usage */
 #define nAdr(n) (n)->X
 
index 5f80ba66f4ef24ca641f90633e3e3adff4be4d1e..46a1efae8c60aad397b8b90286a33424ed71840d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -67,7 +67,7 @@ typedef struct cm_buf {
     char *datap;               /* data in this buffer */
     afs_uint32 error;          /* last error code, if CM_BUF_ERROR is set */
     cm_user_t *userp;          /* user who wrote to the buffer last */
-        
+
     /* fields added for the CM; locked by scp->mx */
     afs_uint64 dataVersion;    /* data version of this page */
     afs_uint32 cmFlags;                /* flags for cm */
@@ -161,9 +161,9 @@ extern cm_buf_t *buf_FindLocked(struct cm_scache *, osi_hyper_t *);
 extern cm_buf_t *buf_Find(struct cm_scache *, osi_hyper_t *);
 
 extern cm_buf_t *buf_FindAllLocked(struct cm_scache *, osi_hyper_t *, afs_uint32 flags);
+
 extern cm_buf_t *buf_FindAll(struct cm_scache *, osi_hyper_t *, afs_uint32 flags);
+
 extern long buf_GetNewLocked(struct cm_scache *, osi_hyper_t *, cm_req_t *, cm_buf_t **);
 
 extern long buf_Get(struct cm_scache *, osi_hyper_t *, cm_req_t *, cm_buf_t **);
index 6a066b7085fa0a8ffe4630aa117fb9e82da885c8..ededa8ddb8da999426e9f55f02e28e3f9fd05780 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a3d8931fd4563fe83c781da6ab46faba0fd9975b..aefe118d0fbef011b0624e140e3f2576938a2165 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -15,7 +15,7 @@
 #define CM_CELL_MAGIC    ('C' | 'E' <<8 | 'L'<<16 | 'L'<<24)
 
 /* a cell structure */
-typedef struct cm_cell {        
+typedef struct cm_cell {
     afs_uint32  magic;
     afs_int32 cellID;                  /* cell ID */
     struct cm_cell *allNextp;          /* locked by cm_cellLock */
@@ -76,7 +76,7 @@ extern void cm_AddCellToIDHashTable(cm_cell_t * cellp);
 
 extern void cm_RemoveCellFromIDHashTable(cm_cell_t *cellp);
 
-extern long cm_AddCellProc(void *rockp, struct sockaddr_in *addrp, char *namep, 
+extern long cm_AddCellProc(void *rockp, struct sockaddr_in *addrp, char *namep,
                            unsigned short ipRank);
 
 extern cm_cell_t *cm_UpdateCell(cm_cell_t * cp, afs_uint32 flags);
index 85b2a0bbc962e2ca6bfe3233b54efddd81b232ec..53d37e1190d588c94bd6af1e5a587057b7e3fcdf 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -43,12 +43,12 @@ extern long cm_EnumerateCellFile(afs_uint32 client,
                                  cm_enumCellProc_t *procp,
                                  void *rockp);
 
-extern long cm_SearchCellRegistry(afs_uint32 client, 
+extern long cm_SearchCellRegistry(afs_uint32 client,
                                   char *cellNamep, char *newCellNamep,
                                   char *linkedNamep,
                                   cm_configProc_t *procp, void *rockp);
 
-extern long cm_EnumerateCellRegistry(afs_uint32 client, 
+extern long cm_EnumerateCellRegistry(afs_uint32 client,
                                      cm_enumCellProc_t *procp,
                                      void *rockp);
 
index c80c8b518a978b1c5a74770c2e02a48ae2253ae3..54b5e9a284ad283a11ff057b739b452025a775a3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -26,7 +26,7 @@
 
 extern unsigned short ConnDeadtimeout;
 extern unsigned short HardDeadtimeout;
-extern DWORD          RDRtimeout; 
+extern DWORD          RDRtimeout;
 
 typedef struct cm_conn {
        struct cm_conn *nextp;          /* locked by cm_connLock */
@@ -42,9 +42,9 @@ typedef struct cm_conn {
 
 #define CM_CONN_FLAG_FORCE_NEW 1
 
-/* 
+/*
  * structure used for tracking RPC progress
- * and for passing path info from the smb layer 
+ * and for passing path info from the smb layer
  * to the cache manager functions.
  */
 typedef struct cm_req {
@@ -83,7 +83,7 @@ typedef struct cm_req {
 
 #define VSALVAGE       101     /* Volume needs salvage */
 #define VNOVNODE       102     /* Bad vnode number quoted */
-#define VNOVOL         103     /* Volume not attached, doesn't exist, 
+#define VNOVOL         103     /* Volume not attached, doesn't exist,
                                   not created or not online */
 #define VVOLEXISTS     104     /* Volume already exists */
 #define VNOSERVICE     105     /* Volume is not in service (i.e. it's
@@ -109,7 +109,7 @@ typedef struct cm_req {
                                  * vos examine to find out the current
                                  * restrictions. */
 
-#define VRESTARTING    -100    /* server is restarting, otherwise similar to 
+#define VRESTARTING    -100    /* server is restarting, otherwise similar to
                                   VBUSY above.  This is negative so that old
                                   cache managers treat it as "server is down"*/
 
@@ -137,7 +137,7 @@ extern long cm_ConnByServer(struct cm_server *, struct cm_user *, cm_conn_t **);
 extern long cm_ConnFromFID(struct cm_fid *, struct cm_user *, struct cm_req *,
        cm_conn_t **);
 
-extern long cm_ConnFromVolume(struct cm_volume *volp, unsigned long volid, 
+extern long cm_ConnFromVolume(struct cm_volume *volp, unsigned long volid,
                               struct cm_user *userp, cm_req_t *reqp,
                               cm_conn_t **connpp);
 
index 16c9e0f2418b7ce57b05153793cf4bdc49f41e20..5dd3771e5b72a2bc823238e8849e7e9b0b29df5c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index cb3e747993474b68a96f324bdfedebe5dbf06e11..9eb2fa30a28226ad1bc9758f6c240a7265080ef1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -16,7 +16,7 @@ typedef struct cm_bulkIO {
     osi_hyper_t offset;                        /* offset of buffers */
     long length;                       /* # of bytes to be transferred */
     int reserved;                      /* did we reserve multiple buffers? */
-        
+
     /* all of these buffers are held */
     osi_queueData_t *bufListp; /* list of buffers involved in I/O */
     osi_queueData_t *bufListEndp;      /* list of buffers involved in I/O */
@@ -50,7 +50,7 @@ extern afs_int32 cm_BkgStore(cm_scache_t *scp, afs_uint32 p1, afs_uint32 p2, afs
        struct cm_user *userp);
 
 extern void cm_ConsiderPrefetch(cm_scache_t *scp, osi_hyper_t *offsetp,
-                                afs_uint32 count, 
+                                afs_uint32 count,
                                 cm_user_t *userp, cm_req_t *reqp);
 
 extern long cm_ValidateDCache(void);
index 53814eb455ff6c08bcc2cd13a06ec438a3e087f6..a1042059085b3ee3ed69517dfba109646685d3a2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -10,7 +10,7 @@
 #ifndef __CM_DIR_ENV__
 #define __CM_DIR_ENV__ 1
 
-/* These data structures are derived from src/dir/dir.h and should not 
+/* These data structures are derived from src/dir/dir.h and should not
  * be changed as they describe AFS3 wire protocol.
  *
  */
index d8a8890351c7979f9537cb30e11e0caff3f84e44..34c852fd477f133d24eeec424011e21efe8c17d2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -20,7 +20,7 @@ typedef struct nc {
     unsigned int key;
     struct nc *next, *prev;
     cm_scache_t *dirp, *vp;
-    normchar_t name[CM_AFSNCNAMESIZE];   
+    normchar_t name[CM_AFSNCNAMESIZE];
 } cm_nc_t;
 
 typedef struct {
index fb907ba63ec8e45443d211d3d6cfdea8c039526f..9c5cf483661ce14bd323f2213a9cf263acfc0090 100644 (file)
@@ -23,12 +23,12 @@ int getAFSServer(const char *service, const char *protocol, const char *cellname
 int getAFSServerW(const cm_unichar_t *service, const cm_unichar_t *protocol, const cm_unichar_t *cellName,
                   unsigned short afsdbPort,
                   int *cellHostAddrs,
-                  cm_unichar_t cellHostNames[][MAXHOSTCHARS], 
+                  cm_unichar_t cellHostNames[][MAXHOSTCHARS],
                   unsigned short ports[],
                   unsigned short ipRanks[],
                   int *numServers, int *ttl);
 
-/* a supplement for the DJGPP gethostbyname ... which 
+/* a supplement for the DJGPP gethostbyname ... which
    never bothers calling a DNS server ... so this function
    takes care of that. This should be called when you
    failed with gethostbyname (as that WILL check for
index 65c90f3914e96366171c7818e4ef9d5c4ac634f1..90240f0268b7f8d67062c0032393fa11bd97143a 100644 (file)
@@ -97,7 +97,7 @@ typedef struct dns_rr_hdr
 #define DNS_RRCLASS_HS    4    // Hesiod
 #define DNS_RRCLASS_WILD  255  // WildCard - all classes
 
-/* 
+/*
  * DNS AFSDB Resource Data Field
  */
 typedef struct dns_afsdb_rr_hdr
@@ -111,7 +111,7 @@ typedef struct dns_afsdb_rr_hdr
 
 #define DNS_AFSDB_RR_HDR_LEN sizeof(DNS_AFSDB_RR_HDR)
 
-/* 
+/*
  * DNS A Resource Data Field
  */
 typedef struct dns_a_rr_hdr
index d44c14ee26a168e151d638b888423d8904ceb6e1..c884982e226d9f4ef85240f427a2be6255f62c1e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -28,7 +28,7 @@ typedef struct cm_SPref {
         unsigned short rank;
 } cm_SPref_t;
 
-typedef struct cm_SPrefRequest {             
+typedef struct cm_SPrefRequest {
         unsigned short offset;
         unsigned short num_servers;
         unsigned short flags;
@@ -62,7 +62,7 @@ typedef struct cm_ioctl {
     char *outDatap;                    /* output results assembled so far */
     char *outAllocp;                   /* output results assembled so far */
     afs_uint32 outCopied;              /* # of output bytes copied back so far
-       
+
     /* flags */
     afs_uint32 flags;
 } cm_ioctl_t;
@@ -74,13 +74,13 @@ typedef struct cm_ioctl {
 #define CM_IOCTLFLAG_DATAOUT    8       /* sending data from server to client */
 
 
-/* 
+/*
  * The cm_IoctlQueryOptions structure is designed to be extendible.
- * None of the fields are required but when specified 
- * by the client and understood by the server will be 
+ * None of the fields are required but when specified
+ * by the client and understood by the server will be
  * used to more precisely specify the desired data.
  *
- * size must be set to the size of the structure 
+ * size must be set to the size of the structure
  * sent by the client including any variable length
  * data appended to the end of the static structure.
  *
@@ -88,7 +88,7 @@ typedef struct cm_ioctl {
  * been filled in and should be used.
  *
  * variable length data can be specified with fields
- * that include offsets to data appended to the 
+ * that include offsets to data appended to the
  * structure.
  *
  * when adding new fields you must:
@@ -98,12 +98,12 @@ typedef struct cm_ioctl {
  *
  * It is critical that flags be consistent across all
  * implementations of the pioctl interface for a given
- * platform.  This should be considered a public 
+ * platform.  This should be considered a public
  * interface used by third party application developers.
  */
 
 typedef struct cm_IoctlQueryOptions {
-    afs_uint32  size; 
+    afs_uint32  size;
     afs_uint32  field_flags;
     afs_uint32  literal;
     cm_fid_t    fid;
index 9fc8ae96571999fa3c4d906e98379b71c0af179b..1b1dc6d6098c9d68837d887f886615d63d11a351 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2004, Secure Endpoints Inc.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -26,7 +26,7 @@ typedef struct cm_config_data {
     afs_uint32          dirty;
 
     cm_volume_t *       volumeBaseAddress;
-    cm_cell_t   *       cellBaseAddress; 
+    cm_cell_t   *       cellBaseAddress;
     cm_aclent_t *       aclBaseAddress;
     cm_scache_t *       scacheBaseAddress;
     cm_nc_t     *       dnlcBaseAddress;
@@ -76,7 +76,7 @@ typedef struct cm_config_data {
 
     cm_nc_t    *       ncfreelist;
     cm_nc_t    *       nameCache;
-    cm_nc_t    **      nameHash; 
+    cm_nc_t    **      nameHash;
 
     cm_buf_t   *       buf_freeListp;
     cm_buf_t    *       buf_freeListEndp;
index 3d7517ea5d875f1b204d4ad5395932b452cb4818..60bdccd8e0684db8cd29cbed5d09715bf50047e3 100644 (file)
@@ -167,7 +167,7 @@ extern __success(return != 0) int
 extern __out_ecount_full_z(*pcch_dest) __checkReturn __success(return != NULL) cm_utf8char_t *
     cm_Utf16ToUtf8Alloc
     (__in_ecount(cch_src) const cm_unichar_t * s,
-     int cch_src, 
+     int cch_src,
      __out_ecount_full_opt(1) int *pcch_dest);
 
 extern __out_ecount_full_z(*pcch_dest) __checkReturn __success(return != NULL) cm_unichar_t *
index afcc11a13c1b89e82ff3a60afe840a85cface9d6..bea96c2693ec9c267b1d39623c83361f5ed26802 100644 (file)
@@ -1,18 +1,18 @@
-/* 
+/*
  *  Copyright (c) 2008 - Secure Endpoints Inc.
  */
 
-/* 
- *  The performance module when activated collects 
- *  data necessary to analyze the usage of the cache 
+/*
+ *  The performance module when activated collects
+ *  data necessary to analyze the usage of the cache
  *  manager and establish recommendations for future
- *  cache manager configuration changes. 
+ *  cache manager configuration changes.
  *
- *  As a starting point, the package will collect 
+ *  As a starting point, the package will collect
  *  a list of all FIDs accessed during the session
  *  which will be used to periodically analyzed the
  *  contents of the cm_buf_t, cm_scache_t, cm_volume_t
- *  and cm_cell_t pools.  
+ *  and cm_cell_t pools.
 
  */
 
@@ -28,8 +28,8 @@ typedef struct cm_fid_stats {
 #define CM_FIDSTATS_FLAG_HAVE_SCACHE 0x01  /* set if cm_scache_t present */
 #define CM_FIDSTATS_FLAG_HAVE_VOLUME 0x02  /* set on (vnode = 1) if cm_vol_t present */
 #define CM_FIDSTATS_FLAG_RO          0x04
-#define CM_FIDSTATS_FLAG_PURERO      0x08    
-#define CM_FIDSTATS_FLAG_CALLBACK    0x10 
+#define CM_FIDSTATS_FLAG_PURERO      0x08
+#define CM_FIDSTATS_FLAG_CALLBACK    0x10
 
 extern void cm_PerformanceTuningCheck(void);
 
index 89a3393ae515bc51147449b3a7f21d631883bac7..a4cdbd483549c09d4f2321106845d3bd206f4736 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index b32a1e9cd192762cf7dbe95690df87166cdf9cb8..b54c2f9cbbb231dba02243db9cee2275f1ac4156 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -43,7 +43,7 @@ typedef struct cm_file_lock {
                                    cm_scacheLock] */
     osi_queue_t fileq;         /* per-file list of locks [protected
                                    by scp->rw]*/
-    
+
     cm_user_t *userp;           /* The user to which this lock belongs
                                    to [immutable; held] */
     cm_scache_t *scp;           /* The scache to which this lock
@@ -197,7 +197,7 @@ typedef struct cm_scache {
                                  * by the file server in the most
                                  * recent fetch status.
                                  */
-       
+
     /* bulk stat progress */
     osi_hyper_t bulkStatProgress;      /* track bulk stats of large dirs */
 
@@ -320,7 +320,7 @@ typedef struct cm_scache {
                                                 * in old info.
                                                  */
 #define CM_MERGEFLAG_STOREDATA         2       /* Merge due to storedata op */
-#define CM_MERGEFLAG_DIROP              4       /* Merge due to directory op */ 
+#define CM_MERGEFLAG_DIROP              4       /* Merge due to directory op */
 
 /* hash define.  Must not include the cell, since the callback revocation code
  * doesn't necessarily know the cell in the case of a multihomed server
@@ -367,10 +367,10 @@ extern long cm_SyncOp(cm_scache_t *, struct cm_buf *, struct cm_user *,
 
 extern void cm_SyncOpDone(cm_scache_t *, struct cm_buf *, afs_uint32);
 
-extern void cm_MergeStatus(cm_scache_t * dscp, cm_scache_t * scp, 
-                          struct AFSFetchStatus * statusp, 
+extern void cm_MergeStatus(cm_scache_t * dscp, cm_scache_t * scp,
+                          struct AFSFetchStatus * statusp,
                           struct AFSVolSync * volsyncp,
-                          struct cm_user *userp, 
+                          struct cm_user *userp,
                            cm_req_t *reqp,
                           afs_uint32 flags);
 
index defb81d80ce1fec2f95d91bcc178eec308a87158..2774640358b5d7e0a778ec10534f75f0ca68c1d4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -76,7 +76,7 @@ typedef struct cm_serverRef {
 #define CM_IPRANK_MED  30000   /* on same network */
 #define CM_IPRANK_LOW  40000   /* on different networks */
 
-/* the maximum number of network interfaces that this client has */ 
+/* the maximum number of network interfaces that this client has */
 
 #define CM_MAXINTERFACE_ADDR          16
 
@@ -115,9 +115,9 @@ extern void cm_SetServerPrefs(cm_server_t * serverp);
 
 extern void cm_InsertServerList(cm_serverRef_t** list,cm_serverRef_t* element);
 
-extern long cm_ChangeRankServer(cm_serverRef_t** list, cm_server_t* server); 
+extern long cm_ChangeRankServer(cm_serverRef_t** list, cm_server_t* server);
 
-extern void cm_RandomizeServer(cm_serverRef_t** list); 
+extern void cm_RandomizeServer(cm_serverRef_t** list);
 
 extern void cm_FreeServer(cm_server_t* server);
 
index 92849340ced4b943f431895f3e9322ae4692b1a0..d3ad4dc15127ac3777ca1f39d8ac9b0ecc95494f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -16,7 +16,7 @@
 /* user structure
  * no free references outside of cm_allUsersp
  * there are held references from cm_conn_t.
- * 
+ *
  * All the fields in this structure are locked by the
  * corresponding userp's userp->mx mutex.
  */
index 5a7a33e75b5782159ce36c393b6cf3fe4f0e008e..97f26c0c83cebf0002077fbeaddf71b82472e0f0 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index da22ded6b2b1cd1c2bb51255051c6bd720f5a497..ae8e566f56888451ed3d950c1bf0dfcb28aa4ccd 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -97,7 +97,7 @@ extern long cm_Lookup(cm_scache_t *dscp, clientchar_t *namep, long flags,
 #endif
 
 extern long cm_LookupInternal(cm_scache_t *dscp, clientchar_t *namep, long flags,
-                              cm_user_t *userp, cm_req_t *reqp, 
+                              cm_user_t *userp, cm_req_t *reqp,
                               cm_scache_t **outpScpp);
 
 extern afs_int32 cm_TryBulkStat(cm_scache_t *dscp, osi_hyper_t *offsetp,
@@ -120,11 +120,11 @@ extern long cm_Unlink(cm_scache_t *dscp, fschar_t *fnamep,
                       cm_user_t *userp, cm_req_t *reqp);
 
 extern long cm_ApplyDir(cm_scache_t *scp, cm_DirFuncp_t funcp, void *parmp,
-                        osi_hyper_t *startOffsetp, cm_user_t *userp, cm_req_t *reqp, 
+                        osi_hyper_t *startOffsetp, cm_user_t *userp, cm_req_t *reqp,
                         cm_scache_t **retscp);
 
 extern long cm_MakeDir(cm_scache_t *dscp, clientchar_t *lastNamep, long flags,
-                       cm_attr_t *attrp, cm_user_t *userp, cm_req_t *reqp, 
+                       cm_attr_t *attrp, cm_user_t *userp, cm_req_t *reqp,
                        cm_scache_t **scpp);
 
 extern long cm_RemoveDir(cm_scache_t *dscp, fschar_t *lastNamep, clientchar_t *originalNamep,
@@ -177,7 +177,7 @@ extern long cm_CheckNTOpen(cm_scache_t *scp, unsigned int desiredAccess,
                            unsigned int createDisp, cm_user_t *userp,
                            cm_req_t *reqp, cm_lock_data_t ** ldpp);
 
-extern long cm_CheckNTOpenDone(cm_scache_t *scp, cm_user_t *userp, cm_req_t *reqp, 
+extern long cm_CheckNTOpenDone(cm_scache_t *scp, cm_user_t *userp, cm_req_t *reqp,
                               cm_lock_data_t ** ldpp);
 
 extern long cm_CheckNTDelete(cm_scache_t *dscp, cm_scache_t *scp,
@@ -210,9 +210,9 @@ extern long cm_Unlock(cm_scache_t *scp, unsigned char sLockType,
                       LARGE_INTEGER LOffset, LARGE_INTEGER LLength, cm_key_t key,
                       afs_uint32 flags, cm_user_t *userp, cm_req_t *reqp);
 
-extern long cm_LockCheckRead(cm_scache_t *scp, 
-                             LARGE_INTEGER LOffset, 
-                             LARGE_INTEGER LLength, 
+extern long cm_LockCheckRead(cm_scache_t *scp,
+                             LARGE_INTEGER LOffset,
+                             LARGE_INTEGER LLength,
                              cm_key_t key);
 
 extern long cm_LockCheckWrite(cm_scache_t *scp,
@@ -256,7 +256,7 @@ typedef struct cm_bulkStat {
     AFSCallBack callbacks[CM_BULKMAX];
 } cm_bulkStat_t;
 
-extern afs_int32 cm_TryBulkStatRPC(cm_scache_t *dscp, cm_bulkStat_t *bbp, 
+extern afs_int32 cm_TryBulkStatRPC(cm_scache_t *dscp, cm_bulkStat_t *bbp,
                                    cm_user_t *userp, cm_req_t *reqp);
 
 #endif /*  __CM_VNODEOPS_H_ENV__ */
index a9d01185f0975f247365938151c49499837e296c..245fcfcf22299c8a1ee661dab7e7a6db60ff5157 100644 (file)
@@ -1,18 +1,18 @@
-/* 
+/*
  * Copyright (c) 2007 Secure Endpoints Inc.
  *
  * All rights reserved.
- * 
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions 
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
  * are met:
- * 
- *     * Redistributions of source code must retain the above copyright 
+ *
+ *     * Redistributions of source code must retain the above copyright
  *       notice, this list of conditions and the following disclaimer.
- *     * Neither the name of the Secure Endpoints Inc. nor the names of its 
- *       contributors may be used to endorse or promote products derived 
+ *     * Neither the name of the Secure Endpoints Inc. nor the names of its
+ *       contributors may be used to endorse or promote products derived
  *       from this software without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
@@ -26,7 +26,7 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-/* This header file provides the definitions and prototypes 
+/* This header file provides the definitions and prototypes
  * which specify the AFS Cache Manager Volume Status Event
  * Notification API
  */
@@ -84,10 +84,10 @@ typedef struct dll_VolStatus_Funcs {
     long (__fastcall * dll_VolStatus_Network_Addr_Change)(void);
     long (__fastcall * dll_VolStatus_Change_Notification)(afs_uint32 cellID, afs_uint32 volID, enum volstatus status);
     /* version 2 */
-    long (__fastcall * dll_VolStatus_Notify_DFS_Mapping)(afs_uint32 cellID, afs_uint32 volID, 
+    long (__fastcall * dll_VolStatus_Notify_DFS_Mapping)(afs_uint32 cellID, afs_uint32 volID,
                                                          afs_uint32 vnodeID, afs_uint32 uniqID,
                                                          char *src, char *target);
-    long (__fastcall * dll_VolStatus_Invalidate_DFS_Mapping)(afs_uint32 cellID, afs_uint32 volID, 
+    long (__fastcall * dll_VolStatus_Invalidate_DFS_Mapping)(afs_uint32 cellID, afs_uint32 volID,
                                                              afs_uint32 vnodeID, afs_uint32 uniqID);
 } dll_VolStatus_Funcs_t;
 
index a26b10f3f0bc330da8ff94514ccb8ff83e696454..7ec1a8c7a7f28eab5ad91fffcd7b645ec1e93f32 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -14,7 +14,7 @@
 
 #define CM_VOLUME_MAGIC    ('V' | 'O' <<8 | 'L'<<16 | 'M'<<24)
 
-/* 
+/*
  *
  */
 
@@ -60,12 +60,12 @@ typedef struct cm_volumeRef {
 
 extern void cm_InitVolume(int newFile, long maxVols);
 
-extern long cm_FindVolumeByName(struct cm_cell *cellp, char *volNamep, 
-                               struct cm_user *userp, struct cm_req *reqp, 
+extern long cm_FindVolumeByName(struct cm_cell *cellp, char *volNamep,
+                               struct cm_user *userp, struct cm_req *reqp,
                                afs_uint32 flags, cm_volume_t **outVolpp);
 
 extern long cm_FindVolumeByID(struct cm_cell *cellp, afs_uint32 volumeID,
-                             cm_user_t *userp, cm_req_t *reqp, 
+                             cm_user_t *userp, cm_req_t *reqp,
                              afs_uint32 flags, cm_volume_t **outVolpp);
 
 #define CM_GETVOL_FLAG_CREATE               1
@@ -95,7 +95,7 @@ extern long cm_GetROVolumeID(cm_volume_t *volp);
 extern long cm_ForceUpdateVolume(struct cm_fid *fidp, cm_user_t *userp,
        cm_req_t *reqp);
 
-extern cm_serverRef_t **cm_GetVolServers(cm_volume_t *volp, afs_uint32 volume, 
+extern cm_serverRef_t **cm_GetVolServers(cm_volume_t *volp, afs_uint32 volume,
                                          cm_user_t *userp, cm_req_t *reqp);
 
 extern void cm_ChangeRankVolume(cm_server_t *tsp);
@@ -128,8 +128,8 @@ extern void cm_CheckOfflineVolumes(void);
 
 extern long cm_CheckOfflineVolume(cm_volume_t *volp, afs_uint32 volID);
 
-extern void cm_CheckOfflineVolumeState(cm_volume_t *volp, cm_vol_state_t *statep, 
-                                       afs_uint32 volID,  afs_uint32 *onlinep, 
+extern void cm_CheckOfflineVolumeState(cm_volume_t *volp, cm_vol_state_t *statep,
+                                       afs_uint32 volID,  afs_uint32 *onlinep,
                                        afs_uint32 *volumeUpdatedp);
 
 extern void cm_UpdateVolumeStatus(cm_volume_t *volp, afs_uint32 volID);
index b019ea506696263e2ca9e56f1244335234938039..43516f733230681b3d1cce411fdaa2763a5e22df 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 29c9e9f5af31d216f82fdab4a9d5f0a9259ffeb3..9c3aadbf4a0d41422b1f3d09ff30767999564cda 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index cf8f0ddbab37a8a636ce84e66051b1acd9421ce9..39b4cf0faadc0aa25cd72239be4251af6f01d4e2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  */
 
 /*
- * Copyright 1987, 1988 by the Massachusetts Institute of Technology. 
+ * Copyright 1987, 1988 by the Massachusetts Institute of Technology.
  *
  * For copying and distribution information, please see the file
- * <mit-copyright.h>. 
+ * <mit-copyright.h>.
  *
- * Include file for the Kerberos library. 
+ * Include file for the Kerberos library.
  */
 
 /* Only one time, please */
index 58972380785a22e1d41248a40c8c878b74906e04..50013a097f69875ada7be6d6241300c476515aa8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 71fbc062d620d2523d9770990350575d34fc99e4..6a26848c981117f307d5c1e75837012eb496ac12 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -289,9 +289,9 @@ typedef struct smb_username {
     time_t last_logoff_t;              /* most recent logoff time */
 } smb_username_t;
 
-/* The SMB_USERNAMEFLAG_AFSLOGON is used to preserve the existence of an 
+/* The SMB_USERNAMEFLAG_AFSLOGON is used to preserve the existence of an
  * smb_username_t even when the refCount is zero.  This is used to ensure
- * that tokens set to a username during the integrated logon process are 
+ * that tokens set to a username during the integrated logon process are
  * preserved until the SMB Session that will require the tokens is created.
  * The cm_IoctlSetTokens() function when executed from the Network Provider
  * connects to the AFS Client Service using the credentials of the machine
@@ -300,7 +300,7 @@ typedef struct smb_username {
 
 /* The SMB_USERNAMEFLAG_LOGOFF is used to indicate that the user most
  * recently logged off at 'last_logoff_t'.  The smb_username_t should not
- * be deleted even if the refCount is zero before 'last_logoff_t' + 
+ * be deleted even if the refCount is zero before 'last_logoff_t' +
  * 'smb_LogoffTransferTimeout' if 'smb_LogoffTokenTransfer' is non-zero.
  * The smb_Daemon() thread is responsible for purging the expired objects */
 
@@ -470,7 +470,7 @@ typedef struct smb_dirSearch {
     unsigned short attribute;          /* search attribute
                                         * (used for extended protocol) */
     clientchar_t tidPath[256];          /* tid path */
-    clientchar_t relPath[1024];         /* relative path */        
+    clientchar_t relPath[1024];         /* relative path */
     clientchar_t mask[256];            /* search mask for V3 */
 } smb_dirSearch_t;
 
@@ -489,9 +489,9 @@ typedef struct smb_dirListPatch {
 } smb_dirListPatch_t;
 
 /* dirListPatch Flags */
-#define SMB_DIRLISTPATCH_DOTFILE 1  
+#define SMB_DIRLISTPATCH_DOTFILE 1
 /* the file referenced is a dot file
- * Note: will not be set if smb_hideDotFiles is false 
+ * Note: will not be set if smb_hideDotFiles is false
  */
 
 /* individual lock on a waiting lock request */
@@ -608,7 +608,7 @@ extern smb_username_t *smb_FindUserByName(clientchar_t *usern, clientchar_t *mac
 
 extern cm_user_t *smb_FindCMUserByName(clientchar_t *usern, clientchar_t *machine, afs_uint32 flags);
 
-extern smb_user_t *smb_FindUserByNameThisSession(smb_vc_t *vcp, clientchar_t *usern); 
+extern smb_user_t *smb_FindUserByNameThisSession(smb_vc_t *vcp, clientchar_t *usern);
 
 extern void smb_ReleaseUsername(smb_username_t *unp);
 
@@ -770,12 +770,12 @@ extern LONG smb_UseUnicode;
 extern DWORD smb_monitorReqs;
 
 /* used for getting a challenge for SMB auth */
-typedef struct _MSV1_0_LM20_CHALLENGE_REQUEST {  
+typedef struct _MSV1_0_LM20_CHALLENGE_REQUEST {
     MSV1_0_PROTOCOL_MESSAGE_TYPE MessageType;
 } MSV1_0_LM20_CHALLENGE_REQUEST, *PMSV1_0_LM20_CHALLENGE_REQUEST;
 
-typedef struct _MSV1_0_LM20_CHALLENGE_RESPONSE {  
-    MSV1_0_PROTOCOL_MESSAGE_TYPE MessageType;  
+typedef struct _MSV1_0_LM20_CHALLENGE_RESPONSE {
+    MSV1_0_PROTOCOL_MESSAGE_TYPE MessageType;
     UCHAR ChallengeToClient[MSV1_0_CHALLENGE_LENGTH];
 } MSV1_0_LM20_CHALLENGE_RESPONSE, *PMSV1_0_LM20_CHALLENGE_RESPONSE;
 /**/
@@ -787,7 +787,7 @@ extern long smb_GetNormalizedUsername(clientchar_t * usern, const clientchar_t *
 extern void smb_FormatResponsePacket(smb_vc_t *vcp, smb_packet_t *inp,
        smb_packet_t *op);
 
-extern char *myCrt_Dispatch(int i); 
+extern char *myCrt_Dispatch(int i);
 
 extern char *myCrt_2Dispatch(int i);
 
@@ -866,7 +866,7 @@ typedef struct _MSV1_0_SETPROCESSOPTION_REQUEST {
     MSV1_0_PROTOCOL_MESSAGE_TYPE MessageType;
     ULONG ProcessOptions;
     BOOLEAN DisableOptions;
-} MSV1_0_SETPROCESSOPTION_REQUEST, *PMSV1_0_SETPROCESSOPTION_REQUEST; 
+} MSV1_0_SETPROCESSOPTION_REQUEST, *PMSV1_0_SETPROCESSOPTION_REQUEST;
 #endif
 
 #endif /* whole file */
index 817576d0dfa7400ce37622b37959a4fbb80c4366..fa5ca6ada662ca688a2214e55c36e5ad568fc98f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -210,7 +210,7 @@ typedef struct {
        struct {
            unsigned long  eaSize;
        } QFeaInfo;
-       struct {        
+       struct {
            unsigned long  fileNameLength;
            unsigned char  fileName[512];
        } QFfileNameInfo;
index ada88341693459288550cbe439adb998f4fd9e6d..4d32a4119e43fd6132d6b54288f0b1a724f19ebe 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1c5808069c9b060d3def371c688a2f3159e86fca..1165df62ceaa86d579ac2867f22d90299a518f78 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -35,7 +35,7 @@ typedef struct smb_ioctl {
 
     /* pathname associated with the Tree ID */
     clientchar_t *tidPathp;
-    
+
     /* prefix for subst drives */
     cm_space_t *prefix;
 
@@ -83,7 +83,7 @@ extern afs_int32
 smb_ParseIoctlParent(smb_ioctl_t *ioctlp, cm_user_t *userp, cm_req_t *reqp,
                      cm_scache_t **scpp, clientchar_t *leafp);
 
-extern afs_int32 
+extern afs_int32
 smb_IoctlSetToken(struct smb_ioctl *ioctlp, struct cm_user *userp, afs_uint32 flags);
 
 extern afs_int32
index 818d5952f80223f42fab0a6326ccc0283b42380e..fa86c395fda233e77a9d0813bc3bd7d52080608e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -18,7 +18,7 @@
 #define IDC_STATIC                      -1
 
 // Next default values for new objects
-// 
+//
 #ifdef APSTUDIO_INVOKED
 #ifndef APSTUDIO_READONLY_SYMBOLS
 #define _APS_NEXT_RESOURCE_VALUE        102
index 2c9f132c38efb0f925860c53e3d96c975a162302..c3274e61beedfa9bda5b7c024a36984740aee217 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -234,7 +234,7 @@ extern long
 RegDupKeyAlt(const char *sourceKey,
             const char *targetKey);
 
-extern int 
+extern int
 IsWow64(void);
 
 #ifdef __cplusplus
index 4d8326ea39bc07a687660edbec72a0dd7c7e02ea..e3085424e828edeb39e24656938020ca3c7adf46 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 6ee002871cefd1f6be4a4e9eaac2e1f6073b443f..fd7a68af0163785fe5b503eff845974b8582043b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 69fbab65018aed8b2fa43316ddde8ff12167fc7e..5d6ca7b1b29cdbbf0d69a8c62f285988ef5a00a8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 735bb1c20103ca3bce3a9ee8900b0fbf730242b2..595875e433888b01d3557fe594840d13109b2830 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -10,7 +10,7 @@
 #ifndef        _ADMIN_INFO_DLG_H_
 #define _ADMIN_INFO_DLG_H_
 
-// Each option includes the ones before it.  
+// Each option includes the ones before it.
 enum GET_ADMIN_INFO_OPTIONS { GAIO_LOGIN_ONLY,  GAIO_GET_SCS };
 
 BOOL GetAdminInfo(HWND hParent, GET_ADMIN_INFO_OPTIONS eOptions);
index c94f0848304e4e5a249202fc3fbb3ff5f022e8a2..e7628cd48e87c347493ad056b541c232acd6f959 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -54,11 +54,11 @@ enum StateID {
 #define        CS_NULL                                 0               // NULL state
 #define        CS_DONT_CONFIGURE               1               // Do not perform the configuration step
 #define        CS_CONFIGURE                    2               // Perform the configuration step
-#define        CS_ALREADY_CONFIGURED   3               // The step has already been performed, so we don't 
+#define        CS_ALREADY_CONFIGURED   3               // The step has already been performed, so we don't
                                                                                // need to do it.
 #define CS_UNCONFIGURE                 4               // Unconfigure the step
 #define CS_DISABLED                            32              // The step cannot be performed because it is dependent
-                                                                               // on some other step that is not to be performed and 
+                                                                               // on some other step that is not to be performed and
                                                                                // has not already been performed.
 
 // I know I could have used an enum for this, but then tacking on the CS_DISABLED
@@ -85,7 +85,7 @@ typedef int CONFIG_STATE;
  */
 struct CFG_DATA {
        BOOL bWizard;
-       
+
        CONFIG_STATE configFS;                  // File server
        CONFIG_STATE configDB;                  // Database server
        CONFIG_STATE configBak;                 // Backup server
@@ -102,11 +102,11 @@ struct CFG_DATA {
 
        BOOL bRootAfsExists;
        BOOL bRootCellExists;
-    // If we cannot determine if the root volumes exist, then this 
+
+    // If we cannot determine if the root volumes exist, then this
     // variable will be FALSE.
     BOOL bRootVolumesExistanceKnown;
-       
+
     BOOL bRootAfsReplicated;
        BOOL bRootCellReplicated;
     BOOL bRootVolumesReplicationKnown;
index 5769d4d903c554bf46d997af73288c00c6c26f7b..cf93dbc03fdc940d045bdebccddcea909284ecbd 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -14,7 +14,7 @@
 BOOL IsStepEnabled(const CONFIG_STATE& step);
 void EnableStep(CONFIG_STATE& step, BOOL bEnable = TRUE);
 
-BOOL ShouldConfig(const CONFIG_STATE& state);          
+BOOL ShouldConfig(const CONFIG_STATE& state);
 BOOL DontConfig(const CONFIG_STATE& state);
 void ToggleConfig(CONFIG_STATE& state);
 BOOL ConfiguredOrConfiguring(const CONFIG_STATE& step);
index 156865d76759effe7f550ba5ee74096522fb1ec9..0b81873c839061137024ada025f16fcc371e9d44 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 69d9961c8db1e22695b8ac521ea8cac932331962..b7d4933d445006f113ad15724ed6c087a00bed3b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 52746c6715fd93093a6279f40cf39f80270d12aa..f4a0c0ba43c030ce8027238cf75a1de9eb3081a7 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 963db86134a99b2b3530736859f20c0dd49d2bdd..8df9bbff21212de3e0e6a741df5ee2b2de5985cb 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 7e6cc0205f4d447b0c1c46bab2ec0ca91edad3ae..b40ebdca681227c8dcc8e324dc16dd9ed9bcfe9e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 2392768cda2543de44c8bdbbef20a457b88d5e29..5f7e2e52402ea796271f910839b83120bfdf2227 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 4b58c6a7b2cc62f2a6894e43f617c23220b14c7f..2f89fd293cc0173cd5122098247e64ec149f6b03 100755 (executable)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 3bba05a2eede6e6d42cf0057960a04dc5b46abc2..88c035a45d767ae64f9a5fdef2f97e51d109af95 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -26,7 +26,7 @@ public:
        LOGFILE();
        ~LOGFILE();
 
-       BOOL Open(      const char                              *pszLogFilePath, 
+       BOOL Open(      const char                              *pszLogFilePath,
                                LOGFILE_OPEN_MODE               eOpenMode = OM_OVERWRITE,
                                LOGFILE_TIMESTAMP_MODE  eTimeStampMode = TSM_EACH_ENTRY
                         );
index 6d2022452145e164b24fc0ec43c0a64a866622cd..7c924afd4d1fe72d1bcd1d1212fb493b3d6371bb 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index e4f5c7cf885636e672298f76d5eeb3185a4f62b5..14e262ed44989706f72d407021fb16fdaa29919b 100644 (file)
@@ -1,27 +1,27 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  */
 
 #define IDS_NEXT                         0
-#define IDS_FINISH                       1 
-#define IDS_HELP_TITLE                   2 
-#define IDS_HELP_DESC                    3 
-#define IDS_CANCEL_DESC                  4 
-#define IDS_PARTITION_ALREADY_CREATED    5 
-#define IDS_NOT_A_FS_SERVER              6 
-#define IDS_ROOT_AFS_ALREADY_EXISTS      7 
-#define IDS_NO_PARTITION_EXISTS          8 
-#define IDS_ALREADY_REPLICATED           9 
+#define IDS_FINISH                       1
+#define IDS_HELP_TITLE                   2
+#define IDS_HELP_DESC                    3
+#define IDS_CANCEL_DESC                  4
+#define IDS_PARTITION_ALREADY_CREATED    5
+#define IDS_NOT_A_FS_SERVER              6
+#define IDS_ROOT_AFS_ALREADY_EXISTS      7
+#define IDS_NO_PARTITION_EXISTS          8
+#define IDS_ALREADY_REPLICATED           9
 #define IDS_ROOT_AFS_DOESNT_EXIST        10
 #define IDS_ALREADY_CONFIGURED           11
 #define IDS_NOTHING_TO_CONFIGURE         12
 #define IDS_EXIT                         13
-                                         
+
 #define IDS_START_FS_STEP                16
 #define IDS_CANCEL_CONFIG_MSG            17
 #define IDS_WIZARD_APP_TITLE             18
@@ -88,7 +88,7 @@
 #define IDS_PARTITIONS_PAGE_TITLE                76
 #define IDS_CONFIGURE                            77
 #define IDS_DB_AND_BK_STEP_DESC                  78
-                                                 
+
 #define IDS_PARTITION_STEP                       80
 #define IDS_CONFIG_COMMON_FUNCS                  81
 #define IDS_START_DB_STEP                        82
 #define IDS_SET_SERVER_LICENSE_STEP              94
 #define IDS_DEFINE_CELL_NAME_STEP                95
 
-#define IDS_DEFINE_CELL_MEMBERSHIP_STEP          96 
-#define IDS_START_BOS_SERVER_STEP                97 
-#define IDS_START_AUTH_SERVER_STEP               98 
-#define IDS_CREATE_PRINCIPAL_AND_KEY_STEP        99 
+#define IDS_DEFINE_CELL_MEMBERSHIP_STEP          96
+#define IDS_START_BOS_SERVER_STEP                97
+#define IDS_START_AUTH_SERVER_STEP               98
+#define IDS_CREATE_PRINCIPAL_AND_KEY_STEP        99
 #define IDS_START_DB_AND_BK_STEP                 100
 #define IDS_CREATE_ADMIN_PRINCIPAL_STEP          101
 #define IDS_START_CLIENT_STEP                    102
 #define IDS_BK_WILL_RUN                          205
 #define IDS_BK_WILL_STOP                         206
 #define IDS_SCS_WILL_RUN                         207
-                                                 
+
 #define IDS_SCS_WILL_STOP                        208
 #define IDS_ERROR_DRIVE_ALREADY_HAS_AFS          209
 #define IDS_VOLUME_HAS_NO_NAME                   210
 #define IDC_SALVAGE_STATUS              1200
 
 // Next default values for new objects
-// 
+//
 #ifdef APSTUDIO_INVOKED
 #ifndef APSTUDIO_READONLY_SYMBOLS
 #define _APS_NO_MFC                     1
index 86e9763678b19a2b48052b9612b2d544d4d0a4ad..759fcf1a0a49c53360ccdb6082d0e0f2af35d56d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 37e5de5e33407872019c14eb37a1360594ae5ce2..2881b2effe5881d7e94e82a973bcb055ac887a86 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -49,7 +49,7 @@ void MakeBold(HWND hWnd);
 inline void MakeBold(HWND hDlg, UINT uiCtrlID)         { MakeBold(GetDlgItem(hDlg, uiCtrlID)); }
 
 int MsgBox(HWND hParent, UINT uiTextID, UINT uiCaptionID, UINT uiType);
-                  
+
 
 #endif // _TOOLBOX_H_
 
index 1621763fcd15c989ad24782da14b826ca1f08a1d..c0759814108561e4b5599a61767ef412fd99a0cf 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -11,8 +11,8 @@
 #define _VALIDATION_H_
 
 
-enum VALIDATION_TYPE { 
-       VALID_AFS_PARTITION_NAME, 
+enum VALIDATION_TYPE {
+       VALID_AFS_PARTITION_NAME,
        VALID_AFS_CELL_NAME,
        VALID_AFS_PASSWORD,
        VALID_AFS_UID,
index 9efb416ab0f5c4587ba3e117a56dfe4a0143ff4c..26a8f42d01056fad0365be6dcb888dde9e531800 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 6613c58d1bfa0d2d68c36b6baaac0cce981c155e..7bae889361a351d8cb699d6986dc8a16ea2e52e8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 03a8fe2ec9c68f4dfae4610d3cf9ee3179b648a1..99f0500209e44e1d511e917076b8d8a6fe12c7f5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 96cdcaf6aa4289257d85e3361ca11b7dd19909b7..75f49821ff2949b11e72a4f7128a08c01b99fdee 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 639749eeb536fae2e34e7354451107e6e2924a5a..e392e1dc7461c0a6308a57c5110815261fd1d707 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 279d71d772362d686705e81decab213c57b57bb0..6b4510794ef27774bd3703e266f1505d2042ba42 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1c7360f9901696f1c0b17722bbbbda51907d9a2b..21865c560efe8b808c461607162a5306aff18fc7 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 7de008bcbc1bf80970dd7f85b9c4e4699711397f..19ffe36145a72972443323a2687f703f945d5c19 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 2d7f1b136ff50605646c89f66c63a7dea91da133..43df57e5a32e436bafeec540fff63146ac287fdf 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 14a668bf35eeda238e02d12012379854e714aee2..97b678645da69ccfe78fa11c41676954e4f78334 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index d9115b1536f2958291986f45b4dfe37cb7a216af..051e6a9fa870118cee88b86529a1fd322e781f89 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 02264044bca1bb05e4ec4ee72fcd5a89373a3b28..49a2df4d6b4e7045a394d7ba7904e9c6acdc4c94 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index f96f7d09fd4497a053382c7c7a378752a8c6f3da..e20873802716b65054e0ff03b298f8b11d9166e5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index f37319623cf52a3ff3f339f4e9e4d23242bc7fc1..caa83c050e4c95ce1f01e9e8d70ffe568c2abf24 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 655db2e3b3a4528ee700afb49ff6a4a0165d36e8..bfb7a54c2c882e1f8fb170a878bd8f8711dbbd2b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 6fd7bb1c560b4fad521bf6f05e009f19abdbf4c1..4348cb99f2800ad0fa39fd587ad844e06585f40a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index b50a3b5282d6dac8d4a46d5f68954f3682e1c624..aa58aeba321956d74d63cec9f0ba18f0a811cffb 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 5cad8a7e604d29a533d4efec5a373a187e6c6629..489e800ef73640f89f6ba9ec77910e15b9841a33 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1a87cd2fa960bfc75ac57ddd4a3e7b33308ade68..8a01aeb1ea2463cc8ec85b75dfa609df53242279 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1175c879c5b587ced2e5d4294b80129e2c9188d7..904d3a32c6f50c518f2f802439f02609edb83f6f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c1aab05a1a8bde7ce6e0119e45279e4272acfa06..095dd509d3a6a5b2aa66783d5fffd55c083fc0b6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index d4fc5711df2af3800e458a1f28c7780c268c7a31..c541def3ca7e4b35c0770b3ddd221f0c98f701cd 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c717624ed619ab6cd042106deb5cd07800bddad6..a68290b7112422d90b80084c276000937458a0c3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 37239307193cda95388309490e5c2d67ef1dec3f..7992032cccb73dbb5ebeaeb6ae36e24564b1105f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index d0cd1c2b6de20605e71af5f1a0a583790e2bc394..6280a39307b0385403b0f52c26b7da3eb5b9d908 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
 #define IDS_SERVICES_IN_CELL                 762
 #define IDS_SERVICE_STARTDATE                763
 #define IDS_SERVICE_STOPDATE                 764
-                                        
+
 #define IDC_CELL                        1000
 #define IDC_SERVERS                     1001
 #define IDC_TABS                        1002
 #define IDC_STATIC                      -1
 
 // Next default values for new objects
-// 
+//
 #ifdef APSTUDIO_INVOKED
 #ifndef APSTUDIO_READONLY_SYMBOLS
 #define _APS_NO_MFC                     1
index 661e9143b3f5437081f98265890202e72f655363..bb7856e9e5eba00108470a19c17c3dcdcf225944 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index e273947a16db6b5094340254bb171d7948d0b785..a5c6a9a4aa0948d5d4812cab68e9538322fad597 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 7f279d4c3a465509d50089e7397262326890f4ec..a514fb5e547bebdbca2e187e8f10b16cc78de46c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 0f61cf756d9a7ed37c13a0cb38b77e9a8b9ceedb..77c473683d371cec607402a0c54af7dbb1ece879 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 9f1ebe9c540b19754fdd3494c6ab4726286a6794..45b3b231d67c55a3752fa180980c18c093797976 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1c49fd4234b63f380dc1902344125cba4033ffb7..85eff73b9f6ea5d3eba27bdd00640a8e05d86f4a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 616799ce62b6b2273c5d8cb24f4150689f272aec..65c5b7bc499dca96c532524600dcb2e7f448aafa 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ff7e54495ccd89c18e73ee75235e12eb1a50397f..f75a5c7dc63e5342aa1c8da4312d7cce7569f92c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 2f28e9c48d21dbb129da55c0702e6286829e3ace..d3f3add14d0649359b910ab16fecaf27d30302d8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 7c93eaf613dc1acd376f9bcfd88091f0acd358e4..f1fe97632a3a2a0e79076822b1bfa82d02c4ddcb 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c0d191da7bea0d6bbe8c5662c216ff7744a3d82a..b4f11094914f817000ea7bc911954f573cc32fb6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index f1dc92f97900fbdb228da1b2d42a55360d5fd496..e11eb8452ef8dd55dc55aa27fbcb3ba52d35c434 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1b22f886fd4310e2381038b8c8afa3be9bad98f4..197d31e81aefeeb6542a2bea59e38c982e052d45 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index dbde74a22b9ed1c78ec935e3755d316aee787367..f24f3e434b21a343d5a51b61f2e0651a2b1cb45a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 6811ec632f7611b19eeab95c32cef0715a4521dc..2da1ac2ca546293edd427c211a7efc7e85aa8118 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index b791729c3288288796ba87b18ed5a69646eca950..9f036e0ba9b7ad7e81eac718ebe9ae732b7f6064 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 635730eb0dd6d709842c0a3567a79ae3a5fc413c..102988fd29b434a1c95a9510f1ec26fc2b383a95 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 0446b4ce8bee1db5f5451c4881253af3531df80b..06dab2ab0aa9a78f18107dc486bd9a2bd2f5ba24 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index d510e3d662ca36f0cf478d5a155becbf7c74898a..0d387def9e0f27aa9186b7de50a76f1e5b3e8c0f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 88034ac674bddf66b4809d8278bb29eb843d455d..697fb69a6b29acf90766df9cac74d096e7bff8ee 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index cdcc40e1eba0efdb0c817c1c54a6cb4da852b694..e141a33620c6c1194b584e233cc1230719a52805 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index b79e2b525851631780c4ef2e197fa0bf8ac1acdb..08f8bdd50953ac5520afc3477720ad281720a1de 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 0ff472ad25887c6db89195becb0e7e47a7891af3..a7c5c511229075c84e0f13895870e4490fbe1b66 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 8c48fe43f29284362e1b8d2ad31ee32134aed052..c68403aa5852c3723983e70f8baf67b8eb0a9986 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 841cd4b3f95c2be1ce6a37678251c9efeb43860f..382b2ba52aa51756a2c2a6c5b2615722fc13117c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ad574eb4847433997a8f72f33fa56f38d39eebf0..c88e8ec9d8ccc46dc4e856888d4bb7229c117c89 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a200d26698924355c5cee5d2485275d4e188925f..42c1c7372ba0301b9d44dba7ec7346274b1d1451 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 3c7a3bbbd1e05a28a8dc0082ccde0775fb815628..8a3b7e55ef420ad3b5d2e36615a9c2576c70f0b3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 46fae0670ea451e8b19470866f5d20d31c0200d2..c1cc724f7923fa9d70ad81b1cffa929f8b9aa753 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 140c85e73a8a5635340a235b07984716041d1a09..fc35e15faa4b2cae7d94e7f0c0774be3d8600310 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 0196cc147a9e6da752afb8837ad67e080dd4c452..69698657c7b6e523dfafcaa22f8ded3d22713f8d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 247cc4c9fb5dbcb1445b9408440c593c7792602b..2737062b21f5d267679d3ad20b112b921fdaca15 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 276fbdf487fb85d87de015b4c355cd0a84e18bfb..63d77380bf61d0c598c0ff720e2ae80a40a21856 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 4e4ce049ffe7c7c1c5ca5c5af162ca4970eaa0ad..c11aaafccce8267fafb5429fff6622f36fa44bfd 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 89eb428c470b53cebcf4b2a559fd5c5301ef697c..bbd0fbe783ff0aa1dea6e0e3a2882474b5cd3c25 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 16c921bf71ade0198b81726f869fa4219e9bb247..636111d1b0bda324de2c3c062ad35cb1be6fdb44 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 8510725655e067c46a88c048fa9c6d1effcfb8ef..e6a3aaba13691a456928addfd1b1cd604e422900 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 3da22b2f909b48a0c10e17f81ab9ae4b10dccdf4..508c6dfc5893c68dfd9ff7c773f73c25872192ba 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index bee3b37ad2ff9902d0940a6a484eb2fe855a9d50..7f8dd927e167d470db8e5b6a58a6429702c02ebc 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index fa3fd3ebb3aa9c387383ee07adf5f36b826906c0..caa970f5d2b66348d26914a7d6aec0d9149bf951 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 28eb5cc9873e2e13b2abf015f22d93da233ac8de..7f7b0800bd9e09c7b1ec96e1f3470ad44ea7397b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index f2339c2e653dca364c9a46c23d714d605ed14a64..02ba764eaad0b229ccf4c6d045602e2f49f80009 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index e690a73a04ef49d2709eb67237aa29bc583d41e2..0b51c0602ab1c1dcde717e2e06a6129ea59e0b40 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ab2dd7ba89fbf48341b90539db558ec23bf9c54a..c446be6c3bfce96fd06298e68658e013a5cff592 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1f49b1aa356abaac77b88bbf756736bbacac04d6..3d5fd12fb69b1df625da381d817b43cec244a23d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index d88b0b134093de6f14dab49718f32b3476489481..d57cc22df1e7fdc5480c62aa1f63c7cf919382c6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index d9115b1536f2958291986f45b4dfe37cb7a216af..051e6a9fa870118cee88b86529a1fd322e781f89 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 4934f591cf09d8fdaea0a549f31338feb4f95bfb..1b745bc3fe0847cd9661b2fbf373be6e1f10983e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a5f4d147e41dac0616a6cba910244723933e69a7..f64a6d10c823ac0a4f7fc76512d5e4b790132a1b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a323ca7e87cd35191a9084ecc7e4eaebcaee2348..4e20660c0f68aaaedff1cbf10351feacf6669098 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 692209a5f1641f0b144bbd4243f34aad7378e4c0..3cf05ccc9733bd08bd37c5cf7bfa8d124467531a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 45bd9f6a94c623f77b1732b671ed447c5bbb8834..3a03ff9614238b5993a9a832b38c010e862457cf 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ed10c7f72b03dec72439ef58a5f10e49920c9b7a..b18b324324101c1b7385e51b888f7e743860e8c4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 6bbb3111ce935d5e9fdfe7a58f27e64e685e1ed2..296df5ead9d262b7b65f1266d170e08f71a3d539 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index e5227f0272c4ab2641366d54f013950f74c4d79d..9cf05f47ae54559c94de98d56e727b0bdcc508de 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 3b212103ce5ee61fc9d6b0937b81085d017c8cda..474b29e7cf15b7357f06895e87df4e7ec7c88435 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 08fbd40eb0636c54916d65ef7d510f00faec10f5..389e59797dd80034d4a9d4a678b68e9ceb4da41e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 0525ce0834b0df9f9130acb6fc952e5070dec026..b11753e565096c7dbcdedf4c7b47dcead57b2e34 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1a87cd2fa960bfc75ac57ddd4a3e7b33308ade68..8a01aeb1ea2463cc8ec85b75dfa609df53242279 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 839c865e936c53cdc4a81f4e08799e6400620302..6c6694680095db50f9077a4403c36b72b2f024c0 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ff57e6d2a26d5035fe508ff520306f3082060201..3aa88718b759e712c8f07af9fb668e1b2acdbfef 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 11386dcb80252b2c3e8f3cfcd82fb16c0548ceb7..eb76b5fe858bf30e5faf6e67524308ec6d454bed 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c0027209ab38fea96de8aaae3f8640f4f12867fc..853d13eb5603b2296bdcecd98e80f0eebf5b61b3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 5c667baeb993c9f2104459c5ba9e9ccde6aed4c6..758314c985dbc61ed32abb269d8487a56925dcae 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 80d3084c5e43fae58136fb726110c1eafccf656f..310bc21b3045a82156c07922a7bf2fa276facdfb 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 40049b1fd5a6e65738e3ad36881b3b8d617b200e..2afda610290d43f0e935161d4a09e9a35aaf2847 100644 (file)
@@ -1,28 +1,28 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  */
 
 #define IDS_APP_TITLE                   0
-#define IDS_USRCOL_NAME                 1 
-#define IDS_GRPCOL_NAME                 2 
-#define IDS_BADCREDS_DESC               3 
-#define IDS_TAB_USERS                   4 
-#define IDS_TAB_GROUPS                  5 
-#define IDS_CELL_NONE                   6 
-#define IDS_CRED_NONE                   7 
-#define IDS_CRED_EXP                    8 
-#define IDS_CRED_OK                     9 
+#define IDS_USRCOL_NAME                 1
+#define IDS_GRPCOL_NAME                 2
+#define IDS_BADCREDS_DESC               3
+#define IDS_TAB_USERS                   4
+#define IDS_TAB_GROUPS                  5
+#define IDS_CELL_NONE                   6
+#define IDS_CRED_NONE                   7
+#define IDS_CRED_EXP                    8
+#define IDS_CRED_OK                     9
 #define IDS_USERS_ALL                   10
 #define IDS_USERS_PATTERN               11
 #define IDS_GROUPS_ALL                  12
 #define IDS_GROUPS_PATTERN              13
 #define IDS_QUERYING_LONG               14
-                                        
+
 #define IDS_ACTION_DESC_NONE            16
 #define IDS_ACTION_DESC_ONE             17
 #define IDS_ACTION_DESC_MULT            18
 #define IDC_STATIC                      -1
 
 // Next default values for new objects
-// 
+//
 #ifdef APSTUDIO_INVOKED
 #ifndef APSTUDIO_READONLY_SYMBOLS
 #define _APS_NO_MFC                     1
index 6e9860a2de2b7760893ed5001d7cd8191ebf993d..4526e2e53c8fc901eec84acc3f00df7ae1560f09 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index e75e76b0151f770d424135b5145d35126c08517d..057f88f6eae930b269b80ffb578bccae0506440c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index f09b0ef788774f8ef5567f2ad942d6e6653020c8..ba7eb052c40779f25a848dd2d10efbac84929131 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 2c47c5d0659b191d5de5ab1b773947311246c650..4eaba78108eb2e8ae70d53d530f33510019630de 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index e848e91b2dd2af3d396c91a49f87fc023b699036..2534ca5786cfc4b8be6fa2d513470421be84adb4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1b4a15ac43bb27b0dfcd2ba1835615fc87f94e06..2b77f6919db4be6bdcef1439f08f644f2f302933 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c6d7825a6674553df7b457801ca03277a92309fc..3ee6b53eb487bcf81b14c13c1007b76eff734396 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a3b4307da877672340573dd239444d70b4e42bf4..54d62687d2aaa3b946d5cdbeb8fb72063e75bee4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 2ffa5508830897637f7070d764f1872f297b40dd..5a7e702194516de44f28710dc77ef14af6792886 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 3f38659c6474c54d238d4a227663904ee861b396..fb8b19c5b99640bfd7a95bff095adbc8673bfbb3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 2aebf253da1d91c10d1d7c704c168299ce0550d5..4425303358e7c8a2f7f173f1bc7205b5280dd21e 100644 (file)
@@ -1,6 +1,6 @@
-/* 
+/*
  *  Copyright (C) 1989,2004 by the Massachusetts Institute of Technology
- * 
+ *
  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
  * distribute this software and its documentation for any purpose and
  * without fee is hereby granted, provided that the above copyright
index 7b15899e7c62a760f776feeebff753311bd2f4f0..448c235d6e9fa4f86cb374fcc6bfa3b3e480da75 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index dc4bfc28373b5f7131d0875eae184c975bcb9337..ee2b7cd1c6e5ccf8ef2720d10d8eff25a608baf2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a838f23dabbaea4eb2e15674b167acf1365e823b..6e87673aa47a8af6d343ac3c0874681784b86165 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index d0726f1d27e6383b920c13faa1b7773918959457..4f1f1d72023f13835568dad34c50cb1f7055b7ea 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 31adb72593ad919910f3083dbd44c8b182ba98b1..b4c5d443714746bfa3d80a91c7c96d5716a45abd 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index e4581a047698bcf51edee358b61ac532022f3ba6..16aec98b369aff90ef8967bd99e5bb03922d5b74 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 0b32420d0ff6dd9c2b03f0340559522efa4fbbc9..abc282459da75dc04a21e07647c8cb8e038e6f69 100644 (file)
@@ -1,26 +1,26 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  */
 
 #define IDS_TITLE_NT                    0
-#define IDS_TITLE_95                    1 
-#define IDS_STATE_STOPPED               2 
-#define IDS_STATE_RUNNING               3 
-#define IDS_STATE_STARTING              4 
-#define IDS_STATE_STOPPING              5 
-#define IDS_STATE_UNKNOWN               6 
-#define IDS_SERVICE_FAIL_START          7 
-#define IDS_SERVICE_FAIL_STOP           8 
+#define IDS_TITLE_95                    1
+#define IDS_STATE_STOPPED               2
+#define IDS_STATE_RUNNING               3
+#define IDS_STATE_STARTING              4
+#define IDS_STATE_STOPPING              5
+#define IDS_STATE_UNKNOWN               6
+#define IDS_SERVICE_FAIL_START          7
+#define IDS_SERVICE_FAIL_STOP           8
 #define IDS_WARN_STOPPED                9
 #define IDS_WARN_ADMIN                  10
 #define IDS_CELL_UNKNOWN                11
 #define IDS_GATEWAY_UNKNOWN             12
-                                        
+
 #define IDS_BADLOOKUP_DESC              16
 #define IDS_NEWSUB_DESC                 17
 #define IDS_BADSUB_DESC                 18
@@ -32,7 +32,7 @@
 #define IDS_TITLE_ERROR_95              24
 #define IDS_SHRINKCACHE                 25
 #define IDS_BADCELL_DESC_CC             26
-                                        
+
 #define IDS_STOP_DESC                   32
 #define IDS_PREFCOL_SERVER              33
 #define IDS_PREFCOL_RANK                34
@@ -47,7 +47,7 @@
 #define IDS_SVRCOL_COMMENT              43
 #define IDS_TIP_DRIVES                  44
 #define IDS_MAP_LETTER                  45
-                                        
+
 #define IDS_DRIVE_MAP                   48
 #define IDS_ERROR_MAP                   49
 #define IDS_ERROR_MAP_DESC              50
 #define IDC_STATIC                      -1
 
 // Next default values for new objects
-// 
+//
 #ifdef APSTUDIO_INVOKED
 #ifndef APSTUDIO_READONLY_SYMBOLS
 #define _APS_NO_MFC                     1
index ff27126ae30a13ecb5b50eda6a08eb484ce023c5..2e592fdcc77cf14648dbc36cc48c3e5ac834cc49 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index fbaf62fdfbd8330093473402d42766535e637dd4..70f9b9c97e875d0e71cc52e43a1fc36fdc0c321d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 60d90a56879ba7ef4bcbe49c6a20589151cf295b..554242190790b84b3218ec3098471eade8fcfbdd 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 97cd76c99ee1f523202ec652577cdb662ee4ac58..79d3aeb1234bf3dbd679c1f966ea2eb189d4852c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1ae414cf4e4dabd88c174a2157bf2e5149cadfcc..8145cf5c298a324d4570750480c5c87566c02d76 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 6613c58d1bfa0d2d68c36b6baaac0cce981c155e..7bae889361a351d8cb699d6986dc8a16ea2e52e8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index f8af408cfe7658744b00f31894e207e90f269a2f..dafc7c36628d337b7a861ab991640db8e1d03cf0 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -18,7 +18,7 @@
 #define IDI_CCENTER                     104
 
 // Next default values for new objects
-// 
+//
 #ifdef APSTUDIO_INVOKED
 #ifndef APSTUDIO_READONLY_SYMBOLS
 #define _APS_NEXT_RESOURCE_VALUE        105
index 8b296bd8ef1f79b0ef061cea4aab68c306cc360a..bf4ec431a1167a60496bc9b19faa5e981569e98b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c4093399b38d8de8f2dec753e63bce6828f15f8f..bd74ce8da5883e1253b178f52e07dccc5daceb70 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 9d60b3635e474242094f73b90cca377cff2cb4b1..6b6a4e3503a877f2426cb6bc84e83adc67bba213 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index f1ea6aeb353e8389cdc35c21299a1d66f9c50404..2fb608330e393f94d98d739b3e6fba822b4dc6d4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c09adade78ce0a6037feacdb2deb3af197b58cce..36c3cca7ca3054ebbca6930ff4031169c37be0e5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 09e506b54edc6fc2c331e55f038b5a62f97ef1c6..69e3ce1dc9352aa0626af2faad4ab99c43066631 100644 (file)
@@ -1,20 +1,20 @@
 /*
  * Copyright (c) 2003 SkyRope, LLC
  * All rights reserved.
- * 
- * Redistribution and use in source and binary forms, with or without 
+ *
+ * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
- * 
- * - Redistributions of source code must retain the above copyright notice, 
+ *
+ * - Redistributions of source code must retain the above copyright notice,
  *   this list of conditions and the following disclaimer.
- * - Redistributions in binary form must reproduce the above copyright notice, 
- *   this list of conditions and the following disclaimer in the documentation 
+ * - Redistributions in binary form must reproduce the above copyright notice,
+ *   this list of conditions and the following disclaimer in the documentation
  *   and/or other materials provided with the distribution.
- * - Neither the name of Skyrope, LLC nor the names of its contributors may be 
- *   used to endorse or promote products derived from this software without 
+ * - Neither the name of Skyrope, LLC nor the names of its contributors may be
+ *   used to endorse or promote products derived from this software without
  *   specific prior written permission from Skyrope, LLC.
  *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
  * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
index 77bf50d6b9f994399046f85a41513a351c82dcd3..18a697c4e49037285c9421a91d4ac31ceb49c1cb 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 093bd4756d3dd6bd8daf64914a8dd4af44ddc3e0..7ab326478af81c01b9373d2e095b0224321afa1c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
 #define IDC_STATIC                      -1
 
 // Next default values for new objects
-// 
+//
 #ifdef APSTUDIO_INVOKED
 #ifndef APSTUDIO_READONLY_SYMBOLS
 #define _APS_NO_MFC                     1
index 68545cced9dbc7bb769a9574edecc5f49b104aa4..4e06c973548eb3da60c027998b6fc24f3d7ff786 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 8f9205bc51c849a620d91b7295c7ada9447fdc2a..50f7c821332c03cf1f39654fd84c92a260397c0e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 7b426e4dd89236e14e85508f50fe63ae11c2281a..b6295fb642dc819d59d771ee4d4725fb2c3084de 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index cf8420e150d9e81a1278a706a38fb07d34d9e28c..c409bc7ce728ba4f9a6afed1664639be11741c78 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ac440ef8a10f926c1d282e9d20da4c85c207113f..888b81b0466bff21dad7a119bb89518387ef4ffa 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a99f464327c2ccb8b4427b273e1140193ba24038..d690f268debecb3dc83efa04bb4386fbc3343051 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -18,9 +18,9 @@ class CAddSubmtDlg : public CDialog
 {
        BOOL m_bAdd;
        BOOL m_bSave;
-       
+
        void CheckEnableOk();
-       
+
 // Construction
 public:
        CAddSubmtDlg(CWnd* pParent = NULL);   // standard constructor
index 51a022569a2acafcfec20193b67444040de30c29..dfcc4c2c813eee34712e481a30a8fdca84509ce1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index e5bcce89709ca10711836821791130fecdae40d5..1346e6633955d1ec94b11df35f1e8a0f2715cbaa 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 0b758d1700afe215444cdfd5b9071b52cb1ca5f8..94420c8c6a1f4e106ca3e3feec387e667ec924b7 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index b407687b99304d01fa577e5c9430bc596395b90e..7e7d38102e20b7d0de586bd8e0ae3942e7dcf212 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index dd9ae97eff0685cffc9d50b7888abde3bcfa3ab6..b1f2b8d9d074940d406fedfc1fad5799889d0456 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -15,7 +15,7 @@
 class CDownServersDlg : public CDialog
 {
        CStringArray m_ServerNames;
-       
+
 // Construction
 public:
        CDownServersDlg(CWnd* pParent = NULL);   // standard constructor
index f1c7fac00cba5175932d84cc2a62b1b73d0eb291..4cc1b6b7f72887d77802ad68115b7263b3245c04 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 4c6cbddc618f8f7c150aaa70ed657326be8b7848..1fa2f475c1c4c6e33f82fa5e2801e5dd01c89b5d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 3907f795e35a261b63885f5f1f53960d3aee6f4a..33f6e192235637a6e189a9898ff5910bf294e650 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -16,7 +16,7 @@
 #define GET_TOKENS_HELP_ID                     17
 #define DISCARD_TOKENS_HELP_ID         18
 #define SET_AFS_ACL_HELP_ID                    19
-#define ADD_ACL_ENTRY_HELP_ID          20              
+#define ADD_ACL_ENTRY_HELP_ID          20
 #define COPY_ACL_HELP_ID                       21
 #define VOLUME_INFO_HELP_ID                    27
 #define PARTITION_INFO_HELP_ID         28
index 0319f35714fb9e0c0f8b9472e37628ae0ffe6475..30fcfbbded4b32f93dd65755173ba10acd56b009 100755 (executable)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index fdd64d1600400b3b3775be6623647ec75a12c0dd..cb3f01416e0ad9c3b7a5135fddffd565bbdb9c68 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -15,7 +15,7 @@
 class CKlogDlg : public CDialog
 {
        void CheckEnableOk();
-       
+
 // Construction
 public:
        CKlogDlg(CWnd* pParent = NULL); // standard constructor
index 94463e67cc71144748f930a9c654af79dc25453a..cb31d3d376d054c42694ac003412152aa32031d3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -15,7 +15,7 @@ class CMakeMountPointDlg : public CDialog
        BOOL m_bMade;
 
        void CheckEnableOk();
-       
+
 // Construction
 public:
        CMakeMountPointDlg(CWnd* pParent = NULL);   // standard constructor
index db3c86ddefed62785defcccf5573ea3b7ee24bc0..98ec2308631ffcc87223336746ee2766aa6f3666 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -10,7 +10,7 @@
 class CMakeSymbolicLinkDlg : public CDialog
 {
        void CheckEnableOk();
-       
+
 // Construction
 public:
        CMakeSymbolicLinkDlg(CWnd* pParent = NULL);   // standard constructor
index d90b43f1b6ae06827b2dc65d1086531d0d863cf2..8f7b73d9289df03562c92e4ac21b183da22e447f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -10,7 +10,7 @@
 class CMountPointsDlg : public CDialog
 {
        CStringArray m_MountPoints;
-       
+
 // Construction
 public:
        CMountPointsDlg(CWnd* pParent = NULL);   // standard constructor
index 535a5997222edaf67a609bfcf0c29452f86d9c11..2fb3bd8fa63cb1b6e42a572f6141c9ce92997bad 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -10,7 +10,7 @@
 #ifndef _MSGS_H_
 #define _MSGS_H_
 
-#include "resource.h" 
+#include "resource.h"
 
 UINT ShowMessageBox (UINT Id, UINT Button = MB_OK, UINT Help = 0, ...);
 CString GetMessageString(UINT Id,...);
index 560692aa8b743ddc09c3a441bab616b2f1f62812..39b2430d25ac07e8a558c685781f23fa160a3995 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -11,7 +11,7 @@ class CPartitionInfoDlg : public CDialog
 {
        LONG m_nSize;
        LONG m_nFree;
-       
+
 // Construction
 public:
        CPartitionInfoDlg(CWnd* pParent = NULL);   // standard constructor
index 3b24ef45fdcdcb47307c7cfa742b73748c00fe5a..18a25646430b1af570e55133531756a0debb796b 100644 (file)
@@ -2,7 +2,7 @@
 //
 // Copyright 2000, International Business Machines Corporation and others.
 // All Rights Reserved.
-// 
+//
 // This software has been released under the terms of the IBM Public
 // License.  For details, see the LICENSE file in the top-level source
 // directory or online at http://www.openafs.org/dl/license10.html
 //
 
 #define ID_ACL_CLEAN                           0
-#define ID_ACL_COPY                            1 
-#define ID_ACL_LIST                            2 
-#define ID_ACL_SET                             3 
-#define ID_VOLUME_CHECK                        4 
-#define ID_VOLUME_DISKFREE                     5 
-#define ID_VOLUME_EXAMINE                      6 
-#define ID_VOLUME_FLUSH                        7 
-#define ID_VOLUME_QUOTA_BRIEF                  8 
-#define ID_VOLUME_QUOTA_FULL                   9 
+#define ID_ACL_COPY                            1
+#define ID_ACL_LIST                            2
+#define ID_ACL_SET                             3
+#define ID_VOLUME_CHECK                        4
+#define ID_VOLUME_DISKFREE                     5
+#define ID_VOLUME_EXAMINE                      6
+#define ID_VOLUME_FLUSH                        7
+#define ID_VOLUME_QUOTA_BRIEF                  8
+#define ID_VOLUME_QUOTA_FULL                   9
 #define ID_VOLUME_QUOTA_SET                    10
 #define ID_VOLUME_SET                          11
 
 
 
 // Next default values for new objects
-// 
+//
 #ifdef APSTUDIO_INVOKED
 #ifndef APSTUDIO_READONLY_SYMBOLS
 #define _APS_NEXT_RESOURCE_VALUE        163
index 207535b3687a703cf2754f55f01cc7e70075d9a3..4bc9560be667cd69027ddf0eba4aba96b9df344a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1b4f3c18179cf1ffa3648dd2c4c6abb6e7a91148..65185f0e128171f5359a464667ac5e9bbad1e4a1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index f445e12e80630b6e5ac51ce6bd0354f0f9c93081..526801948baf0b2633fd6721092d62e21dd48ff3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -73,9 +73,9 @@ protected:
     // NOTE - the ClassWizard will add and remove member functions here.
     //}}AFX_DISPATCH
     DECLARE_DISPATCH_MAP()
-       
+
     DECLARE_OLECREATE(CShellExt)
-    
+
        // IFileViewer interface
     BEGIN_INTERFACE_PART(MenuExt, IContextMenu)
        STDMETHOD(QueryContextMenu)( HMENU hmenu,UINT indexMenu,UINT idCmdFirst,
index b9921cd7c12e60d7d2159234017961416184f38e..596c51f5d28cce9b10752d91cbf706879f85de70 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 61ac9b102295e8d293cfa51d52b0735bc824055c..4597d2c34fbc9929954464affa4d6f3ce2c29896 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index f690a9463e02b5a291ed7c95f42804ff8c0aa1ee..827ea881975dadba522199c22267139ddf94a2d7 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index d8b8b60e316ec65d5ab2e3c501a68da6b6305c2e..50818eef83df5c984a04fe3e7d7e3a399c51434f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -10,7 +10,7 @@
 class CSymlinksDlg : public CDialog
 {
        CStringArray m_Symlinks;
-       
+
 // Construction
 public:
        CSymlinksDlg(CWnd* pParent = NULL);   // standard constructor
index 246572215759a00610f81da120bb57204a4e95bf..982686c95bd9c03456fa2ad1375bb38b5463e40f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ce2847c8136ccd6c3602f1771b1887b3b65d82cd..39b14c0f08c9c41853e1a4977957635acd29a38b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index f709f47e3d6d00fa085f4ef1d7acc3f83acae1ea..66448625d3d92ed24cf1974d934e9d1f4990a990 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 6626c4cf77a7a80b7dd2a3249f1530bda539c634..bc34d28ff9d98d76c54b58d2cf24a449be282593 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 1998, 1989 Transarc Corporation - All rights reserved
  *
  * (C) COPYRIGHT IBM CORPORATION 1987, 1988
index e877ba48d999a17818f7779c347a297194348367..8c4eb8dcd9c59966324d33f9dbae877d977549f3 100644 (file)
@@ -6,11 +6,11 @@ Module Name:
 
 Abstract:
 
-    Include file for sample Large Integer Arithmetic routines.  
-    This file includes all of the prototypes for the routines found in 
+    Include file for sample Large Integer Arithmetic routines.
+    This file includes all of the prototypes for the routines found in
     largeint.lib.  For complete descriptions of these functions, see the
-    largeint.s source file for MIPS, or the divlarge.c and largeint.asm 
-    source files for x86. 
+    largeint.s source file for MIPS, or the divlarge.c and largeint.asm
+    source files for x86.
 
 Revision History:
 
index 29af583af9b8b835ff9bf61c8ea5f3eda1bc9eed..7a39243aad411047de30fa3f1d7e36d363c511b1 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 1998, 1989 Transarc Corporation - All rights reserved
  *
  * (C) COPYRIGHT IBM CORPORATION 1987, 1988
index 9f5a6f3e7de3a22fd1512f8001afca8db011cd78..2a9a7d56f8a74c177059bd4b23b78e99dae6e3cb 100644 (file)
@@ -1,7 +1,7 @@
-/* 
+/*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -29,7 +29,7 @@ LARGE_INTEGER LargeIntegerAdd(LARGE_INTEGER a, LARGE_INTEGER b);
 LARGE_INTEGER LargeIntegerSubtract(LARGE_INTEGER a, LARGE_INTEGER b);
 LARGE_INTEGER ExtendedLargeIntegerDivide(LARGE_INTEGER a, unsigned long b, unsigned long *remainder);
 LARGE_INTEGER LargeIntegerDivide(LARGE_INTEGER a, LARGE_INTEGER b, LARGE_INTEGER *remainder);
-LARGE_INTEGER ConvertLongToLargeInteger(unsigned long a); 
+LARGE_INTEGER ConvertLongToLargeInteger(unsigned long a);
 #define LargeIntegerGreaterThan(a, b) \
  ((a).HighPart > (b).HighPart || \
   ((a).HighPart == (b).HighPart && (a).LowPart > (b).LowPart))
@@ -37,7 +37,7 @@ LARGE_INTEGER ConvertLongToLargeInteger(unsigned long a);
 #define LargeIntegerGreaterThanOrEqualTo(a, b) \
  ((a).HighPart > (b).HighPart || \
   ((a).HighPart == (b).HighPart && (a).LowPart >= (b).LowPart))
-  
+
 #define LargeIntegerLessThan(a, b) \
  ((a).HighPart < (b).HighPart || \
   ((a).HighPart == (b).HighPart && (a).LowPart < (b).LowPart))
@@ -48,12 +48,12 @@ LARGE_INTEGER ConvertLongToLargeInteger(unsigned long a);
 
 #define LargeIntegerEqualTo(a, b) \
   ((a).HighPart == (b).HighPart && (a).LowPart == (b).LowPart)
-  
+
 #define LargeIntegerGreaterThanZero(a) \
  ((a).HighPart > 0 || ((a).HighPart == 0 && (a).LowPart != 0))
 
 #define LargeIntegerGreaterOrEqualToZero(a) ((a).HighPart >= 0)
-  
+
 #define LargeIntegerLessThanZero(a) ((a).HighPart < 0)
 
 #define LargeIntegerNotEqualToZero(a) ((a).HighPart || (a).LowPart)
index ab2be2758c897ebb0da205c55f7646ff8b7d8faf..6839d8d931d1192fb1df2ca44981924feb55c860 100644 (file)
@@ -1,7 +1,7 @@
-/* 
+/*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -68,9 +68,9 @@ typedef struct osi_rwlock {
 } osi_rwlock_t;
 
 
-/* 
- * a lock reference is a queue object that maintains a reference to a 
- * mutex or read/write lock object.  Its intended purpose is for 
+/*
+ * a lock reference is a queue object that maintains a reference to a
+ * mutex or read/write lock object.  Its intended purpose is for
  * maintaining lists of lock objects on a per thread basis.
  */
 typedef struct osi_lock_ref {
index 563fd64da9dfee98b2f108bbfe17a9bb20a4e5cf..3af036a509e1767c0dbcc143868ed208e6f59ca7 100644 (file)
@@ -1,7 +1,7 @@
-/* 
+/*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ba628375e2f26c09ca43e69918c3df7f057daba1..f4579ae525cf45e9ba14e22f6a4b2755bf977c48 100644 (file)
@@ -1,7 +1,7 @@
-/* 
+/*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 02966168ce48b748b3ffca2645c393b067910747..f62b7c182248881f06446159414b1824366ca239 100644 (file)
@@ -1,7 +1,7 @@
-/* 
+/*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 01560e3fb210cc69646be08691a9f5eb5907a81f..19a1f24d7b7f11a83cf32eee5e3b5630b1807435 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 1998, 1989 Transarc Corporation - All rights reserved
  *
  * (C) COPYRIGHT IBM CORPORATION 1987, 1988
index ab43f230d70e9606ac3e70c4990876b02177b66c..1bff1959d36104532420f88773e5f7fbec01f8cc 100644 (file)
@@ -1,7 +1,7 @@
-/* 
+/*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -59,7 +59,7 @@ extern void osi_QAddH(osi_queue_t **headpp, osi_queue_t **tailpp, osi_queue_t *e
  */
 extern void osi_QRemove(osi_queue_t **headpp, osi_queue_t *eltp);
 
-/* remove an element from a queue with both head and tail pointers; 
+/* remove an element from a queue with both head and tail pointers;
  * takes address of head and tail lists, and element to remove as parameters.
  */
 extern void osi_QRemoveHT(osi_queue_t **headpp, osi_queue_t **tailpp, osi_queue_t *eltp);
index b38b71be28b2ae9ddfbf0181ada70359c14432cb..0306563a4244cda375b1d62c83f48a66a62fa3b6 100644 (file)
@@ -1,7 +1,7 @@
-/* 
+/*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a9bb9488c42f89040e1d51010e41da537a1b5492..236587718b0f2cab7c842b62406a7189833d3614 100644 (file)
@@ -1,7 +1,7 @@
-/* 
+/*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a3c69267c569c21c94e2d1d6843a74e80006e0b4..a7ef5b4b1ebc4d3276cf294187622a9cf30b83d0 100644 (file)
@@ -1,7 +1,7 @@
-/* 
+/*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 11294af46378e1ffdbbf43b8338d4ba3bd7c4c73..f360107e57cc54a26273f07e552e65961919dee2 100644 (file)
@@ -1,7 +1,7 @@
-/* 
+/*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c69131db7b797d43fed32f6a9545d6ec32882f23..4b1e7182e3f4530b991d07c6530ec802f2747469 100644 (file)
@@ -1,7 +1,7 @@
-/* 
+/*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 903d616ff3157aaa7b5e408c14e36fbbd94600f7..cccab1de289de714af01612ba5f567520a88a98c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1a403f38b8f3414dc938329db065878c08f434e1..1943e5e7e893fa3f18a37b14b99a5f04322835a9 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c751fc2f83db871cf9db6d01f902dfe0e3008678..caf036e8ea3077a466a1e4600d32bd8eaa90bcb4 100644 (file)
@@ -127,7 +127,7 @@ extern kconf_schema schema_afsconfig[];
 
 
 /* plugin callback procedure */
-khm_int32 KHMAPI 
+khm_int32 KHMAPI
 afs_plugin_cb(khm_int32 msg_type,
               khm_int32 msg_subtype,
               khm_ui_4 uparam,
index 6add8118262e34eaf47c2020e3a8bc866ab5be4b..e56f9017cd38a2551aa734b517a43bbbf8ce40cc 100644 (file)
 BOOL
 afs_is_running(void);
 
-int 
+int
 afs_princ_to_string(struct ktc_principal * p, wchar_t * buf, size_t cbbuf);
 
-int 
+int
 afs_list_tokens(void);
 
 khm_handle
 afs_find_token(khm_handle credset, wchar_t * cell);
 
-int 
+int
 afs_list_tokens_internal(void);
 
-int 
+int
 afs_klog(khm_handle identity,
          char *service,
          char *cell,
@@ -60,14 +60,14 @@ afs_unlog(void);
 int
 afs_unlog_cred(khm_handle cred);
 
-DWORD 
-GetServiceStatus(LPSTR lpszMachineName, 
-                 LPSTR lpszServiceName, 
+DWORD
+GetServiceStatus(LPSTR lpszMachineName,
+                 LPSTR lpszServiceName,
                  DWORD *lpdwCurrentState,
                  DWORD *lpdwWaitHint);
 
-DWORD 
-ServiceControl(LPSTR lpszMachineName, 
+DWORD
+ServiceControl(LPSTR lpszMachineName,
                LPSTR lpszServiceName,
                DWORD dwNewState);
 
index 6eb69dd125fc4fc9bc67a3121d79840be99b6739..8e203c92700a7208c98f759aed4977e067ec206d 100644 (file)
@@ -102,28 +102,28 @@ typedef struct tag_afs_dlg_data {
 
 #define AFS_DLG_ROW_ALLOC 4
 
-INT_PTR CALLBACK 
+INT_PTR CALLBACK
 afs_dlg_proc(HWND hwnd,
              UINT uMsg,
              WPARAM wParam,
              LPARAM lParam);
 
-void 
+void
 afs_dlg_update_rows(HWND hwnd, afs_dlg_data * d);
 
-void 
+void
 afs_cred_flush_rows(afs_cred_list * l);
 
-void 
+void
 afs_cred_free_rows(afs_cred_list * l);
 
-void 
+void
 afs_cred_assert_rows(afs_cred_list * l, int n);
 
-void 
+void
 afs_cred_delete_row(afs_cred_list * l, int i);
 
-afs_cred_row * 
+afs_cred_row *
 afs_cred_get_new_row(afs_cred_list * l);
 
 khm_int32 KHMAPI
@@ -133,8 +133,8 @@ void
 afs_cred_get_context_creds(afs_cred_list *l,
                            khui_action_context * ctx);
 
-void 
-afs_cred_get_identity_creds(afs_cred_list * l, 
+void
+afs_cred_get_identity_creds(afs_cred_list * l,
                             khm_handle ident,
                             khm_boolean * enabled);
 
@@ -142,8 +142,8 @@ void
 afs_cred_write_ident_data(afs_dlg_data * d);
 
 khm_int32
-afs_msg_newcred(khm_int32 msg_subtype, 
-                khm_ui_4 uparam, 
+afs_msg_newcred(khm_int32 msg_subtype,
+                khm_ui_4 uparam,
                 void * vparam);
 
 #endif
index 85414a169ace15ec958128fe0fee34683bca1f05..9d59ba80345ee9ac54516a032c80e166d1139abc 100644 (file)
@@ -27,7 +27,7 @@
 #ifndef __AFSPLUGIN_EXT_H
 #define __AFSPLUGIN_EXT_H
 
-/*! \defgroup afs_ext OpenAFS Plugin extensions 
+/*! \defgroup afs_ext OpenAFS Plugin extensions
 
     This section documents messages and data structures used by AFS
     extension plugins.  These are plugins which augment the behavior
@@ -51,7 +51,7 @@
 #define AFS_TOKENNAME_KRB524 L"Kerberos524"
 #define AFS_TOKENNAME_KRB4 L"Kerberos4"
 
-/*! \brief An AFS token acquisition method identifier 
+/*! \brief An AFS token acquisition method identifier
 
     This takes on a value from ::afs_token_method or a token
     acquisition method identifier assigned to an extension plugin.
index 12d1ba70069274c47fba724ddbebe2eaedd9ca93..fd4557fff9f5b3710e3ce8dfe30847b792709c70 100644 (file)
 #include<khdefs.h>
 #include<tlhelp32.h>
 
-#if defined(_WIN32_WINNT) 
+#if defined(_WIN32_WINNT)
 #  if (_WIN32_WINNT < 0x0501)
 #    define AFS_WIN32_WINNT _WIN32_WINNT
 #    undef _WIN32_WINNT
 #    define _WIN32_WINNT 0x0501
 #  endif
-#else 
+#else
 #  define _WIN32_WINNT 0x0501
 #endif
 
index 29cae71ee98cd4277533469c00cf23f1e8f98b6c..b01e0d5cecc95a0a3c9c69cac602ea96f640775f 100644 (file)
@@ -32,7 +32,7 @@
 #include<krb5.h>
 
 #ifndef NO_KRB5
-int khm_krb5_error(krb5_error_code rc, LPCSTR FailedFunctionName, 
+int khm_krb5_error(krb5_error_code rc, LPCSTR FailedFunctionName,
                    int FreeContextFlag, krb5_context *ctx,
                    krb5_ccache *cache);
 
@@ -48,8 +48,8 @@ khm_krb5_find_ccache_for_identity(khm_handle ident, krb5_context *pctx,
                                   void * buffer, khm_size * pcbbuf);
 
 khm_int32 KHMAPI
-khm_get_identity_expiration_time(krb5_context ctx, krb5_ccache cc, 
-                                 khm_handle ident, 
+khm_get_identity_expiration_time(krb5_context ctx, krb5_ccache cc,
+                                 khm_handle ident,
                                  krb5_timestamp * pexpiration);
 #endif /* NO_KRB5 */
 
index 7374eaaa7a286719ef76798a977f1461570a6b1d..b766f23f86ce71dfe5bf1978ab93f410fa7941f5 100644 (file)
 #define ID_RELEASENOTES                 40038
 
 // Next default values for new objects
-// 
+//
 #ifdef APSTUDIO_INVOKED
 #ifndef APSTUDIO_READONLY_SYMBOLS
 #define _APS_NEXT_RESOURCE_VALUE        118
index dbd39c5bada874424af2c0684ce6350c77e46015..7d070e3b4bd46f85462f6f6c7069199ba24f9f5e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -51,7 +51,7 @@ typedef struct cond_waiter {
     struct rx_queue wait_queue;
     HANDLE event;
 } cond_waiters_t;
+
 typedef struct {
     CRITICAL_SECTION cs;
     struct rx_queue waiting_threads;
index 06f8d2730bde43efd7915b8ffb4f19574cbcb395..90a0decf224551e935fbdb5aa887a356f3c15f0f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c6c2628b68494b5b8c9be17c4b97cc44d43323f5..fb41c270af1c3290407665158a50dc48090254de 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 985e4755980cd2814247fccbb2ed906a39614889..e4c23a09464e3d8f5b91e14f3c795cb6df097569 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a6a5bfc44fc9826a38a2535c3ee72e917916a077..343eebb21149afc81ffb71bcc5ab42ecf279879a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 91fd321f319e87fbe1b0cd7a716c7d72fd9ea268..b596c79fe929f7c5f4b96887ed36ec90d48b0f6b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index b91fc308393d2706f5f369e69a6cde95542743d4..1cc3a2bcdf9406c4b6b64753fa4d2bcbeb9c79e2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 25f551258de98350bfe8d3393121c121509f550b..e6ebac32bec9ef559389310efb6033d34b1ac58d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 3e2842ccf6dcfea3a495b0cf795adc4e99bbdb1c..f2ab72ead6cce79ece4bc5a11e3fbdd35e1d9d5b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c1b48fb84e2ea7c45e6f8a243234a4a1b982b65d..54cbe894053114d5308fb4d1ef0b4e0f633232a3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 122daf29bb2c8f3ec3bce6dc91140b5b0322a941..5a615cbc4c8bd1c46431009c047de8dbe7340e29 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -97,7 +97,7 @@ enum vcexcl { EXCL, NONEXCL };
 #define va_atime va_access_time
 #define va_mtime va_modify_time
 #define va_ctime va_change_time
-#define va_bytes va_total_alloc 
+#define va_bytes va_total_alloc
 #define va_blocksize va_iosize
 #define va_nodeid va_fileid
 
@@ -120,7 +120,7 @@ extern int afs_osi_ctxtp_initialized;
 extern u_int32_t afs_darwin_realmodes;
 extern u_int32_t afs_darwin_fsevents;
 
-/* 
+/*
  * Time related macros
  */
 #ifdef AFS_DARWIN80_ENV
@@ -222,7 +222,7 @@ extern int igetinode(mount_t vfsp, dev_t dev , ino_t inode, vnode_t *vpp,
 #define osi_curproc() current_proc()
 
 /* FIXME */
-#define osi_curcred() &afs_osi_cred 
+#define osi_curcred() &afs_osi_cred
 
 #ifdef AFS_DARWIN80_ENV
 uio_t afsio_darwin_partialcopy(uio_t auio, int size);
index 9898b343770714dc465ba0fa9aaf507d7dbc0bd4..a69a819ccd38c37c57887a956e81e453d3c6ad68 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -37,7 +37,7 @@ extern int osi_VM_Setup(struct vcache *avc, int force);
 
 /* osi_vnodeops.c */
 extern int afs_darwin_getnewvnode(struct vcache *avc, int recycle);
-extern int afs_darwin_finalizevnode(struct vcache *avc, struct vnode *parent, 
+extern int afs_darwin_finalizevnode(struct vcache *avc, struct vnode *parent,
                                    struct componentname *cnp, int isroot,
                                    int locked);
 #endif /* _OSI_PROTO_H_ */
index 2cfdf0a72f36ae0841df0a3f04fa545214507768..e65ae5bcb0cd8acb48b0d84ba294924bc2a8600a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 8a9dd84feefc6f6e95bad9bcd54b598f04e42ce0..beee1dbcfc20061c7d95e246678d02f25a1d9089 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 68a462270f66e7da42c747001f45d903d58610c6..5bc44545ca61a18c1829da74bc5fe83cf8a7d194 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -27,7 +27,7 @@
 #include <sys/priv.h>
 #endif
 
-/* 
+/*
  * Time related macros
  */
 #define osi_Time()     time_second
index 5868b1b7763ff76578a5c6d06ba90848a9caa396..b62a4f863ae9fe6e4707fc45db596afafe11c35f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index cdd3bac45d86b94889710bc82b1495fe45f5fb33..a5275b3ec84bb64a08611bcbe31001968c1e5702 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index fcf7c99fc4466ab815f2694671be3e7025616df9..d8f16c611832b33b7cd1026ac76e936a857ea783 100644 (file)
@@ -2,7 +2,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -46,7 +46,7 @@ typedef proc_t afs_proc_t;
 #define getppid()               (afs_uint32)p_ppid(u.u_procp)
 
 /*
- * Global lock support. 
+ * Global lock support.
  *
  * HP uses global mutex to protect afs land
  */
@@ -86,7 +86,7 @@ extern void afsHashRelease(tid_t key);
 #define USERPRI     NET_SPLX(splvar)
 
 #if !defined(AFS_HPUX110_ENV)
-/* 
+/*
  * On HP, the global lock is an alpha semaphore, hence it is automatically
  * released and reacquired aroubd a sleep() and wakeup().
  */
index 1488724a7cf28d98d043b70a42156a86ba9de9fa..ef233aae072aec05e948e4bb206d4468768ec3ad 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 4321a0526d3f9993d58e308cd69a2a4ac0cecbe2..02b6e8abc4d0aa2b84be5430c97bc746710478ce 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -145,11 +145,11 @@ extern flid_t osi_flid;
  * CAUTION -- The ISAFS_(RX)?GLOCK macros are not safe to use when the lock is
  *     not held if the test may be made at interrupt level as the code may
  *     appear to be running as the process that is (or last was) running at
- *     non-interrupt level. Worse yet, the interrupt may occur just as the 
+ *     non-interrupt level. Worse yet, the interrupt may occur just as the
  *     process is exiting, in which case, the pid may change from the start
  *     of the interrupt to the end, since the u area has been changed. So,
  *     at interrupt level, I'm using the base of the current interrupt stack.
- *     Note that afs_osinet.c also modifies afs_global_owner for osi_Sleep and 
+ *     Note that afs_osinet.c also modifies afs_global_owner for osi_Sleep and
  *     afs_osi_Wakeup. Changes made here should be reflected there as well.
  * NOTE - As of 6.2, we can no longer use mutexes in interrupts, so the above
  *     concern no longer exists.
index 278be49a7c908128f2ee9f868c93106a82caee78..53eed50499dfba76369d7964a76f3f81bca45ce8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a52570bc3707f2692d883f98393bdd7207116daf..d257b1a94cb3159d0edf99ade52bd3a8f2ea42af 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -217,9 +217,9 @@ typedef struct vnode1 {
     unsigned int v_bufgen;     /* buf list generation number */
     mutex_t v_buf_lock;                /* mutex for buffer tree */
 
-    vnode_pcache_t v_pc;       /* Page cache structure. 
+    vnode_pcache_t v_pc;       /* Page cache structure.
                                 * per vnode. Refer to
-                                * vnode_pcache.h 
+                                * vnode_pcache.h
                                 * for details.
                                 */
 #ifdef VNODE_TRACING
index 8389477960ab4c6f186e077c02231d6b86cb94f4..6c9390ba6ebc861c5c51d91dd2328703e7752051 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -77,7 +77,7 @@
 #define afs_hz HZ
 #include "h/sched.h"
 #if defined(HAVE_LINUX_CURRENT_KERNEL_TIME)
-static inline time_t osi_Time(void) { 
+static inline time_t osi_Time(void) {
     struct timespec xtime;
     xtime = current_kernel_time();
     return xtime.tv_sec;
index bf5b506686cbc9e88d238bfc6babddaebf7e52ba..33c7cd1349175db037e7a81d2fc53339b20ecb12 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 5fc26e8a799afb725d5cfcd685a699dcc21a41e2..1aacbf66c1f5dc65fcb1df5643c38416861700e8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -74,7 +74,7 @@
 #define afs_hz HZ
 #include "h/sched.h"
 #if defined(HAVE_LINUX_CURRENT_KERNEL_TIME)
-static inline time_t osi_Time(void) { 
+static inline time_t osi_Time(void) {
     struct timespec xtime;
     xtime = current_kernel_time();
     return xtime.tv_sec;
@@ -221,7 +221,7 @@ typedef struct uio {
 #define NEED_IOCTL32
 #endif
 
-/* page offset is obtained and stored here during module initialization 
+/* page offset is obtained and stored here during module initialization
  * We need a variable to do this because, the PAGE_OFFSET macro defined in
  * include/asm/page.h can change from kernel to kernel and we cannot use
  * the hardcoded version.
index a9b9b899362ad7622c3a5c7615ff815351300ac2..c32830581d078608f4631de53b037f9a6b88a449 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 34de3f28e21e1093cc28776c1eecbb4834e8c261..7442e3c7197f2ad27717b23ad778b5a2e643189d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a96e2486a97c16222fe934e34e75c03cf9c9c405..7603a229e65cbb9fc2bead606283316dc95c9e39 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index e131651d87e3abb0826c997f98dcb2103465e76e..fef51bfa56983147749145f1ad7eaa82895c90aa 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ca25455c2431dbd7effe121974922f599941526a..3e8c886816463dea0960acc2aaa34559da40ce5b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -36,7 +36,7 @@
 typedef struct cred afs_ucred_t;
 typedef struct proc afs_proc_t;
 
-/* 
+/*
  * Time related macros
  */
 #define        afs_hz      hz
@@ -89,7 +89,7 @@ extern void *afs_osi_Alloc_NoSleep(size_t size);
 #endif
 
 /*
- * Global lock support. 
+ * Global lock support.
  */
 #include <sys/mutex.h>
 extern kmutex_t afs_global_lock;
@@ -118,7 +118,7 @@ extern kmutex_t afs_global_lock;
 
 #if    defined(AFS_SUN56_ENV)
 /*
-** Macro returns 1 if file is larger than 2GB; else returns 0 
+** Macro returns 1 if file is larger than 2GB; else returns 0
 */
 #undef AfsLargeFileUio
 #define AfsLargeFileUio(uio)       ( (uio)->_uio_offset._p._u ? 1 : 0 )
index 5f663e93b444ab0a6e1048863b0afd7034e9997c..d74b9e55c002b8c2f6955f2c873d4b254b1f60f1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1ca506ef433e232b0446e7367d5ce2bab6a7add1..6ba738d79627f8f8c9adedd1f990da04063f0b52 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 9ae9a17c48433e2820eac674d36f4fe6ad50c19a..8e9f619e182068704529a1e6701615e4be99d980 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 8e2e5a4158ddf79af8f4613b5ef7785dc411f7da..e252c7623d4771958e4377069010d3e9276dfa73 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -38,7 +38,7 @@
 
 #define AFS_KALLOC(A)           afs_osi_Alloc(A)
 
-/* 
+/*
  * Time related macros
  */
 #define        afs_hz      HZ
index 762ff6d6baa5d929d6214afa82152c48c2cae5bd..ccec8001e61ef147f26cd56867b98ae7377e0384 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 07f489571d94b40adec9a9b3b75215612e0eadd8..013b94814f451e948db901c1a85c4d393bac135f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -1221,23 +1221,23 @@ struct vcache;
 struct usr_vnodeops {
     int (*vn_open) (struct vcache **, afs_int32, afs_ucred_t *);
     int (*vn_close) (struct vcache *, afs_int32, afs_ucred_t *);
-    int (*vn_rdwr) (struct usr_vnode *avc, struct usr_uio *uio, 
+    int (*vn_rdwr) (struct usr_vnode *avc, struct usr_uio *uio,
                    int rw, int io, struct usr_ucred *cred);
     int (*vn_ioctl) (void);
     int (*vn_select) (void);
     int (*vn_getattr) (struct vcache *avc, struct vattr *, afs_ucred_t *);
     int (*vn_setattr) (struct vcache *avc, struct vattr *, afs_ucred_t *);
     int (*vn_access) (struct vcache *avc, afs_int32, afs_ucred_t *);
-    int (*vn_lookup) (struct vcache *adp, char *, struct vcache **, 
+    int (*vn_lookup) (struct vcache *adp, char *, struct vcache **,
                      afs_ucred_t *, int);
-    int (*vn_create) (struct vcache *adp, char *, struct vattr *, 
+    int (*vn_create) (struct vcache *adp, char *, struct vattr *,
                      enum vcexcl, int, struct vcache **, afs_ucred_t *);
     int (*vn_remove) (struct vcache *adp, char *, afs_ucred_t *);
-    int (*vn_link) (struct vcache *avc, struct vcache *adp, char *, 
+    int (*vn_link) (struct vcache *avc, struct vcache *adp, char *,
                    afs_ucred_t *);
     int (*vn_rename) (struct vcache *aodp, char *, struct vcache *, char *,
                      afs_ucred_t *);
-    int (*vn_mkdir) (struct vcache *adp, char *, struct vattr *, 
+    int (*vn_mkdir) (struct vcache *adp, char *, struct vattr *,
                     struct vcache **, afs_ucred_t *);
     int (*vn_rmdir) (struct vcache *adp, char *, afs_ucred_t *);
     int (*vn_readdir) (struct vcache *avc, struct uio *, afs_ucred_t *);
index 1e6ab74ad443acc7d30ca527a447e38439300828..2f39f2b0f694a794a7e3c0eb5d3467892fbadd09 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -184,7 +184,7 @@ struct SmallFid {
 /* The actual number of bytes in the SmallFid, not the sizeof struct. */
 #define SIZEOF_SMALLFID 10
 
-/* Queues 
+/* Queues
  * ------
  *
  *  Circular queues, implemented with pointers. Structures may contain as many
@@ -448,7 +448,7 @@ struct server {
 
 #define        afs_PutServer(servp, locktype)
 
-/* structs for some pioctls  - these are (or should be) 
+/* structs for some pioctls  - these are (or should be)
  * also in venus.h
  */
 struct spref {
@@ -639,12 +639,12 @@ struct SimpleLocks {
                                                                   and should not be overridden by the file's name */
 
 /* Flag values used by the Transition routines */
-#define TRANSChangeDesiredBit          0x1     /* The Transition routine should set or 
+#define TRANSChangeDesiredBit          0x1     /* The Transition routine should set or
                                                                                 * reset the FCSDesireBypass bit */
 #define TRANSVcacheIsLocked                    0x2     /* The Transition routine does not need to
                                                                                 * lock vcache (it's already locked) */
 #define TRANSSetManualBit              0x4     /* The Transition routine should set FCSManuallySet so that
-                                                                        * filename checking does not override pioctl requests */       
+                                                                        * filename checking does not override pioctl requests */
 #endif /* AFS_CACHE_BYPASS */
 
 #define        CPSIZE      2
@@ -735,7 +735,7 @@ struct fvcache {
     /*! The old parent FID for renamed vnodes */
     struct afs_vnuniq oldParent;
 };
-    
+
 /* INVARIANTs: (vlruq.next != NULL) == (vlruq.prev != NULL)
  *             nextfree => !vlruq.next && ! vlruq.prev
  * !(avc->nextfree) && !avc->vlruq.next => (FreeVCList == avc->nextfree)
@@ -826,7 +826,7 @@ struct vcache {
        off_t next_seq_blk_offset; /* accounted in blocks for Solaris & IRIX */
 #endif
 #endif
-       
+
 #if    defined(AFS_SUN5_ENV)
     afs_uint32 vstates;                /* vstate bits */
 #endif                         /* defined(AFS_SUN5_ENV) */
@@ -1041,7 +1041,7 @@ struct afs_ioctl32 {
 /* CacheItems file has a header of type struct afs_fheader
  * (keep aligned properly). Since we already have sgi_62 clients running
  * with a 32 bit inode, a change is required to the header so that
- * they can distinguish the old 32 bit inode CacheItems file and zap it 
+ * they can distinguish the old 32 bit inode CacheItems file and zap it
  * instead of using it.
  */
 struct afs_fheader {
@@ -1184,11 +1184,11 @@ struct afs_FetchOutput {
     } while(0)
 
 /* FakeOpen and Fake Close used to be real subroutines.  They're only used in
- * sun_subr and afs_vnodeops, and they're very frequently called, so I made 
+ * sun_subr and afs_vnodeops, and they're very frequently called, so I made
  * them into macros.  They do:
  * FakeOpen:  fake the file being open for writing.  avc->lock must be held
  * in write mode.  Having the file open for writing is like having a DFS
- * write-token: you're known to have the best version of the data around, 
+ * write-token: you're known to have the best version of the data around,
  * and so the CM won't let it be overwritten by random server info.
  * FakeClose:  undo the effects of FakeOpen, noting that we want to ensure
  * that a real close eventually gets done.  We use CCore to achieve this if
@@ -1265,7 +1265,7 @@ extern struct brequest afs_brs[NBRS];     /* request structures */
 #define        FVHash(acell,avol)  (((avol)+(acell)) & (NFENTRIES-1))
 
 /* Performance hack - we could replace VerifyVCache2 with the appropriate
- * GetVCache incantation, and could eliminate even this code from afs_UFSRead 
+ * GetVCache incantation, and could eliminate even this code from afs_UFSRead
  * by making intentionally invalidating quick.stamp in the various callbacks
  * expiration/breaking code */
 #ifdef AFS_DARWIN_ENV
@@ -1336,7 +1336,7 @@ extern struct brequest afs_brs[NBRS];     /* request structures */
 #define refpanic(foo) if (afs_norefpanic) \
         { printf( foo ); afs_norefpanic++;} else osi_Panic( foo )
 
-/* 
+/*
 ** these are defined in the AIX source code sys/fs_locks.h but are not
 ** defined anywhere in the /usr/include directory
 */
@@ -1366,7 +1366,7 @@ extern struct brequest afs_brs[NBRS];     /* request structures */
 #endif
 
 /* declare something so that prototypes don't flip out */
-/* appears struct buf stuff is only actually passed around as a pointer, 
+/* appears struct buf stuff is only actually passed around as a pointer,
    except with libuafs, in which case it is actually defined */
 
 struct buf;
index 5846c76dc5cc6ffc5f503a399554fd7333d7da21..1834e6d88c1e819c17408f399fe6aed3d8ad4bdc 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -77,7 +77,7 @@ int lastcode;
  * 0   if the vldb record for a specific volume is different from what
  *     we have cached -- perhaps the volume has moved.
  * 1   if the vldb record is the same
- * 2   if we can't tell if it's the same or not. 
+ * 2   if we can't tell if it's the same or not.
  *
  * If 0, the caller will probably start over at the beginning of our
  * list of servers for this volume and try to find one that is up.  If
@@ -219,8 +219,8 @@ VLDB_Same(struct VenusFid *afid, struct vrequest *areq)
  *     areq  : The request record associated with this operation.
  *     afid  : The FID of the file involved in the action.  This argument
  *             may be null if none was involved.
- *      tsp   : pointer to a server struct for the server we wish to 
- *              blacklist. 
+ *      tsp   : pointer to a server struct for the server we wish to
+ *              blacklist.
  *
  * Returns:
  *     Non-zero value if further servers are available to try,
@@ -234,11 +234,11 @@ VLDB_Same(struct VenusFid *afid, struct vrequest *areq)
  *     As advertised.
  *
  * NOTE:
- *     The afs_Conn* routines use the list of invalidated servers to 
+ *     The afs_Conn* routines use the list of invalidated servers to
  *      avoid reusing a server marked as invalid for this request.
  *------------------------------------------------------------------------*/
-static afs_int32 
-afs_BlackListOnce(struct vrequest *areq, struct VenusFid *afid, 
+static afs_int32
+afs_BlackListOnce(struct vrequest *areq, struct VenusFid *afid,
                  struct server *tsp)
 {
     struct volume *tvp;
@@ -253,7 +253,7 @@ afs_BlackListOnce(struct vrequest *areq, struct VenusFid *afid,
                    areq->skipserver[i] = 1;
                }
                if (tvp->serverHost[i] &&
-                   (tvp->serverHost[i]->addr->sa_flags & 
+                   (tvp->serverHost[i]->addr->sa_flags &
                      SRVR_ISDOWN)) {
                    areq->skipserver[i] = 1;
                }
@@ -318,7 +318,7 @@ afs_Analyze(struct afs_conn *aconn, afs_int32 acode,
     struct afs_stats_RPCErrors *aerrP;
     afs_int32 markeddown;
     afs_uint32 address;
+
     if (AFS_IS_DISCONNECTED && !AFS_IN_SYNC) {
        /* On reconnection, act as connected. XXX: for now.... */
         /* SXW - This may get very tired after a while. We should try and
@@ -332,7 +332,7 @@ afs_Analyze(struct afs_conn *aconn, afs_int32 acode,
        }
        return 0;
     }
-    
+
     AFS_STATCNT(afs_Analyze);
     afs_Trace4(afs_iclSetp, CM_TRACE_ANALYZE, ICL_TYPE_INT32, op,
               ICL_TYPE_POINTER, aconn, ICL_TYPE_INT32, acode, ICL_TYPE_LONG,
@@ -452,7 +452,7 @@ afs_Analyze(struct afs_conn *aconn, afs_int32 acode,
     }
 
     /* If network troubles, mark server as having bogued out again. */
-    /* VRESTARTING is < 0 because of backward compatibility issues 
+    /* VRESTARTING is < 0 because of backward compatibility issues
      * with 3.4 file servers and older cache managers */
 #ifdef AFS_64BIT_CLIENT
     if (acode == -455)
@@ -478,13 +478,13 @@ afs_Analyze(struct afs_conn *aconn, afs_int32 acode,
            if (tvp)
                afs_PutVolume(tvp, READ_LOCK);
            /* By doing this, we avoid ever marking a server down
-            * in an idle timeout case. That's because the server is 
+            * in an idle timeout case. That's because the server is
             * still responding and may only be letting a single vnode
             * time out. We otherwise risk having the server continually
-            * be marked down, then up, then down again... 
+            * be marked down, then up, then down again...
             */
            goto out;
-       } 
+       }
        markeddown = afs_ServerDown(sa);
        ForceNewConnections(sa); /**multi homed clients lock:afs_xsrvAddr? */
        if (aerrP)
index 539070f002808af71b719bef4931bd391c25810b..790a23823e0c50b6081b7386fbcfd6e3453c0b6a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -26,7 +26,7 @@ static int afs_xaxscnt = 0;
 afs_rwlock_t afs_xaxs;
 
 /* takes an address of an access cache & uid, returns ptr */
-/* PRECONDITION: first field has been checked and doesn't match! 
+/* PRECONDITION: first field has been checked and doesn't match!
  * INVARIANT:  isparent(i,j) ^ isparent(j,i)  (ie, they switch around)
  */
 struct axscache *
@@ -132,7 +132,7 @@ afs_RemoveAxs(struct axscache **headp, struct axscache *axsp)
 }
 
 
-/* 
+/*
  * Takes an entire list of access cache structs and prepends them, lock, stock,
  * and barrel, to the front of the freelist.
  */
index 370d3a9934f76cbe41f0c6a8e05e9929d725932e..c307eff7e15d057d7f1b466cb76be16bd0b7fccd 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
 
 /*  Access cache -
  *  The way to use this package is:
- *  If the cache pointer is not NULL, call afs_findAxs, and if it's not 
+ *  If the cache pointer is not NULL, call afs_findAxs, and if it's not
  *                                    NULL, use its access field
- *  Otherwise, 
+ *  Otherwise,
  *       axs_Alloc a new one,
  *       fill it in,
  *       insert it at the head of the list.
  *
- *  Of course, don't forget to axs_Free them occasionally, 
+ *  Of course, don't forget to axs_Free them occasionally,
  *
  *  Alloc and Free need a lock on the freelist, the other guys are safe if the
  *  parent structure is locked, but probably REQUIRE the parent to be locked...
@@ -31,8 +31,8 @@ struct axscache {
     struct axscache *next;
 };
 
-/* DON'T use this with a NULL pointer! 
- * the quick check should cover 99.9% of the cases 
+/* DON'T use this with a NULL pointer!
+ * the quick check should cover 99.9% of the cases
  */
 #define afs_FindAxs(cachep,id) (((cachep)->uid == id) ? (cachep) : afs_SlowFindAxs(&(cachep),(id)))
 
index f21608783096e6421c4d1217eceb1ef61c7d065f..e65d789e6c5bbe725198223cc743c109fcc8025c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -17,7 +17,7 @@
 #include "h/param.h"
 #include "h/types.h"
 #include "h/time.h"
-#if    defined(AFS_AIX31_ENV) 
+#if    defined(AFS_AIX31_ENV)
 #include "h/limits.h"
 #endif
 #if    !defined(AFS_AIX_ENV) && !defined(AFS_SUN5_ENV) && !defined(AFS_SGI_ENV) && !defined(AFS_LINUX20_ENV)
@@ -159,10 +159,10 @@ DRead(struct dcache *adc, int page)
 #define buf_Front(head,parent,p) {(parent)->hashNext = (p)->hashNext; (p)->hashNext= *(head);*(head)=(p);}
 
     /* this apparently-complicated-looking code is simply an example of
-     * a little bit of loop unrolling, and is a standard linked-list 
+     * a little bit of loop unrolling, and is a standard linked-list
      * traversal trick. It saves a few assignments at the the expense
      * of larger code size.  This could be simplified by better use of
-     * macros. 
+     * macros.
      */
     if ((tb = phTable[pHash(adc->index, page)])) {
        if (bufmatch(tb)) {
@@ -208,7 +208,7 @@ DRead(struct dcache *adc, int page)
     AFS_STATS(afs_stats_cmperf.bufMisses++);
     /* can't find it */
     /* The last thing we looked at was either tb or tb2 (or nothing). That
-     * is at least the oldest buffer on one particular hash chain, so it's 
+     * is at least the oldest buffer on one particular hash chain, so it's
      * a pretty good place to start looking for the truly oldest buffer.
      */
     tb = afs_newslot(adc, page, (tb ? tb : tb2));
@@ -430,13 +430,13 @@ DVOffset(void *ap)
     return AFS_BUFFER_PAGESIZE * tp->page + (int)(((char *)ap) - tp->data);
 }
 
-/*! 
+/*!
  * Zap one dcache entry: destroy one FID's buffers.
  *
  * 1/1/91 - I've modified the hash function to take the page as well
  * as the *fid, so that lookup will be a bit faster.  That presents some
  * difficulties for Zap, which now has to have some knowledge of the nature
- * of the hash function.  Oh well.  This should use the list traversal 
+ * of the hash function.  Oh well.  This should use the list traversal
  * method of DRead...
  *
  * \param adc The dcache entry to be zapped.
@@ -467,7 +467,7 @@ static void
 DFlushBuffer(struct buffer *ab)
 {
     struct osi_file *tfile;
-    
+
     tfile = afs_CFileOpen(&ab->inode);
     afs_CFileWrite(tfile, ab->page * AFS_BUFFER_PAGESIZE,
                   ab->data, AFS_BUFFER_PAGESIZE);
@@ -476,7 +476,7 @@ DFlushBuffer(struct buffer *ab)
 }
 
 void
-DFlushDCache(struct dcache *adc) 
+DFlushDCache(struct dcache *adc)
 {
     int i;
     struct buffer *tb;
@@ -519,7 +519,7 @@ DFlush(void)
                /* it seems safe to do this I/O without having the dcache
                 * locked, since the only things that will update the data in
                 * a directory are the buffer package, which holds the relevant
-                * tb->lock while doing the write, or afs_GetDCache, which 
+                * tb->lock while doing the write, or afs_GetDCache, which
                 * DZap's the directory while holding the dcache lock.
                 * It is not possible to lock the dcache or even call
                 * afs_GetDSlot to map the index to the dcache since the dir
index e5f2487776c2c4b00925126908f6b948b1edc91c..e23c5591db35687fa759383efb49fbb6b45b1803 100644 (file)
@@ -2,7 +2,7 @@
  * COPYRIGHT  Â©  2000
  * THE REGENTS OF THE UNIVERSITY OF MICHIGAN
  * ALL RIGHTS RESERVED
- * 
+ *
  * Permission is granted to use, copy, create derivative works
  * and redistribute this software and such derivative works
  * for any purpose, so long as the name of The University of
  * University of Michigan is included in any copy of any
  * portion of this software, then the disclaimer below must
  * also be included.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED AS IS, WITHOUT REPRESENTATION
  * FROM THE UNIVERSITY OF MICHIGAN AS TO ITS FITNESS FOR ANY
- * PURPOSE, AND WITHOUT WARRANTY BY THE UNIVERSITY O 
+ * PURPOSE, AND WITHOUT WARRANTY BY THE UNIVERSITY O
  * MICHIGAN OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING
  * WITHOUT LIMITATION THE IMPLIED WARRANTIES OF
  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
@@ -27,7 +27,7 @@
  * IF IT HAS BEEN OR IS HEREAFTER ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGES.
  */
+
  /*
  * Portions Copyright (c) 2008
  * The Linux Box Corporation
  * of any kind, either express or implied, including
  * without limitation the implied warranties of
  * merchantability and fitness for a particular purpose.  The
- * Linux Box Corporation shall not be liable for any damages, 
- * including special, indirect, incidental, or consequential 
- * damages, with respect to any claim arising out of or in 
- * connection with the use of the software, even if it has been 
+ * Linux Box Corporation shall not be liable for any damages,
+ * including special, indirect, incidental, or consequential
+ * damages, with respect to any claim arising out of or in
+ * connection with the use of the software, even if it has been
  * or is hereafter advised of the possibility of such damages.
  */
 
@@ -72,7 +72,7 @@
 #include "afs/sysincludes.h" /* Standard vendor system headers */
 #include "afs/afsincludes.h" /* Afs-based standard headers */
 #include "afs/afs_stats.h"   /* statistics */
-#include "afs/nfsclient.h"  
+#include "afs/nfsclient.h"
 #include "rx/rx_globals.h"
 
 #if defined(AFS_LINUX26_ENV)
@@ -92,7 +92,7 @@
                if(!var) \
                        RX_AFS_GLOCK(); \
        } while(0)
-       
+
 #define COND_RE_GUNLOCK(var) \
        do { \
                if(var) \
@@ -142,22 +142,22 @@ afs_TransitionToBypass(struct vcache *avc,
 
     if (!avc)
        return;
-               
+
     if (avc->f.states & FCSBypass)
-       osi_Panic("afs_TransitionToBypass: illegal transition to bypass--already FCSBypass\n");         
-               
+       osi_Panic("afs_TransitionToBypass: illegal transition to bypass--already FCSBypass\n");
+
     if (aflags & TRANSChangeDesiredBit)
        setDesire = 1;
     if (aflags & TRANSSetManualBit)
        setManual = 1;
-               
+
 #ifdef AFS_BOZONLOCK_ENV
     afs_BozonLock(&avc->pvnLock, avc); /* Since afs_TryToSmush will do a pvn_vptrunc */
 #else
     AFS_GLOCK();
 #endif
     ObtainWriteLock(&avc->lock, 925);
-       
+
     /* If we never cached this, just change state */
     if (setDesire && (!(avc->cachingStates & FCSBypass))) {
        avc->f.states |= FCSBypass;
@@ -173,7 +173,7 @@ afs_TransitionToBypass(struct vcache *avc,
 
 #if 0
     /* also cg2v, don't dequeue the callback */
-    ObtainWriteLock(&afs_xcbhash, 956);        
+    ObtainWriteLock(&afs_xcbhash, 956);
     afs_DequeueCallback(avc);
     ReleaseWriteLock(&afs_xcbhash);
 #endif
@@ -184,7 +184,7 @@ afs_TransitionToBypass(struct vcache *avc,
     if (avc->linkData && !(avc->f.states & CCore)) {
        afs_osi_Free(avc->linkData, strlen(avc->linkData) + 1);
        avc->linkData = NULL;
-    }          
+    }
 
     avc->cachingStates |= FCSBypass;    /* Set the bypass flag */
     if(setDesire)
@@ -221,8 +221,8 @@ afs_TransitionToCaching(struct vcache *avc,
        return;
 
     if (!(avc->f.states & FCSBypass))
-       osi_Panic("afs_TransitionToCaching: illegal transition to caching--already caching\n");         
-               
+       osi_Panic("afs_TransitionToCaching: illegal transition to caching--already caching\n");
+
     if (aflags & TRANSChangeDesiredBit)
        resetDesire = 1;
     if (aflags & TRANSSetManualBit)
@@ -247,7 +247,7 @@ afs_TransitionToCaching(struct vcache *avc,
        afs_osi_Free(avc->linkData, strlen(avc->linkData) + 1);
        avc->linkData = NULL;
     }
-               
+
     avc->cachingStates &= ~(FCSBypass);    /* Reset the bypass flag */
     if (resetDesire)
        avc->cachingStates &= ~(FCSDesireBypass);
@@ -301,9 +301,9 @@ afs_TransitionToCaching(struct vcache *avc,
 
 /* no-cache prefetch routine */
 static afs_int32
-afs_NoCacheFetchProc(struct rx_call *acall, 
-                     struct vcache *avc, 
-                                        uio_t *auio, 
+afs_NoCacheFetchProc(struct rx_call *acall,
+                     struct vcache *avc,
+                                        uio_t *auio,
                      afs_int32 release_pages,
                     afs_int32 size)
 {
@@ -323,7 +323,7 @@ afs_NoCacheFetchProc(struct rx_call *acall,
     ciov = auio->uio_iov;
     pp = (struct page*) ciov->iov_base;
     iovmax = auio->uio_iovcnt - 1;
-    iovno = iovoff = result = 0;       
+    iovno = iovoff = result = 0;
     do {
 
        COND_GUNLOCK(locked);
@@ -337,7 +337,7 @@ afs_NoCacheFetchProc(struct rx_call *acall,
            unlock_and_release_pages(auio);
            goto done;
        } else
-           length = ntohl(length);             
+           length = ntohl(length);
 
        if (length > size) {
            result = EIO;
@@ -346,7 +346,7 @@ afs_NoCacheFetchProc(struct rx_call *acall,
            unlock_and_release_pages(auio);
            goto done;
        }
-                                       
+
        /*
         * The fetch protocol is extended for the AFS/DFS translator
         * to allow multiple blocks of data, each with its own length,
@@ -362,19 +362,19 @@ afs_NoCacheFetchProc(struct rx_call *acall,
        } else {
            moredata = 0;
        }
-                               
+
        while (length > 0) {
 
-           clen = ciov->iov_len - iovoff; 
+           clen = ciov->iov_len - iovoff;
            tlen = afs_min(length, clen);
 #ifdef AFS_LINUX24_ENV
 #ifndef AFS_KMAP_ATOMIC
            if(pp)
                address = kmap(pp);
-           else { 
+           else {
                /* rx doesn't provide an interface to simply advance
-                  or consume n bytes.  for now, allocate a PAGE_SIZE 
-                  region of memory to receive bytes in the case that 
+                  or consume n bytes.  for now, allocate a PAGE_SIZE
+                  region of memory to receive bytes in the case that
                   there were holes in readpages */
                if(page_buffer == NULL)
                    page_buffer = osi_Alloc(PAGE_SIZE);
@@ -391,7 +391,7 @@ afs_NoCacheFetchProc(struct rx_call *acall,
            COND_GUNLOCK(locked);
            code = rx_Read(acall, address, tlen);
            COND_RE_GLOCK(locked);
-               
+
            if (code < 0) {
                afs_warn("afs_NoCacheFetchProc: rx_Read error. Return code was %d\n", code);
                result = 0;
@@ -405,7 +405,7 @@ afs_NoCacheFetchProc(struct rx_call *acall,
            }
            length -= code;
            tlen -= code;
-               
+
            if(tlen > 0) {
                iovoff += code;
                address += code;
@@ -447,14 +447,14 @@ afs_NoCacheFetchProc(struct rx_call *acall,
                iovno++;
                if (iovno > iovmax)
                    goto done;
-                       
+
                ciov = (auio->uio_iov + iovno);
                pp = (struct page*) ciov->iov_base;
                iovoff = 0;
            }
        }
     } while (moredata);
-       
+
 done:
     if(page_buffer)
        osi_Free(page_buffer, PAGE_SIZE);
@@ -464,7 +464,7 @@ done:
 
 /* dispatch a no-cache read request */
 afs_int32
-afs_ReadNoCache(struct vcache *avc, 
+afs_ReadNoCache(struct vcache *avc,
                struct nocache_read_request *bparms,
                afs_ucred_t *acred)
 {
@@ -472,10 +472,10 @@ afs_ReadNoCache(struct vcache *avc,
     afs_int32 bcnt;
     struct brequest *breq;
     struct vrequest *areq;
-               
+
     /* the reciever will free this */
     areq = osi_Alloc(sizeof(struct vrequest));
-       
+
     if (avc && avc->vc_error) {
        code = EIO;
        afs_warn("afs_ReadNoCache VCache Error!\n");
@@ -486,18 +486,18 @@ afs_ReadNoCache(struct vcache *avc,
        goto cleanup;
     }
 
-    AFS_GLOCK();               
+    AFS_GLOCK();
     code = afs_VerifyVCache(avc, areq);
     AFS_GUNLOCK();
-       
+
     if (code) {
        code = afs_CheckCode(code, areq, 11);   /* failed to get it */
        afs_warn("afs_ReadNoCache Failed to verify VCache!\n");
        goto cleanup;
     }
-       
+
     bparms->areq = areq;
-       
+
     /* and queue this one */
     bcnt = 1;
     AFS_GLOCK();
@@ -511,7 +511,7 @@ afs_ReadNoCache(struct vcache *avc,
        afs_osi_Wait(10 * bcnt, 0, 0);
     }
     AFS_GUNLOCK();
-    
+
     if(!breq) {
        code = EBUSY;
        goto cleanup;
@@ -542,7 +542,7 @@ cleanup:
 
 /* Cannot have static linkage--called from BPrefetch (afs_daemons) */
 afs_int32
-afs_PrefetchNoCache(struct vcache *avc, 
+afs_PrefetchNoCache(struct vcache *avc,
                    afs_ucred_t *acred,
                    struct nocache_read_request *bparms)
 {
@@ -553,7 +553,7 @@ afs_PrefetchNoCache(struct vcache *avc,
 #ifdef AFS_64BIT_CLIENT
     afs_int32 length_hi, bytes, locked;
 #endif
-       
+
     struct afs_conn *tc;
     afs_int32 i;
     struct rx_call *tcall;
@@ -562,12 +562,12 @@ afs_PrefetchNoCache(struct vcache *avc,
        struct AFSFetchStatus OutStatus;
        struct AFSCallBack CallBack;
     };
-    struct tlocal1 *tcallspec; 
-                       
+    struct tlocal1 *tcallspec;
+
     auio = bparms->auio;
     areq = bparms->areq;
-    iovecp = auio->uio_iov;    
-       
+    iovecp = auio->uio_iov;
+
     tcallspec = (struct tlocal1 *) osi_Alloc(sizeof(struct tlocal1));
     do {
        tc = afs_Conn(&avc->f.fid, areq, SHARED_LOCK /* ignored */);
@@ -586,7 +586,7 @@ afs_PrefetchNoCache(struct vcache *avc,
                    bytes = rx_Read(tcall, (char *)&length_hi,
                                    sizeof(afs_int32));
                    COND_RE_GLOCK(locked);
-                                       
+
                    if (bytes != sizeof(afs_int32)) {
                        length_hi = 0;
                        code = rx_Error(tcall);
@@ -659,7 +659,7 @@ done:
 
     osi_Free(areq, sizeof(struct vrequest));
     osi_Free(tcallspec, sizeof(struct tlocal1));
-    osi_Free(iovecp, auio->uio_iovcnt * sizeof(struct iovec)); 
+    osi_Free(iovecp, auio->uio_iovcnt * sizeof(struct iovec));
     osi_Free(bparms, sizeof(struct nocache_read_request));
     osi_Free(auio, sizeof(uio_t));
     return code;
index ddc9a4a4475fc1ecc9948debe8b6a3e01f05a57f..af90bc41164fb19653770f6a0121813fd1fb75b1 100644 (file)
@@ -2,7 +2,7 @@
  * COPYRIGHT  Â©  2000
  * THE REGENTS OF THE UNIVERSITY OF MICHIGAN
  * ALL RIGHTS RESERVED
- * 
+ *
  * Permission is granted to use, copy, create derivative works
  * and redistribute this software and such derivative works
  * for any purpose, so long as the name of The University of
  * University of Michigan is included in any copy of any
  * portion of this software, then the disclaimer below must
  * also be included.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED AS IS, WITHOUT REPRESENTATION
  * FROM THE UNIVERSITY OF MICHIGAN AS TO ITS FITNESS FOR ANY
- * PURPOSE, AND WITHOUT WARRANTY BY THE UNIVERSITY O 
+ * PURPOSE, AND WITHOUT WARRANTY BY THE UNIVERSITY O
  * MICHIGAN OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING
  * WITHOUT LIMITATION THE IMPLIED WARRANTIES OF
  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
@@ -27,7 +27,7 @@
  * IF IT HAS BEEN OR IS HEREAFTER ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGES.
  */
+
  /*
  * Portions Copyright (c) 2008
  * The Linux Box Corporation
  * of any kind, either express or implied, including
  * without limitation the implied warranties of
  * merchantability and fitness for a particular purpose.  The
- * Linux Box Corporation shall not be liable for any damages, 
- * including special, indirect, incidental, or consequential 
- * damages, with respect to any claim arising out of or in 
- * connection with the use of the software, even if it has been 
+ * Linux Box Corporation shall not be liable for any damages,
+ * including special, indirect, incidental, or consequential
+ * damages, with respect to any claim arising out of or in
+ * connection with the use of the software, even if it has been
  * or is hereafter advised of the possibility of such damages.
  */
 
@@ -139,7 +139,7 @@ void afs_TransitionToCaching(struct vcache *, afs_ucred_t *, int);
 
 /* dispatch a no-cache read request */
 afs_int32
-afs_ReadNoCache(struct vcache *avc, struct nocache_read_request *bparms, 
+afs_ReadNoCache(struct vcache *avc, struct nocache_read_request *bparms,
                afs_ucred_t *acred);
 
 /* no-cache prefetch routine */
index c00931dec11f1fa13d5a80a015babff30537f8da..909fb5c46c84ab6bda86b4935612f13411738536 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -403,7 +403,7 @@ afs_DaemonOp(long parm, long parm2, long parm3, long parm4, long parm5,
 {
     int code;
     DECLARE_COMPLETION(c);
-#if defined(AFS_LINUX26_ENV) 
+#if defined(AFS_LINUX26_ENV)
 #if defined(INIT_WORK_HAS_DATA)
     struct work_struct tq;
 #endif
@@ -728,7 +728,7 @@ afs_syscall_call(long parm, long parm2, long parm3,
        case 2:
            afs_tpct2 = parm3;
            break;
-       }           
+       }
     } else if (parm == AFSOP_ADDCELL) {
        /* add a cell.  Parameter 2 is 8 hosts (in net order),  parm 3 is the null-terminated
         * name.  Parameter 4 is the length of the name, including the null.  Parm 5 is the
@@ -850,7 +850,7 @@ afs_syscall_call(long parm, long parm2, long parm3,
            afs_CacheInit(cparms.cacheScaches, cparms.cacheFiles,
                          cparms.cacheBlocks, cparms.cacheDcaches,
                          cparms.cacheVolumes, cparms.chunkSize,
-                         cparms.memCacheFlag, cparms.inodes, cparms.users, 
+                         cparms.memCacheFlag, cparms.inodes, cparms.users,
                          cparms.dynamic_vcaches);
 
     } else if (parm == AFSOP_CACHEINODE) {
@@ -932,7 +932,7 @@ afs_syscall_call(long parm, long parm2, long parm3,
            afs_tpct1 = 0;
            afs_tpct2 = 0;
            splitdcache = 0;
-       } else {        
+       } else {
            splitdcache = 1;
        }
        afs_osi_Wakeup(&afs_initState);
@@ -967,7 +967,7 @@ afs_syscall_call(long parm, long parm2, long parm3,
            refresh = 1;
        }
 
-       /* Bind, but only if there's only one address configured */ 
+       /* Bind, but only if there's only one address configured */
        if ( count & 0x80000000) {
            count &= ~0x80000000;
            if (count == 1)
@@ -1102,8 +1102,8 @@ afs_syscall_call(long parm, long parm2, long parm3,
        extern u_long sb_max_dflt;
        if (!adjusted) {
          adjusted = 1;
-         if (sb_max_dflt < 131072) sb_max_dflt = 131072; 
-         if (sb_max < 131072) sb_max = 131072; 
+         if (sb_max_dflt < 131072) sb_max_dflt = 131072;
+         if (sb_max < 131072) sb_max = 131072;
        }
       } */
 #endif /* AFS_AIX32_ENV */
index bdfb4084e05116291451171a57f9212ce4aae9f0..5f980ffd59b66c029ea8464d627963f1436e34ab 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -234,7 +234,7 @@ SRXAFSCB_GetCE64(struct rx_call *a_call, afs_int32 a_index,
     a_result->lock.pid_writer = 0;
     a_result->lock.src_indicator = 0;
 #endif /* INSTRUMENT_LOCKS */
-#if !defined(AFS_64BIT_ENV) 
+#if !defined(AFS_64BIT_ENV)
     a_result->Length.high = 0;
     a_result->Length.low = tvc->f.m.Length;
 #else
@@ -382,7 +382,7 @@ SRXAFSCB_GetLock(struct rx_call *a_call, afs_int32 a_index,
  *
  * Description:
  *     Clear out callback information for the specified file, or
- *     even a whole volume.  Used to worry about callback was from 
+ *     even a whole volume.  Used to worry about callback was from
  *      within the particular cell or not.  Now we don't bother with
  *      that anymore; it's not worth the time.
  *
@@ -442,7 +442,7 @@ loop1:
                i = VCHashV(&localFid);
                for (tq = afs_vhashTV[i].prev; tq != &afs_vhashTV[i]; tq = uq) {
                    uq = QPrev(tq);
-                   tvc = QTOVH(tq);      
+                   tvc = QTOVH(tq);
                    if (tvc->f.fid.Fid.Volume == a_fid->Volume) {
                        tvc->callback = NULL;
                        if (!localFid.Cell)
@@ -1065,7 +1065,7 @@ shutdown_CB(void)
  *      a_call : Ptr to Rx call on which this request came in.
  *
  * Returns:
- *      RXGEN_OPCODE (always). 
+ *      RXGEN_OPCODE (always).
  *
  * Environment:
  *      Nothing interesting.
@@ -1706,7 +1706,7 @@ resume:
         * All done at this level ... ascend and resume the search.
         */
        if (this_parent != parent) {
-               next = this_parent->d_child.next; 
+               next = this_parent->d_child.next;
                this_parent = this_parent->d_parent;
                goto resume;
        }
@@ -1715,7 +1715,7 @@ resume:
  searchdone3:
     if (d_unhashed(dentry))
       *flags = 1;
-    else 
+    else
       *flags = 0;
 
     *fileName = afs_strdup(dentry->d_name.name?dentry->d_name.name:"");
@@ -1752,9 +1752,9 @@ SRXAFSCB_GetDE(struct rx_call *a_call, afs_int32 a_index, afs_int32 *addr,
     cur = head;
     while ((cur = cur->next) != head) {
       dentry = list_entry(cur, struct dentry, d_alias);
-      
+
       dget_locked(dentry);
-      
+
 #if defined(AFS_LINUX24_ENV)
       spin_unlock(&dcache_lock);
 #endif
@@ -1768,7 +1768,7 @@ SRXAFSCB_GetDE(struct rx_call *a_call, afs_int32 a_index, afs_int32 *addr,
        goto fcnDone;
       }
       dput(dentry);
-    }                   
+    }
  searchdone2:
     if (cur == head) {
        /*Past EOF*/
@@ -1779,7 +1779,7 @@ SRXAFSCB_GetDE(struct rx_call *a_call, afs_int32 a_index, afs_int32 *addr,
 
     if (d_unhashed(dentry))
       *flags = 1;
-    else 
+    else
       *flags = 0;
 
     *fileName = afs_strdup(dentry->d_name.name?dentry->d_name.name:"");
index ccc5743f81b91bd2d64f4bf38e07bfa84e658737..2f5225028f155af316e7ddbf86b28ebb744b3d75 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  * The base of the hash table moves periodically (every 128 seconds)
  * QueueCallback rarely touches the first 3 slots in the hash table
  * (only when called from CheckCallbacks) since MinTimeOut in
- * viced/callback.c is currently 7 minutes. 
+ * viced/callback.c is currently 7 minutes.
  * Therefore, CheckCallbacks should be able to run concurrently with
  * QueueCallback, given the proper locking, of course.
  *
  * Note:
  * 1. CheckCallbacks and BumpBase never run simultaneously.  This is because
- * they are only called from afs_Daemon.  Therefore, base and basetime will 
+ * they are only called from afs_Daemon.  Therefore, base and basetime will
  * always be consistent during CheckCallbacks.
- * 2. cbHashT [base] rarely (if ever) gets stuff queued in it.  The only way 
+ * 2. cbHashT [base] rarely (if ever) gets stuff queued in it.  The only way
  * that could happen is CheckCallbacks might fencepost and move something in
  * place, or BumpBase might push some stuff up.
- * 3. Hash chains aren't particularly sorted. 
+ * 3. Hash chains aren't particularly sorted.
  * 4. The file server keeps its callback state around for 3 minutes
  * longer than it promises the cache manager in order to account for
  * clock skew, network delay, and other bogeymen.
  *
  * For now I just use one large lock, which is fine on a uniprocessor,
- * since it's not held during any RPCs or low-priority I/O operations. 
- * To make this code MP-fast, you need no more locks than processors, 
- * but probably more than one.  In measurements on MP-safe implementations, 
+ * since it's not held during any RPCs or low-priority I/O operations.
+ * To make this code MP-fast, you need no more locks than processors,
+ * but probably more than one.  In measurements on MP-safe implementations,
  * I have never seen any contention over the xcbhash lock.
  *
  * Incompatible operations:
  * Certain invariants exist:
  *    1  Callback expiration times granted by a file server will never
  *       decrease for a particular vnode UNLESS a CallBack RPC is invoked
- *       by the server in the interim.  
+ *       by the server in the interim.
  *    2  A vcache will always expire no sooner than the slot in which it is
- *       currently enqueued.  Callback times granted by the server may 
- *       increase, in which case the vcache will be updated in-place.  As a 
- *       result, it may expire later than the slot in which it is enqueued.  
+ *       currently enqueued.  Callback times granted by the server may
+ *       increase, in which case the vcache will be updated in-place.  As a
+ *       result, it may expire later than the slot in which it is enqueued.
  *       Not to worry, the CheckCallbacks code will move it if neccessary.
- *       This approach means that busy vnodes won't be continually moved 
+ *       This approach means that busy vnodes won't be continually moved
  *       around within the expiry queue: they are only moved when they
  *       finally advance to the lead bucket.
  *    3  Anything which has a callback on it must be in the expiry
@@ -95,13 +95,13 @@ struct afs_lock afs_xcbhash;
 /* afs_QueueCallback
  * Takes a write-locked vcache pointer and a callback expiration time
  * as returned by the file server (ie, in units of 128 seconds from "now").
- * 
+ *
  * Uses the time as an index into a hash table, and inserts the vcache
  * structure into the overflow chain.
- * 
+ *
  * If the vcache is already on some hash chain, leave it there.
  * CheckCallbacks will get to it eventually.  In the meantime, it
- * might get flushed, or it might already be on the right hash chain, 
+ * might get flushed, or it might already be on the right hash chain,
  * so why bother messing with it now?
  *
  * NOTE: The caller must hold a write lock on afs_xcbhash
@@ -126,7 +126,7 @@ afs_QueueCallback(struct vcache *avc, unsigned int atime, struct volume *avp)
  *
  * for now, just get a lock on everything when doing the dequeue, don't
  * worry about getting a lock on the individual slot.
- * 
+ *
  * the only other places that do anything like dequeues are CheckCallbacks
  * and BumpBase.
  *
@@ -162,10 +162,10 @@ afs_DequeueCallback(struct vcache *avc)
  * so GetVCache (for example) may update cbExpires before or after #1
  * below.  If before, CheckCallbacks moves this entry to its proper
  * slot.  If after, GetVCache blocks in the call to QueueCallbacks,
- * this code dequeues the vcache, and then QueueCallbacks re-enqueues it. 
+ * this code dequeues the vcache, and then QueueCallbacks re-enqueues it.
  *
  * XXX to avoid the race, make QueueCallback take the "real" time
- * and update cbExpires under the xcbhash lock. 
+ * and update cbExpires under the xcbhash lock.
  *
  * NB #1: There's a little optimization here: if I go to invalidate a
  * RO vcache or volume, first check to see if the server is down.  If
@@ -288,9 +288,9 @@ afs_CheckCallbacks(unsigned int secs)
     return;
 }                              /* afs_CheckCallback */
 
-/* afs_FlushCBs 
+/* afs_FlushCBs
  * to be used only in dire circumstances, this drops all callbacks on
- * the floor, without giving them back to the server.  It's ok, the server can 
+ * the floor, without giving them back to the server.  It's ok, the server can
  * deal with it, but it is a little bit rude.
  */
 void
@@ -361,7 +361,7 @@ afs_InitCBQueue(int doLockInit)
     memset(cbHashT, 0, CBHTSIZE * sizeof(struct bucket));
     for (i = 0; i < CBHTSIZE; i++) {
        QInit(&(cbHashT[i].head));
-       /* Lock_Init(&(cbHashT[i].lock)); only if you want lots of locks, which 
+       /* Lock_Init(&(cbHashT[i].lock)); only if you want lots of locks, which
         * don't seem too useful at present.  */
     }
     base = 0;
@@ -375,7 +375,7 @@ afs_InitCBQueue(int doLockInit)
  * careful that it doesn't get permanently out-of-date.  Important
  * assumption: this routine is only called from afs_Daemon, so there
  * can't be more than one instance of this running at any one time.
- * Presumes that basetime is never 0, and is always sane. 
+ * Presumes that basetime is never 0, and is always sane.
  *
  * Before calling this routine, be sure that the first slot is pretty
  * empty.  This -20 is because the granularity of the checks in
@@ -383,8 +383,8 @@ afs_InitCBQueue(int doLockInit)
  * sometimes.  The fact that I only bump basetime by CBHTSLOTLEN-1
  * instead of the whole CBHTSLOTLEN is also for "safety".
  * Conceptually, it makes this clock run just a little faster than the
- * clock governing which slot a callback gets hashed into.  Both of these 
- * things make CheckCallbacks work a little harder than it would have to 
+ * clock governing which slot a callback gets hashed into.  Both of these
+ * things make CheckCallbacks work a little harder than it would have to
  * if I wanted to cut things finer.
  * Everything from the old first slot is carried over into the new first
  * slot.  Thus, if there were some things that ought to have been invalidated,
index 9710b07f8170a66eda2b48930c5c037ebdcfdbee..7d198d011751be966ed899e005d214479ae88a0e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 19488a3e5cad25649bc2ec76dcb81d58b20ae02b..9b3fd9a176cea1c2e3af3eb83b4c3eb2d59f915b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -98,10 +98,10 @@ afs_AFSDBHandler(char *acellName, int acellNameLen, afs_int32 * kernelMsg)
        }
 
        if (hostCount)
-           code = afs_NewCell(acellName, cellHosts, CNoSUID, NULL, 0, 0, 
+           code = afs_NewCell(acellName, cellHosts, CNoSUID, NULL, 0, 0,
                               timeout);
 
-       if (!hostCount || (code && code != EEXIST)) 
+       if (!hostCount || (code && code != EEXIST))
            /* null out the cellname if the lookup failed */
            afsdb_req.cellname = NULL;
        else
@@ -182,9 +182,9 @@ afs_GetCellHostsAFSDB(char *acellName)
 }
 
 
-/*! 
+/*!
  * Look up AFSDB for given cell name and create locally.
- * \param acellName Cell name. 
+ * \param acellName Cell name.
  */
 void
 afs_LookupAFSDB(char *acellName)
@@ -193,7 +193,7 @@ afs_LookupAFSDB(char *acellName)
     char *cellName = afs_strdup(acellName);
 
     code = afs_GetCellHostsAFSDB(cellName);
-    afs_Trace2(afs_iclSetp, CM_TRACE_AFSDB, ICL_TYPE_STRING, cellName, 
+    afs_Trace2(afs_iclSetp, CM_TRACE_AFSDB, ICL_TYPE_STRING, cellName,
                ICL_TYPE_INT32, code);
     afs_osi_FreeStr(cellName);
 }
@@ -245,7 +245,7 @@ afs_cellname_new(char *name, afs_int32 cellnum)
 /*!
  * Look up a cell name by id.
  * \param cellnum
- * \return 
+ * \return
  */
 static struct cell_name *
 afs_cellname_lookup_id(afs_int32 cellnum)
@@ -262,7 +262,7 @@ afs_cellname_lookup_id(afs_int32 cellnum)
 /*!
  * Look up a cell name.
  * \param name Cell name.
- * \return 
+ * \return
  */
 static struct cell_name *
 afs_cellname_lookup_name(char *name)
@@ -292,7 +292,7 @@ afs_cellname_ref(struct cell_name *cn)
 /*!
  * \brief Load the list of cells from given inode.
  * \param inode Source inode.
- * \param lookupcode 
+ * \param lookupcode
  * \return 0 for success. < 0 for error.
  */
 int
@@ -448,7 +448,7 @@ static int afs_CellOrAliasExists_nl(char *aname);   /* Forward declaration */
 
 /*!
  * Look up cell alias by alias name.
- * \param  alias 
+ * \param  alias
  * \return Found struct or NULL.
  */
 static struct cell_alias *
@@ -464,7 +464,7 @@ afs_FindCellAlias(char *alias)
 
 /*!
  * Get cell alias by index (starting at 0).
- * \param index Cell index. 
+ * \param index Cell index.
  * \return Found struct or null.
  */
 struct cell_alias *
@@ -484,8 +484,8 @@ afs_GetCellAlias(int index)
 
  /*!
   * Put back a cell alias returned by Find or Get.
-  * \param a Alias. 
-  * \return 
+  * \param a Alias.
+  * \return
   */
 void
 afs_PutCellAlias(struct cell_alias *a)
@@ -497,7 +497,7 @@ afs_PutCellAlias(struct cell_alias *a)
  * Create new cell alias entry and update dynroot vnode.
  * \param alias
  * \param cell
- * \return 
+ * \return
  */
 afs_int32
 afs_NewCellAlias(char *alias, char *cell)
@@ -554,7 +554,7 @@ afs_int32 afs_cellindex;    /* Export for kdump */
 
 /*!
  * Bump given cell up to the front of the LRU queue.
- * \param c Cell to set. 
+ * \param c Cell to set.
  */
 static void
 afs_UpdateCellLRU(struct cell *c)
@@ -568,7 +568,7 @@ afs_UpdateCellLRU(struct cell *c)
 /*!
  * Look up cell information in AFSDB if timeout expired
  * \param ac Cell to be refreshed.
- * \return 
+ * \return
  */
 static void
 afs_RefreshCell(struct cell *ac)
@@ -579,7 +579,7 @@ afs_RefreshCell(struct cell *ac)
        afs_LookupAFSDB(ac->cellName);
 }
 
-/*! 
+/*!
  * Execute a callback for each existing cell, without a lock on afs_xcell.
  * Iterate on CellLRU, and execute a callback for each cell until given arguments are met.
  * \see afs_TraverseCells
@@ -616,7 +616,7 @@ afs_TraverseCells_nl(void *(*cb) (struct cell *, void *), void *arg)
  * Execute a callback for each existing cell, with a lock on afs_xcell.
  * \see afs_TraverseCells_nl
  * \param cb Traversal callback for each cell.
- * \param arg 
+ * \param arg
  * \return Found data or NULL.
  */
 void *
@@ -633,7 +633,7 @@ afs_TraverseCells(void *(*cb) (struct cell *, void *), void *arg)
 
 /*!
  * Useful traversal callback: Match by name.
- * \param cell 
+ * \param cell
  * \param arg Cell name (compared with cell->cellName).
  * \return Returns found cell or NULL.
  */
@@ -650,7 +650,7 @@ afs_choose_cell_by_name(struct cell *cell, void *arg)
 
 /*!
  * Useful traversal callback: Match by handle.
- * \param cell 
+ * \param cell
  * \param arg Cell handle (compared with cell->cellHandle).
  * \return Returns found cell or NULL.
  */
@@ -667,7 +667,7 @@ afs_choose_cell_by_handle(struct cell *cell, void *arg)
 
 /*!
  * Useful traversal callback: Match by cell number.
- * \param cell 
+ * \param cell
  * \param arg Cell number (compared with cell->cellNum).
  * \return Returns found cell or NULL.
  */
@@ -679,7 +679,7 @@ afs_choose_cell_by_num(struct cell *cell, void *arg)
 
 /*!
  * Useful traversal callback: Match by index.
- * \param cell 
+ * \param cell
  * \param arg Cell index (compared with cell->cellIndex).
  * \return Returns found cell or NULL.
  */
@@ -694,7 +694,7 @@ afs_choose_cell_by_index(struct cell *cell, void *arg)
  * Does not check AFSDB.
  * \param acellName Cell name.
  * \param locktype Type of lock to be used (not used).
- * \return 
+ * \return
  */
 static struct cell *
 afs_FindCellByName_nl(char *acellName, afs_int32 locktype)
@@ -707,7 +707,7 @@ afs_FindCellByName_nl(char *acellName, afs_int32 locktype)
  * Does not check AFSDB.
  * \param acellName Cell name.
  * \param locktype Type of lock to be used.
- * \return 
+ * \return
  */
 static struct cell *
 afs_FindCellByName(char *acellName, afs_int32 locktype)
@@ -719,7 +719,7 @@ afs_FindCellByName(char *acellName, afs_int32 locktype)
  * Same as FindCellByName but tries AFSDB if not found.
  * \param acellName Cell name.
  * \param locktype Type of lock to be used.
- * \return 
+ * \return
  */
 struct cell *
 afs_GetCellByName(char *acellName, afs_int32 locktype)
@@ -743,8 +743,8 @@ afs_GetCellByName(char *acellName, afs_int32 locktype)
 /*!
  * Return a cell with a given cell number.
  * \param cellnum Cell number.
- * \param locktype Lock to be used. 
- * \return 
+ * \param locktype Lock to be used.
+ * \return
  */
 struct cell *
 afs_GetCell(afs_int32 cellnum, afs_int32 locktype)
@@ -769,7 +769,7 @@ afs_GetCell(afs_int32 cellnum, afs_int32 locktype)
  * Same as GetCell, but does not try to refresh the data.
  * \param cellnum Cell number.
  * \param locktype What lock should be used.
- * \return 
+ * \return
  */
 struct cell *
 afs_GetCellStale(afs_int32 cellnum, afs_int32 locktype)
@@ -788,7 +788,7 @@ afs_GetCellStale(afs_int32 cellnum, afs_int32 locktype)
  * Return a cell with a given index number (starting at 0). Update CellLRU as well.
  * \param index
  * \param locktype Type of lock used.
- * \return 
+ * \return
  */
 struct cell *
 afs_GetCellByIndex(afs_int32 index, afs_int32 locktype)
@@ -805,7 +805,7 @@ afs_GetCellByIndex(afs_int32 index, afs_int32 locktype)
  * Return a cell with a given handle..
  * \param index
  * \param locktype Type of lock used.
- * \return 
+ * \return
  */
 struct cell *
 afs_GetCellByHandle(void *handle, afs_int32 locktype)
@@ -821,7 +821,7 @@ afs_GetCellByHandle(void *handle, afs_int32 locktype)
 /*!
  * Return primary cell, if any.
  * \param locktype Type of lock used.
- * \return 
+ * \return
  */
 struct cell *
 afs_GetPrimaryCell(afs_int32 locktype)
@@ -832,7 +832,7 @@ afs_GetPrimaryCell(afs_int32 locktype)
 /*!
  * Returns true if the given cell is the primary cell.
  * \param cell
- * \return 
+ * \return
  */
 int
 afs_IsPrimaryCell(struct cell *cell)
@@ -853,8 +853,8 @@ afs_IsPrimaryCell(struct cell *cell)
 
 /*!
  * Returns afs_IsPrimaryCell(afs_GetCell(cellnum)).
- * \param cellnum 
- * \return 
+ * \param cellnum
+ * \return
  */
 int
 afs_IsPrimaryCellNum(afs_int32 cellnum)
@@ -873,7 +873,7 @@ afs_IsPrimaryCellNum(afs_int32 cellnum)
 
 /*!
  * Set the primary cell name to the given cell name.
- * \param acellName Cell name. 
+ * \param acellName Cell name.
  * \return 0 for success, < 0 for error.
  */
 afs_int32
@@ -888,15 +888,15 @@ afs_SetPrimaryCell(char *acellName)
 }
 
 /*!
- * Create or update a cell entry. 
+ * Create or update a cell entry.
  * \param acellName Name of cell.
  * \param acellHosts Array of hosts that this cell has.
  * \param aflags Cell flags.
- * \param linkedcname 
+ * \param linkedcname
  * \param fsport File server port.
  * \param vlport Volume server port.
  * \param timeout Cell timeout value, 0 means static AFSDB entry.
- * \return 
+ * \return
  */
 afs_int32
 afs_NewCell(char *acellName, afs_int32 * acellHosts, int aflags,
@@ -970,10 +970,10 @@ afs_NewCell(char *acellName, afs_int32 * acellHosts, int aflags,
     }
     tc->states |= aflags;
     tc->timeout = timeout;
-    
+
     memset(tc->cellHosts, 0, sizeof(tc->cellHosts));
     for (i = 0; i < AFS_MAXCELLHOSTS; i++) {
-       /* Get server for each host and link this cell in.*/    
+       /* Get server for each host and link this cell in.*/
        struct server *ts;
        afs_uint32 temp = acellHosts[i];
        if (!temp)
@@ -986,7 +986,7 @@ afs_NewCell(char *acellName, afs_int32 * acellHosts, int aflags,
        afs_PutServer(ts, WRITE_LOCK);
     }
     afs_SortServers(tc->cellHosts, AFS_MAXCELLHOSTS);  /* randomize servers */
-       
+
     /* New cell: Build and add to LRU cell queue. */
     if (newc) {
        struct cell_name *cn;
@@ -1093,7 +1093,7 @@ shutdown_cell(void)
 /*!
  * Remove a server from a cell's server list.
  * \param srvp Server to be removed.
- * \return 
+ * \return
  */
 void
 afs_RemoveCellEntry(struct server *srvp)
@@ -1125,8 +1125,8 @@ afs_RemoveCellEntry(struct server *srvp)
 
 /*!
  * Check if the given name exists as a cell or alias. Does not lock afs_xcell.
- * \param aname 
- * \return 
+ * \param aname
+ * \return
  */
 static int
 afs_CellOrAliasExists_nl(char *aname)
@@ -1152,7 +1152,7 @@ afs_CellOrAliasExists_nl(char *aname)
 /*!
  * Check if the given name exists as a cell or alias. Locks afs_xcell.
  * \param aname
- * \return 
+ * \return
  */
 int
 afs_CellOrAliasExists(char *aname)
@@ -1168,7 +1168,7 @@ afs_CellOrAliasExists(char *aname)
 
 /*!
  * Check if a cell number is valid (also set the used flag).
- * \param cellnum 
+ * \param cellnum
  * \return 1 - true, 0 - false
  */
 int
index 33ab52194b3189bf6de236540969289a9ebf21fb..5cdd93e5fce102a4f26e710403a4dac354e89123 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ffd05ffc9fc2aaee256e786fcb81b7dfbb041224..d3a509081ad211bda7671f621c68d9ef646caca8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -48,7 +48,7 @@
                      afs_FirstCSize = afs_OtherCSize = (1 << chunk);  }
 
 /*
- * Functions exported by a cache type 
+ * Functions exported by a cache type
  */
 
 struct afs_cacheOps {
@@ -79,7 +79,7 @@ struct afs_cacheOps {
 #define        afs_GetVolSlot()                (*(afs_cacheType->GetVolSlot))()
 #define        afs_HandleLink(avc, areq)       (*(afs_cacheType->HandleLink))(avc, areq)
 
-/* These memcpys should get optimised to simple assignments when afs_dcache_id_t 
+/* These memcpys should get optimised to simple assignments when afs_dcache_id_t
  * is simple */
 static_inline void afs_copy_inode(afs_dcache_id_t *dst, afs_dcache_id_t *src) {
     memcpy(dst, src, sizeof(afs_dcache_id_t));
@@ -89,7 +89,7 @@ static_inline void afs_reset_inode(afs_dcache_id_t *i) {
     memset(i, 0, sizeof(afs_dcache_id_t));
 }
 
-/* We need to have something we can output as the 'inode' for fstrace calls. 
+/* We need to have something we can output as the 'inode' for fstrace calls.
  * This is a hack */
 static_inline int afs_inode2trace(afs_dcache_id_t *i) {
     return i->mem;
index 9ac103aafa5d129320a109e025ac1a2468a62a8f..0fa9f5ca394a3c653ab5564c269970a007c71366 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -93,7 +93,7 @@ afs_pickSecurityObject(struct afs_conn *conn, int *secLevel)
  * Try setting up a connection to the server containing the specified fid.
  * Gets the volume, checks if it's up and does the connection by server address.
  *
- * @param afid 
+ * @param afid
  * @param areq Request filled in by the caller.
  * @param locktype Type of lock that will be used.
  *
@@ -145,7 +145,7 @@ afs_Conn(struct VenusFid *afid, struct vrequest *areq,
      */
     for (notbusy = not_busy; (!lowp && (notbusy <= end_not_busy)); notbusy++) {
        for (i = 0; i < AFS_MAXHOSTS && tv->serverHost[i]; i++) {
-           if (((areq->tokenError > 0)||(areq->idleError > 0)) 
+           if (((areq->tokenError > 0)||(areq->idleError > 0))
                && (areq->skipserver[i] == 1))
                continue;
            if (tv->status[i] != notbusy) {
@@ -221,7 +221,7 @@ afs_ConnBySA(struct srvAddr *sap, unsigned short aport, afs_int32 acell,
        ReleaseSharedLock(&afs_xconn);
        return NULL;
     }
-    
+
     if (AFS_IS_DISCONNECTED && !AFS_IN_SYNC) {
         afs_warnuser("afs_ConnBySA: disconnected\n");
         ReleaseSharedLock(&afs_xconn);
@@ -347,7 +347,7 @@ afs_ConnByHost(struct server *aserver, unsigned short aport, afs_int32 acell,
         return NULL;
     }
 
-/* 
+/*
   1.  look for an existing connection
   2.  create a connection at an address believed to be up
       (if aforce is true, create a connection at the first address)
@@ -428,9 +428,9 @@ afs_PutConn(struct afs_conn *ac, afs_int32 locktype)
 }                              /*afs_PutConn */
 
 
-/** 
- * For multi homed clients, a RPC may timeout because of a 
- * client network interface going down. We need to reopen new 
+/**
+ * For multi homed clients, a RPC may timeout because of a
+ * client network interface going down. We need to reopen new
  * connections in this case.
  *
  * @param sap Server address.
index be5b8ded2190e74b0f5b72552a5628026c351c1a..81f9c5c1400bf32b54aa7911a9d34e1f453d066e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -298,7 +298,7 @@ afs_Daemon(void)
 
        /* 18285 is because we're trying to divide evenly into 128, that is,
         * CBSlotLen, while staying just under 20 seconds.  If CBSlotLen
-        * changes, should probably change this interval, too. 
+        * changes, should probably change this interval, too.
         * Some of the preceding actions may take quite some time, so we
         * might not want to wait the entire interval */
        now = 18285 - (osi_Time() - now);
@@ -372,11 +372,11 @@ afs_CheckRootVolume(void)
                    cred_t *credp;
                    struct dentry *dp;
                    struct vcache *vcp;
-                   
+
                    afs_rootFid.Fid.Volume = volid;
                    afs_rootFid.Fid.Vnode = 1;
                    afs_rootFid.Fid.Unique = 1;
-                   
+
                    credp = crref();
                    if (afs_InitReq(&treq, credp))
                        goto out;
@@ -385,9 +385,9 @@ afs_CheckRootVolume(void)
                        goto out;
                    afs_getattr(vcp, &vattr, credp);
                    afs_fill_inode(AFSTOV(vcp), &vattr);
-                   
+
                    dp = d_find_alias(AFSTOV(afs_globalVp));
-                   
+
 #if defined(AFS_LINUX24_ENV)
                    spin_lock(&dcache_lock);
 #if defined(AFS_LINUX26_ENV)
@@ -404,7 +404,7 @@ afs_CheckRootVolume(void)
                    spin_unlock(&dcache_lock);
 #endif
                    dput(dp);
-                   
+
                    AFS_FAST_RELE(afs_globalVp);
                    afs_globalVp = vcp;
                out:
@@ -511,7 +511,7 @@ BPrefetch(struct brequest *ab)
        if (tdc) {
            afs_PutDCache(tdc);
        }
-       abyte+=len; 
+       abyte+=len;
        totallen += len;
     } while ((totallen < afs_preCache) && tdc && (len > 0));
     /* now, dude may be waiting for us to clear DFFetchReq bit; do so.  Can't
@@ -539,7 +539,7 @@ BPrefetchNoCache(struct brequest *ab)
 {
     struct vrequest treq;
     afs_size_t len;
-       
+
     if ((len = afs_InitReq(&treq, ab->cred)))
        return;
 
@@ -680,7 +680,7 @@ afs_BQueue(short aopcode, struct vcache *avc,
 }
 
 #ifdef AFS_AIX41_ENV
-/* AIX 4.1 has a much different sleep/wakeup mechanism available for use. 
+/* AIX 4.1 has a much different sleep/wakeup mechanism available for use.
  * The modifications here will work for either a UP or MP machine.
  */
 struct buf *afs_asyncbuf = (struct buf *)0;
@@ -688,7 +688,7 @@ tid_t afs_asyncbuf_cv = EVENT_NULL;
 afs_int32 afs_biodcnt = 0;
 
 /* in implementing this, I assumed that all external linked lists were
- * null-terminated.  
+ * null-terminated.
  *
  * Several places in this code traverse a linked list.  The algorithm
  * used here is probably unfamiliar to most people.  Careful examination
@@ -701,7 +701,7 @@ afs_int32 afs_biodcnt = 0;
  *
  * This function obtains, and returns, a pointer to a buffer for
  * processing by a daemon.  It sleeps until such a buffer is available.
- * The source of buffers for it is the list afs_asyncbuf (see also 
+ * The source of buffers for it is the list afs_asyncbuf (see also
  * afs_gn_strategy).  This function may be invoked concurrently by
  * several processes, that is, several instances of the same daemon.
  * afs_gn_strategy, which adds buffers to the list, runs at interrupt
@@ -709,7 +709,7 @@ afs_int32 afs_biodcnt = 0;
  *
  * Since AIX 4.1 can wake just one process at a time, the separate sleep
  * addresses have been removed.
- * Note that the kernel_lock is held until the e_sleep_thread() occurs. 
+ * Note that the kernel_lock is held until the e_sleep_thread() occurs.
  * The afs_asyncbuf_lock is primarily used to serialize access between
  * process and interrupts.
  */
@@ -729,7 +729,7 @@ afs_get_bioreq()
     /* ??? Does the forward pointer of the returned buffer need to be NULL?
      */
 
-    /* Disable interrupts from the strategy function, and save the 
+    /* Disable interrupts from the strategy function, and save the
      * prior priority level and lock access to the afs_asyncbuf.
      */
     AFS_GUNLOCK();
@@ -782,7 +782,7 @@ afs_get_bioreq()
 
     /* For the convenience of other code, replace the gnodes in
      * the b_vp field of bp and the other buffers on the b_work
-     * chain with the corresponding vnodes.   
+     * chain with the corresponding vnodes.
      *
      * ??? what happens to the gnodes?  They're not just cut loose,
      * are they?
@@ -856,9 +856,9 @@ afs_BioDaemon(afs_int32 nbiods)
        limit_sigs(&sigbits, &osigbits);        /*   and already masked */
     }
     /* Main body starts here -- this is an intentional infinite loop, and
-     * should NEVER exit 
+     * should NEVER exit
      *
-     * Now, the loop will exit if get_bioreq() returns NULL, indicating 
+     * Now, the loop will exit if get_bioreq() returns NULL, indicating
      * that we've been interrupted.
      */
     while (1) {
@@ -899,7 +899,7 @@ afs_BioDaemon(afs_int32 nbiods)
            ReleaseWriteLock(&vcp->lock);
        }
        /* If the buffer represents a protection violation, rather than
-        * an actual request for I/O, no special action need be taken.  
+        * an actual request for I/O, no special action need be taken.
         */
        if (bp->b_flags & B_PFPROT) {
            iodone(bp);         /* Notify all users of the buffer that we're done */
@@ -932,7 +932,7 @@ afs_BioDaemon(afs_int32 nbiods)
         * buffer may be linked with other buffers via the b_work field.
         * See also afs_gn_strategy.  For each buffer in the chain (including
         * bp) notify all users of the buffer that the daemon is finished
-        * using it by calling iodone.  
+        * using it by calling iodone.
         * assumes iodone can modify the b_work field.
         */
        for (tbp1 = bp;;) {
@@ -1071,10 +1071,10 @@ afs_BackgroundDaemon(void)
                       tb->opcode);
            if (tb->opcode == BOP_FETCH)
                BPrefetch(tb);
-#if defined(AFS_CACHE_BYPASS)          
+#if defined(AFS_CACHE_BYPASS)
            else if (tb->opcode == BOP_FETCH_NOCACHE)
                BPrefetchNoCache(tb);
-#endif         
+#endif
            else if (tb->opcode == BOP_STORE)
                BStore(tb);
            else if (tb->opcode == BOP_PATH)
index 2f5410720b0aa52ee8ceb34bfafaffd3cfdb62f7..661b31ba07f6fcc85bb3b87c5d53571d88d628e6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  *$All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -71,7 +71,7 @@ afs_int32 afs_cacheBlocks;    /*!< 1K blocks in cache */
 afs_int32 afs_cacheStats;      /*!< Stat entries in cache */
 afs_int32 afs_blocksUsed;      /*!< Number of blocks in use */
 afs_int32 afs_blocksDiscarded; /*!<Blocks freed but not truncated */
-afs_int32 afs_fsfragsize = AFS_MIN_FRAGSIZE;   /*!< Underlying Filesystem minimum unit 
+afs_int32 afs_fsfragsize = AFS_MIN_FRAGSIZE;   /*!< Underlying Filesystem minimum unit
                                         *of disk allocation usually 1K
                                         *this value is (truefrag -1 ) to
                                         *save a bunch of subtracts... */
@@ -162,11 +162,11 @@ struct afs_cacheOps *afs_cacheType;
  *     2 : RO
  */
 static afs_int32
-afs_DCGetBucket(struct vcache *avc) 
+afs_DCGetBucket(struct vcache *avc)
 {
-    if (!splitdcache) 
+    if (!splitdcache)
        return 1;
-    
+
     /* This should be replaced with some sort of user configurable function */
     if (avc->f.states & CRO) {
        return 2;
@@ -187,15 +187,15 @@ afs_DCGetBucket(struct vcache *avc)
  * \param newSize The new size to be adjusted to.
  *
  */
-static void 
+static void
 afs_DCAdjustSize(struct dcache *adc, afs_int32 oldSize, afs_int32 newSize)
 {
     afs_int32 adjustSize = newSize - oldSize;
 
-    if (!splitdcache) 
+    if (!splitdcache)
        return;
 
-    switch (adc->bucket) 
+    switch (adc->bucket)
     {
     case 0:
        afs_blocksUsed_0 += adjustSize;
@@ -216,20 +216,20 @@ afs_DCAdjustSize(struct dcache *adc, afs_int32 oldSize, afs_int32 newSize)
 
 /*!
  * Move a dcache from one bucket to another.
- * 
+ *
  * \param adc Operate on this dcache.
  * \param size Size in bucket (?).
  * \param newBucket Destination bucket.
  *
  */
-static void 
+static void
 afs_DCMoveBucket(struct dcache *adc, afs_int32 size, afs_int32 newBucket)
 {
-    if (!splitdcache) 
+    if (!splitdcache)
        return;
 
-    /* Substract size from old bucket. */      
-    switch (adc->bucket) 
+    /* Substract size from old bucket. */
+    switch (adc->bucket)
     {
     case 0:
        afs_blocksUsed_0 -= size;
@@ -245,7 +245,7 @@ afs_DCMoveBucket(struct dcache *adc, afs_int32 size, afs_int32 newBucket)
     /* Set new bucket and increase destination bucket size. */
     adc->bucket = newBucket;
 
-    switch (adc->bucket) 
+    switch (adc->bucket)
     {
     case 0:
        afs_blocksUsed_0 += size;
@@ -257,15 +257,15 @@ afs_DCMoveBucket(struct dcache *adc, afs_int32 size, afs_int32 newBucket)
        afs_blocksUsed_2 += size;
        break;
     }
-    
+
     return;
 }
 
 /*!
  * Init split caches size.
  */
-static void 
-afs_DCSizeInit(void) 
+static void
+afs_DCSizeInit(void)
 {
     afs_blocksUsed_0 = afs_blocksUsed_1 = afs_blocksUsed_2 = 0;
 }
@@ -276,19 +276,19 @@ afs_DCSizeInit(void)
  * \param bucket
  */
 static afs_int32
-afs_DCWhichBucket(afs_int32 phase, afs_int32 bucket) 
+afs_DCWhichBucket(afs_int32 phase, afs_int32 bucket)
 {
-    if (!splitdcache) 
+    if (!splitdcache)
        return 0;
 
     afs_pct1 = afs_blocksUsed_1 / (afs_cacheBlocks / 100);
     afs_pct2 = afs_blocksUsed_2 / (afs_cacheBlocks / 100);
 
     /* Short cut: if we don't know about it, try to kill it */
-    if (phase < 2 && afs_blocksUsed_0) 
+    if (phase < 2 && afs_blocksUsed_0)
        return 0;
-    
-    if (afs_pct1 > afs_tpct1) 
+
+    if (afs_pct1 > afs_tpct1)
        return 1;
     if (afs_pct2 > afs_tpct2)
        return 2;
@@ -397,8 +397,8 @@ u_int afs_min_cache = 0;
 
 /*!
  * Keeps the cache clean and free by truncating uneeded files, when used.
- * \param  
- * \return 
+ * \param
+ * \return
  */
 void
 afs_CacheTruncateDaemon(void)
@@ -538,7 +538,7 @@ afs_AdjustSize(struct dcache *adc, afs_int32 newSize)
  *      1.  only grab up to anumber victims if aneedSpace <= 0, not
  *          the whole set of MAXATONCE.
  *      2.  dynamically choose MAXATONCE to reflect severity of
- *          demand: something like (*aneedSpace >> (logChunk - 9)) 
+ *          demand: something like (*aneedSpace >> (logChunk - 9))
  *
  *  \note N.B. if we're called with aneedSpace <= 0 and anumber > 0, that
  *  indicates that the cache is not properly configured/tuned or
@@ -577,7 +577,7 @@ afs_GetDownD(int anumber, int *aneedSpace, afs_int32 buckethint)
     if (CheckLock(&afs_xdcache) != -1)
        osi_Panic("getdownd nolock");
     /* decrement anumber first for all dudes in free list */
-    /* SHOULD always decrement anumber first, even if aneedSpace >0, 
+    /* SHOULD always decrement anumber first, even if aneedSpace >0,
      * because we should try to free space even if anumber <=0 */
     if (!aneedSpace || *aneedSpace <= 0) {
        anumber -= afs_freeDCCount;
@@ -596,7 +596,7 @@ afs_GetDownD(int anumber, int *aneedSpace, afs_int32 buckethint)
     /* rewrite so phases include a better eligiblity for gc test*/
     /*
      * The phase variable manages reclaims.  Set to 0, the first pass,
-     * we don't reclaim active entries, or other than target bucket.  
+     * we don't reclaim active entries, or other than target bucket.
      * Set to 1, we reclaim even active ones in target bucket.
      * Set to 2, we reclaim any inactive one.
      * Set to 3, we reclaim even active ones.
@@ -1341,7 +1341,7 @@ afs_TryToSmush(struct vcache *avc, afs_ucred_t *acred, int sync)
 #endif
     ReleaseWriteLock(&afs_xdcache);
     /*
-     * It's treated like a callback so that when we do lookups we'll 
+     * It's treated like a callback so that when we do lookups we'll
      * invalidate the unique bit if any
      * trytoSmush occured during the lookup call
      */
@@ -1354,13 +1354,13 @@ afs_TryToSmush(struct vcache *avc, afs_ucred_t *acred, int sync)
  * Description
  *     Given the cached info for a file, return the number of chunks that
  *     are not available from the dcache.
- * 
+ *
  * Parameters:
  *     avc:    Pointer to the (held) vcache entry to look in.
- * 
+ *
  * Returns:
  *     The number of chunks which are not currently cached.
- * 
+ *
  * Environment:
  *     The vcache entry is held upon entry.
  */
@@ -1393,7 +1393,7 @@ afs_DCacheMissingChunks(struct vcache *avc)
      */
     if (avc->f.fid.Fid.Vnode & 1 || vType(avc) == VDIR)
        totalChunks = 1;
-    
+
     /*
      printf("Should have %d chunks for %u bytes\n",
                totalChunks, (totalLength + 1));
@@ -1470,7 +1470,7 @@ afs_FindDCache(struct vcache *avc, afs_size_t abyte)
        hadd32(afs_indexCounter, 1);
        ReleaseWriteLock(&afs_xdcache);
        return tdc;
-    } 
+    }
     ReleaseWriteLock(&afs_xdcache);
     return NULL;
 }                              /*afs_FindDCache */
@@ -1706,7 +1706,7 @@ afs_GetDCache(struct vcache *avc, afs_size_t abyte,
        if (dcLocked && (tdc->index != NULLIDX)
            && !FidCmp(&tdc->f.fid, &avc->f.fid) && chunk == tdc->f.chunk
            && !(afs_indexFlags[tdc->index] & (IFFree | IFDiscarded))) {
-           /* got the right one.  It might not be the right version, and it 
+           /* got the right one.  It might not be the right version, and it
             * might be fetching, but it's the right dcache entry.
             */
            /* All this code should be integrated better with what follows:
@@ -2228,12 +2228,12 @@ afs_GetDCache(struct vcache *avc, afs_size_t abyte,
                   code = -1;
 
                if (code == 0) {
-                   /* callback could have been broken (or expired) in a race here, 
+                   /* callback could have been broken (or expired) in a race here,
                     * but we return the data anyway.  It's as good as we knew about
                     * when we started. */
-                   /* 
-                    * validPos is updated by CacheFetchProc, and can only be 
-                    * modifed under a dcache write lock, which we've blocked out 
+                   /*
+                    * validPos is updated by CacheFetchProc, and can only be
+                    * modifed under a dcache write lock, which we've blocked out
                     */
                    size = tdc->validPos - Position;    /* actual segment size */
                    if (size < 0)
@@ -2746,9 +2746,9 @@ afs_UFSGetDSlot(afs_int32 aslot, struct dcache *tmpdc)
            } else if (tdc->f.states & DBackup) {
                afs_DCMoveBucket(tdc, 0, 1);
            } else {
-               afs_DCMoveBucket(tdc, 0, 1); 
+               afs_DCMoveBucket(tdc, 0, 1);
            }
-       } 
+       }
     }
     tdc->refCount = 1;
     tdc->index = aslot;
@@ -3007,7 +3007,7 @@ afs_InitCacheFile(char *afile, ino_t ainode)
  * Initialize dcache related variables.
  *
  * \param afiles
- * \param ablocks 
+ * \param ablocks
  * \param aDentries
  * \param achunk
  * \param aflags
@@ -3128,8 +3128,8 @@ afs_dcacheInit(int afiles, int ablocks, int aDentries, int achunk, int aflags)
 
     afs_dcentries = aDentries;
     afs_blocksUsed = 0;
-    afs_stats_cmperf.cacheBucket0_Discarded = 
-       afs_stats_cmperf.cacheBucket1_Discarded = 
+    afs_stats_cmperf.cacheBucket0_Discarded =
+       afs_stats_cmperf.cacheBucket1_Discarded =
        afs_stats_cmperf.cacheBucket2_Discarded = 0;
     afs_DCSizeInit();
     QInit(&afs_DLRU);
@@ -3184,8 +3184,8 @@ shutdown_dcache(void)
     afs_osi_Free(afs_dchashTbl, afs_dhashsize * sizeof(afs_int32));
 
     afs_blocksUsed = afs_dcentries = 0;
-    afs_stats_cmperf.cacheBucket0_Discarded = 
-       afs_stats_cmperf.cacheBucket1_Discarded = 
+    afs_stats_cmperf.cacheBucket0_Discarded =
+       afs_stats_cmperf.cacheBucket1_Discarded =
        afs_stats_cmperf.cacheBucket2_Discarded = 0;
     hzero(afs_indexCounter);
 
@@ -3202,9 +3202,9 @@ shutdown_dcache(void)
 /*!
  * Get a dcache ready for writing, respecting the current cache size limits
  *
- * len is required because afs_GetDCache with flag == 4 expects the length 
- * field to be filled. It decides from this whether it's necessary to fetch 
- * data into the chunk before writing or not (when the whole chunk is 
+ * len is required because afs_GetDCache with flag == 4 expects the length
+ * field to be filled. It decides from this whether it's necessary to fetch
+ * data into the chunk before writing or not (when the whole chunk is
  * overwritten!).
  *
  * \param avc          The vcache to fetch a dcache for
@@ -3214,15 +3214,15 @@ shutdown_dcache(void)
  * \param noLock
  *
  * \return If successful, a reference counted dcache with tdc->lock held. Lock
- *         must be released and afs_PutDCache() called to free dcache. 
+ *         must be released and afs_PutDCache() called to free dcache.
  *         NULL on  failure
  *
- * \note avc->lock must be held on entry. Function may release and reobtain 
+ * \note avc->lock must be held on entry. Function may release and reobtain
  *       avc->lock and GLOCK.
  */
 
 struct dcache *
-afs_ObtainDCacheForWriting(struct vcache *avc, afs_size_t filePos, 
+afs_ObtainDCacheForWriting(struct vcache *avc, afs_size_t filePos,
                           afs_size_t len, struct vrequest *areq,
                           int noLock)
 {
@@ -3337,7 +3337,7 @@ afs_MakeShadowDir(struct vcache *avc, struct dcache *adc)
     new_dc->f.chunkBytes = adc->f.chunkBytes;
 
     ReleaseReadLock(&adc->mflock);
-    
+
     /* Now add to the two hash chains */
     i = DCHash(&shadow_fid, 0);
     afs_dcnextTbl[new_dc->index] = afs_dchashTbl[i];
@@ -3451,7 +3451,7 @@ afs_DeleteShadowDir(struct vcache *avc)
  * \param alen  The new length of the file
  *
  */
-void 
+void
 afs_PopulateDCache(struct vcache *avc, afs_size_t apos, struct vrequest *areq)
 {
     struct dcache *tdc;
@@ -3459,19 +3459,19 @@ afs_PopulateDCache(struct vcache *avc, afs_size_t apos, struct vrequest *areq)
     afs_int32 start, end;
 
     /* We're doing this to deal with the situation where we extend
-     * by writing after lseek()ing past the end of the file . If that 
-     * extension skips chunks, then those chunks won't be created, and 
-     * GetDCache will assume that they have to be fetched from the server. 
-     * So, for each chunk between the current file position, and the new 
+     * by writing after lseek()ing past the end of the file . If that
+     * extension skips chunks, then those chunks won't be created, and
+     * GetDCache will assume that they have to be fetched from the server.
+     * So, for each chunk between the current file position, and the new
      * length we GetDCache for that chunk.
      */
 
-    if (AFS_CHUNK(apos) == 0 || apos <= avc->f.m.Length) 
+    if (AFS_CHUNK(apos) == 0 || apos <= avc->f.m.Length)
        return;
 
     if (avc->f.m.Length == 0)
        start = 0;
-    else 
+    else
        start = AFS_CHUNK(avc->f.m.Length)+1;
 
     end = AFS_CHUNK(apos);
index 2097761bbc25cacf8c82216624307182e49d6ab1..6bb41fdbb466d4b408494ecec78690537fc99837 100644 (file)
@@ -6,8 +6,8 @@
 
 #include <afsconfig.h>
 #include "afs/param.h"
+
+
 #include "afs/sysincludes.h"
 #include "afsincludes.h"
 #include "afs/afs_stats.h"     /* statistics */
@@ -497,7 +497,7 @@ afs_DbgListDirEntries(struct VenusFid *afid)
  */
 
 int
-afs_GetParentVCache(struct vcache *avc, int deleted, struct VenusFid *afid, 
+afs_GetParentVCache(struct vcache *avc, int deleted, struct VenusFid *afid,
                    char *aname, struct vcache **adp)
 {
     int code;
@@ -669,7 +669,7 @@ afs_ProcessOpCreate(struct vcache *avc, struct vrequest *areq,
        return ENOMEM;
 
     code = afs_GetParentVCache(avc, 0, &pdir_fid, tname, &tdp);
-    if (code) 
+    if (code)
        goto end;
 
     /* This data may also be in linkData, but then we have to deal with
@@ -707,7 +707,7 @@ afs_ProcessOpCreate(struct vcache *avc, struct vrequest *areq,
        ReleaseReadLock(&tdc->lock);
        afs_PutDCache(tdc);
     }
-       
+
     /* Set status. */
     InStatus.Mask = AFS_SETMODTIME | AFS_SETMODE | AFS_SETGROUP;
     InStatus.ClientModTime = avc->f.m.Date;
@@ -796,11 +796,11 @@ afs_ProcessOpCreate(struct vcache *avc, struct vrequest *areq,
         */
        tdc = afs_FindDCacheByFid(&avc->f.fid);
        if (tdc) {
-           afs_dir_ChangeFid(tdc, ".", &avc->f.fid.Fid.Vnode, 
+           afs_dir_ChangeFid(tdc, ".", &avc->f.fid.Fid.Vnode,
                              &newFid.Fid.Vnode);
 
            if (avc->f.m.LinkCount >= 2)
-               /* For non empty dirs, fix children's parentVnode and 
+               /* For non empty dirs, fix children's parentVnode and
                 * parentUnique reference.
                 */
                afs_FixChildrenFids(&avc->f.fid, &newFid);
@@ -884,7 +884,7 @@ end:
     if (tdp)
        afs_PutVCache(tdp);
     afs_osi_Free(tname, AFSNAMEMAX);
-    if (ttargetName) 
+    if (ttargetName)
        afs_osi_Free(ttargetName, tlen);
     return code;
 }
@@ -1253,14 +1253,14 @@ unlock_srv_file:
 next_file:
        ObtainWriteLock(&afs_disconDirtyLock, 710);
        if (code == 0) {
-           /* Replayed successfully - pull the vcache from the 
+           /* Replayed successfully - pull the vcache from the
             * disconnected list */
            tvc->f.ddirty_flags = 0;
            QRemove(&tvc->dirtyq);
            afs_PutVCache(tvc);
        } else {
            if (code == EAGAIN) {
-               /* Operation was deferred. Pull it from the current place in 
+               /* Operation was deferred. Pull it from the current place in
                 * the list, and stick it at the end again */
                QRemove(&tvc->dirtyq);
                QAdd(&afs_disconDirty, &tvc->dirtyq);
@@ -1292,7 +1292,7 @@ next_file:
  * Discard all of our shadow directory copies. If squash is true, then
  * we also invalidate the vcache holding the shadow directory, to ensure
  * that any disconnected changes are deleted
- * 
+ *
  * \param squash
  * \param acred
  *
@@ -1330,7 +1330,7 @@ afs_DisconDiscardAllShadows(int squash, afs_ucred_t *acred)
  * \param acred
  *
  */
-void 
+void
 afs_DisconDiscardAll(afs_ucred_t *acred)
 {
     struct vcache *tvc;
index 53f9fa1558c4aa7f983521bb269149ed18933ac3..7b0ad305e0d0e62cc305b1872b5d74411f48e121 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 4b217116e79508b20a7015edc7576c4eec189257..4bc777a4a14c18b02dc896893bf34ef89f651d6c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1310ce862133df0661a4b1d2a50e8e0457f81ba0..c8547efadf304e713dd8428cd03a91c4c6728613 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -1431,7 +1431,7 @@ afs_icl_SetSetStat(struct afs_icl_set *setp, int op)
        break;
 
     case ICL_OP_SS_FREE:       /* deassert design for log */
-       /* 
+       /*
         * if we are already in this state, do nothing; otherwise
         * deassert desire for log
         */
index bc55c2506660409aa9838cd2aadba9aa2a1e4053..5e44fa3d9ecd7fff8bf065574ca54ea36f349c43 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -135,8 +135,8 @@ afs_CacheInit(afs_int32 astatSize, afs_int32 afiles, afs_int32 ablocks,
     QInit(&afs_disconShadow);
     osi_dnlc_init();
 
-    /* 
-     * create volume list structure 
+    /*
+     * create volume list structure
      */
     if (aVolumes < 50)
        aVolumes = 50;
@@ -282,7 +282,7 @@ afs_InitCellInfo(char *afile)
 {
     afs_dcache_id_t inode;
     int code = 0;
-    
+
     code = afs_LookupInodeByPath(afile, &inode.ufs, NULL);
     return afs_cellname_init(&inode, code);
 }
@@ -345,7 +345,7 @@ afs_InitVolumeInfo(char *afile)
  * Parameters:
  *     afile : Name of the file assumed to be the cache info file
  *             for the Cache Manager; it will be used as such.
- * Side Effects:  This sets afs_fragsize, which is used in the cache usage 
+ * Side Effects:  This sets afs_fragsize, which is used in the cache usage
  *                calculations such as in afs_adjustsize()
  *
  * Environment:
@@ -830,8 +830,8 @@ shutdown_AFS(void)
 
        shutdown_volume();
 
-       /* 
-        * Free FreeVolList allocations 
+       /*
+        * Free FreeVolList allocations
         */
        afs_osi_Free(Initialafs_freeVolList,
                     afs_memvolumes * sizeof(struct volume));
@@ -843,8 +843,8 @@ shutdown_AFS(void)
         * we simply malloc more; we won't be able to free those additional volumes.
         */
 
-       /* 
-        * Free Users table allocation 
+       /*
+        * Free Users table allocation
         */
        {
            struct unixuser *tu, *ntu;
index 773e87b02412ad2927cb049c4c49a0a6551b8c9a..58a081d6a44ba49989bd616fa94d58002117ef50 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -53,7 +53,7 @@ Lock_Init(struct afs_lock *lock)
     lock->time_waiting.tv_sec = 0;
     lock->time_waiting.tv_usec = 0;
 }
-\f
+
 void
 ObtainLock(struct afs_lock *lock, int how,
           unsigned int src_indicator)
index 15d8520db5ff184e410ef6ed6274bfcaac317cc0..9283b9a64d14285eb3ea7c3aefa2fec50d087932 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index f9ff9bead098d15a6147d40d5e6a1d10dfc81dad..6bbf920584533b0653f11f5d009daac3885b8c85 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index c26128340d8a00840541c84915668c5eb938f104..935e18fb59d0d6a8b1bbb789c81ded0fdef185e3 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index f17529cb7dee70f491f71575751e4b53bb107ee9..51b7561f70ff73f9a4350795d81f95498d540455 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -87,7 +87,7 @@ afs_MemCacheOpen(afs_dcache_id_t *ainode)
 }
 
 /*
- * this routine simulates a read in the Memory Cache 
+ * this routine simulates a read in the Memory Cache
  */
 int
 afs_MemReadBlk(struct osi_file *fP, int offset, void *dest,
@@ -117,7 +117,7 @@ afs_MemReadBlk(struct osi_file *fP, int offset, void *dest,
 }
 
 /*
- * this routine simulates a readv in the Memory Cache 
+ * this routine simulates a readv in the Memory Cache
  */
 int
 afs_MemReadvBlk(struct memCacheEntry *mceP, int offset,
index 0f151e1600eb4cb91d32e59199c438cf48756f23..782ce7f42a078e9a20b9c5314f5f430df9b44ded 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -44,7 +44,7 @@ struct nfsclientpag *afs_nfspags[NNFSCLIENTS];
 afs_lock_t afs_xnfspag /*, afs_xnfsreq */ ;
 extern struct afs_exporter *afs_nfsexporter;
 
-/* Creates an nfsclientpag structure for the (uid, host) pair if one doesn't 
+/* Creates an nfsclientpag structure for the (uid, host) pair if one doesn't
  * exist. RefCount is incremented and it's time stamped. */
 static struct nfsclientpag *
 afs_GetNfsClientPag(afs_int32 uid, afs_uint32 host)
@@ -105,8 +105,8 @@ afs_PutNfsClientPag(np)
 }
 
 
-/* Return the nfsclientpag structure associated with the (uid, host) or 
- * {pag, host} pair, if pag is nonzero. RefCount is incremented and it's 
+/* Return the nfsclientpag structure associated with the (uid, host) or
+ * {pag, host} pair, if pag is nonzero. RefCount is incremented and it's
  * time stamped. */
 static struct nfsclientpag *
 afs_FindNfsClientPag(afs_int32 uid, afs_uint32 host, afs_int32 pag)
@@ -190,9 +190,9 @@ afs_nfsclient_reqhandler(struct afs_exporter *exporter,
 
     afs_nfsexporter->exp_stats.calls++;
     if (!(afs_nfsexporter->exp_states & EXP_EXPORTED)) {
-       /* No afs requests accepted as long as EXPORTED flag is turned 'off'. 
-        * Set/Reset via a pioctl call (fs exportafs). Note that this is on 
-        * top of the /etc/exports nfs requirement (i.e. /afs must be 
+       /* No afs requests accepted as long as EXPORTED flag is turned 'off'.
+        * Set/Reset via a pioctl call (fs exportafs). Note that this is on
+        * top of the /etc/exports nfs requirement (i.e. /afs must be
         * exported to all or whomever there too!)
         */
        afs_nfsexporter->exp_stats.rejectedcalls++;
@@ -237,10 +237,10 @@ afs_nfsclient_reqhandler(struct afs_exporter *exporter,
     if ((afs_nfsexporter->exp_states & EXP_CLIPAGS))
                pag = NOPAG;
     if (!np) {
-       /* Even if there is a "good" pag coming in we don't accept it if no 
-        * nfsclientpag struct exists for the user since that would mean 
-        * that the translator rebooted and therefore we ignore all older 
-        * pag values 
+       /* Even if there is a "good" pag coming in we don't accept it if no
+        * nfsclientpag struct exists for the user since that would mean
+        * that the translator rebooted and therefore we ignore all older
+        * pag values
         */
        if ((code = setpag(cred, -1, &pag, 0))) {
            if (au)
@@ -335,7 +335,7 @@ afs_nfsclient_getcreds(struct unixuser *au)
            tsysnames.SysNameList_len <= 0 ||
            tsysnames.SysNameList_len > MAXNUMSYSNAMES)
            goto done;
-    
+
        for(i = 0; i < np->sysnamecount; i++)
            afs_osi_Free(np->sysname[i], MAXSYSNAME);
 
@@ -450,8 +450,8 @@ afs_nfsclient_gethost(struct nfsclientpag *np)
 /* if inname is non-null, a new system name value is set for the remote
  * user (inname contains the new sysname). In all cases, outname returns
  * the current sysname value for this remote user */
-int 
-afs_nfsclient_sysname(struct nfsclientpag *np, char *inname, 
+int
+afs_nfsclient_sysname(struct nfsclientpag *np, char *inname,
                      char ***outname, int *num, int allpags)
 {
     struct nfsclientpag *tnp;
@@ -543,7 +543,7 @@ afs_nfsclient_GC(struct afs_exporter *exporter,
 int
 afs_nfsclient_stats(struct afs_exporter *export)
 {
-    /* Nothing much to do here yet since most important stats are collected 
+    /* Nothing much to do here yet since most important stats are collected
      * directly in the afs_exporter structure itself */
     AFS_STATCNT(afs_nfsclient_stats);
     return 0;
@@ -618,7 +618,7 @@ afs_iauth_register(void)
     }
 }
 
-/* afs_iauth_unregister - unregister the iauth verify routine. Called on shutdown. 
+/* afs_iauth_unregister - unregister the iauth verify routine. Called on shutdown.
  */
 void
 afs_iauth_unregister(void)
index 00bf78c76c05ebea0c60be5fe29f3cefad7bfc43..39b92c97b823fa19dce5111a76363b43700e6a81 100644 (file)
@@ -223,7 +223,7 @@ acl2_to_afs_call(int which, caddr_t * args, fhandle_t ** fhpp)
            fhp = &sargs->fh;
            break;
        }
-#if defined(AFS_SUN510_ENV) 
+#if defined(AFS_SUN510_ENV)
     case ACLPROC2_GETXATTRDIR:
        {
            struct GETXATTRDIR2args *sargs = (struct GETXATTRDIR2args *)args;
@@ -695,7 +695,7 @@ afs_acl2_access(char *args, char *xp, char *exp, char *rp, char *crp)
     return;
 }
 
-#if defined(AFS_SUN510_ENV) 
+#if defined(AFS_SUN510_ENV)
 void
 afs_acl2_getxattrdir(char *args, char *xp, char *exp, char *rp, char *crp)
 {
@@ -720,7 +720,7 @@ struct afs_nfs_disp_tbl afs_acl_disp_tbl[ACL2_NPROC] = {
     {afs_acl2_setacl},
     {afs_acl2_getattr},
     {afs_acl2_access},
-#if defined(AFS_SUN510_ENV) 
+#if defined(AFS_SUN510_ENV)
     {afs_acl2_getxattrdir}
 #endif
 };
@@ -1002,7 +1002,7 @@ acl3_to_afs_call(int which, caddr_t * args, nfs_fh3 ** fhpp)
            fhp = &sargs->fh;
            break;
        }
-#if defined(AFS_SUN510_ENV) 
+#if defined(AFS_SUN510_ENV)
     case ACLPROC3_GETXATTRDIR:
        {
            struct GETXATTRDIR3args *sargs = (struct GETXATTRDIR3args *)args;
@@ -1038,7 +1038,7 @@ afs_nfs3_dispatcher(int type, afs_int32 which, char *argp,
        return 2;
 
     sa = (struct sockaddr *)svc_getrpccaller(rp->rq_xprt)->buf;
-    if (sa == NULL) 
+    if (sa == NULL)
        return;
 
     if (sa->sa_family == AF_INET)
@@ -1598,7 +1598,7 @@ afs_acl3_setacl(char *args, char *xp, char *exp, char *rp, char *crp)
     return;
 }
 
-#if defined(AFS_SUN510_ENV) 
+#if defined(AFS_SUN510_ENV)
 void
 afs_acl3_getxattrdir(char *args, char *xp, char *exp, char *rp, char *crp)
 {
@@ -1621,7 +1621,7 @@ struct afs_nfs_disp_tbl afs_acl3_disp_tbl[ACL3_NPROC] = {
     {afs_nfs2_null},
     {afs_acl3_getacl},
     {afs_acl3_setacl},
-#if defined(AFS_SUN510_ENV) 
+#if defined(AFS_SUN510_ENV)
     {afs_acl3_getxattrdir},
 #endif
 };
index 22f9786d4a639c79e8aa0236c45a126e885c2607..4cece9823c6895dccbfcdd6f554299cf9c5e1d67 100644 (file)
@@ -44,7 +44,7 @@ kmutex_t afs_global_lock;
 long afs_global_owner;
 #endif
 
-#if defined(AFS_DARWIN_ENV) 
+#if defined(AFS_DARWIN_ENV)
 thread_t afs_global_owner;
 #ifdef AFS_DARWIN80_ENV
 lck_mtx_t  *afs_global_lock;
@@ -124,7 +124,7 @@ afs_osi_UnmaskRxkSignals(void)
 }
 
 /* Two hacks to try and fix afsdb */
-void 
+void
 afs_osi_MaskUserLoop(void)
 {
 #ifdef AFS_DARWIN_ENV
@@ -135,7 +135,7 @@ afs_osi_MaskUserLoop(void)
 #endif
 }
 
-void 
+void
 afs_osi_UnmaskUserLoop(void)
 {
 #ifdef AFS_DARWIN_ENV
index 784fefe829d33363e254c29a9105c581e8b2a2a8..b5e3b8f3ad802f52bd2a385f9aaed4100a2f4bea 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -160,7 +160,7 @@ extern void osi_AttachVnode(struct vcache *, int seq);
 #endif
 #endif
 
-/* 
+/*
  * Time related macros
  */
 #define osi_GetuTime(x) osi_GetTime(x)
@@ -421,7 +421,7 @@ typedef struct timeval osi_timeval_t;
 
 
 /*
-** Macro for Solaris 2.6 returns 1 if file is larger than 2GB; else returns 0 
+** Macro for Solaris 2.6 returns 1 if file is larger than 2GB; else returns 0
 */
 #define AfsLargeFileUio(uio)       0
 #define AfsLargeFileSize(pos, off) 0
index 1fdf31d1099a57956dd26dbeca7f85ee8307463f..676d523ebe011909590862bb9fde72dd7f8ca0bf 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -245,11 +245,11 @@ shutdown_osinet(void)
        LOCK_INIT(&osi_fsplock, "osi_fsplock");
        LOCK_INIT(&osi_flplock, "osi_flplock");
     }
-    if (afs_stats_cmperf.LargeBlocksActive || 
-       afs_stats_cmperf.SmallBlocksActive) 
+    if (afs_stats_cmperf.LargeBlocksActive ||
+       afs_stats_cmperf.SmallBlocksActive)
     {
-       afs_warn("WARNING: not all blocks freed: large %d small %d\n", 
-                afs_stats_cmperf.LargeBlocksActive, 
+       afs_warn("WARNING: not all blocks freed: large %d small %d\n",
+                afs_stats_cmperf.LargeBlocksActive,
                 afs_stats_cmperf.SmallBlocksActive);
     }
 }
index 97bfaf336df95adbdc2c6ca7b92eeef541f0dff4..af9356fe3b42adb5d52341998934dd11aef2c4cc 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 36b66102c42b054a398a15acd47adae29a6a1eb0..f0703ef5a65c57b687be5a33d92528f2f7b4c785 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 5d5dd48882118eb7ec84f638e4e4ab640b3a1a13..2a2268377b0e39e1ce4b081daed0c0d14d94f72f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 6627f4d4868cfdd2c6db9e625b7f870c95c3eb4c..434d06295326ff654b2ccfb7551ef51bb46390ba 100644 (file)
@@ -52,15 +52,15 @@ osi_FlushPages(struct vcache *avc, afs_ucred_t *credp)
 #endif
     afs_hyper_t origDV;
 #if defined(AFS_CACHE_BYPASS)
-    /* The optimization to check DV under read lock below is identical a 
-     * change in CITI cache bypass work.  The problem CITI found in 1999 
-     * was that this code and background daemon doing prefetching competed 
-     * for the vcache entry shared lock.  It's not clear to me from the 
+    /* The optimization to check DV under read lock below is identical a
+     * change in CITI cache bypass work.  The problem CITI found in 1999
+     * was that this code and background daemon doing prefetching competed
+     * for the vcache entry shared lock.  It's not clear to me from the
      * tech report, but it looks like CITI fixed the general prefetch code
      * path as a bonus when experimenting on prefetch for cache bypass, see
      * citi-tr-01-3.
      */
-#endif        
+#endif
     ObtainReadLock(&avc->lock);
     /* If we've already purged this version, or if we're the ones
      * writing this version, don't flush it (could lose the
index d93684284b741fa658654fcd3f094adf97953841..d2a661696c2c09ecfca05e5f59f9867044c7dd6a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -24,7 +24,7 @@
  *    cache larger names, perhaps by using a better,longer key (SHA) and discarding
  *    the actual name itself.
  *    precompute a key and stuff for \sys, and combine the HandleAtName function with
- *    this, since we're looking at the name anyway.  
+ *    this, since we're looking at the name anyway.
  */
 
 struct afs_lock afs_xdnlc;
@@ -243,7 +243,7 @@ osi_dnlc_lookup(struct vcache *adp, char *aname, int locktype)
 #ifdef  AFS_DARWIN80_ENV
            ||(tvc->f.states & CDeadVnode)
 #endif
-           )      
+           )
        {
            ReleaseReadLock(&afs_xvcache);
            dnlcstats.misses++;
@@ -273,18 +273,18 @@ osi_dnlc_lookup(struct vcache *adp, char *aname, int locktype)
        ReleaseReadLock(&afs_xvcache);
 
 #ifdef notdef
-       /* 
+       /*
         * XX If LRUme ever is non-zero change the if statement around because
         * aix's cc with optimizer on won't necessarily check things in order XX
         */
        if (LRUme && (0 == NBObtainWriteLock(&afs_xdnlc))) {
            /* don't block to do this */
            /* tnc might have been moved during race condition, */
-           /* but it's always in a legit hash chain when a lock is granted, 
-            * or else it's on the freelist so prev == NULL, 
+           /* but it's always in a legit hash chain when a lock is granted,
+            * or else it's on the freelist so prev == NULL,
             * so at worst this is redundant */
-           /* Now that we've got it held, and a lock on the dnlc, we 
-            * should check to be sure that there was no race, and 
+           /* Now that we've got it held, and a lock on the dnlc, we
+            * should check to be sure that there was no race, and
             * bail out if there was. */
            if (tnc->prev) {
                /* special case for only two elements on list - relative ordering
@@ -380,11 +380,11 @@ osi_dnlc_remove(struct vcache *adp, char *aname, struct vcache *avc)
     return 0;
 }
 
-/*! 
+/*!
  * Remove anything pertaining to this directory.  I can invalidate
  * things without the lock, since I am just looking through the array,
  * but to move things off the lists or into the freelist, I need the
- * write lock 
+ * write lock
  *
  * \param adp vcache entry for the directory to be purged.
  * \return 0
@@ -427,8 +427,8 @@ osi_dnlc_purgedp(struct vcache *adp)
     return 0;
 }
 
-/*! 
- * Remove anything pertaining to this file 
+/*!
+ * Remove anything pertaining to this file
  *
  * \param File vcache entry.
  * \return 0
index fe9f46676b256bb69e951c821c1556260639a4a6..d5fae44bcc429b3036202a0d7c704cba904894f5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -13,7 +13,7 @@ struct nc {
     struct nc *next, *prev;
     struct vcache *dirp, *vp;
     unsigned char name[AFSNCNAMESIZE];
-    /* I think that we can avoid wasting a byte for NULL, with a 
+    /* I think that we can avoid wasting a byte for NULL, with a
      * a little bit of thought.
      */
 };
index b3ca11bb889307416673ff657d16c5e1edbb5aa5..2df8c02e4e64c8a99541cad5fdeac61ebfd0a042 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 103e0aa12e2625803f22712070453aecb3f51ccb..e35cc829b2ec76172f02050d29f487732df558f4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 5280ff155d2d3cc8c568b5cce07099aca500248d..9546d819830d842f6c45acb726ba6325b2bfc639 100644 (file)
@@ -291,7 +291,7 @@ DECL_PIOCTL(PCallBackAddr);
 DECL_PIOCTL(PDiscon);
 DECL_PIOCTL(PNFSNukeCreds);
 DECL_PIOCTL(PNewUuid);
-DECL_PIOCTL(PPrecache); 
+DECL_PIOCTL(PPrecache);
 DECL_PIOCTL(PGetPAG);
 #if defined(AFS_CACHE_BYPASS)
 DECL_PIOCTL(PSetCachingThreshold);
@@ -650,7 +650,7 @@ struct afs_ioctl_sys {
     int arg;
 };
 
-int 
+int
 afs_xioctl(struct afs_ioctl_sys *uap, rval_t *rvp)
 {
     struct file *fd;
@@ -1002,14 +1002,14 @@ afs_pioctl(afs_proc_t *p, void *args, int *retval)
 
 int
 #ifdef AFS_SUN5_ENV
-afs_syscall_pioctl(char *path, unsigned int com, caddr_t cmarg, int follow, 
+afs_syscall_pioctl(char *path, unsigned int com, caddr_t cmarg, int follow,
                   rval_t *vvp, afs_ucred_t *credp)
 #else
 #ifdef AFS_DARWIN100_ENV
 afs_syscall64_pioctl(user_addr_t path, unsigned int com, user_addr_t cmarg,
                   int follow, afs_ucred_t *credp)
 #elif defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
-afs_syscall_pioctl(char *path, unsigned int com, caddr_t cmarg, int follow, 
+afs_syscall_pioctl(char *path, unsigned int com, caddr_t cmarg, int follow,
                   afs_ucred_t *credp)
 #else
 afs_syscall_pioctl(char *path, unsigned int com, caddr_t cmarg, int follow)
@@ -1145,13 +1145,13 @@ afs_syscall_pioctl(char *path, unsigned int com, caddr_t cmarg, int follow)
        struct vnode *realvp;
        if
 #ifdef AFS_SUN511_ENV
-          (VOP_REALVP(vp, &realvp, NULL) == 0) 
+          (VOP_REALVP(vp, &realvp, NULL) == 0)
 #else
-         (VOP_REALVP(vp, &realvp) == 0) 
+         (VOP_REALVP(vp, &realvp) == 0)
 #endif
 {
            struct vnode *oldvp = vp;
-           
+
            VN_HOLD(realvp);
            vp = realvp;
            AFS_RELE(oldvp);
@@ -2211,12 +2211,12 @@ DECL_PIOCTL(PNewStatMount)
 
 /*!
  * VIOCGETTOK (8) - Get authentication tokens
- *  
+ *
  * \ingroup pioctl
- *      
+ *
  * \param[in] ain       cellid to return tokens for
  * \param[out] aout     token
- * 
+ *
  * \retval EIO
  *     Error if the afs daemon hasn't started yet
  * \retval EDOM
@@ -2224,7 +2224,7 @@ DECL_PIOCTL(PNewStatMount)
  *     tokens
  * \retval ENOTCONN
  *     Error if there aren't tokens for this cell
- *  
+ *
  * \post
  *     If the input paramater exists, get the token that corresponds to
  *     the parameter value, if there is no token at this value, get the
@@ -2840,7 +2840,7 @@ DECL_PIOCTL(PGetCacheSize)
     afs_int32 flags;
     struct dcache * tdc;
     int i, size;
-    
+
     AFS_STATCNT(PGetCacheSize);
 
     if (afs_pd_remaining(ain) == sizeof(afs_int32)) {
@@ -2850,12 +2850,12 @@ DECL_PIOCTL(PGetCacheSize)
     } else {
        return EINVAL;
     }
-    
+
     memset(results, 0, sizeof(results));
     results[0] = afs_cacheBlocks;
     results[1] = afs_blocksUsed;
     results[2] = afs_cacheFiles;
-    
+
     if (1 == flags){
         for (i = 0; i < afs_cacheFiles; i++) {
            if (afs_indexFlags[i] & IFFree) results[3]++;
@@ -3491,7 +3491,7 @@ DECL_PIOCTL(PFlushVolumeData)
                     * then someone probably has the file open and is writing
                     * into it. Better to skip flushing such a file, it will be
                     * brought back immediately on the next write anyway.
-                    * 
+                    *
                     * If we *must* flush, then this code has to be rearranged
                     * to call afs_storeAllSegments() first */
                    afs_FlushDCache(tdc);
@@ -3969,7 +3969,7 @@ DECL_PIOCTL(PSetSPrefs)
     return 0;
 }
 
-/* 
+/*
  * VIOC_SETPREFS33 (42) - Set server ranks (deprecated)
  *
  * \param[in] ain      the server preferences to be set
@@ -3998,7 +3998,7 @@ DECL_PIOCTL(PSetSPrefs33)
     return 0;
 }
 
-/* 
+/*
  * VIOC_GETSPREFS (43) - Get server ranks
  *
  * \ingroup pioctl
@@ -4549,14 +4549,14 @@ HandleClientContext(struct afs_ioctl *ablob, int *com,
     } else if (!code) {
        EXP_RELE(outexporter);
     }
-    if (!code) 
+    if (!code)
        *com = (*com) | comp;
     return code;
 }
 #endif /* AFS_NEED_CLIENTCONTEXT */
 
 
-/*! 
+/*!
  * VIOC_GETCPREFS (50) - Get client interface
  *
  * \ingroup pioctl
@@ -4956,7 +4956,7 @@ DECL_PIOCTL(PFsCmd)
            if (tc) {
                RX_AFS_GUNLOCK();
                code =
-                   RXAFS_FsCmd(tc->id, Fid, Inputs, 
+                   RXAFS_FsCmd(tc->id, Fid, Inputs,
                                        (struct FsCmdOutputs *)aout);
                RX_AFS_GLOCK();
            } else
@@ -5015,19 +5015,19 @@ DECL_PIOCTL(PSetCachingThreshold)
 
     if (setting == 0 && getting == 0)
        return EINVAL;
-       
-    /* 
+
+    /*
      * If setting, set first, and return the value now in effect
      */
     if (setting) {
        if (!afs_osi_suser(*acred))
            return EPERM;
        cache_bypass_threshold = threshold;
-        afs_warn("Cache Bypass Threshold set to: %d\n", threshold);            
+        afs_warn("Cache Bypass Threshold set to: %d\n", threshold);
        /* TODO:  move to separate pioctl, or enhance pioctl */
        cache_bypass_strategy = LARGE_FILES_BYPASS_CACHE;
     }
-       
+
     /* Return the current size threshold */
     if (getting)
        return afs_pd_putInt(aout, cache_bypass_threshold);
index 780141776543a7c005dc91c040e9b39ada9141eb..0959fdca2d4eb293915020a1852372f845caae54 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -128,7 +128,7 @@ extern afs_int32 afs_cellindex;
 extern afs_rwlock_t afs_xcell;
 extern afs_rwlock_t afsdb_client_lock;
 extern afs_rwlock_t afsdb_req_lock;
-extern struct afs_q CellLRU;           
+extern struct afs_q CellLRU;
 
 extern void afs_CellInit(void);
 extern void shutdown_cell(void);
@@ -278,12 +278,12 @@ extern int afs_WriteDCache(struct dcache *adc, int atime);
 extern int afs_wakeup(struct vcache *avc);
 extern int afs_InitCacheFile(char *afile, ino_t ainode);
 extern int afs_DCacheMissingChunks(struct vcache *avc);
-extern struct dcache *afs_ObtainDCacheForWriting(struct vcache *avc, 
-                                                afs_size_t filePos, 
-                                                afs_size_t len, 
+extern struct dcache *afs_ObtainDCacheForWriting(struct vcache *avc,
+                                                afs_size_t filePos,
+                                                afs_size_t len,
                                                 struct vrequest *areq,
                                                 int noLock);
-extern void afs_PopulateDCache(struct vcache *avc, afs_size_t apos, 
+extern void afs_PopulateDCache(struct vcache *avc, afs_size_t apos,
                               struct vrequest *areq);
 
 /* afs_disconnected.c */
@@ -580,7 +580,7 @@ extern int afs_setpag(afs_proc_t *p, void *args, int *retval);
 #else
 extern int afs_setpag(void);
 #endif
-       
+
 extern afs_uint32 genpag(void);
 extern afs_uint32 getpag(void);
 #if defined(AFS_FBSD_ENV)
@@ -660,10 +660,10 @@ extern int afs_osi_SleepSig(void *event);
 
 /* ARCH/osi_inode.c */
 #ifdef AFS_SUN5_ENV
-extern int afs_syscall_icreate(dev_t, long, long, long, long, long, 
+extern int afs_syscall_icreate(dev_t, long, long, long, long, long,
                               rval_t *, afs_ucred_t *);
 extern int afs_syscall_iopen(dev_t, int, int, rval_t *, afs_ucred_t *);
-extern int afs_syscall_iincdec(dev_t, int, int, int, rval_t *, 
+extern int afs_syscall_iincdec(dev_t, int, int, int, rval_t *,
                               afs_ucred_t *);
 #elif defined(AFS_SGI65_ENV)
 extern int afs_syscall_icreate(afs_uint32, afs_uint32, afs_uint32, afs_uint32, afs_uint32, afs_uint32, rval_t *);
@@ -801,10 +801,10 @@ extern int afs_syscall64_pioctl(user_addr_t path, unsigned int com,
                                afs_ucred_t *credp);
 #endif
 #ifdef AFS_SUN5_ENV
-extern int afs_syscall_pioctl(char *path, unsigned int com, caddr_t cmarg, 
+extern int afs_syscall_pioctl(char *path, unsigned int com, caddr_t cmarg,
                              int follow, rval_t *rvp, afs_ucred_t *credp);
 #elif defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
-extern int afs_syscall_pioctl(char *path, unsigned int com, caddr_t cmarg, 
+extern int afs_syscall_pioctl(char *path, unsigned int com, caddr_t cmarg,
                              int follow, afs_ucred_t *credp);
 #else
 extern int afs_syscall_pioctl(char *path, unsigned int com, caddr_t cmarg,
@@ -1123,10 +1123,10 @@ extern int afs_LocalHero(struct vcache *avc,
 
 /* VNOPS/afs_vnop_dirops.c */
 
-extern int afs_mkdir(OSI_VC_DECL(adp), char *aname, struct vattr *attrs, 
+extern int afs_mkdir(OSI_VC_DECL(adp), char *aname, struct vattr *attrs,
                     struct vcache **avcp, afs_ucred_t *acred);
 #if defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV)
-extern int afs_rmdir(OSI_VC_DECL(adp), char *aname, struct vnode *cdirp, 
+extern int afs_rmdir(OSI_VC_DECL(adp), char *aname, struct vnode *cdirp,
                     afs_ucred_t *acred);
 #else
 extern int afs_rmdir(OSI_VC_DECL(adp), char *aname, afs_ucred_t *acred);
@@ -1162,10 +1162,10 @@ extern int afs_lockctl(struct vcache * avc, struct AFS_FLOCK * af, int acmd,
 
 /* VNOPS/afs_vnop_link.c */
 #if defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV)
-extern int afs_link(OSI_VC_DECL(adp), struct vcache *avc, char *aname, 
+extern int afs_link(OSI_VC_DECL(adp), struct vcache *avc, char *aname,
                    afs_ucred_t *acred);
 #else
-extern int afs_link(struct vcache *avc, OSI_VC_DECL(adp), char *aname, 
+extern int afs_link(struct vcache *avc, OSI_VC_DECL(adp), char *aname,
                    afs_ucred_t *acred);
 #endif
 
@@ -1190,17 +1190,17 @@ extern int afs_DoBulkStat(struct vcache *adp, long dirCookie,
                          struct vrequest *areqp);
 
 #if defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV)
-extern int afs_lookup(OSI_VC_DECL(adp), char *aname, struct vcache **avcp, 
-                     struct pathname *pnp, int flags, struct vnode *rdir, 
+extern int afs_lookup(OSI_VC_DECL(adp), char *aname, struct vcache **avcp,
+                     struct pathname *pnp, int flags, struct vnode *rdir,
                      afs_ucred_t *acred);
 #elif defined(UKERNEL)
-extern int afs_lookup(OSI_VC_DECL(adp), char *aname, struct vcache **avcp, 
+extern int afs_lookup(OSI_VC_DECL(adp), char *aname, struct vcache **avcp,
                      afs_ucred_t *acred, int flags);
 #else
-extern int afs_lookup(OSI_VC_DECL(adp), char *aname, struct vcache **avcp, 
+extern int afs_lookup(OSI_VC_DECL(adp), char *aname, struct vcache **avcp,
                      afs_ucred_t *acred);
 #endif
-       
+
 /* VNOPS/afs_vnop_open.c */
 #ifdef AFS_SGI64_ENV
 extern int afs_open(bhv_desc_t * bhv, struct vcache **avcp, afs_int32 aflags,
@@ -1225,13 +1225,13 @@ extern void afs_PrefetchChunk(struct vcache *avc, struct dcache *adc,
 /* VNOPS/afs_vnop_readdir.c */
 extern int afs_rd_stash_i;
 #if defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
-extern int afs_readdir(OSI_VC_DECL(avc), struct uio *auio, 
+extern int afs_readdir(OSI_VC_DECL(avc), struct uio *auio,
                       afs_ucred_t *acred, int *eofp);
 #elif defined(AFS_HPUX100_ENV)
-extern int afs_readdir2(OSI_VC_DECL(avc), struct uio *auio, 
+extern int afs_readdir2(OSI_VC_DECL(avc), struct uio *auio,
                        afs_ucred_t *acred);
 #else
-extern int afs_readdir(OSI_VC_DECL(avc), struct uio *auio, 
+extern int afs_readdir(OSI_VC_DECL(avc), struct uio *auio,
                       afs_ucred_t *acred);
 #endif
 
@@ -1248,14 +1248,14 @@ extern int afsrename(struct vcache *aodp, char *aname1, struct vcache *andp,
                     char *aname2, afs_ucred_t *acred,
                     struct vrequest *areq);
 #ifdef AFS_SGI_ENV
-extern int afs_rename(OSI_VC_DECL(aodp), char *aname1, struct vcache *andp, 
-                     char *aname2, struct pathname *npnp, 
+extern int afs_rename(OSI_VC_DECL(aodp), char *aname1, struct vcache *andp,
+                     char *aname2, struct pathname *npnp,
                      afs_ucred_t *acred);
 #else
-extern int afs_rename(OSI_VC_DECL(aodp), char *aname1, struct vcache *andp, 
+extern int afs_rename(OSI_VC_DECL(aodp), char *aname1, struct vcache *andp,
                      char *aname2, afs_ucred_t *acred);
 #endif
-       
+
 /* VNOPS/afs_vnop_strategy.c */
 #if defined(AFS_SUN5_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
 extern int afs_ustrategy(struct buf *adp, afs_ucred_t *credp);
@@ -1268,8 +1268,8 @@ extern int afs_MemHandleLink(struct vcache *avc,
                             struct vrequest *areq);
 extern int afs_UFSHandleLink(struct vcache *avc,
                             struct vrequest *areq);
-extern int afs_symlink(OSI_VC_DECL(adp), char *aname, 
-                      struct vattr *attrs, char *atargetName, 
+extern int afs_symlink(OSI_VC_DECL(adp), char *aname,
+                      struct vattr *attrs, char *atargetName,
                       afs_ucred_t *acred);
 extern int afs_readlink(OSI_VC_DECL(avc), struct uio *auio,
                        afs_ucred_t *acred);
@@ -1286,33 +1286,33 @@ extern int afs_DoPartialWrite(struct vcache *avc,
 extern int afs_closex(struct file *afd);
 
 #ifdef AFS_SGI65_ENV
-extern int afs_close(OSI_VC_DECL(avc), afs_int32 aflags, 
+extern int afs_close(OSI_VC_DECL(avc), afs_int32 aflags,
                     lastclose_t lastclose, afs_ucred_t *acred);
 #elif defined(AFS_SGI64_ENV)
-extern int afs_close(OSI_VC_DECL(avc), afs_int32 aflags, 
-                    lastclose_t lastclose, off_t offset, 
+extern int afs_close(OSI_VC_DECL(avc), afs_int32 aflags,
+                    lastclose_t lastclose, off_t offset,
                     afs_ucred_t *acred, struct flid *flp);
 #elif defined(AFS_SGI_ENV)
-extern int afs_close(OSI_VC_DECL(avc), afs_int32 aflags, 
+extern int afs_close(OSI_VC_DECL(avc), afs_int32 aflags,
                     lastclose_t lastclose, off_t offset,
                     afs_ucred_t *acred);
 #elif defined(AFS_SUN5_ENV)
-extern int afs_close(OSI_VC_DECL(avc), afs_int32 aflags, int count, 
+extern int afs_close(OSI_VC_DECL(avc), afs_int32 aflags, int count,
                     offset_t offset, afs_ucred_t *acred);
 #else
-extern int afs_close(OSI_VC_DECL(avc), afs_int32 aflags,  
+extern int afs_close(OSI_VC_DECL(avc), afs_int32 aflags,
                     afs_ucred_t *acred);
 #endif
 
 #if defined(AFS_SGI65_ENV)
-extern int afs_fsync(OSI_VC_DECL(avc), int flags, afs_ucred_t *acred, 
+extern int afs_fsync(OSI_VC_DECL(avc), int flags, afs_ucred_t *acred,
                     off_t start, off_t stop);
 #elif defined(AFS_SGI_ENV) || defined(AFS_SUN53_ENV)
 extern int afs_fsync(OSI_VC_DECL(avc), int flag, afs_ucred_t *acred);
 #else
 extern int afs_fsync(OSI_VC_DECL(avc), afs_ucred_t *acred);
 #endif
-               
+
 
 /* afs_volume.c */
 extern afs_int32 afs_FVIndex;
index 4483d3225816224e6ab2049e10e450fb4df377c8..911504c22dbffa266bb884b5cb62045af9dbde7e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -225,13 +225,13 @@ afs_StoreAllSegments(struct vcache *avc, struct vrequest *areq,
      * - Have to get a write lock on xdcache because GetDSlot might need it (if
      *   the chunk doesn't have a dcache struct).
      *   This seems like overkill in most cases.
-     * - I'm not sure that it's safe to do "index = .hvNextp", then unlock 
+     * - I'm not sure that it's safe to do "index = .hvNextp", then unlock
      *   xdcache, then relock xdcache and try to use index.  It is done
      *   a lot elsewhere in the CM, but I'm not buying that argument.
      * - should be able to check IFDataMod without doing the GetDSlot (just
      *   hold afs_xdcache).  That way, it's easy to do this without the
      *   writelock on afs_xdcache, and we save unneccessary disk
-     *   operations. I don't think that works, 'cuz the next pointers 
+     *   operations. I don't think that works, 'cuz the next pointers
      *   are still on disk.
      */
     origCBs = afs_allCBs;
@@ -245,7 +245,7 @@ afs_StoreAllSegments(struct vcache *avc, struct vrequest *areq,
        high = 0;
        moredata = FALSE;
 
-       /* lock and start over from beginning of hash chain 
+       /* lock and start over from beginning of hash chain
         * in order to avoid a race condition. */
        ObtainWriteLock(&afs_xdcache, 284);
        index = afs_dvhashTbl[hash];
@@ -324,7 +324,7 @@ afs_StoreAllSegments(struct vcache *avc, struct vrequest *areq,
         * Call StoreMini if we haven't written enough data to extend the
         * file at the fileserver to the client's notion of the file length.
         */
-       if ((avc->f.truncPos != AFS_NOTRUNC) 
+       if ((avc->f.truncPos != AFS_NOTRUNC)
            || ((avc->f.states & CExtendedFile)
                && (maxStoredLength < avc->f.m.Length))) {
            code = afs_StoreMini(avc, areq);
@@ -337,7 +337,7 @@ afs_StoreAllSegments(struct vcache *avc, struct vrequest *areq,
     /*
      * Finally, turn off DWriting, turn on DFEntryMod,
      * update f.versionNo.
-     * A lot of this could be integrated into the loop above 
+     * A lot of this could be integrated into the loop above
      */
     if (!code) {
        afs_hyper_t h_unset;
@@ -573,8 +573,8 @@ afs_InvalidateAllSegments(struct vcache *avc)
     return 0;
 }
 
-/*! 
- * 
+/*!
+ *
  * Extend a cache file
  *
  * \param avc pointer to vcache to extend data for
@@ -617,8 +617,8 @@ afs_ExtendSegments(struct vcache *avc, afs_size_t alen, struct vrequest *areq)
             towrite = (avc->f.m.Length + toAdd) - tdc->validPos;
             if (towrite > AFS_PAGESIZE) towrite = AFS_PAGESIZE;
 
-            code = afs_CFileWrite(tfile, 
-                                  tdc->validPos - AFS_CHUNKTOBASE(tdc->f.chunk), 
+            code = afs_CFileWrite(tfile,
+                                  tdc->validPos - AFS_CHUNKTOBASE(tdc->f.chunk),
                                   zeros, towrite);
             tdc->validPos += towrite;
        }
index 4bb1c8359ef49f5f4866453633aee402216b6bb5..cf3db576f3fb06c898aaf8ffc1d0119c9ab87853 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  * afsi_SetServerIPRank
  * afs_GetServer
  * afs_ActivateServer
- * 
+ *
  *
  * Local:
  * HaveCallBacksFrom
  * CheckVLServer
  * afs_SortOneServer
  * afs_SetServerPrefs
- * 
+ *
  */
 #include <afsconfig.h>
 #include "afs/param.h"
@@ -153,7 +153,7 @@ afs_MarkServerUpOrDown(struct srvAddr *sa, int a_isDown)
                return;
            }
        }
-       /* 
+       /*
         * All ips are down we treat the whole server down
         */
        a_serverP->flags |= SRVR_ISDOWN;
@@ -243,7 +243,7 @@ afs_ServerDown(struct srvAddr *sa)
     struct server *aserver = sa->server;
 
     AFS_STATCNT(ServerDown);
-    if (aserver->flags & SRVR_ISDOWN || sa->sa_flags & SRVADDR_ISDOWN) 
+    if (aserver->flags & SRVR_ISDOWN || sa->sa_flags & SRVADDR_ISDOWN)
        return 0;
     afs_MarkServerUpOrDown(sa, SRVR_ISDOWN);
     if (sa->sa_portal == aserver->cell->vlport)
@@ -422,7 +422,7 @@ afs_CountServers(void)
 
            /*
             * Any further tallying for this record will only be done if it has
-            * been activated. 
+            * been activated.
             */
            if ((currSrvP->flags & AFS_SERVER_FLAG_ACTIVATED)
                && currSrvP->addr && currSrvP->cell) {
@@ -540,13 +540,13 @@ afs_CheckServers(int adown, struct cell *acellp)
     struct srvAddr **addrs;
     struct afs_conn **conns;
     int nconns;
-    struct rx_connection **rxconns;      
+    struct rx_connection **rxconns;
     afs_int32 *conntimer, *deltas, *results;
     Capabilities *caps = NULL;
 
     AFS_STATCNT(afs_CheckServers);
 
-    /* 
+    /*
      * No sense in doing the server checks if we are running in disconnected
      * mode
      */
@@ -628,7 +628,7 @@ afs_CheckServers(int adown, struct cell *acellp)
 
        if ((sa->sa_flags & SRVADDR_ISDOWN) || afs_HaveCallBacksFrom(sa->server)
            || (tc->srvr->server == afs_setTimeHost)) {
-           conns[nconns]=tc; 
+           conns[nconns]=tc;
            rxconns[nconns]=tc->id;
            if (sa->sa_flags & SRVADDR_ISDOWN) {
                rx_SetConnDeadTime(tc->id, 3);
@@ -706,21 +706,21 @@ afs_CheckServers(int adown, struct cell *acellp)
        }
        AFS_GLOCK();
     }
-    
+
     for(i=0;i<nconns;i++){
       tc = conns[i];
       sa = tc->srvr;
-      
+
       if (( results[i] >= 0 ) && (sa->sa_flags & SRVADDR_ISDOWN) && (tc->srvr == sa)) {
        /* server back up */
        print_internet_address("afs: file server ", sa, " is back up", 2);
-       
+
        ObtainWriteLock(&afs_xserver, 244);
-       ObtainWriteLock(&afs_xsrvAddr, 245);        
+       ObtainWriteLock(&afs_xsrvAddr, 245);
        afs_MarkServerUpOrDown(sa, 0);
        ReleaseWriteLock(&afs_xsrvAddr);
        ReleaseWriteLock(&afs_xserver);
-       
+
        if (afs_waitForeverCount) {
          afs_osi_Wakeup(&afs_waitForever);
        }
@@ -744,7 +744,7 @@ afs_CheckServers(int adown, struct cell *acellp)
            delta = deltas[i];
            tc = conns[i];
            sa = tc->srvr;
-           
+
            if ((tc->srvr->server == afs_setTimeHost ||
                 /* Sync only to a server in the local cell */
                 (afs_setTimeHost == (struct server *)0 &&
@@ -752,7 +752,7 @@ afs_CheckServers(int adown, struct cell *acellp)
                /* set the time */
                char msgbuf[90];  /* strlen("afs: setting clock...") + slop */
                delta = end - tv.tv_sec;   /* how many secs fast we are */
-               
+
                afs_setTimeHost = tc->srvr->server;
                /* see if clock has changed enough to make it worthwhile */
                if (delta >= AFS_MINCHANGE || delta <= -AFS_MINCHANGE) {
@@ -767,33 +767,33 @@ afs_CheckServers(int adown, struct cell *acellp)
                    if (delta > 0) {
                        strcpy(msgbuf, "afs: setting clock back ");
                        if (delta > AFS_MAXCHANGEBACK) {
-                           afs_strcat(msgbuf, 
-                                      afs_cv2string(&tbuffer[CVBS], 
+                           afs_strcat(msgbuf,
+                                      afs_cv2string(&tbuffer[CVBS],
                                                     AFS_MAXCHANGEBACK));
                            afs_strcat(msgbuf, " seconds (of ");
-                           afs_strcat(msgbuf, 
-                                      afs_cv2string(&tbuffer[CVBS], 
-                                                    delta - 
+                           afs_strcat(msgbuf,
+                                      afs_cv2string(&tbuffer[CVBS],
+                                                    delta -
                                                     AFS_MAXCHANGEBACK));
                            afs_strcat(msgbuf, ", via ");
-                           print_internet_address(msgbuf, sa, 
+                           print_internet_address(msgbuf, sa,
                                                   "); clock is still fast.",
                                                   0);
                        } else {
-                           afs_strcat(msgbuf, 
+                           afs_strcat(msgbuf,
                                       afs_cv2string(&tbuffer[CVBS], delta));
                            afs_strcat(msgbuf, " seconds (via ");
                            print_internet_address(msgbuf, sa, ").", 0);
                        }
                    } else {
                        strcpy(msgbuf, "afs: setting clock ahead ");
-                       afs_strcat(msgbuf, 
+                       afs_strcat(msgbuf,
                                   afs_cv2string(&tbuffer[CVBS], -delta));
                        afs_strcat(msgbuf, " seconds (via ");
                        print_internet_address(msgbuf, sa, ").", 0);
                    }
                     /* We're only going to set it once; why bother looping? */
-                   break; 
+                   break;
                }
            }
        }
@@ -801,7 +801,7 @@ afs_CheckServers(int adown, struct cell *acellp)
     for (i = 0; i < nconns; i++) {
        afs_PutConn(conns[i], SHARED_LOCK);     /* done with it now */
     }
-    
+
     afs_osi_Free(addrs, srvAddrCount * sizeof(*addrs));
     afs_osi_Free(conns, j * sizeof(struct afs_conn *));
     afs_osi_Free(rxconns, j * sizeof(struct rx_connection *));
@@ -809,7 +809,7 @@ afs_CheckServers(int adown, struct cell *acellp)
     afs_osi_Free(deltas, j * sizeof(afs_int32));
     afs_osi_Free(results, j * sizeof(afs_int32));
     afs_osi_Free(caps, j * sizeof(Capabilities));
-    
+
 } /*afs_CheckServers*/
 
 
@@ -856,19 +856,19 @@ afs_FindServer(afs_int32 aserver, afs_uint16 aport, afsUUID * uuidp,
 
 /* Rules:
    X = (aX + c) % m
-   m is a power of two 
+   m is a power of two
    a % 8 is 5
    a is 0.73m  should be 0.01m .. 0.99m
    c is more or less immaterial.  1 or a is suggested.
-  
+
 NB:  LOW ORDER BITS are not very random.  To get small random numbers,
-     treat result as <1, with implied binary point, and multiply by 
+     treat result as <1, with implied binary point, and multiply by
      desired modulus.
 NB:  Has to be unsigned, since shifts on signed quantities may preserve
      the sign bit.
 */
-/* added rxi_getaddr() to try to get as much initial randomness as 
-   possible, since at least one customer reboots ALL their clients 
+/* added rxi_getaddr() to try to get as much initial randomness as
+   possible, since at least one customer reboots ALL their clients
    simultaneously -- so osi_Time is bound to be the same on some of the
    clients.  This is probably OK, but I don't want to see too much of it.
 */
@@ -904,7 +904,7 @@ afs_random(void)
 /* returns int 0..14 using the high bits of a pseudo-random number instead of
    the low bits, as the low bits are "less random" than the high ones...
    slight roundoff error exists, an excercise for the reader.
-   need to multiply by something with lots of ones in it, so multiply by 
+   need to multiply by something with lots of ones in it, so multiply by
    8 or 16 is right out.
  */
 int
@@ -993,7 +993,7 @@ afs_SortServers(struct server *aservers[], int count)
 }                              /*afs_SortServers */
 
 /* afs_SetServerPrefs is rather system-dependent.  It pokes around in kernel
-   data structures to determine what the local IP addresses and subnet masks 
+   data structures to determine what the local IP addresses and subnet masks
    are in order to choose which server(s) are on the local subnet.
 
    As I see it, there are several cases:
@@ -1005,19 +1005,19 @@ afs_SortServers(struct server *aservers[], int count)
    4. The server is on a different logical subnet or net than this host, but
    this host is a 'metric 0 gateway' to it.  Ie, two address-spaces share
    one physical medium.
-   5. This host has a direct (point-to-point, ie, PPP or SLIP) link to the 
+   5. This host has a direct (point-to-point, ie, PPP or SLIP) link to the
    server.
    6. This host and the server are disjoint.
 
    That is a rough order of preference.  If a point-to-point link has a high
-   metric, I'm assuming that it is a very slow link, and putting it at the 
-   bottom of the list (at least until RX works better over slow links).  If 
-   its metric is 1, I'm assuming that it's relatively fast (T1) and putting 
+   metric, I'm assuming that it is a very slow link, and putting it at the
+   bottom of the list (at least until RX works better over slow links).  If
+   its metric is 1, I'm assuming that it's relatively fast (T1) and putting
    it ahead of #6.
    It's not easy to check for case #4, so I'm ignoring it for the time being.
 
    BSD "if" code keeps track of some rough network statistics (cf 'netstat -i')
-   That could be used to prefer certain servers fairly easily.  Maybe some 
+   That could be used to prefer certain servers fairly easily.  Maybe some
    other time...
 
    NOTE: this code is very system-dependent, and very dependent on the TCP/IP
@@ -1146,8 +1146,8 @@ typedef struct ill_s {
 /*
  * The IP addresses and ranks are determined by afsd (in user space) and
  * passed into the kernel at startup time through the AFSOP_ADVISEADDR
- * system call. These are stored in the data structure 
- * called 'afs_cb_interface'. 
+ * system call. These are stored in the data structure
+ * called 'afs_cb_interface'.
  *
  * struct srvAddr *sa;         remote server
  * afs_int32 addr;                one of my local addr in net order
@@ -1392,7 +1392,7 @@ afs_SetServerPrefs(struct srvAddr *sa)
             }
         }
     }
-    
+
     rw_exit(&afsifinfo_lock);
 #else
     for (ill = (struct ill_s *)*addr /*ill_g_headp */ ; ill;
@@ -1406,7 +1406,7 @@ afs_SetServerPrefs(struct srvAddr *sa)
            subnet = ipif->ipif_local_addr & ipif->ipif_net_mask;
            subnetmask = ipif->ipif_net_mask;
            /*
-            * Generate the local net using the local address and 
+            * Generate the local net using the local address and
             * whate we know about Class A, B and C networks.
             */
            if (IN_CLASSA(ipif->ipif_local_addr)) {
@@ -1896,7 +1896,7 @@ afs_GetServer(afs_uint32 * aserverp, afs_int32 nservers, afs_int32 acell,
 
                /* Add the orphaned server to the afs_servers[] hash chain.
                 * Its iphash does not matter since we never look up the server
-                * in the afs_servers table by its ip address (only by uuid - 
+                * in the afs_servers table by its ip address (only by uuid -
                 * which this has none).
                 */
                iphash = SHash(aserverp[k]);
@@ -1978,7 +1978,7 @@ afs_RemoveAllConns(void)
 
     ObtainReadLock(&afs_xserver);
     ObtainWriteLock(&afs_xconn, 1001);
-    
+
     /*printf("Destroying connections ... ");*/
     for (i = 0; i < NSERVERS; i++) {
         for (ts = afs_servers[i]; ts; ts = nts) {
@@ -2003,7 +2003,7 @@ afs_RemoveAllConns(void)
 
     ReleaseWriteLock(&afs_xconn);
     ReleaseReadLock(&afs_xserver);
-    
+
 }
 
 void
index 666356752aad8a20c4eaba43ff93f206390ae9da..81873eeb0f1556d962c8250063ed5bc77e584137 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 73e01c2d93304e1aeffe7348cfdd121c12270fcb..f59963bc78be4fe470e41bfb0e81d75eab1055c5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -817,9 +817,9 @@ struct afs_stats_CMPerf {
     afs_uint32 cbloops;
     afs_uint32 osiread_efaults;
     afs_int32 cacheBlocksDiscarded;    /*# cache blocks free but not truncated */
-    afs_int32 cacheBucket0_Discarded;  
-    afs_int32 cacheBucket1_Discarded;  
-    afs_int32 cacheBucket2_Discarded;  
+    afs_int32 cacheBucket0_Discarded;
+    afs_int32 cacheBucket1_Discarded;
+    afs_int32 cacheBucket2_Discarded;
 
     /*
      * Spares for future expansion.
@@ -1009,7 +1009,7 @@ struct afs_stats_xferData {
  * integer portion (this will be taken care of when we ensure that y'
  * is less than 1000000).
  *
- * The only other non-obvious calculation involves y^2.  The key to 
+ * The only other non-obvious calculation involves y^2.  The key to
  * understanding this part of the calculation is to expand y again
  * in a nonobvious manner.  We do this via the following expansion:
  *
index c70d0a4eb8d4b88eae4e04a23c7a7c446f40e476..42989a1271568cfd405e546a42d8b27a76bb8c0c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -63,7 +63,7 @@ copyin_afs_ioctl(caddr_t cmarg, struct afs_ioctl *dst)
     int code;
 #if defined(AFS_DARWIN100_ENV)
     struct afs_ioctl32 dst32;
-    
+
     if (!proc_is64bit(current_proc())) {
        AFS_COPYIN(cmarg, (caddr_t) & dst32, sizeof dst32, code);
        if (!code)
@@ -133,10 +133,10 @@ copyin_afs_ioctl(caddr_t cmarg, struct afs_ioctl *dst)
 
 #elif defined(AFS_PPC64_LINUX26_ENV)
 #if defined(STRUCT_TASK_STRUCT_HAS_THREAD_INFO)
-    if (current->thread_info->flags & _TIF_32BIT) 
+    if (current->thread_info->flags & _TIF_32BIT)
 #else
-    if (task_thread_info(current)->flags & _TIF_32BIT) 
-#endif      
+    if (task_thread_info(current)->flags & _TIF_32BIT)
+#endif
 #elif defined(AFS_PPC64_LINUX20_ENV)
     if (current->thread.flags & PPC_FLAG_32BIT)
 
@@ -408,17 +408,17 @@ copyin_iparam(caddr_t cmarg, struct iparam *dst)
 
 #elif defined(AFS_PPC64_LINUX26_ENV)
 #if defined(STRUCT_TASK_STRUCT_HAS_THREAD_INFO)
-    if (current->thread_info->flags & _TIF_32BIT) 
+    if (current->thread_info->flags & _TIF_32BIT)
 #else
-    if (task_thread_info(current)->flags & _TIF_32BIT) 
-#endif      
+    if (task_thread_info(current)->flags & _TIF_32BIT)
+#endif
 #elif defined(AFS_PPC64_LINUX20_ENV)
-    if (current->thread.flags & PPC_FLAG_32BIT) 
+    if (current->thread.flags & PPC_FLAG_32BIT)
 
 #elif defined(AFS_S390X_LINUX26_ENV)
     if (test_thread_flag(TIF_31BIT))
 #elif defined(AFS_S390X_LINUX20_ENV)
-    if (current->thread.flags & S390_FLAG_31BIT) 
+    if (current->thread.flags & S390_FLAG_31BIT)
 
 #else
 #error iparam32 not done for this linux platform
index 64b2009891a1c2c80f54904ab061047d104aee78..5e9dbd37cf6b2390eb8f6bd27e59059d23064fed 100644 (file)
@@ -26,7 +26,7 @@ error_table 2 ZCM
        ec      CM_TRACE_STOREALL, "StoreAll vp 0x%lx len (0x%x, 0x%x)"
        ec      CM_TRACE_INVALL, "InvalAll vp 0x%lx len 0x%x"
        ec      CM_TRACE_TRUNCALL, "TruncAll vp 0x%lx old len (0x%x, 0x%x) new len (0x%x, 0x%x)"
-       
+
        ec      CM_TRACE_GNLINK, "Gn_link vp 0x%lx name %s (returns 0x%x)"
        ec      CM_TRACE_GMKDIR, "Gn_mkdir vp 0x%lx name %s mode 0x%x (returns 0x%x)"
        ec      CM_TRACE_GMKNOD, "Gn_mknod vp 0x%lx name %s mode 0x%x (returns 0x%x)"
@@ -153,9 +153,9 @@ error_table 2 ZCM
        ec      CM_TRACE_STOREPROC2, "StoreProc got (0x%x, 0x%x) length 0x%x"
        ec      CM_TRACE_ADJUSTSIZE, "AdjustSize index %d oldSize %d newSize %d blocksUsed %d"
        ec      CM_TRACE_SETLENGTH, "%s line %d: m.Length was (0x%x, 0x%x), now (0x%x, 0x%x)"
-       ec      CM_TRACE_DCACHEWAIT, "%s line %d: waiting for 0x%x flags 0x%x" 
-       ec      CM_TRACE_VNODEREAD, "UFSRead: tdc 0x%lx, offset (0x%x, 0x%x) len (0x%x 0x%x)" 
-       ec      CM_TRACE_SLEEP, "Sleep: evp 0x%lx, count %d seq 0x%x evp->seq 0x%x" 
+       ec      CM_TRACE_DCACHEWAIT, "%s line %d: waiting for 0x%x flags 0x%x"
+       ec      CM_TRACE_VNODEREAD, "UFSRead: tdc 0x%lx, offset (0x%x, 0x%x) len (0x%x 0x%x)"
+       ec      CM_TRACE_SLEEP, "Sleep: evp 0x%lx, count %d seq 0x%x evp->seq 0x%x"
        ec      CM_TRACE_WAKE, "Wakeup: evp 0x%lx, evp->seq 0x%x"
        ec      CM_TRACE_DENTRYDELETE, "d_delete inode 0x%x d_name %s/%s"
        ec      CM_TRACE_DENTRYIPUT, "d_iput inode 0x%x d_name %s/%s"
index 9976431edc020576b1cbdb79239d1015f739f58f..f101ab8bc71b2427b05fb783273edeb44b044b6b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -598,7 +598,7 @@ afs_MarkUserExpired(afs_int32 pag)
 #if AFS_GCPAGS
 
 /*
- * Called by osi_TraverseProcTable (from afs_GCPAGs) for each 
+ * Called by osi_TraverseProcTable (from afs_GCPAGs) for each
  * process in the system.
  * If the specified process uses a PAG, clear that PAG's temporary
  * 'deleteme' flag.
@@ -649,12 +649,12 @@ afs_GCPAGs_perproc_func(afs_proc_t * pproc)
 #endif
     hash = UHash(uid);
 
-    /* if this token is PAG based, or it's UID based and 
+    /* if this token is PAG based, or it's UID based and
      * UID-based tokens exist */
     if ((pag != NOPAG) || (afs_GCPAGs_UIDBaseTokenCount)) {
        /* find the entries for this uid in all cells and clear the not
         * referenced flag.  Can't use afs_FindUser, because it just returns
-        * the specific cell asked for, or the first one found. 
+        * the specific cell asked for, or the first one found.
         */
        struct unixuser *pu;
        for (pu = afs_users[hash]; pu; pu = pu->next) {
@@ -663,7 +663,7 @@ afs_GCPAGs_perproc_func(afs_proc_t * pproc)
                    /* clear the 'deleteme' flag for this entry */
                    pu->states &= ~TMP_UPAGNotReferenced;
                    if (pag == NOPAG) {
-                       /* This is a uid based token that hadn't 
+                       /* This is a uid based token that hadn't
                         * previously been cleared, so decrement the
                         * outstanding uid based token count */
                        afs_GCPAGs_UIDBaseTokenCount--;
@@ -676,7 +676,7 @@ afs_GCPAGs_perproc_func(afs_proc_t * pproc)
 #endif
 
 /*
- * Go through the process table, find all unused PAGs 
+ * Go through the process table, find all unused PAGs
  * and cause them to be deleted during the next GC.
  *
  * returns the number of PAGs marked for deletion
@@ -714,7 +714,7 @@ afs_GCPAGs(afs_int32 * ReleasedCount)
        }
     }
 
-    /* Now, iterate through the systems process table, 
+    /* Now, iterate through the systems process table,
      * for each process, mark it's PAGs (if any) in use.
      * i.e. clear the temporary deleteme flag.
      */
@@ -750,8 +750,8 @@ afs_GCPAGs(afs_int32 * ReleasedCount)
                 * i.e. nfs translator, etc.
                 */
                if (!pu->exporter && afs_gcpags == AFS_GCPAGS_OK) {
-                   /* set the expire times to 0, causes 
-                    * afs_GCUserData to remove this entry 
+                   /* set the expire times to 0, causes
+                    * afs_GCUserData to remove this entry
                     */
                    pu->ct.EndTimestamp = 0;
                    pu->tokenTime = 0;
index 74e59218d4ec10ea0390cc6f3135b4163c319a20..2b20a94bac008ac1fb6744671f6c905b8f9957e3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -171,7 +171,7 @@ char *
 afs_strrchr(char *s, int c)
 {
     char *p = NULL;
-    
+
     do {
        if (*s == c)
            p = (char*) s;
@@ -371,11 +371,11 @@ afs_data_pointer_to_int32(const void *p)
 
 afs_int32
 afs_calc_inum(afs_int32 volume, afs_int32 vnode)
-{ 
+{
     afs_int32 ino, vno = vnode;
     char digest[16];
     struct afs_md5 ct;
-    
+
     if (afs_new_inum) {
        AFS_MD5_Init(&ct);
        AFS_MD5_Update(&ct, &volume, 4);
index d5188df01360ebc75fd60a2ffb99834ab5bf3fa9..9ef801a081ea1438fd72d0f763cbe01c76bb8deb 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 5b7bc1f35ef577871ed8ea3882e415ad19732fcb..d19a68d70150754206b98f2bff48157f68bd1463 100644 (file)
@@ -77,7 +77,7 @@ afs_int32 afs_bulkStatsLost;
 int afs_norefpanic = 0;
 
 
-/* Disk backed vcache definitions 
+/* Disk backed vcache definitions
  * Both protected by xvcache */
 static int afs_nextVcacheSlot = 0;
 static struct afs_slotlist *afs_freeSlotList = NULL;
@@ -87,7 +87,7 @@ static afs_int32 afs_QueueVCB(struct vcache *avc);
 
 /*!
  * Generate an index into the hash table for a given Fid.
- * \param fid 
+ * \param fid
  * \return The hash value.
  */
 static int
@@ -258,7 +258,7 @@ afs_FlushVCache(struct vcache *avc, int *slept)
 /*!
  *  The core of the inactive vnode op for all but IRIX.
  *
- * \param avc 
+ * \param avc
  * \param acred
  */
 void
@@ -574,13 +574,13 @@ afs_RemoveVCB(struct VenusFid *afid)
     ReleaseWriteLock(&afs_xvcb);
 }
 
-void 
+void
 afs_FlushReclaimedVcaches(void)
 {
 #if !defined(AFS_LINUX22_ENV)
     struct vcache *tvc;
     int code, fv_slept;
-    struct vcache *tmpReclaimedVCList = NULL;  
+    struct vcache *tmpReclaimedVCList = NULL;
 
     ObtainWriteLock(&afs_xvreclaim, 76);
     while (ReclaimedVCList) {
@@ -611,7 +611,7 @@ afs_FlushReclaimedVcaches(void)
           afs_osi_Wakeup(&tvc->f.states);
        }
     }
-    if (tmpReclaimedVCList) 
+    if (tmpReclaimedVCList)
        ReclaimedVCList = tmpReclaimedVCList;
 
     ReleaseWriteLock(&afs_xvreclaim);
@@ -695,7 +695,7 @@ afs_ShakeLooseVCaches(afs_int32 anumber)
 /* Alloc new vnode. */
 
 static struct vcache *
-afs_AllocVCache(void) 
+afs_AllocVCache(void)
 {
     struct vcache *tvc;
 
@@ -716,7 +716,7 @@ afs_AllocVCache(void)
      */
     if (afs_freeSlotList != NULL) {
        struct afs_slotlist *tmp;
-   
+
        tvc->diskSlot = afs_freeSlotList->slot;
        tmp = afs_freeSlotList;
        afs_freeSlotList = tmp->next;
@@ -837,7 +837,7 @@ afs_NewVCache_int(struct VenusFid *afid, struct server *serverp, int seq)
     tvc->hnext = afs_vhashT[i];
     afs_vhashT[i] = tvc;
     QAdd(&afs_vhashTV[j], &tvc->vhashq);
-    
+
     if ((VLRU.next->prev != &VLRU) || (VLRU.prev->next != &VLRU)) {
         refpanic("NewVCache VLRU inconsistent");
     }
@@ -1058,9 +1058,9 @@ afs_FlushActiveVcaches(afs_int32 doflocks)
  */
 
 /*!
- * 
+ *
  *   Make sure a cache entry is up-to-date status-wise.
- *   
+ *
  *   NOTE: everywhere that calls this can potentially be sped up
  *       by checking CStatd first, and avoiding doing the InitReq
  *       if this is up-to-date.
@@ -1351,7 +1351,7 @@ afs_WriteVCacheDiscon(struct vcache *avc,
  * Copy astat block into vcache info
  *
  * \note This code may get dataversion and length out of sync if the file has
- * been modified.  This is less than ideal.  I haven't thought about it sufficiently 
+ * been modified.  This is less than ideal.  I haven't thought about it sufficiently
  * to be certain that it is adequate.
  *
  * \note Environment: Must be called under a write lock
@@ -1447,11 +1447,11 @@ afs_ProcessFS(struct vcache *avc,
 /*!
  * Get fid from server.
  *
- * \param afid 
+ * \param afid
  * \param areq Request to be passed on.
  * \param name Name of ?? to lookup.
  * \param OutStatus Fetch status.
- * \param CallBackp 
+ * \param CallBackp
  * \param serverp
  * \param tsyncp
  *
@@ -1470,7 +1470,7 @@ afs_RemoteLookup(struct VenusFid *afid, struct vrequest *areq,
     struct AFSFetchStatus OutDirStatus;
     XSTATS_DECLS;
     if (!name)
-       name = "";              /* XXX */    
+       name = "";              /* XXX */
     do {
        tc = afs_Conn(afid, areq, SHARED_LOCK);
        if (tc) {
@@ -1523,11 +1523,11 @@ afs_RemoteLookup(struct VenusFid *afid, struct vrequest *areq,
  *     of a parent dir cache entry, given a file (to check its access
  *     control list).  It also allows renames to be handled easily by
  *     locking directories in a constant order.
- * 
+ *
  * \note NB.  NewVCache -> FlushVCache presently (4/10/95) drops the xvcache lock.
  *
  * \note Might have a vcache structure already, which must
- *  already be held by the caller 
+ *  already be held by the caller
  */
 struct vcache *
 afs_GetVCache(struct VenusFid *afid, struct vrequest *areq,
@@ -1617,12 +1617,12 @@ afs_GetVCache(struct VenusFid *afid, struct vrequest *areq,
        if (!iheldthelock)
            vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, current_proc());
        /* this is messy. we can call fsync which will try to reobtain this */
-       if (VTOAFS(vp) == tvc) 
+       if (VTOAFS(vp) == tvc)
          ReleaseWriteLock(&tvc->lock);
        if (UBCINFOEXISTS(vp)) {
          vinvalbuf(vp, V_SAVE, &afs_osi_cred, current_proc(), PINOD, 0);
        }
-       if (VTOAFS(vp) == tvc) 
+       if (VTOAFS(vp) == tvc)
          ObtainWriteLock(&tvc->lock, 954);
        if (!iheldthelock)
            VOP_UNLOCK(vp, LK_EXCLUSIVE, current_proc());
@@ -1764,9 +1764,9 @@ afs_GetVCache(struct VenusFid *afid, struct vrequest *areq,
  * Lookup a vcache by fid. Look inside the cache first, if not
  * there, lookup the file on the server, and then get it's fresh
  * cache entry.
- * 
+ *
  * \param afid
- * \param areq 
+ * \param areq
  * \param cached Is element cached? If NULL, don't answer.
  * \param adp
  * \param aname
@@ -1829,13 +1829,13 @@ afs_LookupVCache(struct VenusFid *afid, struct vrequest *areq,
     nfid = *afid;
     now = osi_Time();
     origCBs = afs_allCBs;      /* if anything changes, we don't have a cb */
-    
+
     if (AFS_IS_DISCONNECTED) {
        /* printf("Network is down in afs_LookupVcache\n"); */
         code = ENETDOWN;
-    } else 
+    } else
         code =
-           afs_RemoteLookup(&adp->f.fid, areq, aname, &nfid, &OutStatus, 
+           afs_RemoteLookup(&adp->f.fid, areq, aname, &nfid, &OutStatus,
                             &CallBack, &serverp, &tsync);
 
 #if    defined(AFS_SGI_ENV) && !defined(AFS_SGI53_ENV)
@@ -2467,9 +2467,9 @@ afs_PutVCache(struct vcache *avc)
 /*!
  * Reset a vcache entry, so local contents are ignored, and the
  * server will be reconsulted next time the vcache is used
- * 
+ *
  * \param avc Pointer to the cache entry to reset
- * \param acred 
+ * \param acred
  *
  * \note avc must be write locked on entry
  */
@@ -2496,7 +2496,7 @@ afs_ResetVCache(struct vcache *avc, afs_ucred_t *acred)
  * \param vcache Enter sleep state.
  * \param flag Determines what locks to use.
  *
- * \return 
+ * \return
  */
 static void
 findvc_sleep(struct vcache *avc, int flag)
@@ -3018,9 +3018,9 @@ afs_DisconGiveUpCallbacks(void)
     int i;
     struct vcache *tvc;
     int nq=0;
-            
+
     ObtainWriteLock(&afs_xvcache, 1002); /* XXX - should be a unique number */
-    
+
     /* Somehow, walk the set of vcaches, with each one coming out as tvc */
     for (i = 0; i < VCSIZE; i++) {
         for (tvc = afs_vhashT[i]; tvc; tvc = tvc->hnext) {
@@ -3040,7 +3040,7 @@ afs_DisconGiveUpCallbacks(void)
  *
  * Clear the Statd flag from all vcaches
  *
- * This function removes the Statd flag from all vcaches. It's used by 
+ * This function removes the Statd flag from all vcaches. It's used by
  * disconnected mode to tidy up during reconnection
  *
  */
@@ -3049,7 +3049,7 @@ afs_ClearAllStatdFlag(void)
 {
     int i;
     struct vcache *tvc;
-   
+
     ObtainWriteLock(&afs_xvcache, 715);
 
     for (i = 0; i < VCSIZE; i++) {
index 3758cc016c99ebc66c5d07f281f45297b9659965..248d48c740afc4bcb7148d70fdfd959a1e8d6ca5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -74,7 +74,7 @@ static int inVolList(struct VenusFid *fid, afs_int32 nvols, afs_int32 * vID,
 
 
 /**
- * Convert a volume name to a number; 
+ * Convert a volume name to a number;
  * @param aname Volume name.
  * @return return 0 if can't parse as a number.
  */
@@ -106,8 +106,8 @@ afs_vtoi(char *aname)
 static struct fvolume staticFVolume;
 afs_int32 afs_FVIndex = -1;
 
-/** 
- * UFS specific version of afs_GetVolSlot 
+/**
+ * UFS specific version of afs_GetVolSlot
  * @return
  */
 struct volume *
@@ -232,9 +232,9 @@ afs_UFSGetVolSlot(void)
 
 
 /**
- *   Get an available volume list slot. If the list does not exist, 
+ *   Get an available volume list slot. If the list does not exist,
  * create one containing a single element.
- * @return 
+ * @return
  */
 struct volume *
 afs_MemGetVolSlot(void)
@@ -256,7 +256,7 @@ afs_MemGetVolSlot(void)
 
 }                              /*afs_MemGetVolSlot */
 
-/** 
+/**
  *   Reset volume information for all volume structs that
  * point to a speicific server.
  * @param srvp
@@ -282,7 +282,7 @@ afs_ResetVolumes(struct server *srvp)
 }
 
 
-/** 
+/**
  *   Reset volume name to volume id mapping cache.
  * @param flags
  */
@@ -454,7 +454,7 @@ inVolList(struct VenusFid *fid, afs_int32 nvols, afs_int32 * vID,
 /* afs_PutVolume is now a macro in afs.h */
 
 
-/** 
+/**
  *    Return volume struct if we have it cached and it's up-to-date.
  *  Environment: Must be called with afs_xvolume unlocked.
  *  @param afid Volume FID.
@@ -517,12 +517,12 @@ afs_GetVolume(struct VenusFid *afid, struct vrequest *areq,
 
 
 /**
- * 
+ *
  * @param volid Volume ID. If it's 0, get it from the name.
  * @param aname Volume name.
  * @param ve Volume entry.
  * @param tcell The cell containing this volume.
- * @param agood 
+ * @param agood
  * @param type Type of volume.
  * @param areq Request.
  * @return Volume or NULL if failure.
@@ -559,7 +559,7 @@ afs_SetupVolume(afs_int32 volid, char *aname, void *ve, struct cell *tcell,
                volid = nve->volumeId[whichType];
            } else {
                volid = ove->volumeId[whichType];
-           } 
+           }
        } /* end of if (volid == 0) */
     } /* end of if (!volid) */
 
@@ -646,11 +646,11 @@ afs_SetupVolume(afs_int32 volid, char *aname, void *ve, struct cell *tcell,
  * Seek volume by it's name and attributes.
  * If volume not found, try to add one.
  * @param aname Volume name.
- * @param acell Cell 
+ * @param acell Cell
  * @param agood
  * @param areq
  * @param locktype Type of lock to be used.
- * @return 
+ * @return
  */
 struct volume *
 afs_GetVolumeByName(char *aname, afs_int32 acell, int agood,
@@ -683,7 +683,7 @@ afs_GetVolumeByName(char *aname, afs_int32 acell, int agood,
 
 /**
  *   Init a new dynroot volume.
- * @param Volume FID. 
+ * @param Volume FID.
  * @return Volume or NULL if not found.
  */
 static struct volume *
@@ -718,7 +718,7 @@ int lastnvcode;
 /**
  * @param aname Volume name.
  * @param acell Cell id.
- * @param agood 
+ * @param agood
  * @param areq Request type.
  * @param locktype Type of lock to be used.
  * @return Volume or NULL if failure.
@@ -873,9 +873,9 @@ afs_NewVolumeByName(char *aname, afs_int32 acell, int agood,
 
 
 
-/** 
+/**
  *   Call this with the volume structure locked; used for new-style vldb requests.
- * @param av Volume 
+ * @param av Volume
  * @param ve
  * @param acell
  */
@@ -916,8 +916,8 @@ InstallVolumeEntry(struct volume *av, struct vldbentry *ve, int acell)
 
     cellp = afs_GetCell(acell, 0);
 
-    /* This volume, av, is locked. Zero out the serverHosts[] array 
-     * so that if afs_GetServer() decides to replace the server 
+    /* This volume, av, is locked. Zero out the serverHosts[] array
+     * so that if afs_GetServer() decides to replace the server
      * struct, we don't deadlock trying to afs_ResetVolumeInfo()
      * this volume.
      */
@@ -994,8 +994,8 @@ InstallNVolumeEntry(struct volume *av, struct nvldbentry *ve, int acell)
 
     cellp = afs_GetCell(acell, 0);
 
-    /* This volume, av, is locked. Zero out the serverHosts[] array 
-     * so that if afs_GetServer() decides to replace the server 
+    /* This volume, av, is locked. Zero out the serverHosts[] array
+     * so that if afs_GetServer() decides to replace the server
      * struct, we don't deadlock trying to afs_ResetVolumeInfo()
      * this volume.
      */
@@ -1074,8 +1074,8 @@ InstallUVolumeEntry(struct volume *av, struct uvldbentry *ve, int acell,
 
     cellp = afs_GetCell(acell, 0);
 
-    /* This volume, av, is locked. Zero out the serverHosts[] array 
-     * so that if afs_GetServer() decides to replace the server 
+    /* This volume, av, is locked. Zero out the serverHosts[] array
+     * so that if afs_GetServer() decides to replace the server
      * struct, we don't deadlock trying to afs_ResetVolumeInfo()
      * this volume.
      */
@@ -1172,9 +1172,9 @@ InstallUVolumeEntry(struct volume *av, struct uvldbentry *ve, int acell,
 
 
 /**
- *   Reset volume info for the specified volume strecture. Mark volume 
+ *   Reset volume info for the specified volume strecture. Mark volume
  * to be rechecked next time.
- * @param tv 
+ * @param tv
  */
 void
 afs_ResetVolumeInfo(struct volume *tv)
index 8c1ea78dfcae703304a6e4625815c8afa914964c..6beca876c791dc677fd373b6c388cd727ca9ef21 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index fb85fb320c6a259ebfa5386883134e6de6dee008..1ad83aab025eff25a6dd3e3a76479b3de3b91b99 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index d756342746c5ca67a79d03575ba500a16049c6d7..6138ccf3ac1d76270e50a8254cf6f57e04fbe83e 100644 (file)
@@ -23,7 +23,7 @@ extern int afs_WriteVCacheDiscon(struct vcache *avc,
 extern int afs_ResyncDisconFiles(struct vrequest *areq,
                                        afs_ucred_t *acred);
 extern void afs_RemoveAllConns(void);
-extern void afs_GenFakeFid(struct VenusFid *afid, afs_uint32 avtype, 
+extern void afs_GenFakeFid(struct VenusFid *afid, afs_uint32 avtype,
                           int lock);
 extern void afs_GenShadowFid(struct VenusFid *afid);
 extern void afs_GenDisconStatus(struct vcache *adp,
@@ -52,7 +52,7 @@ extern void afs_DisconDiscardAll(afs_ucred_t *);
 /* Call with avc lock held */
 static_inline void afs_DisconAddDirty(struct vcache *avc, int operation, int lock) {
     if (!avc->f.ddirty_flags) {
-       if (lock) 
+       if (lock)
            ObtainWriteLock(&afs_xvcache, 702);
        ObtainWriteLock(&afs_disconDirtyLock, 703);
        QAdd(&afs_disconDirty, &avc->dirtyq);
@@ -62,7 +62,7 @@ static_inline void afs_DisconAddDirty(struct vcache *avc, int operation, int loc
            ReleaseWriteLock(&afs_xvcache);
     }
     avc->f.ddirty_flags |= operation;
-} 
+}
 
 /* Call with avc lock held */
 static_inline void afs_DisconRemoveDirty(struct vcache *avc) {
index 0eedf3036888ef0e0203ed32476343b3c092bb6b..9987b6896287c9b271b0a71515878f0d93fed72b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 376bbf44650461d275aa01ca3c3749ee59feacad..74cd3006c45aa342672bc55a3d48c81c1b97e2bc 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -144,7 +144,7 @@ struct afs_lock {
     unsigned short spare;      /* not used now */
     osi_timeval_t time_waiting;        /* for statistics gathering */
 #if defined(INSTRUMENT_LOCKS)
-    /* the following are useful for debugging 
+    /* the following are useful for debugging
      ** the field 'src_indicator' is updated only by ObtainLock() and
      ** only for writes/shared  locks. Hence, it indictes where in the
      ** source code the shared/write lock was set.
index 7568a3ac50351bc6982eeea867a6e886da902ee3..47863b4f60f9ad0f7546089f4b62c7474d104e16 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index b4db3b2ff5a9cf99494c03b46d279a1ad6b2c44b..a126fb644a55c4c857d466e3c4d19d8241812a8f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 5a53210f0972212fdc4a07842948f6c901fc8c4a..df6c7a2ca150bda1d245f8ed4bcf284f26833146 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ee804c4a94806475128334e79d26fe7743e10f39..1e7efda441d7b31dfd28286042d58bcac999f15f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -30,7 +30,7 @@
 
 #define VSALVAGE       101     /* Volume needs salvage */
 #define VNOVNODE       102     /* Bad vnode number quoted */
-#define VNOVOL         103     /* Volume not attached, doesn't exist, 
+#define VNOVOL         103     /* Volume not attached, doesn't exist,
                                 * not created or not online */
 #define VVOLEXISTS     104     /* Volume already exists */
 #define VNOSERVICE     105     /* Volume is not in service (i.e. it's
@@ -48,6 +48,6 @@
 #define VMOVED         111     /* Volume has moved to another server; do a VGetVolumeInfo
                                 * to THIS server to find out where */
 
-#define VRESTARTING    -100    /* server is restarting, otherwise similar to 
+#define VRESTARTING    -100    /* server is restarting, otherwise similar to
                                 * VBUSY above.  This is negative so that old
                                 * cache managers treat it as "server is down" */
index aecec1b31105cf269f31c404037f029745340d55..4e8b6e5d55a7f2cf1f49b3bcea083517ddc885e2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
   *    -rxmaxmtu   Set the max mtu to help with VPN issues.
   *    -verbose     Be chatty.
   *    -disable-dynamic-vcaches     Disable the use of -stat value as the starting size of
-  *                          the size of the vcache/stat cache pool, 
+  *                          the size of the vcache/stat cache pool,
   *                          but increase that pool dynamically as needed.
   *    -debug     Print out additional debugging info.
   *    -kerndev    [OBSOLETE] The kernel device for AFS.
   *    -dontfork   [OBSOLETE] Don't fork off as a new process.
   *    -daemons   The number of background daemons to start (Default: 2).
   *    -rmtsys    Also fires up an afs remote sys call (e.g. pioctl, setpag)
-  *                support daemon 
+  *                support daemon
   *     -chunksize [n]   2^n is the chunksize to be used.  0 is default.
   *     -dcache    The number of data cache entries.
   *     -biods     Number of bkg I/O daemons (AIX3.1 only)
@@ -347,38 +347,38 @@ static void fork_syscall();
 
 #if defined(AFS_DARWIN_ENV) && !defined(AFS_ARM_DARWIN_ENV)
 static void
-afsd_sleep_callback(void * refCon, io_service_t service, 
+afsd_sleep_callback(void * refCon, io_service_t service,
                    natural_t messageType, void * messageArgument )
 {
     switch (messageType) {
     case kIOMessageCanSystemSleep:
-       /* Idle sleep is about to kick in; can 
-          prevent sleep by calling IOCancelPowerChange, otherwise 
+       /* Idle sleep is about to kick in; can
+          prevent sleep by calling IOCancelPowerChange, otherwise
           if we don't ack in 30s the system sleeps anyway */
-       
+
        /* allow it */
        IOAllowPowerChange(root_port, (long)messageArgument);
        break;
-       
+
     case kIOMessageSystemWillSleep:
        /* The system WILL go to sleep. Ack or suffer delay */
-       
+
        IOAllowPowerChange(root_port, (long)messageArgument);
        break;
-       
+
     case kIOMessageSystemWillRestart:
        /* The system WILL restart. Ack or suffer delay */
-       
+
        IOAllowPowerChange(root_port, (long)messageArgument);
        break;
-       
+
     case kIOMessageSystemWillPowerOn:
     case kIOMessageSystemHasPoweredOn:
        /* coming back from sleep */
-       
+
        IOAllowPowerChange(root_port, (long)messageArgument);
        break;
-       
+
     default:
        IOAllowPowerChange(root_port, (long)messageArgument);
        break;
@@ -421,7 +421,7 @@ afsd_ipaddr_callback (SCDynamicStoreRef store, CFArrayRef changed_keys, void *in
       CFRelease (timer);
 }
 
-static void 
+static void
 afsd_event_cleanup(int signo) {
 
     CFRunLoopRemoveSource(CFRunLoopGetCurrent(), source, kCFRunLoopDefaultMode);
@@ -443,58 +443,58 @@ afsd_install_events(void)
 
 #ifndef AFS_ARM_DARWIN_ENV
     root_port = IORegisterForSystemPower(0,&notify,afsd_sleep_callback,&iterator);
-    
+
     if (root_port) {
        CFRunLoopAddSource(CFRunLoopGetCurrent(),
                           IONotificationPortGetRunLoopSource(notify),
                           kCFRunLoopDefaultMode);
     }
-    
-    
+
+
     store = SCDynamicStoreCreate (NULL,
                                  CFSTR ("AddIPAddressListChangeCallbackSCF"),
                                  afsd_ipaddr_callback, &ctx);
-    
+
     if (store) {
        const void *keys[1];
-       
+
        /* Request IPV4 address change notification */
        keys[0] = (SCDynamicStoreKeyCreateNetworkServiceEntity
                   (NULL, kSCDynamicStoreDomainState,
                    kSCCompAnyRegex, kSCEntNetIPv4));
-       
+
 #if 0
        /* This should tell us when the hostname(s) change. do we care? */
        keys[N] = SCDynamicStoreKeyCreateHostNames (NULL);
 #endif
-       
+
        if (keys[0] != NULL) {
            CFArrayRef pattern_array;
-           
+
            pattern_array = CFArrayCreate (NULL, keys, 1,
                                           &kCFTypeArrayCallBacks);
-           
+
            if (pattern_array != NULL)
            {
                SCDynamicStoreSetNotificationKeys (store, NULL, pattern_array);
                source = SCDynamicStoreCreateRunLoopSource (NULL, store, 0);
-               
+
                CFRelease (pattern_array);
            }
-           
+
            if (keys[0] != NULL)
                CFRelease (keys[0]);
        }
-       
-       CFRelease (store); 
+
+       CFRelease (store);
     }
 #endif
-    
+
     if (source != NULL) {
        CFRunLoopAddSource (CFRunLoopGetCurrent(),
                            source, kCFRunLoopDefaultMode);
     }
-    
+
     signal(SIGTERM, afsd_event_cleanup);
 
     CFRunLoopRun();
@@ -597,8 +597,8 @@ ParseCacheInfoFile(void)
 }
 
 /*
- * All failures to open the partition are ignored. Also if the cache dir 
- * isn't a mounted partition it's also ignored since we can't guarantee 
+ * All failures to open the partition are ignored. Also if the cache dir
+ * isn't a mounted partition it's also ignored since we can't guarantee
  * what will be stored afterwards. Too many if's. This is now purely
  * advisory. ODS with over 2G partition also gives warning message.
  *
@@ -809,7 +809,7 @@ SetNoBackupAttr(char *fullpn)
 }
 
 static int
-MoveCacheFile(char *basename, int fromDir, int toDir, int cacheFile, 
+MoveCacheFile(char *basename, int fromDir, int toDir, int cacheFile,
              int maxDir)
 {
     static char rn[] = "MoveCacheFile";
@@ -941,7 +941,7 @@ UnlinkUnwantedFile(char *rn, char *fullpn_FileToDelete, char *fileToDelete)
 
 
 static int
-doSweepAFSCache(int *vFilesFound, 
+doSweepAFSCache(int *vFilesFound,
                char *directory,        /* /path/to/cache/directory */
                int dirNum,             /* current directory number */
                int maxDir)             /* maximum directory number */
@@ -1790,7 +1790,7 @@ mainproc(struct cmd_syndesc *as, void *arock)
     if (as->parms[20].items) {
        /* -shutdown */
        afs_shutdown = 1;
-       /* 
+       /*
         * Cold shutdown is the default
         */
        printf("afsd: Shutting down all afs processes and afs state\n");
@@ -2012,7 +2012,7 @@ afsd_run(void)
        /* Disk cache:
         * Compute the number of cache files based on cache size,
         * but only if -files isn't given on the command line.
-        * Don't let # files be so small as to prevent full utilization 
+        * Don't let # files be so small as to prevent full utilization
         * of the cache unless user has explicitly asked for it.
         */
        if (chunkSize == 0) {
@@ -2030,7 +2030,7 @@ afsd_run(void)
 
            cacheFiles = max(cacheFiles, 1000);
 
-           /* Always allow more files than chunks.  Presume average V-file 
+           /* Always allow more files than chunks.  Presume average V-file
             * is ~67% of a chunk...  (another guess, perhaps Honeyman will
             * have a grad student write a paper).  i is KILOBYTES.
             */
@@ -2068,7 +2068,7 @@ afsd_run(void)
        /* This actually needs to
           1) use powers of 2
           2) not second-guess when a chunksize comes from the command line
-          3) be less, um, small. 2^2?? 
+          3) be less, um, small. 2^2??
        */
        /* Sanity check chunkSize */
        i = max(cacheBlocks / 1000, cacheBlocks / cacheFiles);
@@ -2285,7 +2285,7 @@ afsd_run(void)
        printf("%s: Using memory cache, not swept\n", rn);
 
     /*
-     * Pass the kernel the name of the workstation cache file holding the 
+     * Pass the kernel the name of the workstation cache file holding the
      * dcache entries.
      */
     if (afsd_debug)
@@ -2454,7 +2454,7 @@ afsd_run(void)
     afsd_call_syscall(AFSOP_GO, cacheSetTime);
 
     /*
-     * At this point, we have finished passing the kernel all the info 
+     * At this point, we have finished passing the kernel all the info
      * it needs to set up the AFS.  Mount the AFS root.
      */
     printf("%s: All AFS daemons started.\n", rn);
@@ -2558,7 +2558,7 @@ afsd_init(void)
                "set rx_extraPackets to this value");
     cmd_AddParm(ts, "-splitcache", CMD_SINGLE, CMD_OPTIONAL,
                "Percentage RW versus RO in cache (specify as 60/40)");
-    cmd_AddParm(ts, "-disable-dynamic-vcaches", CMD_FLAG, CMD_OPTIONAL, 
+    cmd_AddParm(ts, "-disable-dynamic-vcaches", CMD_FLAG, CMD_OPTIONAL,
                "disable stat/vcache cache growing as needed");
     cmd_AddParm(ts, "-rxmaxmtu", CMD_SINGLE, CMD_OPTIONAL, "set rx max MTU to use");
     cmd_AddParm(ts, "-dynroot-sparse", CMD_FLAG, CMD_OPTIONAL,
index b1df7ebb25d72e304f63033ff54fddb917503fee..13a8ae67387b9f11022be3c5f441526f9e171ae4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -25,7 +25,7 @@
 
 #include "AFS_component_version_number.c"
 
-int 
+int
 main(int argc, char **argv)
 {
     afs_int32 code;
index 55f0a393a9be7570ba3201e1782e068e5cd35b80..c9b8ec66bd88ad4ebcca89d8a87f5b8ee92ea93d 100644 (file)
@@ -1,25 +1,25 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  */
 
 /*
-   Include file for the afsmonitor 
+   Include file for the afsmonitor
 
    This file defines the following arrays:
    fs_varNames - file server variable names
    fs_labels   - file server column label names (fs_varNames split into
                  atmost 3 parts)
-   fs_categories - names of sections & groups into which file server 
+   fs_categories - names of sections & groups into which file server
                   variables are categorized.
    cm_varNames - cache manager variable names
    cm_labels   - cache manager column label names (cm_varNames split into
                  atmost 3 parts)
-   cm_categories - names of sections & groups into which cache manager 
+   cm_categories - names of sections & groups into which cache manager
                   variables are categorized.
 
 -------------------------------------------------------------------------*/
index 677a33892c969ed05c174446fd89af2e0ff5ac26..e2322d227a3eef5b325af2779bf15d85d12ccb66 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -104,7 +104,7 @@ static char *CbCounterStrings[] = {
 };
 
 /*________________________________________________________________________
-                               FS STATS ROUTINES 
+                               FS STATS ROUTINES
  *_______________________________________________________________________*/
 
 /*------------------------------------------------------------------------
@@ -471,7 +471,7 @@ Print_fs_CallBackStats(struct xstat_fs_ProbeResults *a_fs_Results)
  * afsmon_fsOutput()
  *
  * Description:
- *     Prints the contents of xstat_fs_Results to an output file. The 
+ *     Prints the contents of xstat_fs_Results to an output file. The
  *     output is either in a compact (longs only) format or a detailed
  *     format giving the names of each of the datums. Output is appended.
  *
@@ -846,7 +846,7 @@ Print_cm_OpTiming(int a_opIdx, char *a_opNames[],
  *------------------------------------------------------------------------*/
 
 void
-Print_cm_XferTiming(int a_opIdx, char *a_opNames[], 
+Print_cm_XferTiming(int a_opIdx, char *a_opNames[],
                    struct afs_stats_xferData *a_xferP)
 {                              /*Print_cm_XferTiming */
 
@@ -1044,7 +1044,7 @@ Print_cm_FullPerfInfo(void)
  * afsmon_cmOutput()
  *
  * Description:
- *     Prints the contents of xstat_cm_Results to an output file. The 
+ *     Prints the contents of xstat_cm_Results to an output file. The
  *     output is either in a compact (longs only) format or a detailed
  *     format giving the names of each of the datums. Output is appended.
  *
index f6ce239a459c58cd260439961098fbb8d5f3151f..d608140b5ceb56b9a7901b515f6df9d636101c5c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -12,7 +12,7 @@
  * switch) and print it in a readable form. It does not make any statistical
  * analysis of the data.
  *
- * Most of the code here is cloned from afsmon-output.c. It is made as a 
+ * Most of the code here is cloned from afsmon-output.c. It is made as a
  * separate file so that it can be independently given to customers.
  *
  *-------------------------------------------------------------------------*/
@@ -83,7 +83,7 @@ static char *xferOpNames[] = {
 };
 
 /*________________________________________________________________________
-                               FS STATS ROUTINES 
+                               FS STATS ROUTINES
  *_______________________________________________________________________*/
 
 /*------------------------------------------------------------------------
index 946f9a90feebe6b5ebaedb5091efa8f421d6d1d7..f3e2188bd0b293e79cc735c5dd253f74d8cf2719 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -419,7 +419,7 @@ initLightObject(char *a_name, int a_x, int a_y, int a_width,
  *------------------------------------------------------------------------*/
 
 int
-justify_light(char *a_srcbuff, char *a_dstbuff, int a_dstwidth, 
+justify_light(char *a_srcbuff, char *a_dstbuff, int a_dstwidth,
              int a_justification, int a_rightTrunc)
 {                              /*justify_light */
 
@@ -447,7 +447,7 @@ justify_light(char *a_srcbuff, char *a_dstbuff, int a_dstwidth,
      * we automatically shorten up.
      */
     if (a_dstwidth > GATOR_LABEL_CHARS) {
-       /* 
+       /*
         * if (afsmon_debug) {
         * fprintf(debugFD,
         * "[%s] Dest width (%d) > gtx buflen (%d), shrinking dest width\n",
@@ -537,7 +537,7 @@ justify_light(char *a_srcbuff, char *a_dstbuff, int a_dstwidth,
  *
  * Description:
  *     Call the exit routine. This function is mapped
- *     to the keys Q and \ 3 in all the frames and is called by the 
+ *     to the keys Q and \ 3 in all the frames and is called by the
  *     gtx input server.
  *----------------------------------------------------------------------*/
 
@@ -575,8 +575,8 @@ int
 ovw_refresh(int a_pageNum,     /* page to refresh overview display */
            int a_updateType)   /* OVW_UPDATE_FS = update fs column only,
                                 * OVW_UPDATE_CM = update cm column only,
-                                * OVW_UPDATE_BOTH = update fs & cm columns. Note that 
-                                * we do not want to update a column until the 
+                                * OVW_UPDATE_BOTH = update fs & cm columns. Note that
+                                * we do not want to update a column until the
                                 * corresponding probe cycle has completed */
 {                              /* ovw_refresh */
 
@@ -600,7 +600,7 @@ ovw_refresh(int a_pageNum,  /* page to refresh overview display */
        fflush(debugFD);
     }
 
-    /* if the data is not yet available  ie., not one probe cycle has 
+    /* if the data is not yet available  ie., not one probe cycle has
      * completed, do nothing */
 
     if ((a_updateType & OVW_UPDATE_FS) && !fs_Data_Available)
@@ -1357,9 +1357,9 @@ resolve_CmdLine(char *a_buffer,       /* buffer to copy command line */
  *     The data in the file server & cache manager frames are displayed
  *     in two objects, one below the other. If the data is too long to
  *     fit in the first object it will overflow into the next. This is
- *     to conserve real estate on the screen. This function copies the 
+ *     to conserve real estate on the screen. This function copies the
  *     contents of the source buffer adjusted to the two objects if the
- *     probe had succeded. Otherwise it enters "--" in the first object 
+ *     probe had succeded. Otherwise it enters "--" in the first object
  *     blanks out the second. If the object needs to be highlightned
  *     (due to a threshold crossing) it is done.
  *
@@ -1524,7 +1524,7 @@ display_Server_label(char *a_srcBuf,
        part[i][j] = '\0';
     }
 
-    /* 
+    /*
      * if (afsmon_debug) {
      * fprintf(debugFD,"[ %s ] LABELS %s -> %s %s %s\n",
      * rn, a_srcBuf, part[0], part[1], part[2]);
@@ -1562,12 +1562,12 @@ display_Server_label(char *a_srcBuf,
  *
  * Description:
  *     Refresh the File Servers screen with the given page number starting
- *     at the given left-column number. The appropriate contents of 
- *     prev_fsData are displayed. 
+ *     at the given left-column number. The appropriate contents of
+ *     prev_fsData are displayed.
  *     First the status labels at the four corners of the screen are
  *     updated. Next the column labels are updated and then each row
  *     of statistics.
- *     
+ *
  * Returns:
  *     Success: 0
  *     Failure: Exits afsmoitor on a severe error.
@@ -1596,7 +1596,7 @@ fs_refresh(int a_pageNum, /* page to display */
     int code;
     int fsIdx;
     int labelIdx;
-    int dataIndex;             /* index to the data[] field of 
+    int dataIndex;             /* index to the data[] field of
                                 * struct fs_Display_Data */
 
     if (afsmon_debug) {
@@ -1606,7 +1606,7 @@ fs_refresh(int a_pageNum, /* page to display */
     }
 
 
-    /* if the data is not yet available, ie., not one probe cycle has 
+    /* if the data is not yet available, ie., not one probe cycle has
      * completed, do nothing */
 
     if (!fs_Data_Available)
@@ -1657,7 +1657,7 @@ fs_refresh(int a_pageNum, /* page to display */
     /* command line */
 
     /* figure out what we need to show in the prompt & set the page type */
-    /* the fs_pageType variable is in turn used by the keyboard handler 
+    /* the fs_pageType variable is in turn used by the keyboard handler
      * routines to call fs_refresh() with the correct parameters */
 
     fs_pageType = resolve_CmdLine(cmdLine, 1 /* fs frame */ , a_pageNum,
@@ -1789,7 +1789,7 @@ fs_refresh(int a_pageNum, /* page to display */
             * overflow flag is set and highlight if so. if the probe had failed
             * enter "--" is all columns */
 
-           /* each host has two rows of slots for datums. get the pointers to 
+           /* each host has two rows of slots for datums. get the pointers to
             * both the arrays */
 
            firstSlot_o_Ptr = tmp_fs_lines_P->data_o[0];
@@ -1903,7 +1903,7 @@ Switch_fs_2_ovw(void *d1, void *d2)
  * Switch_fs_2_cm()
  *
  * Description:
- *     Switch from the File Server screen to the Cache Managers screen. 
+ *     Switch from the File Server screen to the Cache Managers screen.
  *----------------------------------------------------------------------*/
 int
 Switch_fs_2_cm(void *d1, void *d2)
@@ -1919,7 +1919,7 @@ Switch_fs_2_cm(void *d1, void *d2)
  * Switch_fs_next()
  *
  * Description:
- *     Switch to next page of file server screen 
+ *     Switch to next page of file server screen
  *----------------------------------------------------------------------*/
 int
 Switch_fs_next(void *d1, void *d2)
@@ -1936,7 +1936,7 @@ Switch_fs_next(void *d1, void *d2)
  * Switch_fs_last()
  *
  * Description:
- *     Switch to last page of file server screen 
+ *     Switch to last page of file server screen
  *----------------------------------------------------------------------*/
 int
 Switch_fs_last(void *d1, void *d2)
@@ -1953,7 +1953,7 @@ Switch_fs_last(void *d1, void *d2)
  * Switch_fs_prev()
  *
  * Description:
- *     Switch to previous page of file server screen 
+ *     Switch to previous page of file server screen
  *----------------------------------------------------------------------*/
 int
 Switch_fs_prev(void *d1, void *d2)
@@ -1969,7 +1969,7 @@ Switch_fs_prev(void *d1, void *d2)
  * Switch_fs_first()
  *
  * Description:
- *     Switch to first page of file server screen 
+ *     Switch to first page of file server screen
  *----------------------------------------------------------------------*/
 int
 Switch_fs_first(void *d1, void *d2)
@@ -1985,7 +1985,7 @@ Switch_fs_first(void *d1, void *d2)
  * Switch_fs_left()
  *
  * Description:
- *     Scroll left on the file server screen 
+ *     Scroll left on the file server screen
  *----------------------------------------------------------------------*/
 int
 Switch_fs_left(void *d1, void *d2)
@@ -2002,7 +2002,7 @@ Switch_fs_left(void *d1, void *d2)
  * Switch_fs_leftmost()
  *
  * Description:
- *     Scroll to first column on  the file server screen 
+ *     Scroll to first column on  the file server screen
  *----------------------------------------------------------------------*/
 int
 Switch_fs_leftmost(void *d1, void *d2)
@@ -2018,7 +2018,7 @@ Switch_fs_leftmost(void *d1, void *d2)
  * Switch_fs_right()
  *
  * Description:
- *     Scroll right on the file server screen 
+ *     Scroll right on the file server screen
  *----------------------------------------------------------------------*/
 int
 Switch_fs_right(void *d1, void *d2)
@@ -2034,7 +2034,7 @@ Switch_fs_right(void *d1, void *d2)
  * Switch_fs_rightmost()
  *
  * Description:
- *     Scroll to last column on the file server screen 
+ *     Scroll to last column on the file server screen
  *----------------------------------------------------------------------*/
 int
 Switch_fs_rightmost(void *d1, void *d2)
@@ -2199,7 +2199,7 @@ create_FSframe_objects(void)
        afsmon_Exit(365);
     }
 
-    /* for each line of server statistics allocate memory to store two arrays 
+    /* for each line of server statistics allocate memory to store two arrays
      * of data onodes */
 
     fs_lines_Ptr = fs_lines;
@@ -2322,7 +2322,7 @@ create_FSframe_objects(void)
     keymap_BindToString(fsFrame->keymap, "Q", afsmonExit_gtx, NULL, NULL);
     keymap_BindToString(fsFrame->keymap, "\ 3", afsmonExit_gtx, NULL, NULL);
 
-    /* o = overview, c = cm, n = next, p = prev, l = left, r = right 
+    /* o = overview, c = cm, n = next, p = prev, l = left, r = right
      * N = last page, P = first page, L = leftmost col, R = rightmost col */
 
     keymap_BindToString(fsFrame->keymap, "o", Switch_fs_2_ovw, NULL, NULL);
@@ -2346,12 +2346,12 @@ create_FSframe_objects(void)
  *
  * Description:
  *     Refresh the Cache Managers screen with the given page number starting
- *     at the given left-column number. The appropriate contents of 
- *     prev_cmData are displayed. 
+ *     at the given left-column number. The appropriate contents of
+ *     prev_cmData are displayed.
  *     First the status labels at the four corners of the screen are
  *     updated. Next the column labels are updated and then each row
  *     of statistics.
- *     
+ *
  * Returns:
  *     Success: 0
  *     Failure: Exits afsmoitor on a severe error.
@@ -2379,7 +2379,7 @@ cm_refresh(int a_pageNum,         /* page to display */
     int code;
     int cmIdx;
     int labelIdx;
-    int dataIndex;             /* index to the data[] field of 
+    int dataIndex;             /* index to the data[] field of
                                 * struct cm_Display_Data */
 
     if (afsmon_debug) {
@@ -2389,7 +2389,7 @@ cm_refresh(int a_pageNum,         /* page to display */
     }
 
 
-    /* if the data is not yet available, ie., not one probe cycle has 
+    /* if the data is not yet available, ie., not one probe cycle has
      * completed, do nothing */
 
     if (!cm_Data_Available)
@@ -2440,7 +2440,7 @@ cm_refresh(int a_pageNum,         /* page to display */
     /* command line */
 
     /* figure out what we need to show in the prompt & set the page type */
-    /* the cm_pageType variable is in turn used by the keyboard handler 
+    /* the cm_pageType variable is in turn used by the keyboard handler
      * routines to call cm_refresh() with the correct parameters */
 
     cm_pageType = resolve_CmdLine(cmdLine, 2 /* cm frame */ , a_pageNum,
@@ -2572,7 +2572,7 @@ cm_refresh(int a_pageNum,         /* page to display */
             * overflow flag is set and highlight if so. if the probe had failed
             * enter "--" is all columns */
 
-           /* each host has two rows of slots for datums. get the pointers to 
+           /* each host has two rows of slots for datums. get the pointers to
             * both the arrays */
 
            firstSlot_o_Ptr = tmp_cm_lines_P->data_o[0];
@@ -2685,7 +2685,7 @@ Switch_cm_2_ovw(void *d1, void *d2)
  * Switch_cm_2_fs()
  *
  * Description:
- *     Switch from the Cache Manager screen to the File Servers screen 
+ *     Switch from the Cache Manager screen to the File Servers screen
  *----------------------------------------------------------------------*/
 int
 Switch_cm_2_fs(void *d1, void *d2)
@@ -2701,7 +2701,7 @@ Switch_cm_2_fs(void *d1, void *d2)
  * Switch_cm_next()
  *
  * Description:
- *     Switch to next page of cache managers screen 
+ *     Switch to next page of cache managers screen
  *----------------------------------------------------------------------*/
 int
 Switch_cm_next(void *d1, void *d2)
@@ -2718,7 +2718,7 @@ Switch_cm_next(void *d1, void *d2)
  * Switch_cm_last()
  *
  * Description:
- *     Switch to last page of file server screen 
+ *     Switch to last page of file server screen
  *----------------------------------------------------------------------*/
 int
 Switch_cm_last(void *d1, void *d2)
@@ -2735,7 +2735,7 @@ Switch_cm_last(void *d1, void *d2)
  * Switch_cm_prev()
  *
  * Description:
- *     Switch to previous page of cache managers screen 
+ *     Switch to previous page of cache managers screen
  *----------------------------------------------------------------------*/
 int
 Switch_cm_prev(void *d1, void *d2)
@@ -2751,7 +2751,7 @@ Switch_cm_prev(void *d1, void *d2)
  * Switch_cm_first()
  *
  * Description:
- *     Switch to first page of cache managers screen 
+ *     Switch to first page of cache managers screen
  *----------------------------------------------------------------------*/
 int
 Switch_cm_first(void *d1, void *d2)
@@ -2767,7 +2767,7 @@ Switch_cm_first(void *d1, void *d2)
  * Switch_cm_left()
  *
  * Description:
- *     Scroll left on the cache managers screen 
+ *     Scroll left on the cache managers screen
  *----------------------------------------------------------------------*/
 int
 Switch_cm_left(void *d1, void *d2)
@@ -2784,7 +2784,7 @@ Switch_cm_left(void *d1, void *d2)
  * Switch_cm_leftmost()
  *
  * Description:
- *     Scroll to first column on  the cache managers screen 
+ *     Scroll to first column on  the cache managers screen
  *----------------------------------------------------------------------*/
 int
 Switch_cm_leftmost(void *d1, void *d2)
@@ -2800,7 +2800,7 @@ Switch_cm_leftmost(void *d1, void *d2)
  * Switch_cm_right()
  *
  * Description:
- *     Scroll right on the cache managers screen 
+ *     Scroll right on the cache managers screen
  *----------------------------------------------------------------------*/
 int
 Switch_cm_right(void *d1, void *d2)
@@ -2816,7 +2816,7 @@ Switch_cm_right(void *d1, void *d2)
  * Switch_cm_rightmost()
  *
  * Description:
- *     Scroll to last column on the cache managers screen 
+ *     Scroll to last column on the cache managers screen
  *----------------------------------------------------------------------*/
 int
 Switch_cm_rightmost(void *d1, void *d2)
@@ -2982,7 +2982,7 @@ create_CMframe_objects(void)
        afsmon_Exit(445);
     }
 
-    /* for each line of server statistics allocate memory to store two arrays 
+    /* for each line of server statistics allocate memory to store two arrays
      * of data onodes */
 
     cm_lines_Ptr = cm_lines;
@@ -3104,7 +3104,7 @@ create_CMframe_objects(void)
     keymap_BindToString(cmFrame->keymap, "Q", afsmonExit_gtx, NULL, NULL);
     keymap_BindToString(cmFrame->keymap, "\ 3", afsmonExit_gtx, NULL, NULL);
 
-    /* o = overview, c = cm, n = next, p = prev, l = left, r = right 
+    /* o = overview, c = cm, n = next, p = prev, l = left, r = right
      * N = last page, P = first page, L = leftmost col, R = rightmost col */
 
     keymap_BindToString(cmFrame->keymap, "o", Switch_cm_2_ovw, NULL, NULL);
index 184a0f9ba35d0351b9951972d04dc32ca06d7dae..45df72e71763d1c1ec836267d139a0aa4a74402a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -156,7 +156,7 @@ struct afsmon_fs_Results_CBuffer *afsmon_fs_ResultsCB;
 
 int afsmon_fs_curr_CBindex = 0;        /* current fs CB slot */
 
-/* Probe number variables. The current probe number is incremented 
+/* Probe number variables. The current probe number is incremented
 when the first probe from a new probe cycle is received. The prev probe
 number is incremented when the last probe of the current cycle is
 received. This difference is because of the purpose for which these
@@ -187,7 +187,7 @@ struct afsmon_cm_Results_CBuffer *afsmon_cm_ResultsCB;
 int afsmon_cm_curr_CBindex = 0;        /* current cm CB slot */
 
 
-/* Probe number variables. The current probe number is incremented 
+/* Probe number variables. The current probe number is incremented
 when the first probe from a new probe cycle is received. The prev probe
 number is incremented when the last probe of the current cycle is
 received. This difference is because of the purpose for which these
@@ -234,7 +234,7 @@ int numHosts_onfs_alerts;
 int num_cm_alerts;
 int numHosts_oncm_alerts;
 
-/* flag to indicate that atleast one probe cycle has completed and 
+/* flag to indicate that atleast one probe cycle has completed and
 data is available for updating the display */
 extern int fs_Data_Available;
 extern int cm_Data_Available;
@@ -246,7 +246,7 @@ are to be displayed on the File Servers screen. For example, suppose the
 user wishes to display only the vcache statistics then the following array
 will contain indices 2 to 14 corresponding to the position of the
 vcache data items in the fs_varNames[] array. If the config file contains
-no "show fs .." directives, it will contain the indices of all the 
+no "show fs .." directives, it will contain the indices of all the
 items in the fs_varNames[] array */
 
 short fs_Display_map[NUM_FS_STAT_ENTRIES];
@@ -265,7 +265,7 @@ extern int fs_curr_LCol;    /* current leftmost column on display on FS frame */
 extern int cm_currPage;                /* current page number in the Cache Managers frame */
 extern int cm_curr_LCol;       /* current leftmost column on display on CM frame */
 
-/* File server and Cache manager data is classified into sections & 
+/* File server and Cache manager data is classified into sections &
 groups to help the user choose what he wants displayed */
 extern char *fs_categories[];  /* file server data category names */
 extern char *cm_categories[];  /* cache manager data category names */
@@ -279,12 +279,12 @@ static int fs_CallBackStats_ltoa(struct fs_Display_Data *a_fsData,
 #ifdef HAVE_STRCASESTR
 extern char * strcasestr(const char *, const char *);
 #else
-/*     
-        strcasestr(): Return first occurence of pattern s2 in s1, case 
-       insensitive. 
+/*
+        strcasestr(): Return first occurence of pattern s2 in s1, case
+       insensitive.
 
        This routine is required since I made pattern matching of the
-       config file to be case insensitive. 
+       config file to be case insensitive.
 */
 
 char *
@@ -338,17 +338,17 @@ GetHostByName(char *name)
  *
  * Description
  *     Exit gracefully from the afsmonitor. Frees memory where appropriate,
- *     cleans up after gtx and closes all open file descriptors. If a user 
+ *     cleans up after gtx and closes all open file descriptors. If a user
  *     provided threshold handler is to be exec'ed then gtx cleanup is
- *     not performed and an exec() is made instead of an exit(). 
+ *     not performed and an exec() is made instead of an exit().
  *
  * Returns
  *     Nothing.
  *
- * Comments 
- *     This function is called to execute a user handler only 
+ * Comments
+ *     This function is called to execute a user handler only
  *     by a child process.
- * 
+ *
  *----------------------------------------------------------------------*/
 
 int
@@ -810,7 +810,7 @@ parse_hostEntry(char *a_line)
  *
  * Description
  *     Parse the threshold entry line in the config file. This function is
- *     called in the the first pass of the config file. It checks the syntax 
+ *     called in the the first pass of the config file. It checks the syntax
  *     of the config lines and verifies their positional validity - eg.,
  *     a cm threshold cannot appear after a fs hostname entry, etc.
  *     It also counts the thresholds applicable to each host.
@@ -913,7 +913,7 @@ parse_threshEntry(char *a_line)
  *     for cache managers. For global thresholds the info is recorded for
  *     all the hosts. This function is called in the second pass of the
  *     config file. In the first pass a count of the number of global
- *     thresholds is determined and this information is used in this 
+ *     thresholds is determined and this information is used in this
  *     routine. If threshold entries are duplicated the first entry is
  *     overwritten.
  *     Each threshold entry also has an index field. This is a positional
@@ -1092,9 +1092,9 @@ store_threshold(int a_type,               /* 1 = fs , 2 = cm */
  *     This data is mapped to the screen thru fs_Display_map[] and
  *     cm_Display_map[]. This routine parses the "show" entry against the
  *     section/group names in the [fs/cm]_categories[] array. If there is
- *     no match it tries to match it against a variable name in 
+ *     no match it tries to match it against a variable name in
  *     [fs/cm]_varNames[] array. In each case the corresponding indices to
- *     the data is the [fs/cm]_displayInfo[] is recorded. 
+ *     the data is the [fs/cm]_displayInfo[] is recorded.
  *
  * Returns:
  *     Success: 0
@@ -1386,15 +1386,15 @@ parse_showEntry(char *a_line)
  * process_config_file()
  *
  * Description:
- *     Parse config file entries in two passes. In the first pass: 
+ *     Parse config file entries in two passes. In the first pass:
  *             - the syntax of all the entries is checked
- *             - host names are noted and the FSnamesList and CMnamesList 
- *               constructed. 
- *             - a count of the global thresholds and local thresholds of 
- *               each host are counted. 
+ *             - host names are noted and the FSnamesList and CMnamesList
+ *               constructed.
+ *             - a count of the global thresholds and local thresholds of
+ *               each host are counted.
  *             - "show" entries are processed.
  *     In the second pass:
- *             - thresholds are stored 
+ *             - thresholds are stored
  *
  * Returns:
  *     Success: 0
@@ -1499,7 +1499,7 @@ process_config_file(char *a_config_filename)
     }
 
     /* the threshold count of all hosts in increased by 1 for each global
-     * threshold. If one of the hosts has a local threshold for the same 
+     * threshold. If one of the hosts has a local threshold for the same
      * variable it would end up being counted twice. whats a few bytes of memory
      * wasted anyway ? */
 
@@ -1596,7 +1596,7 @@ process_config_file(char *a_config_filename)
            strncpy(last_cmHost, he->h_name, HOST_NAME_LEN);
        } else if (strcasecmp(opcode, "thresh") == 0) {
            /* if we have a threshold handler it may have arguments
-            * and the sscanf() above would not get them, so do the 
+            * and the sscanf() above would not get them, so do the
             * following */
            if (strlen(arg4)) {
                handlerPtr = line;
@@ -1821,10 +1821,10 @@ save_FS_results_inCB(int a_newProbeCycle)       /* start of a new probe cycle ? */
  * fs_Results_ltoa()
  *
  * Description:
- *     The results of xstat probes are stored in a string format in 
+ *     The results of xstat probes are stored in a string format in
  *     the arrays curr_fsData and prev_fsData. The information stored in
- *     prev_fsData is copied to the screen. 
- *     This function converts xstat FS results from longs to strings and 
+ *     prev_fsData is copied to the screen.
+ *     This function converts xstat FS results from longs to strings and
  *     place them in the given buffer (a pointer to an item in curr_fsData).
  *     When a probe cycle completes, curr_fsData is copied to prev_fsData
  *     in afsmon_FS_Hnadler().
@@ -1886,7 +1886,7 @@ fs_FullPerfs_ltoa(struct fs_Display_Data *a_fsData,
     fullPerfP = (struct fs_stats_FullPerfStats *)
        (a_fsResults->data.AFS_CollData_val);
 
-    /* there are two parts to the xstat FS statistics 
+    /* there are two parts to the xstat FS statistics
      * - fullPerfP->overall which give the overall performance statistics, and
      * - fullPerfP->det which gives detailed info about file server operation
      * execution times */
@@ -2030,10 +2030,10 @@ fs_CallBackStats_ltoa(struct fs_Display_Data *a_fsData,
  * execute_thresh_handler()
  *
  * Description:
- *     Execute a threshold handler. An agrv[] array of pointers is 
- *     constructed from the given data. A child process is forked 
+ *     Execute a threshold handler. An agrv[] array of pointers is
+ *     constructed from the given data. A child process is forked
  *     which immediately calls afsmon_Exit() with indication that a
- *     threshold handler is to be exec'ed insted of exiting. 
+ *     threshold handler is to be exec'ed insted of exiting.
  *
  * Returns:
  *     Success: 0
@@ -2132,11 +2132,11 @@ execute_thresh_handler(char *a_handler,         /* ptr to handler function + args */
  * Description:
  *     Checks the thresholds and sets the overflow flag. Recall that the
  *     thresholds for each host are stored in the hostEntry lists
- *     [fs/cm]nameList arrays. The probe results are passed to this 
+ *     [fs/cm]nameList arrays. The probe results are passed to this
  *     function in the display-ready format - ie., as strings. Though
  *     this looks stupid the overhead incurred in converting the strings
- *     back to floats and comparing them is insignificant and 
- *     programming is easier this way. 
+ *     back to floats and comparing them is insignificant and
+ *     programming is easier this way.
  *     The threshold flags are a part of the display structures
  *     curr_[fs/cm]Data.
  *
@@ -2226,11 +2226,11 @@ check_fs_thresholds(struct afsmon_hostEntry *a_hostEntry, /* ptr to hostEntry */
  * Description:
  *     Does the following:
  *     - if the probe number changed (ie, a cycle completed) curr_fsData
- *     is copied to prev_fsData, curr_fsData zeroed and refresh the 
+ *     is copied to prev_fsData, curr_fsData zeroed and refresh the
  *     overview screen and file server screen with the new data.
  *     - store the results of the current probe from xstat_fs_Results into
  *     curr_fsData. ie., convert longs to strings.
- *     - check the thresholds 
+ *     - check the thresholds
  *
  * Returns:
  *     Success: 0
@@ -2281,7 +2281,7 @@ save_FS_data_forDisplay(struct xstat_fs_ProbeResults *a_fsResults)
     }
 
     /*  Check the status of the probe. If it succeeded, we store its
-     * results in the display data structure. If it failed we only mark 
+     * results in the display data structure. If it failed we only mark
      * the failed status in the display data structure. */
 
     if (a_fsResults->probeOK) {        /* 1 => notOK the xstat results */
@@ -2302,7 +2302,7 @@ save_FS_data_forDisplay(struct xstat_fs_ProbeResults *a_fsResults)
        fs_Results_ltoa(curr_fsDataP, a_fsResults);
 
        /* compare with thresholds and set the overflow flags.
-        * note that the threshold information is in the hostEntry structure and 
+        * note that the threshold information is in the hostEntry structure and
         * each threshold item has a positional index associated with it */
 
        /* locate the hostEntry for this host */
@@ -2456,7 +2456,7 @@ afsmon_FS_Handler(void)
        }
     }
 
-    /* Update current probe number and circular buffer index. if current 
+    /* Update current probe number and circular buffer index. if current
      * probenum changed make sure it is only by 1 */
 
     newProbeCycle = 0;
@@ -2482,7 +2482,7 @@ afsmon_FS_Handler(void)
 
     /* store the results of the current probe in the fs data display structure.
      * if the current probe number changed, swap the current and previous display
-     * structures. note that the display screen is updated from these structures 
+     * structures. note that the display screen is updated from these structures
      * and should start showing the data of the just completed probe cycle */
 
     save_FS_data_forDisplay(&xstat_fs_Results);
@@ -2492,12 +2492,12 @@ afsmon_FS_Handler(void)
 
 
 
-/*----------------------------------------------------------------------- * 
- * Print_CM_CB()     
+/*----------------------------------------------------------------------- *
+ * Print_CM_CB()
  *
  * Description:
  *     Debug routine.
- *     Prints the  Cache Manager circular buffer 
+ *     Prints the  Cache Manager circular buffer
  *----------------------------------------------------------------------*/
 
 void
@@ -2671,10 +2671,10 @@ save_CM_results_inCB(int a_newProbeCycle)       /* start of new probe cycle ? */
  * cm_Results_ltoa()
  *
  * Description:
- *     The results of xstat probes are stored in a string format in 
+ *     The results of xstat probes are stored in a string format in
  *     the arrays curr_cmData and prev_cmData. The information stored in
- *     prev_cmData is copied to the screen. 
- *     This function converts xstat FS results from longs to strings and 
+ *     prev_cmData is copied to the screen.
+ *     This function converts xstat FS results from longs to strings and
  *     places them in the given buffer (a pointer to an item in curr_cmData).
  *     When a probe cycle completes, curr_cmData is copied to prev_cmData
  *     in afsmon_CM_Handler().
@@ -2708,7 +2708,7 @@ cm_Results_ltoa(struct cm_Display_Data *a_cmData, /* target buffer */
 
     /* There are 4 parts to CM statistics
      * - Overall performance statistics (including up/down statistics)
-     * - This CMs FS RPC operations info 
+     * - This CMs FS RPC operations info
      * - This CMs FS RPC errors info
      * - This CMs FS transfers info
      * - Authentication info
@@ -2919,11 +2919,11 @@ cm_Results_ltoa(struct cm_Display_Data *a_cmData,       /* target buffer */
  * Description:
  *     Checks the thresholds and sets the overflow flag. Recall that the
  *     thresholds for each host are stored in the hostEntry lists
- *     [fs/cm]nameList arrays. The probe results are passed to this 
+ *     [fs/cm]nameList arrays. The probe results are passed to this
  *     function in the display-ready format - ie., as strings. Though
  *     this looks stupid the overhead incurred in converting the strings
- *     back to floats and comparing them is insignificant and 
- *     programming is easier this way. 
+ *     back to floats and comparing them is insignificant and
+ *     programming is easier this way.
  *     The threshold flags are a part of the display structures
  *     curr_[fs/cm]Data.
  *
@@ -3014,11 +3014,11 @@ check_cm_thresholds(struct afsmon_hostEntry *a_hostEntry,       /* ptr to hostEntry */
  * Description:
  *     Does the following:
  *     - if the probe number changed (ie, a cycle completed) curr_cmData
- *     is copied to prev_cmData, curr_cmData zeroed and refresh the 
+ *     is copied to prev_cmData, curr_cmData zeroed and refresh the
  *     overview screen and file server screen with the new data.
  *     - store the results of the current probe from xstat_cm_Results into
  *     curr_cmData. ie., convert longs to strings.
- *     - check the thresholds 
+ *     - check the thresholds
  *
  * Returns:
  *     Success: 0
@@ -3069,7 +3069,7 @@ save_CM_data_forDisplay(struct xstat_cm_ProbeResults *a_cmResults)
     }
 
     /*  Check the status of the probe. If it succeeded, we store its
-     * results in the display data structure. If it failed we only mark 
+     * results in the display data structure. If it failed we only mark
      * the failed status in the display data structure. */
 
 
@@ -3092,7 +3092,7 @@ save_CM_data_forDisplay(struct xstat_cm_ProbeResults *a_cmResults)
        cm_Results_ltoa(curr_cmDataP, a_cmResults);
 
        /* compare with thresholds and set the overflow flags.
-        * note that the threshold information is in the hostEntry structure and 
+        * note that the threshold information is in the hostEntry structure and
         * each threshold item has a positional index associated with it */
 
        /* locate the hostEntry for this host */
@@ -3283,7 +3283,7 @@ afsmon_CM_Handler(void)
        }
     }
 
-    /* Update current probe number and circular buffer index. if current 
+    /* Update current probe number and circular buffer index. if current
      * probenum changed make sure it is only by 1 */
 
     newProbeCycle = 0;
@@ -3307,7 +3307,7 @@ afsmon_CM_Handler(void)
 
     /* store the results of the current probe in the cm data display structure.
      * if the current probe number changed, swap the current and previous display
-     * structures. note that the display screen is updated from these structures 
+     * structures. note that the display screen is updated from these structures
      * and should start showing the data of the just completed probe cycle */
 
     save_CM_data_forDisplay(&xstat_cm_Results);
@@ -3354,7 +3354,7 @@ init_fs_buffers(void)
        afsmon_fs_ResultsCB[i].probeNum = 0;
     }
 
-    /* create  a list of numFS items to store fs probe results for 
+    /* create  a list of numFS items to store fs probe results for
      * each slot in CB */
 
     if (numFS) {               /* if we have file servers to monitor */
@@ -3363,7 +3363,7 @@ init_fs_buffers(void)
            while (numfs--) {
 
                /* if any of these mallocs fail we only need to free the memory we
-                * have allocated in this iteration. the rest of it which is in a 
+                * have allocated in this iteration. the rest of it which is in a
                 * proper linked list will be freed in afsmon_Exit */
 
                /* allocate memory for an fs list item */
@@ -3471,7 +3471,7 @@ init_cm_buffers(void)
        afsmon_cm_ResultsCB[i].probeNum = 0;
     }
 
-    /* create  a list of numCM items to store fs probe results for 
+    /* create  a list of numCM items to store fs probe results for
      * each slot in CB */
 
     if (numCM) {               /* if we have file servers to monitor */
@@ -3480,7 +3480,7 @@ init_cm_buffers(void)
            while (numcm--) {
 
                /* if any of these mallocs fail we only need to free the memory we
-                * have allocated in this iteration. the rest of it which is in a 
+                * have allocated in this iteration. the rest of it which is in a
                 * proper linked list will be freed in afsmon_Exit */
 
                /* allocate memory for an fs list item */
@@ -3563,8 +3563,8 @@ init_cm_buffers(void)
  *
  * Description:
  *     Allocate and initialize the buffers used for printing results
- *     to the display screen. These buffers store the current and 
- *     previous probe results in ascii format. 
+ *     to the display screen. These buffers store the current and
+ *     previous probe results in ascii format.
  *
  * Returns:
  *     Success: 0
@@ -3595,7 +3595,7 @@ init_print_buffers(void)
     /* we need two instances of this structure - one (curr_fsData) for storing
      * the results of the fs probes currently in progress and another (prev_fsData)
      * for the last completed probe. The display is updated from the contents of
-     * prev_fsData. The pointers curr_fsData & prev_fsData are switched whenever 
+     * prev_fsData. The pointers curr_fsData & prev_fsData are switched whenever
      * the probe number changes */
 
     if (numFS) {
@@ -3695,7 +3695,7 @@ quit_signal(int sig)
  * Description:
  *     This is where we start it all. Initialize an array of sockets for
  *     file servers and cache cache managers and call the xstat_[fs/cm]_Init
- *     routines. The last step is to call the gtx input server which 
+ *     routines. The last step is to call the gtx input server which
  *     grabs control of the keyboard.
  *
  * Returns:
@@ -3893,7 +3893,7 @@ afsmon_execute(void)
 
 
     /* end of process cache manager entries */
-    /* if only one probe was required setup a waiting process for the 
+    /* if only one probe was required setup a waiting process for the
      * termination signal */
     if (afsmon_onceOnly) {
        code = LWP_WaitProcess(&terminationEvent);
@@ -4074,7 +4074,7 @@ afsmonInit(struct cmd_syndesc *as, void *arock)
     FSnameList = (struct afsmon_hostEntry *)0;
     CMnameList = (struct afsmon_hostEntry *)0;
 
-    /* The -config option is mutually exclusive with the -fshosts,-cmhosts 
+    /* The -config option is mutually exclusive with the -fshosts,-cmhosts
      * options */
 
     if (as->parms[P_CONFIG].items) {
@@ -4093,7 +4093,7 @@ afsmonInit(struct cmd_syndesc *as, void *arock)
 
 
     /* If a file server host is specified on the command line we reuse
-     * parse_hostEntry() function . Just the pass the info as if it were 
+     * parse_hostEntry() function . Just the pass the info as if it were
      * read off the config file */
 
     if (as->parms[P_FSHOSTS].items) {
@@ -4279,7 +4279,7 @@ main(int argc, char **argv)
                "number of buffer slots");
 
     /*
-     * Parse command-line switches & execute afsmonitor 
+     * Parse command-line switches & execute afsmonitor
      */
 
     code = cmd_Dispatch(argc, argv);
index db6e5f0fc1c6cd1e8dd4b5202e24813fd7925e29..6d44ca480c37b9195ee34e567862765876a0876c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -58,7 +58,7 @@ struct afsmon_hostEntry {
 #define FS_CB_ENTRY_START (FS_FULLPERF_ENTRY_END + 1)
 #define FS_CB_ENTRY_END   (FS_CB_ENTRY_START + NUM_FS_CB_ENTRIES - 1)
 
-/* structures to store statistics in a format convenient to dump to the 
+/* structures to store statistics in a format convenient to dump to the
 screen */
 /* for file servers */
 struct fs_Display_Data {
@@ -97,12 +97,12 @@ what he wants displayed. */
 #define DETAILED_DEBUG 0
 
 /* afsmon-output.c */
-  
+
 extern int afsmon_fsOutput(char *, int);
 extern int afsmon_cmOutput(char *, int);
 
 /* afsmon-win.c */
+
 extern int ovw_refresh(int, int);
 extern int fs_refresh(int, int);
 extern int cm_refresh(int, int);
index 27f7cc71de3aed80068e94b3717a53971e02edc9..7f79408d6c1335c36e93bf8db935808fd615bdde 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -357,7 +357,7 @@ weblog_login_checksum(char *user, char *cell, char *passwd, char *cksum)
 
 /*
  * Look up a login ID in the cache. If an entry name is found for the
- * given username, and the SHA checksums match, then 
+ * given username, and the SHA checksums match, then
  * set the token parameter and return 1, otherwise return 0.
  */
 int
index 824480ccb05d2420684a1c5e5468320304c92c50..027bed68225bd30252d4a02d920eb3af127ea3a4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index b4b202b5d3901e20095716c836bfc0c5850d7988..78b8997272a3cd0f0a5821e784b0bec46a8bff2b 100644 (file)
@@ -1,17 +1,17 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  */
 
 /*
- * Implements most of the client side web authentication protocol 
+ * Implements most of the client side web authentication protocol
  */
 
-/* 
+/*
  */
 
 #include "apache_afs_utils.h"
@@ -196,7 +196,7 @@ recvFrom_afsAuthenticator(char *buf)
 
 #ifndef NO_AFSAPACHE_CACHE
 /*
- * check local cache for the token associated with user crds. 
+ * check local cache for the token associated with user crds.
  */
 static int
 check_Cache(char *user, char *passwd, char *cell, char *tokenBuf)
@@ -242,8 +242,8 @@ updateCache(char *user, char *passwd, char *cell, char *tokenBuf,
 #endif /* NO_APACHEAFS_CACHE */
 
 
-/* 
- * locking routines to provide exclusive access to the pipes 
+/*
+ * locking routines to provide exclusive access to the pipes
  */
 static int
 start_lock(int fd, int cmd, int type)
@@ -290,10 +290,10 @@ test_lock(int fd, int type)
 #define Is_writelock(fd) \
             test_lock(fd, F_WRLCK)
 
-/* 
+/*
  * communication between this process and weblog - sends user credentials
  * over a shared pipe (mutex provided using locks) and recieves either a
- * token or an error message 
+ * token or an error message
  */
 static int
 request_Authentication(char *user, char *passwd, char *cell, char *type,
@@ -310,7 +310,7 @@ request_Authentication(char *user, char *passwd, char *cell, char *type,
     afsassert(type);
     afsassert(tokenbuf);
 
-/* 
+/*
  * lock the pipe before beginning communication or in case of AIX it is an
  * error to attempt to lock a pipe or FIFO (EINVAL) therefore we have to create
  * a temporary file and use that fd instead
@@ -380,9 +380,9 @@ setToken(char *tokenBuf, int tokenLen)
 
     afsassert(tokenBuf);
 
-    /* 
-     * set the primary flag only if we haven't done a SETPAG previoulsy 
-     * by flipping this bit 
+    /*
+     * set the primary flag only if we haven't done a SETPAG previoulsy
+     * by flipping this bit
      */
     if (!doneSETPAG) {
 #ifdef OLDSETPAG
@@ -426,8 +426,8 @@ getToken(char *buf, int bufsize)
 }
 
 
-/* 
- * discard all authentication information for this PAG ie. this process 
+/*
+ * discard all authentication information for this PAG ie. this process
  */
 int
 unlog()
@@ -436,12 +436,12 @@ unlog()
 }
 
 
-/* 
+/*
  * Does the following things:
  * Checks whether there is a Basic Authentication header - obtains creds.
  * Checks local cache for the token associated with the user creds.
  * - if no token in cache - obtains token from weblog using pipes
- * - sets the token and returns appropriate return code 
+ * - sets the token and returns appropriate return code
  * Return values: OK, SERVER_ERROR, AUTH_REQUIRED, FORBIDDEN
  */
 int
@@ -476,9 +476,9 @@ authenticateUser(request_rec * r, char *defaultCell, int cacheExpiration,
     memset(cell, 0, APACHEAFS_CELLNAME_MAX);
 
     if (auth_line == NULL) {   /* No Authorization field - we don't do anything */
-       /* 
+       /*
         * No Authorization field recieved - that's fine by us.
-        * go ahead and attempt to service the request and if we get 
+        * go ahead and attempt to service the request and if we get
         * back FORBIDDEN then we'll take care of it then
         */
        afslog(15, ("%s: No authline recieved", module_name));
@@ -501,8 +501,8 @@ authenticateUser(request_rec * r, char *defaultCell, int cacheExpiration,
        return OK;
     }
 
-    /* 
-     * We should get here only if there IS an Authorization field 
+    /*
+     * We should get here only if there IS an Authorization field
      */
 
     if ((rc = parse_authhdr(r, user, passwd, cell, defaultCell)) != 0) {
@@ -512,7 +512,7 @@ authenticateUser(request_rec * r, char *defaultCell, int cacheExpiration,
        return rc;              /* SERVER ERROR */
     }
 
-    /* 
+    /*
      *  should get here only after obtaining the username and password and cell
      *  check to make sure anyway
      */
@@ -540,9 +540,9 @@ authenticateUser(request_rec * r, char *defaultCell, int cacheExpiration,
     fprintf(stderr, "Cell:%s\tUser:%s\tPasswd:%s\n", cell, user, passwd);
 #endif
 
-    /* 
-     * compare with previous username/cell/cksum - update it 
-     * unlog if required 
+    /*
+     * compare with previous username/cell/cksum - update it
+     * unlog if required
      */
 
     weblog_login_checksum(user, cell, passwd, cksum);
@@ -554,8 +554,8 @@ authenticateUser(request_rec * r, char *defaultCell, int cacheExpiration,
     }
     if (strcmp(user, lastUser) || strcmp(cell, lastCell)
        || strcmp(cksum, lastCksum)) {
-       /* 
-        * unlog the old user from the cell if a new username/passwd is recievd 
+       /*
+        * unlog the old user from the cell if a new username/passwd is recievd
         */
 
        userChanged = 1;
@@ -590,11 +590,11 @@ authenticateUser(request_rec * r, char *defaultCell, int cacheExpiration,
 
     rc = check_Cache(user, passwd, cell, tokenbuf);
     if (rc) {
-       /* if found then just send the request without going through  
+       /* if found then just send the request without going through
         * weblog - this means the user has already been authenticated
-        * once and we have a valid token just need to set it - 
-        * only if it is different from the token already set. No need to 
-        * even unlog because this token is set for the entire PAG which 
+        * once and we have a valid token just need to set it -
+        * only if it is different from the token already set. No need to
+        * even unlog because this token is set for the entire PAG which
         * of course consists of just this child process
         */
        afslog(35,
@@ -602,7 +602,7 @@ authenticateUser(request_rec * r, char *defaultCell, int cacheExpiration,
                module_name, getpid(), user,
                (getExpiration(tokenbuf) - time(NULL))));
 
-       /* if the user changed then set this token else leave it since it should 
+       /* if the user changed then set this token else leave it since it should
         * be set */
        if (userChanged) {
            /* set this token obtained from the local cache */
@@ -618,20 +618,20 @@ authenticateUser(request_rec * r, char *defaultCell, int cacheExpiration,
 #ifdef DEBUG_CACHE
                parseToken(tokenbuf);
 #endif
-               /* 
-                * BUG WORKAROUND: sometimes we fail while setting token 
-                * with errno ESRCH indicating the named cell 
-                * in the last field of the token is not recognized - but that's 
+               /*
+                * BUG WORKAROUND: sometimes we fail while setting token
+                * with errno ESRCH indicating the named cell
+                * in the last field of the token is not recognized - but that's
                 * not quite true according to parseToken()!! Possibly corrupted
                 * tokens from the cache?
-                * Anyway we just get a new token from weblog 
+                * Anyway we just get a new token from weblog
                 */
                goto reqAuth;
            }
        } /* if userChanged */
        else {
            /* if this is a child process getting the request for the first time
-            * then there's no way this guy's got a token for us in which case 
+            * then there's no way this guy's got a token for us in which case
             * getToken should fail with EDOM and that means we should set the token
             * first and maybe set a static variable saying we have set a token?
             */
@@ -640,7 +640,7 @@ authenticateUser(request_rec * r, char *defaultCell, int cacheExpiration,
                if (errno == EDOM) {
                    /* try setting the cached token */
                    if (setToken(tokenbuf, rc)) {
-                       /* 
+                       /*
                         * same bug workaround here. ie. go to weblog if setting
                         * the cached token fails.
                         */
@@ -666,9 +666,9 @@ authenticateUser(request_rec * r, char *defaultCell, int cacheExpiration,
        strcpy(r->connection->user, user);
        return OK;
     }
-    /* 
-     * else - request afs_Authenticator's for it and update local cache  
-     * then go about serving the request URI 
+    /*
+     * else - request afs_Authenticator's for it and update local cache
+     * then go about serving the request URI
      */
     else {
       reqAuth:
@@ -703,7 +703,7 @@ authenticateUser(request_rec * r, char *defaultCell, int cacheExpiration,
 #endif /* NO_AFSAPACHE_CACHE */
 
            /* now we've got a token, updated the cache and set it so we should
-            * have no problems accessing AFS files - however if we do then 
+            * have no problems accessing AFS files - however if we do then
             * we handle it in afs_accessCheck() when the error comes back
             */
 
@@ -725,9 +725,9 @@ authenticateUser(request_rec * r, char *defaultCell, int cacheExpiration,
        }
 
        else {
-           /* 
+           /*
             * unknown error from weblog - this should not occur
-            * if afs_Authenticator can't authenticate you, then return FORBIDDEN 
+            * if afs_Authenticator can't authenticate you, then return FORBIDDEN
             */
            sprintf(err_msg,
                    "%s: AFS could not authenticate user %s in cell %s."
@@ -989,8 +989,8 @@ setCellAuthHeader(request_rec * r)
 
 
 /*
- * Checks if we have some authentication credentials, if we do returns 
- * FORBIDDEN and if we don't then returns AUTH_REQUIRED with the appropriate 
+ * Checks if we have some authentication credentials, if we do returns
+ * FORBIDDEN and if we don't then returns AUTH_REQUIRED with the appropriate
  * www-authenticate header. Should be called if we can't access a file because
  * permission is denied.
  */
index ab4e90fb84c7a5ff5d7602626e9d73763a4cd0bd..e349f3f0e27cdfef04416592bc2626f91e216a28 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -9,10 +9,10 @@
 
 /*
  * afs_module  Version 1.3     < for Apache Server version 1.2.6 and 1.3.1 >
- * 
+ *
  * Add to Configuration file (before any of the Authentication modules)
  * Module afs_module    afs_module.o
- * 
+ *
  * Add to server configuration file:
  * SetAFSDefaultCell <cell name>
  * SetAFSCacheExpiration <seconds for AFS client cache expiration>
@@ -34,7 +34,7 @@
 #include "http_conf_globals.h"
 
 
-/* 
+/*
  * default parameters - if none are specified in the config file
  * these are used
  */
@@ -188,8 +188,8 @@ check_weblog(char *path)
     return 0;
 }
 
-/* 
- * per-server configuration creator 
+/*
+ * per-server configuration creator
  */
 void *
 create_afs_server_config(pool * p, server_rec * s)
@@ -203,7 +203,7 @@ create_afs_server_config(pool * p, server_rec * s)
 }
 
 /*
- * per-dir configuration record creator 
+ * per-dir configuration record creator
  */
 void *
 create_afs_dir_config(pool * p, char *dummy)
@@ -215,7 +215,7 @@ create_afs_dir_config(pool * p, char *dummy)
 
 /*
  * Handlers for server config lines - set afs default cell, weblog path, access log,
- * token and cache expiration time to the server configuration. As well as per-dir 
+ * token and cache expiration time to the server configuration. As well as per-dir
  * configs like AFSAuthentication.
  */
 const char *
index 094112b071e4e217b30b9a7ff16ee6795fd2efd9..42798de1bdd99bbd897579f521cfbfd33bda5d2a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -9,7 +9,7 @@
 
 /* Apache plugin for AFS authentication - should be archived to libapacheafs.a
  * contains calls to functions in apache_afs_client.o - and is the intermediary
- * between the module that plugs into apache's source code and the 
+ * between the module that plugs into apache's source code and the
  * apache_afs_client. Shares global variables with the module and the client.
  */
 
@@ -184,11 +184,11 @@ afs_plugin_init(int tokenExpiration, char *weblogPath, char *error_fname,
        close(pipe2[1]);
        fclose(fp);
 
-       /* exit by sending a SIGTERM to the httpd process (how to get the pid?) 
-        * since at this point the pid file is outdated and only if we sleep for 
-        * a while to allow httpd_main to put it's pid in the pidfile can we 
+       /* exit by sending a SIGTERM to the httpd process (how to get the pid?)
+        * since at this point the pid file is outdated and only if we sleep for
+        * a while to allow httpd_main to put it's pid in the pidfile can we
         * attempt to send it a SIGTERM for graceful shuttdown)
-        * so that everything is brought down - if you want to bring everything 
+        * so that everything is brought down - if you want to bring everything
         * down!! Else continue with httpd without AFS authentication.
         */
 /*#ifdef SHUTDOWN_IF_AFS_FAILS in afs_module.c */
@@ -267,10 +267,10 @@ sort_stat_error(request_rec * r)
 }
 
 /*
- * recursively stats the path to see where we're going wrong and 
- * chops off the path_info part of it - 
+ * recursively stats the path to see where we're going wrong and
+ * chops off the path_info part of it -
  * Returns OK or an HTTP status code
- * Called if we get a ENOTDIR from the first stab at statting the 
+ * Called if we get a ENOTDIR from the first stab at statting the
  * entire path - so we assume that we have some PATH_INFO and try to
  * chop it off the end and return the path itself
  * Side effects on request_rec
@@ -320,7 +320,7 @@ remove_path_info(request_rec * r, char *path, struct stat *buf)
            while (cp > path && cp[-1] == '/')
                --cp;
        } else if (errno != EACCES) {
-           /* 
+           /*
             * this would be really bad since we checked the entire path
             * earlier and got ENOTDIR instead of EACCES - so why are we getting
             * it now? Anyway, we ought to return FORBIDDEN
@@ -364,7 +364,7 @@ can_access(request_rec * r)
               ("%s: pid:%d\tpath:%s\tstat error:%s", module_name, getpid(),
                path, strerror(errno)));
 
-       /* 
+       /*
         * if the requested method is an HTTP PUT and the file does not
         * exist then well, we'll get a stat error but we shouldn't return
         * an error - we should try and open the file in append mode and then
@@ -389,10 +389,10 @@ can_access(request_rec * r)
                }
            }
        } else if (errno == ENOTDIR) {
-           /* 
-            * maybe the special case of CGI PATH_INFO to be translated to 
+           /*
+            * maybe the special case of CGI PATH_INFO to be translated to
             * PATH_TRANSLATED - check each component of this path
-            * and stat it to see what portion of the url is actually 
+            * and stat it to see what portion of the url is actually
             * the path and discard the rest for our purposes.
             */
            rc = remove_path_info(r, path, &buf);
@@ -405,7 +405,7 @@ can_access(request_rec * r)
            return sort_stat_error(r);
        }
     }
-    /* 
+    /*
      * If we get here then we have something - either a file or a directory
      */
     else {
@@ -536,7 +536,7 @@ afs_auth_internal(request_rec * r, char *cell)
         */
        type = (char *)get_afsauthtype(r);
 
-       /* 
+       /*
         * UserDir (tilde) support
         */
 #ifndef APACHE_1_3
index dc17b2e2b25dbbb7526799afa9eeeef39cb1b3be..ba0d919fa7fbc0c66cddb6c63041b3252ac2a971 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -18,7 +18,7 @@
 #include "apache_afs_utils.h"
 #include "apache_afs_utils.h"
 
-/* 
+/*
  * do_pioctl does the actual call to pioctl (or equivalent for that platform)
  * sets up the ViceIoctl buffer with all the parameters required
  * NOTE: in_buffer and out_buffer may point to the same memory buffer
@@ -68,9 +68,9 @@ haveToken()
 }
 
 
-/* 
- * flipPrimary sets the primary cell longword - 
- * enabling a SETPAG if the same buffer is used with VICESETTOK 
+/*
+ * flipPrimary sets the primary cell longword -
+ * enabling a SETPAG if the same buffer is used with VICESETTOK
  */
 flipPrimary(char *tokenBuf)
 {
@@ -160,9 +160,9 @@ hexDump(char *tbuffer, int len)
     fprintf(stderr, "\n");
 }
 
-/* 
- * debugging utility to see if the group id changes - if SETPAG worked 
- * call this before and after the routine to dosetpag and verify results 
+/*
+ * debugging utility to see if the group id changes - if SETPAG worked
+ * call this before and after the routine to dosetpag and verify results
  */
 
 int
@@ -182,8 +182,8 @@ printGroups()
     return 0;
 }
 
-/* 
- * prints clear token fields, cell name and primary flag to stdout 
+/*
+ * prints clear token fields, cell name and primary flag to stdout
  */
 
 void
index bed8328192a43e75c95afddb8ece38b78de15d55..30e33ef496017a85eaeead0b0f2e46dd16e5a92a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 491ea7fe4a3f7221885f59bbecc2086db89aad6b..dd989a76132d6f5dece749cbb4aa8b79f4ba1f64 100644 (file)
@@ -1,20 +1,20 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  */
 
-/* the wrapper nanny process around weblog that would restart it in case it 
- * failed and hopefully log the error somewhere! The need for this nanny 
- * process arises because the pipe descriptors need to be maintained. The 
- * process catches SIGTERM and kills the weblog process and exits. 
+/* the wrapper nanny process around weblog that would restart it in case it
+ * failed and hopefully log the error somewhere! The need for this nanny
+ * process arises because the pipe descriptors need to be maintained. The
+ * process catches SIGTERM and kills the weblog process and exits.
  * The following line needs to precede the kill -TERM line for httpd.pid
  * in the stopd script to stop the server
           kill -TERM `<cat /local/stronghold/apache/logs/httpd.pid>.afs`
- * or whatever the pid file 
+ * or whatever the pid file
  */
 
 #include <afs/stds.h>
index f6ebd583b41fc011797f894ed96bc9dd9fb80aea..ccdd861155155dbf3628097d1f6d4d6291d42ff7 100644 (file)
@@ -1,14 +1,14 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  */
 
 /*
- * Apache API calls required by libapacheafs.a 
+ * Apache API calls required by libapacheafs.a
  */
 
 #ifndef _APACHE_API_H_INCLUDED_
index d7bc76d600058b04328877fd102b6d97b6c6e2d2..ee0a37afb97f2aed55329f68c6d37ebc9a274f24 100644 (file)
@@ -7,7 +7,7 @@
  * are met:
  *
  * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer. 
+ *    notice, this list of conditions and the following disclaimer.
  *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in
@@ -68,8 +68,8 @@
  */
 
 /* Arenas for configuration info and transaction info
- * --- actual layout of the pool structure is private to 
- * alloc.c.  
+ * --- actual layout of the pool structure is private to
+ * alloc.c.
  */
 
 typedef struct pool pool;
@@ -165,7 +165,7 @@ array_header *table_elts(table *);
  * to keep CGI scripts and the like from inheriting access to things
  * they shouldn't be able to touch, and one for actually cleaning up,
  * when the actual server process wants to get rid of the thing,
- * whatever it is.  
+ * whatever it is.
  *
  * kill_cleanup disarms a cleanup, presumably because the resource in
  * question has been closed, freed, or whatever, and it's scarce
@@ -201,7 +201,7 @@ extern void block_alarms();
 extern void unblock_alarms();
 
 /* Common cases which want utility support..
- * the note_cleanups_for_foo routines are for 
+ * the note_cleanups_for_foo routines are for
  */
 
 FILE *pfopen(struct pool *, const char *name, const char *fmode);
index aae3e446cc764e0bf7343d7f6cd492d655085999..1d6b052ccdd41a094f2c72030f7e90ae809d7b33 100644 (file)
@@ -6,7 +6,7 @@
  * are met:
  *
  * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer. 
+ *    notice, this list of conditions and the following disclaimer.
  *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in
index 771988fd7179ce3b6777a2d2babff49cf159adbb..1310d679e1652dd82a57c3c5000636b6d33542b7 100644 (file)
@@ -6,7 +6,7 @@
  * are met:
  *
  * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer. 
+ *    notice, this list of conditions and the following disclaimer.
  *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in
@@ -529,8 +529,8 @@ typedef int rlim_t;
 
 /*
  * The particular directory style your system supports. If you have dirent.h
- * in /usr/include (POSIX) or /usr/include/sys (SYSV), #include 
- * that file and define DIR_TYPE to be dirent. Otherwise, if you have 
+ * in /usr/include (POSIX) or /usr/include/sys (SYSV), #include
+ * that file and define DIR_TYPE to be dirent. Otherwise, if you have
  * /usr/include/sys/dir.h, define DIR_TYPE to be direct and include that
  * file. If you have neither, I'm confused.
  */
index b87733fc439aa0cf6a81b18e90698cccb1ce9997..45f7e99a603626c5ad084dd8c28785808c35cda4 100644 (file)
@@ -6,7 +6,7 @@
  * are met:
  *
  * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer. 
+ *    notice, this list of conditions and the following disclaimer.
  *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in
@@ -50,7 +50,7 @@
  *
  */
 
-/* 
+/*
  * Process config --- what the process ITSELF is doing
  */
 
index 7481bc7ba09beb9895d5b7c764fd42aecbf6d3a1..7d5be2d5da48985b7695246740ddb22a6092c06f 100644 (file)
@@ -6,7 +6,7 @@
  * are met:
  *
  * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer. 
+ *    notice, this list of conditions and the following disclaimer.
  *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in
 /* Default administrator's address */
 #define DEFAULT_ADMIN "[no address given]"
 
-/* 
+/*
  * --------- You shouldn't have to edit anything below this line ----------
  *
- * Any modifications to any defaults not defined above should be done in the 
- * respective config. file. 
+ * Any modifications to any defaults not defined above should be done in the
+ * respective config. file.
  *
  */
 
 /* If you have altered Apache and wish to change the SERVER_VERSION
  * identifier below, please keep to the HTTP specification.  This states that
  * the identification string should consist of product tokens with an optional
- * slash and version designator.  Sub-products which form a significant part 
+ * slash and version designator.  Sub-products which form a significant part
  * of the application can be listed, separated by whitespace, by adding
  * their product tokens to EXTRA_CFLAGS in the Configuration file like so.
  *
  * The tokens are listed in order of their significance for identifying the
  * application.
  *
- * "Product tokens should be short and to the point -- use of them for 
+ * "Product tokens should be short and to the point -- use of them for
  * advertizing or other non-essential information is explicitly forbidden."
  *
- * Example: "Apache/1.1.0 MrWidget/0.1-alpha" 
+ * Example: "Apache/1.1.0 MrWidget/0.1-alpha"
  */
 
 #define SERVER_BASEVERSION "Apache/1.2.6"      /* SEE COMMENTS ABOVE */
@@ -447,7 +447,7 @@ struct request_rec {
                                 * pointer to where we redirected *from*.
                                 */
 
-    request_rec *main;         /* If this is a sub_request (see request.h) 
+    request_rec *main;         /* If this is a sub_request (see request.h)
                                 * pointer back to the main request.
                                 */
 
index d0a1e245785185dc31129c8417800c5a8b2ce7ab..10dc19503cca38b98a7feade62ed1e44b643eb6c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -181,7 +181,7 @@ nsafs_decode64(char *buf)
 
 
 /*
- * Interface for pioctls - used for unlogging 
+ * Interface for pioctls - used for unlogging
  */
 #include "afs/venus.h"
 int
index dce94f75f0e03a8f912865105f4d553b090c555d..f52532f8af7a6aef2a41d28cb40b916c2d0855ce 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1263f48ea7acfde84ca44dff229f9158ae17ca38..5c09b62d551ef94a2df1dacff12449b5c6ed4f57 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 5843242e027df8a7f5fe1f64f33f3c183a9edd81..c8db04f5b71918f648f1830a2a6af8451c7517f0 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
 /*
  * Implements the weblog binary which links with the AFS libraries and acts
  * as the server for authenticating users for apache access to AFS. Code
- * structure is based on klog.c. The communication with clients is done 
+ * structure is based on klog.c. The communication with clients is done
  * via pipes whose file descriptors are passed as command line arguments
- * thus making it necessary for a common parent to start this process and 
- * the processes that will communicate with it for them to inherit the 
+ * thus making it necessary for a common parent to start this process and
+ * the processes that will communicate with it for them to inherit the
  * pipes. Also passed as a command line argument is a Silent flag (like klog)
  * and a cache expiration flag which allows cache expiration times for
  * tokens to be set for testing purposes
@@ -73,8 +73,8 @@ static char **zero_argv;
 static int readPipe;
 static int writePipe;
 
-/* 
- * now I know why this was necessary! - it's a hokie thing - 
+/*
+ * now I know why this was necessary! - it's a hokie thing -
  * the call to ka_UserAuthenticateGeneral doesn't compile otherwise
  */
 int
@@ -91,8 +91,8 @@ main(int argc, char **argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
@@ -105,9 +105,9 @@ main(int argc, char **argv)
     sigaction(SIGSEGV, &nsa, NULL);
 #endif
 
-/* 
+/*
  * we ignore SIGPIPE so that EPIPE is returned if there is no one reading
- * data being written to the pipe 
+ * data being written to the pipe
  */
 
 #ifdef AIX
@@ -146,7 +146,7 @@ main(int argc, char **argv)
 
 
 /*
- * send a buffer over the pipe 
+ * send a buffer over the pipe
  */
 static int
 sendToken(int len, void *buf)
@@ -191,13 +191,13 @@ readFromClient(char *buf)
     return n;
 }
 
-/* 
+/*
  * copies the string spereated by the sep into retbuf and returns the position
- * from the beginning of the string that this string ends at so you can call 
- * it againword seperated by the sep character and give that value as th start 
+ * from the beginning of the string that this string ends at so you can call
+ * it againword seperated by the sep character and give that value as th start
  * parameter - used to parse incoming buffer from clients over the pipe
  */
-/* 
+/*
  * NOTE - the space seperated credentials failed for passwds with spaces, thus
  * we use newline for seperators instead
  */
@@ -223,7 +223,7 @@ getNullSepWord(char *buf, char sep, char *retBuf, int start)
 }
 
 
-/* 
+/*
  * parses the NEWLINE seperated buffer giving the username, passwd and cell
  * coming over the pipe from the clients and sets the variables accordingly
  */
@@ -352,8 +352,8 @@ CommandProc(struct cmd_syndesc *as, void *arock)
      */
     token_cache_init();
 
-    /* 
-     * discard any tokens held for this PAG - 
+    /*
+     * discard any tokens held for this PAG -
      * should we create a seperate PAG for weblog first? makeNewPAG does that
      */
 #ifdef DEBUG
index 07cc402c495e134a9778465eae6272bc25a80e57..c78e120535b8dc838a4f5e8b776da92bebbb321a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index d3bb44c3d0ec74a3438cc48b939ec82fbf075549..bade270adc75f87df8ad337fdff7ef530ba73bc2 100644 (file)
@@ -1,37 +1,37 @@
-/* 
+/*
  * $Id$
  *
  * Copyright 1990,1991 by the Massachusetts Institute of Technology
  * For distribution and copying rights, see the file "mit-copyright.h"
  */
 /*
- * Copyright (c) 2005, 2006                                     
- * The Linux Box Corporation                                    
- * ALL RIGHTS RESERVED                                          
- *                                                              
- * Permission is granted to use, copy, create derivative works  
- * and redistribute this software and such derivative works     
- * for any purpose, so long as the name of the Linux Box        
- * Corporation is not used in any advertising or publicity      
- * pertaining to the use or distribution of this software       
- * without specific, written prior authorization.  If the       
- * above copyright notice or any other identification of the    
- * Linux Box Corporation is included in any copy of any         
- * portion of this software, then the disclaimer below must     
- * also be included.                                            
- *                                                              
- * This software is provided as is, without representation      
- * from the Linux Box Corporation as to its fitness for any     
- * purpose, and without warranty by the Linux Box Corporation   
- * of any kind, either express or implied, including            
- * without limitation the implied warranties of                 
- * merchantability and fitness for a particular purpose.  The   
- * regents of the Linux Box Corporation shall not be liable     
- * for any damages, including special, indirect, incidental, or 
- * consequential damages, with respect to any claim arising     
- * out of or in connection with the use of the software, even   
- * if it has been or is hereafter advised of the possibility of 
- * such damages.                                                
+ * Copyright (c) 2005, 2006
+ * The Linux Box Corporation
+ * ALL RIGHTS RESERVED
+ *
+ * Permission is granted to use, copy, create derivative works
+ * and redistribute this software and such derivative works
+ * for any purpose, so long as the name of the Linux Box
+ * Corporation is not used in any advertising or publicity
+ * pertaining to the use or distribution of this software
+ * without specific, written prior authorization.  If the
+ * above copyright notice or any other identification of the
+ * Linux Box Corporation is included in any copy of any
+ * portion of this software, then the disclaimer below must
+ * also be included.
+ *
+ * This software is provided as is, without representation
+ * from the Linux Box Corporation as to its fitness for any
+ * purpose, and without warranty by the Linux Box Corporation
+ * of any kind, either express or implied, including
+ * without limitation the implied warranties of
+ * merchantability and fitness for a particular purpose.  The
+ * regents of the Linux Box Corporation shall not be liable
+ * for any damages, including special, indirect, incidental, or
+ * consequential damages, with respect to any claim arising
+ * out of or in connection with the use of the software, even
+ * if it has been or is hereafter advised of the possibility of
+ * such damages.
  */
 
 #include <afsconfig.h>
@@ -188,7 +188,7 @@ static int get_user_realm(krb5_context, char **);
 #error "Must have either krb5_princ_size or krb5_principal_get_comp_string"
 #endif
 
-#if !defined(HAVE_KRB5_ENCRYPT_TKT_PART) && defined(HAVE_ENCODE_KRB5_ENC_TKT_PART) && defined(HAVE_KRB5_C_ENCRYPT) 
+#if !defined(HAVE_KRB5_ENCRYPT_TKT_PART) && defined(HAVE_ENCODE_KRB5_ENC_TKT_PART) && defined(HAVE_KRB5_C_ENCRYPT)
 extern krb5_error_code encode_krb5_enc_tkt_part (const krb5_enc_tkt_part *rep,
                                                 krb5_data **code);
 
@@ -200,7 +200,7 @@ krb5_encrypt_tkt_part(krb5_context context,
     krb5_data *data = 0;
     int code;
     size_t enclen;
-    
+
     if ((code = encode_krb5_enc_tkt_part(ticket->enc_part2, &data)))
        goto Done;
     if ((code = krb5_c_encrypt_length(context, key->enctype,
@@ -369,7 +369,7 @@ copy_cellinfo(cellinfo_t *cellinfo)
 
     if ((new_cellinfo = (cellinfo_t *)malloc(sizeof(cellinfo_t))))
        memcpy(new_cellinfo, cellinfo, sizeof(cellinfo_t));
-    
+
     return ((char *)new_cellinfo);
 }
 
@@ -390,7 +390,7 @@ get_cellconfig(char *cell, struct afsconf_cell *cellconfig, char **local_cell)
     }
 
     if (!(configdir = afsconf_Open(AFSDIR_CLIENT_ETC_DIRPATH))) {
-       fprintf(stderr, 
+       fprintf(stderr,
                "%s: can't get afs configuration (afsconf_Open(%s))\n",
                progname, AFSDIR_CLIENT_ETC_DIRPATH);
        exit(AKLOG_AFS);
@@ -946,7 +946,7 @@ tokens_equal(struct ktc_token *tokenA, struct ktc_token *tokenB) {
            !memcmp(tokenA->ticket, tokenB->ticket, tokenA->ticketLen));
 }
 
-/* 
+/*
  * Log to a cell.  If the cell has already been logged to, return without
  * doing anything.  Otherwise, log to it and mark that it has been logged
  * to.
@@ -986,14 +986,14 @@ auth_to_cell(krb5_context context, char *cell, char *realm, char **linkedcell)
        goto out;
     }
 
-    /* 
+    /*
      * Record that we have attempted to log to this cell.  We do this
      * before we try rather than after so that we will not try
      * and fail repeatedly for one cell.
      */
     ll_string(&authedcells, ll_s_add, cellconf.name);
 
-    /* 
+    /*
      * Record this cell in the list of zephyr subscriptions.  We may
      * want zephyr subscriptions even if authentication fails.
      * If this is done after we attempt to get tokens, aklog -zsubs
@@ -1001,13 +1001,13 @@ auth_to_cell(krb5_context context, char *cell, char *realm, char **linkedcell)
      * are in -noauth mode.
      */
     if (ll_string(&zsublist, ll_s_add, cellconf.name) == LL_FAILURE) {
-       fprintf(stderr, 
+       fprintf(stderr,
                "%s: failure adding cell %s to zephyr subscriptions list.\n",
                progname, cellconf.name);
        exit(AKLOG_MISC);
     }
     if (ll_string(&zsublist, ll_s_add, local_cell) == LL_FAILURE) {
-       fprintf(stderr, 
+       fprintf(stderr,
                "%s: failure adding cell %s to zephyr subscriptions list.\n",
                progname, local_cell);
        exit(AKLOG_MISC);
@@ -1049,7 +1049,7 @@ auth_to_cell(krb5_context context, char *cell, char *realm, char **linkedcell)
                afs_dprintf("Error %d\n", status);
            else
                afs_dprintf("Id %d\n", (int) viceId);
-           
+
 
            /*
             * This code is taken from cklog -- it lets people
@@ -1120,7 +1120,7 @@ auth_to_cell(krb5_context context, char *cell, char *realm, char **linkedcell)
 
 #ifndef AFS_AIX51_ENV
        /* on AIX 4.1.4 with AFS 3.4a+ if a write is not done before
-        * this routine, it will not add the token. It is not clear what 
+        * this routine, it will not add the token. It is not clear what
         * is going on here! So we will do the following operation.
         * On AIX 5, it causes the parent program to die, so we won't.
         */
@@ -1167,8 +1167,8 @@ get_afs_mountpoint(char *file, char *mountpoint, int size)
     else {
        last_component = our_file;
        parent_dir = ".";
-    }    
-    
+    }
+
     memset(cellname, 0, sizeof(cellname));
 
     vio.in = last_component;
@@ -1182,7 +1182,7 @@ get_afs_mountpoint(char *file, char *mountpoint, int size)
            vio.in_size = strlen(file) + 1;
            vio.out_size = sizeof(cellname);
            vio.out = cellname;
-           
+
            if (!pioctl(file, VIOC_FILE_CELL_NAME, &vio, 1)) {
                strcat(cellname, VOLMARKERSTRING);
                strcat(cellname, mountpoint + 1);
@@ -1196,8 +1196,8 @@ get_afs_mountpoint(char *file, char *mountpoint, int size)
        return(FALSE);
 }
 
-/* 
- * This routine each time it is called returns the next directory 
+/*
+ * This routine each time it is called returns the next directory
  * down a pathname.  It resolves all symbolic links.  The first time
  * it is called, it should be called with the name of the path
  * to be descended.  After that, it should be called with the arguemnt
@@ -1217,9 +1217,9 @@ next_path(char *origpath)
     static char *elast_comp;   /* End of last component */
     char *t;
     int len;
-    
+
     static int symlinkcount = 0; /* We can't exceed MAXSYMLINKS */
-    
+
     /* If we are given something for origpath, we are initializing only. */
     if (origpath) {
        memset(path, 0, sizeof(path));
@@ -1231,7 +1231,7 @@ next_path(char *origpath)
     }
 
     /* We were not given origpath; find then next path to check */
-    
+
     /* If we've gotten all the way through already, return NULL */
     if (last_comp == NULL)
        return(NULL);
@@ -1239,11 +1239,11 @@ next_path(char *origpath)
     do {
        while (*last_comp == DIR)
            strncat(pathtocheck, last_comp++, 1);
-       len = (elast_comp = strchr(last_comp, DIR)) 
+       len = (elast_comp = strchr(last_comp, DIR))
            ? elast_comp - last_comp : strlen(last_comp);
        strncat(pathtocheck, last_comp, len);
        memset(linkbuf, 0, sizeof(linkbuf));
-       if ((link = (readlink(pathtocheck, linkbuf, 
+       if ((link = (readlink(pathtocheck, linkbuf,
                                    sizeof(linkbuf)) > 0))) {
            if (++symlinkcount > MAXSYMLINKS) {
                fprintf(stderr, "%s: %s\n", progname, strerror(ELOOP));
@@ -1253,8 +1253,8 @@ next_path(char *origpath)
            if (elast_comp)
                strcpy(tmpbuf, elast_comp);
            if (linkbuf[0] == DIR) {
-               /* 
-                * If this is a symbolic link to an absolute path, 
+               /*
+                * If this is a symbolic link to an absolute path,
                 * replace what we have by the absolute path.
                 */
                memset(path, 0, strlen(path));
@@ -1265,8 +1265,8 @@ next_path(char *origpath)
                memset(pathtocheck, 0, sizeof(pathtocheck));
            }
            else {
-               /* 
-                * If this is a symbolic link to a relative path, 
+               /*
+                * If this is a symbolic link to a relative path,
                 * replace only the last component with the link name.
                 */
                strncpy(last_comp, linkbuf, strlen(linkbuf) + 1);
@@ -1300,7 +1300,7 @@ add_hosts(char *file)
     int i;
     struct hostent *hp;
     struct in_addr in;
-    
+
     memset(outbuf, 0, sizeof(outbuf));
 
     vio.out_size = sizeof(outbuf);
@@ -1322,7 +1322,7 @@ add_hosts(char *file)
         * If it is replicated on many servers, then none are included.
         * This is not perfect, but the result is that people don't
         * get subscribed to a lot of instances of FILSRV that they
-        * probably won't need which reduces the instances of 
+        * probably won't need which reduces the instances of
         * people getting messages that don't apply to them.
         */
 #ifndef ALLHOSTS
@@ -1344,7 +1344,7 @@ add_hosts(char *file)
 }
 
 /*
- * This routine descends through a path to a directory, logging to 
+ * This routine descends through a path to a directory, logging to
  * every cell it encounters along the way.
  */
 static int
@@ -1383,9 +1383,9 @@ auth_to_path(krb5_context context, char *path)
     while ((nextpath = next_path(NULL))) {
        strcpy(pathtocheck, nextpath);
        afs_dprintf("Checking directory %s\n", pathtocheck);
-       /* 
-        * If this is an afs mountpoint, determine what cell from 
-        * the mountpoint name which is of the form 
+       /*
+        * If this is an afs mountpoint, determine what cell from
+        * the mountpoint name which is of the form
         * #cellname:volumename or %cellname:volumename.
         */
        if (get_afs_mountpoint(pathtocheck, mountpoint, sizeof(mountpoint))) {
@@ -1410,9 +1410,9 @@ auth_to_path(krb5_context context, char *path)
            if (isdir(pathtocheck, &isdirectory) < 0) {
                /*
                 * If we've logged and still can't stat, there's
-                * a problem... 
+                * a problem...
                 */
-               fprintf(stderr, "%s: stat(%s): %s\n", progname, 
+               fprintf(stderr, "%s: stat(%s): %s\n", progname,
                        pathtocheck, strerror(errno));
                return(AKLOG_BADPATH);
            }
@@ -1424,7 +1424,7 @@ auth_to_path(krb5_context context, char *path)
            }
        }
     }
-    
+
 
     return(status);
 }
@@ -1533,7 +1533,7 @@ main(int argc, char *argv[])
     for (i = 1; i < argc; i++) {
        if (strcmp(argv[i], "-d") == 0)
            dflag++;
-       else if (strcmp(argv[i], "-noauth") == 0) 
+       else if (strcmp(argv[i], "-noauth") == 0)
            noauth++;
        else if (strcmp(argv[i], "-zsubs") == 0)
            zsubs++;
@@ -1579,7 +1579,7 @@ main(int argc, char *argv[])
            }
            else
                usage();
-           
+
        else if (argv[i][0] == '-')
            usage();
        else if (!pmode && !cmode) {
@@ -1588,7 +1588,7 @@ main(int argc, char *argv[])
                pmode++;
                strcpy(path, argv[i]);
            }
-           else { 
+           else {
                cmode++;
                strcpy(cell, argv[i]);
            }
@@ -1612,7 +1612,7 @@ main(int argc, char *argv[])
                if ((new_cellinfo = copy_cellinfo(&cellinfo)))
                    ll_add_data(cur_node, new_cellinfo);
                else {
-                   fprintf(stderr, 
+                   fprintf(stderr,
                            "%s: failure copying cellinfo.\n", progname);
                    exit(AKLOG_MISC);
                }
@@ -1654,7 +1654,7 @@ main(int argc, char *argv[])
        struct passwd *pwd;
 
        status = auth_to_cell(context, NULL, NULL, &linkedcell);
-       
+
        /* If this cell is linked to a DCE cell, and user requested -linked,
         * get tokens for both. This is very useful when the AFS cell is
         * linked to a DFS cell and this system does not also have DFS.
@@ -1731,9 +1731,9 @@ main(int argc, char *argv[])
            if ((status = auth_to_path(context, cur_node->data)))
                somethingswrong++;
        }
-       
-       /* 
-        * If only one thing was logged to, we'll return the status 
+
+       /*
+        * If only one thing was logged to, we'll return the status
         * of the single call.  Otherwise, we'll return a generic
         * something failed status.
         */
@@ -1742,7 +1742,7 @@ main(int argc, char *argv[])
     }
 
     /* If we are keeping track of zephyr subscriptions, print them. */
-    if (zsubs) 
+    if (zsubs)
        for (cur_node = zsublist.first; cur_node; cur_node = cur_node->next) {
            printf("zsub: %s\n", cur_node->data);
        }
@@ -1764,12 +1764,12 @@ isdir(char *path, unsigned char *val)
     if (lstat(path, &statbuf) < 0)
        return (-1);
     else {
-       if ((statbuf.st_mode & S_IFMT) == S_IFDIR) 
+       if ((statbuf.st_mode & S_IFMT) == S_IFDIR)
            *val = TRUE;
        else
            *val = FALSE;
        return (0);
-    }  
+    }
 }
 
 static krb5_error_code
@@ -1928,7 +1928,7 @@ get_credv5_akimpersonate(krb5_context context,
     enc_tkt_reply->times.starttime = starttime; /* krb524init needs this */
     enc_tkt_reply->times.endtime = endtime;
 #endif  /* USING_HEIMDAL */
-    /* NB:  We will discard address for now--ignoring caddr field               
+    /* NB:  We will discard address for now--ignoring caddr field
        in any case.  MIT branch does what it always did. */
 
     if (paddress && *paddress) {
@@ -2103,7 +2103,7 @@ get_credv5(krb5_context context, char *name, char *inst, char *realm,
 
     afs_dprintf("Getting tickets: %s%s%s@%s\n", name,
            (inst && inst[0]) ? "/" : "", inst ? inst : "", realm);
-    
+
     memset(&increds, 0, sizeof(increds));
 /* ANL - instance may be ptr to a null string. Pass null then */
     if ((r = krb5_build_principal(context, &increds.server,
@@ -2113,7 +2113,7 @@ get_credv5(krb5_context context, char *name, char *inst, char *realm,
                                  (void *) NULL))) {
         return r;
     }
-    
+
 
     if (!_krb425_ccache) {
         r = krb5_cc_default(context, &_krb425_ccache);
@@ -2129,12 +2129,12 @@ get_credv5(krb5_context context, char *name, char *inst, char *realm,
        if (r)
            return r;
     }
-    
+
     increds.client = client_principal;
     increds.times.endtime = 0;
     /* Ask for DES since that is what V4 understands */
     get_creds_enctype((&increds)) = ENCTYPE_DES_CBC_CRC;
-    
+
     if (keytab) {
        int allowed_enctypes[] = {
            ENCTYPE_DES_CBC_CRC, 0
@@ -2150,7 +2150,7 @@ get_credv5(krb5_context context, char *name, char *inst, char *realm,
                                     creds /* out */);
     } else {
        r = krb5_get_credentials(context, 0, _krb425_ccache, &increds, creds);
-    }    
+    }
     return r;
 }
 
index d2970e9439180db4210db4d3a4461088109b0353..3cb7a401489b7faa9d5fff4c74e75a3edc9dedee 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * $Id$
  *
  * Copyright 1990,1991 by the Massachusetts Institute of Technology
@@ -91,7 +91,7 @@ struct afsconf_cell {
     short flags;                    /* useful flags */
     struct sockaddr_in hostAddr[MAXHOSTSPERCELL];
                                    /* IP addresses for cell's servers*/
-    char hostName[MAXHOSTSPERCELL][MAXHOSTCHARS];       
+    char hostName[MAXHOSTSPERCELL][MAXHOSTCHARS];
                                     /* Names for cell's servers */
     char *linkedCell;               /* Linked cell name, if any */
 };
index e538a19658077b74b6c3d3692f557986aee13639..a0e0dd57cf6313ce65426b3d23bfb32212f0e142 100644 (file)
@@ -85,7 +85,7 @@ main(int argc, char *argv[])
        int kvno, keymode = 0;
 
        if (argc != 5) {
-           if (argc == 4) 
+           if (argc == 4)
                keymode = 1;
            else {
                fprintf(stderr, "%s add: usage is '%s add <kvno> <keyfile> "
@@ -125,17 +125,17 @@ main(int argc, char *argv[])
                afs_com_err(argv[0], retval, "while extracting AFS service key");
                exit(1);
            }
-           
+
 #ifdef USING_HEIMDAL
 #define deref_key_length(key)                  \
            key->keyvalue.length
-           
+
 #define deref_key_contents(key)                        \
            key->keyvalue.data
 #else
 #define deref_key_length(key)                  \
            key->length
-           
+
 #define deref_key_contents(key)                        \
            key->contents
 #endif
@@ -174,7 +174,7 @@ main(int argc, char *argv[])
     else if (strcmp(argv[1], "list") == 0) {
        struct afsconf_keys tkeys;
        int i, j;
-       
+
        code = afsconf_GetKeys(tdir, &tkeys);
        if (code) {
            fprintf(stderr, "%s: failed to get keys, code %ld\n", argv[0], code);
index f18561951c4947e41d702cdef7898d94119ada9b..02cdeaa9f0ec74af8558c7a0de06ccd0e20b0e67 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -92,8 +92,8 @@ main(int argc, char *argv[])
     afs_int32 code;
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
@@ -429,7 +429,7 @@ CommandProc(struct cmd_syndesc *as, void *arock)
        KLOGEXIT(code);
     }
     initialize_U_error_table();
-    /*initialize_krb5_error_table();*/ 
+    /*initialize_krb5_error_table();*/
     initialize_RXK_error_table();
     initialize_KTC_error_table();
     initialize_ACFG_error_table();
@@ -591,7 +591,7 @@ CommandProc(struct cmd_syndesc *as, void *arock)
     snprintf (service_temp, sizeof service_temp, "afs/%s", cellconfig->name);
     if (writeTicketFile)
        service = 0;
-    else 
+    else
        service = service_temp;
 
     klog_arg->pp = &pass;
index 1ef5ceb8bdb37f15081d707387feb37fb2fc0764..f256803a89bbb2fa1e302fd8a0ca55baacf2bc29 100644 (file)
@@ -2,7 +2,7 @@
  * This file replaces some of the routines in the Kerberos utilities.
  * It is based on the Kerberos library modules:
  *     send_to_kdc.c
- * 
+ *
  * Copyright 1987, 1988, 1992 by the Massachusetts Institute of Technology.
  *
  * For copying and distribution information, please see the file
@@ -46,13 +46,13 @@ char *afs_realm_of_cell(krb5_context context, struct afsconf_cell *cellconfig, i
        else
            strcpy(krbrlm, cellconfig->name);
        for (p=krbrlm; *p; p++) {
-           if (islower(*p)) 
+           if (islower(*p))
                *p = toupper(*p);
        }
     } else {
        if ((retval = krb5_get_host_realm(context,
                                         cellconfig->hostName[0], &hrealms)))
-           return 0; 
+           return 0;
        if(!hrealms[0]) return 0;
        strcpy(krbrlm, hrealms[0]);
 
index 8bd9c50516cbae1557cb5dce2db9eb7940cf13bc..7fd5a79e32cbee2a96d1a4716b235311c29531ea 100644 (file)
@@ -1,8 +1,8 @@
-/* 
+/*
  * $Id$
- * 
+ *
  * This file contains general linked list routines.
- * 
+ *
  * Copyright 1990,1991 by the Massachusetts Institute of Technology
  * For distribution and copying rights, see the file "mit-copyright.h"
  */
@@ -27,7 +27,7 @@
 #endif
 
 void ll_init(linked_list *list)
-  /* 
+  /*
    * Requires:
    *   List must point to a linked list structure.  It is not acceptable
    *   to pass a null pointer to this routine.
@@ -51,16 +51,16 @@ ll_node *ll_add_node(linked_list *list, ll_end which_end)
   /*
    * Modifies:
    *   list
-   * Effects: 
+   * Effects:
    *   Adds a node to one end of the list (as specified by which_end)
    *   and returns a pointer to the node added.  which_end is of type
-   *   ll_end and should be either ll_head or ll_tail as specified in 
-   *   list.h.  If there is not enough memory to allocate a node, 
+   *   ll_end and should be either ll_head or ll_tail as specified in
+   *   list.h.  If there is not enough memory to allocate a node,
    *   the program returns NULL.
    */
 {
     ll_node *node = NULL;
-    
+
     if ((node = (ll_node *)calloc(1, sizeof(ll_node))) != NULL) {
        if (list->nelements == 0) {
            list->first = node;
@@ -88,17 +88,17 @@ ll_node *ll_add_node(linked_list *list, ll_end which_end)
            list->nelements++;
        }
     }
-       
+
     return(node);
 }
 
 
 int ll_delete_node(linked_list *list, ll_node *node)
-  /* 
-   * Modifies: 
+  /*
+   * Modifies:
    *   list
    * Effects:
-   *   If node is in list, deletes node and returns LL_SUCCESS.  
+   *   If node is in list, deletes node and returns LL_SUCCESS.
    *   Otherwise, returns LL_FAILURE.  If node contains other data,
    *   it is the responsibility of the caller to free it.  Also, since
    *   this routine frees node, after the routine is called, "node"
@@ -151,7 +151,7 @@ int ll_string(linked_list *list, ll_s_action action, char *string)
     switch(action) {
       case ll_s_check:
        /* Scan the list until we find the string in question */
-       for (cur_node = list->first; cur_node && (status == FALSE); 
+       for (cur_node = list->first; cur_node && (status == FALSE);
             cur_node = cur_node->next)
            status = (strcmp(string, cur_node->data) == 0);
        break;
@@ -160,12 +160,12 @@ int ll_string(linked_list *list, ll_s_action action, char *string)
        if (!ll_string(list, ll_s_check, string)) {
            if ((cur_node = ll_add_node(list, ll_tail))) {
                char *new_string;
-               if ((new_string = (char *)calloc(strlen(string) + 1, 
+               if ((new_string = (char *)calloc(strlen(string) + 1,
                                                sizeof(char)))) {
                    strcpy(new_string, string);
                    ll_add_data(cur_node, new_string);
                }
-               else 
+               else
                    status = LL_FAILURE;
            }
            else
index 91369615be1bba5862cd382fd6525fe4737a4b47..fb5de4925b6f5804d589c640cbe90d08467ad490 100644 (file)
@@ -1,8 +1,8 @@
-/* 
+/*
  * $Id$
  *
  * This is the header file for a general list linked package.
- * 
+ *
  * Copyright 1990,1991 by the Massachusetts Institute of Technology
  * For distribution and copying rights, see the file "mit-copyright.h"
  */
index b2b968440e6039c11dcf7058b8a169c6a1c8a7a4..6110edfde184210b5e6a66a981dde6e1fb152ffa 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef _AKLOG_SKIPWRAP_H
 #define _AKLOG_SKIPWRAP_H
 
-int afs_krb5_skip_ticket_wrapper(char *tix, size_t tixlen, char **enc, 
+int afs_krb5_skip_ticket_wrapper(char *tix, size_t tixlen, char **enc,
                                 size_t *enclen);
 
 #endif
index 24d217b1714ce8073cc10751daa9312ad720c4e8..3b42cde3f7ca05fd9f5ed0d48a50f4119f34d00d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
 #include <afs/afsutil.h>
 
 /* C99 requires va_copy.  Older versions of GCC provide __va_copy.  Per t
-   Autoconf manual, memcpy is a generally portable fallback. */          
-#ifndef va_copy              
+   Autoconf manual, memcpy is a generally portable fallback. */
+#ifndef va_copy
 # ifdef __va_copy
-#  define va_copy(d, s)         __va_copy((d), (s))             
+#  define va_copy(d, s)         __va_copy((d), (s))
 # else
-#  define va_copy(d, s)         memcpy(&(d), &(s), sizeof(va_list)) 
+#  define va_copy(d, s)         memcpy(&(d), &(s), sizeof(va_list))
 # endif
-#endif      
+#endif
 
 extern struct osi_audit_ops audit_file_ops;
 #ifdef HAVE_SYS_IPC_H
@@ -182,7 +182,7 @@ printbuf(int rec, char *audEvent, char *afsName, afs_int32 hostId,
     time_t currenttime;
     char *timeStamp;
     char tbuffer[26];
-    
+
     /* Don't print the timestamp or thread id if we recursed */
     if (rec == 0) {
        currenttime = time(0);
@@ -194,7 +194,7 @@ printbuf(int rec, char *audEvent, char *afsName, afs_int32 hostId,
        if (num > -1)
            audit_ops->append_msg("[%d] ", num);
     }
-    
+
     audit_ops->append_msg("EVENT %s CODE %d ", audEvent, errCode);
 
     if (afsName) {
@@ -260,13 +260,13 @@ printbuf(int rec, char *audEvent, char *afsName, afs_int32 hostId,
 
            if (vaFids) {
                 unsigned int i;
-                
+
                 vaFid = vaFids->AFSCBFids_val;
-                
+
                 if (vaFid) {
                     audit_ops->append_msg("FIDS %u FID %u:%u:%u ", vaFids->AFSCBFids_len, vaFid->Volume,
                              vaFid->Vnode, vaFid->Unique);
-                    for ( i = 1; i < vaFids->AFSCBFids_len; i++, vaFid++ ) 
+                    for ( i = 1; i < vaFids->AFSCBFids_len; i++, vaFid++ )
                         audit_ops->append_msg("FID %u:%u:%u ", vaFid->Volume,
                                 vaFid->Vnode, vaFid->Unique);
                 } else
@@ -326,7 +326,7 @@ osi_audit_internal(char *audEvent,  /* Event name (15 chars or less) */
 
 #ifdef AFS_PTHREAD_ENV
     /* i'm pretty sure all the server apps now call osi_audit_init(),
-     * but to be extra careful we'll leave this assert in here for a 
+     * but to be extra careful we'll leave this assert in here for a
      * while to make sure */
     assert(audit_lock_initialized);
 #endif /* AFS_PTHREAD_ENV */
@@ -409,7 +409,7 @@ osi_audit(char *audEvent,   /* Event name (15 chars or less) */
 }
 
 /* ************************************************************************** */
-/* Given a RPC call structure, this routine extracts the name and host id from the 
+/* Given a RPC call structure, this routine extracts the name and host id from the
  * call and includes it within the audit information.
  * ************************************************************************** */
 int
@@ -484,7 +484,7 @@ osi_auditU(struct rx_call *call, char *audEvent, int errCode, ...)
                                break;
                            }
                        }
-                       /* If yes, then make sure that the name is not present in 
+                       /* If yes, then make sure that the name is not present in
                         * an exclusion list */
                        if (lrealm_match) {
                            char uname[256];
@@ -497,7 +497,7 @@ osi_auditU(struct rx_call *call, char *audEvent, int errCode, ...)
                                lrealm_match = 0;
                        }
 
-                       if (!lrealm_match) {    
+                       if (!lrealm_match) {
                             if (strlen(vname) + 1 + clen >= sizeof(vname))
                                 goto done;
                             strcat(vname, "@");
@@ -531,7 +531,7 @@ osi_auditU(struct rx_call *call, char *audEvent, int errCode, ...)
 
 /* ************************************************************************** */
 /* Determines whether auditing is on or off by looking at the Audit file.
- * If the string AFS_AUDIT_AllEvents is defined in the file, then auditing will be 
+ * If the string AFS_AUDIT_AllEvents is defined in the file, then auditing will be
  * enabled.
  * ************************************************************************** */
 
index 20c6f0b5b7ee8ff872bded934bae8d7a19ff005a..0014f86f09f3fa23d1afa07f60060dcd9fed01b3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 92baf050104f32b488be8d66dbf1419f1720ba83..031d49302bd246ee14b8f9b1bbaec2440c5835a5 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 2000, International Business Machines Corporation and others.
 # All Rights Reserved.
-# 
+#
 # This software has been released under the terms of the IBM Public
 # License.  For details, see the LICENSE file in the top-level source
 # directory or online at http://www.openafs.org/dl/license10.html
index a1b40feae0f787bc471a55c2505156eda1728bd0..9e429e985f34b12eff78fcc46bf92348b09f50ad 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a10859ce874433c3da5cdb9fbc953dc9f3f6c674..55f0d6a6fc5ce8ec5b27b5861e451638e4517b71 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -46,7 +46,7 @@ QuickAuth(struct rx_securityClass **astr, afs_int32 *aindex)
 /* Return an appropriate security class and index */
 afs_int32
 afsconf_ServerAuth(void *arock,
-                  struct rx_securityClass **astr, 
+                  struct rx_securityClass **astr,
                   afs_int32 *aindex)
 {
     struct afsconf_dir *adir = (struct afsconf_dir *) arock;
@@ -68,9 +68,9 @@ afsconf_ServerAuth(void *arock,
 #endif /* !defined(UKERNEL) */
 
 static afs_int32
-GenericAuth(struct afsconf_dir *adir, 
-           struct rx_securityClass **astr, 
-           afs_int32 *aindex, 
+GenericAuth(struct afsconf_dir *adir,
+           struct rx_securityClass **astr,
+           afs_int32 *aindex,
            rxkad_level enclevel)
 {
     char tbuffer[256];
@@ -139,8 +139,8 @@ afsconf_ClientAuth(void *arock, struct rx_securityClass ** astr,
  * tells rxkad to encrypt the data, too.
  */
 afs_int32
-afsconf_ClientAuthSecure(void *arock, 
-                        struct rx_securityClass **astr, 
+afsconf_ClientAuthSecure(void *arock,
+                        struct rx_securityClass **astr,
                         afs_int32 *aindex)
 {
     struct afsconf_dir *adir = (struct afsconf_dir *) arock;
index f2f5b5765d1ff7a2f6a917a3fd57789a013e4e6a..011e6bce4a753e284696e4848fe1fb8182f31ff6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -119,7 +119,7 @@ static int SaveKeys(struct afsconf_dir *adir);
 /* Solaris through 10 in 32 bit mode will return EMFILE if fopen can't
    get an fd <= 255. We allow the fileserver to claim more fds than that.
    This has always been a problem since pr_Initialize would have the same
-   issue, but hpr_Initialize makes it more likely that we would see this. 
+   issue, but hpr_Initialize makes it more likely that we would see this.
    Work around it. This is not generic. It's coded with the needs of
    afsconf_* in mind only.
 
@@ -142,11 +142,11 @@ afsconf_fopen(const char *fname, const char *fmode)
 {
     int fd;
     afsconf_FILE *iop;
-    
+
     if ((fd = open(fname, O_RDONLY)) == -1) {
        return NULL;
     }
-    
+
     iop = malloc(sizeof(struct afsconf_iobuffer));
     if (iop == NULL) {
        (void) close(fd);
@@ -182,14 +182,14 @@ static char *
 afsconf_fgets(char *s, int n, afsconf_FILE *iop)
 {
     char *p;
-    
+
     p = s;
     for (;;) {
        char c;
-       
+
        if (iop->ptr == iop->endptr) {
            ssize_t len;
-           
+
            if ((len = read(iop->_file, (void *)iop->buffer, BUFFER)) == -1) {
                return NULL;
            }
@@ -233,7 +233,7 @@ afsconf_FindService(const char *aname)
     if (aname == NULL || aname[0] == '\0')
        return -1;
 
-#if     defined(AFS_OSF_ENV) 
+#if     defined(AFS_OSF_ENV)
     ts = getservbyname(aname, "");
 #else
     ts = (struct servent *) getservbyname(aname, NULL);
@@ -513,7 +513,7 @@ GetCellUnix(struct afsconf_dir *adir)
     char tbuffer[256];
     char *start, *p;
     afsconf_FILE *fp;
-    
+
     strcompose(tbuffer, 256, adir->name, "/", AFSDIR_THISCELL_FILE, NULL);
     fp = fopen(tbuffer, "r");
     if (fp == 0) {
@@ -553,7 +553,7 @@ GetCellNT(struct afsconf_dir *adir)
 }
 
 /* The following procedures and structs are used on Windows only
- * to enumerate the Cell information distributed within the 
+ * to enumerate the Cell information distributed within the
  * Windows registry.  (See src/WINNT/afsd/cm_config.c)
  */
 typedef struct _cm_enumCellRegistry {
@@ -562,7 +562,7 @@ typedef struct _cm_enumCellRegistry {
 } cm_enumCellRegistry_t;
 
 static long
-cm_serverConfigProc(void *rockp, struct sockaddr_in *addrp, 
+cm_serverConfigProc(void *rockp, struct sockaddr_in *addrp,
                     char *hostNamep, unsigned short rank)
 {
     struct afsconf_cell *cellInfop = (struct afsconf_cell *)rockp;
@@ -613,7 +613,7 @@ cm_enumCellRegistryProc(void *rockp, char * cellNamep)
         free(newEntry);
     }
     return code;
-}       
+}
 #endif /* AFS_NT40_ENV */
 
 
@@ -696,15 +696,15 @@ afsconf_OpenInternal(struct afsconf_dir *adir, char *cell,
        return -1;
     }
 
-    /* The CellServDB file is now open.  
-     * The following code parses the contents of the 
+    /* The CellServDB file is now open.
+     * The following code parses the contents of the
      * file and creates a list with the first cell entry
      * in the CellServDB file at the end of the list.
-     * 
+     *
      * No checking is performed for duplicates.
      * The side effects of this process are that duplicate
      * entries appended to the end of the CellServDB file
-     * take precedence and are found in a shorter period 
+     * take precedence and are found in a shorter period
      * of time.
      */
 
@@ -748,13 +748,13 @@ afsconf_OpenInternal(struct afsconf_dir *adir, char *cell,
            if (i < MAXHOSTSPERCELL) {
                if (cell && !strcmp(cell, curEntry->cellInfo.name))
                    code =
-                       ParseHostLine(tbuffer, 
+                       ParseHostLine(tbuffer,
                                      &curEntry->cellInfo.hostAddr[i],
-                                     curEntry->cellInfo.hostName[i], 
+                                     curEntry->cellInfo.hostName[i],
                                      &clones[i]);
                else
                    code =
-                       ParseHostLine(tbuffer, 
+                       ParseHostLine(tbuffer,
                                      &curEntry->cellInfo.hostAddr[i],
                                      curEntry->cellInfo.hostName[i], 0);
 
@@ -777,7 +777,7 @@ afsconf_OpenInternal(struct afsconf_dir *adir, char *cell,
                curEntry->cellInfo.numServers = ++i;
            } else {
                fprintf(stderr,
-                       "Too many hosts for cell %s in configuration file %s\n", 
+                       "Too many hosts for cell %s in configuration file %s\n",
                        curEntry->cellInfo.name, tbuf1);
            }
        }
@@ -791,10 +791,10 @@ afsconf_OpenInternal(struct afsconf_dir *adir, char *cell,
     }
 
 #ifdef AFS_NT40_ENV
-     /* 
+     /*
       * Windows maintains a CellServDB list in the Registry
       * that supercedes the contents of the CellServDB file.
-      * Prepending these entries to the head of the list 
+      * Prepending these entries to the head of the list
       * is sufficient to enforce the precedence.
       */
      cm_EnumerateCellRegistry( enumCellRegistry.client,
@@ -856,7 +856,7 @@ afsconf_OpenInternal(struct afsconf_dir *adir, char *cell,
 /* parse a line of the form
  *"128.2.1.3   #hostname" or
  *"[128.2.1.3]  #hostname" for clones
- * into the appropriate pieces.  
+ * into the appropriate pieces.
  */
 static int
 ParseHostLine(char *aline, struct sockaddr_in *addr, char *aname,
@@ -1399,12 +1399,12 @@ afsconf_GetCellInfo(struct afsconf_dir *adir, char *acellName, char *aservice,
        }
        acellInfo->timeout = 0;
 
-        /* 
+        /*
          * Until we figure out how to separate out ubik server
          * queries from other server queries, only perform gethostbyname()
          * lookup on the specified hostnames for the client CellServDB files.
          */
-        if (IsClientConfigDirectory(adir->name) && 
+        if (IsClientConfigDirectory(adir->name) &&
             !(acellInfo->flags & AFSCONF_CELL_FLAG_DNS_QUERIED)) {
             int j;
             short numServers=0;                                        /*Num active servers for the cell */
@@ -1474,7 +1474,7 @@ afsconf_GetLocalCell(struct afsconf_dir *adir, char *aname,
 
     LOCK_GLOBAL_MUTEX;
     /*
-     * If a cell switch was specified in a command, then it should override the 
+     * If a cell switch was specified in a command, then it should override the
      * AFSCELL variable.  If a cell was specified, then the afsconf_SawCell flag
      * is set and the cell name in the adir structure is used.
      * Read the AFSCELL var each time: in case it changes (unsetenv AFSCELL).
@@ -1629,7 +1629,7 @@ afsconf_GetKeys(struct afsconf_dir *adir, struct afsconf_keys *astr)
 
 /* get latest key */
 afs_int32
-afsconf_GetLatestKey(struct afsconf_dir * adir, afs_int32 * avno, 
+afsconf_GetLatestKey(struct afsconf_dir * adir, afs_int32 * avno,
                     struct ktc_encryptionKey *akey)
 {
     int i;
index 4644c650a10df9d1d4b4e5883d4b5ce4be16fe98..67750ee2f9110c669e775493e5160f9fc531cab8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -116,7 +116,7 @@ extern int afsconf_GetKeys(struct afsconf_dir *adir,
                           struct afsconf_keys *astr);
 struct ktc_encryptionKey;
 extern afs_int32 afsconf_GetLatestKey(struct afsconf_dir *adir,
-                                     afs_int32 * avno, 
+                                     afs_int32 * avno,
                                      struct ktc_encryptionKey *akey);
 extern int afsconf_GetKey(void *rock, int avno,
                          struct ktc_encryptionKey *akey);
@@ -126,7 +126,7 @@ extern int afsconf_DeleteKey(struct afsconf_dir *adir, afs_int32 akvno);
 
 /* authcon.c */
 struct rx_securityClass;
-extern afs_int32 afsconf_ServerAuth(void *arock, 
+extern afs_int32 afsconf_ServerAuth(void *arock,
                                    struct rx_securityClass **,
                                    afs_int32 *);
 extern afs_int32 afsconf_ClientAuth(void *arock,
@@ -168,9 +168,9 @@ extern void afsconf_BuildServerSecurityObjects(struct afsconf_dir *,
                                               afs_int32 *);
 
 /* writeconfig.c */
-int afsconf_SetExtendedCellInfo(struct afsconf_dir *adir, const char *apath, 
+int afsconf_SetExtendedCellInfo(struct afsconf_dir *adir, const char *apath,
                                struct afsconf_cell *acellInfo, char clones[]);
-int afsconf_SetCellInfo(struct afsconf_dir *adir, const char *apath, 
+int afsconf_SetCellInfo(struct afsconf_dir *adir, const char *apath,
                        struct afsconf_cell *acellInfo);
 
 
@@ -181,7 +181,7 @@ extern int afsconf_CheckAuth(void *arock, struct rx_call *acall);
 extern int afsconf_GetNoAuthFlag(struct afsconf_dir *adir);
 extern void afsconf_SetNoAuthFlag(struct afsconf_dir *adir, int aflag);
 extern int afsconf_DeleteUser(struct afsconf_dir *adir, char *auser);
-extern int afsconf_GetNthUser(struct afsconf_dir *adir, afs_int32 an, 
+extern int afsconf_GetNthUser(struct afsconf_dir *adir, afs_int32 an,
                              char *abuffer, afs_int32 abufferLen);
 extern int afsconf_AddUser(struct afsconf_dir *adir, char *aname);
 extern int afsconf_SuperUser(struct afsconf_dir *adir, struct rx_call *acall,
index b5eddd3e393e0cf1d9d68881c63cd5676657ad02..a2399ce855839c9486e5f3cbc4142b27a1f3454b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index f8b52ef1638b0c9c81c331be1017127a029c80e0..5ceae20d773e7c0519a312f519c85784849611dc 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 8d15ec7eb81f68ae1ca3963942cd2155cc0bb245..7f72e0617b0eea3414c40bca56776f541bf2921f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -123,7 +123,7 @@ int afs_tf_init(char *, int);
 int afs_tf_get_pname(char *);
 int afs_tf_get_pinst(char *);
 int afs_tf_get_cred(struct ktc_principal *, struct ktc_token *);
-int afs_tf_save_cred(struct ktc_principal *, struct ktc_token *, 
+int afs_tf_save_cred(struct ktc_principal *, struct ktc_token *,
                     struct ktc_principal *);
 int afs_tf_close(void);
 int afs_tf_create(char *, char *);
@@ -390,7 +390,7 @@ ktc_SetToken(struct ktc_principal *aserver,
  * be set to our identity to the server.
  */
 int
-ktc_GetToken(struct ktc_principal *aserver, struct ktc_token *atoken, 
+ktc_GetToken(struct ktc_principal *aserver, struct ktc_token *atoken,
             int atokenLen, struct ktc_principal *aclient)
 {
     struct ViceIoctl iob;
@@ -890,7 +890,7 @@ ktc_curpag(void)
  *        are invalid (ie. when deciding whether afs_tf_init has been
  *        called.)
  *     c. In tf_close, be sure it gets reinitialized to a negative
- *        number. 
+ *        number.
  */
 static int fd = -1;
 static int curpos;                     /* Position in tfbfr */
@@ -940,7 +940,7 @@ static int tf_read(char *, int);
  * afs_tf_close() closes the ticket file and releases the lock.
  *
  * tf_gets() returns the next null-terminated string.  It's an internal
- * routine used by afs_tf_get_pname(), afs_tf_get_pinst(), and 
+ * routine used by afs_tf_get_pname(), afs_tf_get_pinst(), and
  * afs_tf_get_cred().
  *
  * tf_read() reads a given number of bytes.  It's an internal routine
@@ -950,13 +950,13 @@ static int tf_read(char *, int);
 /*
  * afs_tf_init() should be called before the other ticket file routines.
  * It takes the name of the ticket file to use, "tf_name", and a
- * read/write flag "rw" as arguments. 
+ * read/write flag "rw" as arguments.
  *
  * It tries to open the ticket file, checks the mode, and if everything
  * is okay, locks the file.  If it's opened for reading, the lock is
- * shared.  If it's opened for writing, the lock is exclusive. 
+ * shared.  If it's opened for writing, the lock is exclusive.
  *
- * Returns 0 if all went well, otherwise one of the following: 
+ * Returns 0 if all went well, otherwise one of the following:
  *
  * NO_TKT_FIL   - file wasn't there
  * TKT_FIL_ACC  - file was in wrong mode, etc.
@@ -996,7 +996,7 @@ afs_tf_init(char *tf_name, int rw)
      * If "wflag" is set, open the ticket file in append-writeonly mode
      * and lock the ticket file in exclusive mode.  If unable to lock
      * the file, sleep and try again.  If we fail again, return with the
-     * proper error message. 
+     * proper error message.
      */
 
     curpos = sizeof(tfbfr);
@@ -1024,7 +1024,7 @@ afs_tf_init(char *tf_name, int rw)
     }
     /*
      * Otherwise "wflag" is not set and the ticket file should be opened
-     * for read-only operations and locked for shared access. 
+     * for read-only operations and locked for shared access.
      */
 
     fd = open(tf_name, O_RDONLY, 0600);
@@ -1054,7 +1054,7 @@ afs_tf_init(char *tf_name, int rw)
  * principal's name is filled into the "p" parameter.  If all goes well,
  * 0 is returned.  If afs_tf_init() wasn't called, TKT_FIL_INI is
  * returned.  If the name was null, or EOF was encountered, or the name
- * was longer than MAXKTCNAMELEN, TKT_FIL_FMT is returned. 
+ * was longer than MAXKTCNAMELEN, TKT_FIL_FMT is returned.
  */
 
 int
@@ -1075,7 +1075,7 @@ afs_tf_get_pname(char *p)
  * goes well, 0 is returned.  If afs_tf_init() wasn't called,
  * TKT_FIL_INI is returned.  If EOF was encountered, or the instance
  * was longer than MAXKTCNAMELEN, TKT_FIL_FMT is returned.  Note that the
- * instance may be null. 
+ * instance may be null.
  */
 
 int
@@ -1092,8 +1092,8 @@ afs_tf_get_pinst(char *inst)
 /*
  * afs_tf_get_cred() reads a CREDENTIALS record from a ticket file and fills
  * in the given structure "c".  It should only be called after afs_tf_init(),
- * afs_tf_get_pname(), and afs_tf_get_pinst() have been called. If all goes 
- * well, 0 is returned.  Possible error codes are: 
+ * afs_tf_get_pname(), and afs_tf_get_pinst() have been called. If all goes
+ * well, 0 is returned.  Possible error codes are:
  *
  * TKT_FIL_INI  - afs_tf_init wasn't called first
  * TKT_FIL_FMT  - bad format
@@ -1258,8 +1258,8 @@ tf_read(char *s, int n)
  */
 
 int
-afs_tf_save_cred(struct ktc_principal *aserver, 
-                struct ktc_token *atoken, 
+afs_tf_save_cred(struct ktc_principal *aserver,
+                struct ktc_token *atoken,
                 struct ktc_principal *aclient)
 {
     char realm[MAXKTCREALMLEN + 1];
index 8fe52113fda367052ea5b39f9cb009a9fd432326..15154cb4be1d8ac66aab8520c2d0c2c7b2f18a9e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 510a852e865b8a11e440ca7f2f64c67d4d5c2c2f..e010d503fdde0d544ae01bbce05a8a09561fdc6a 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 2000, International Business Machines Corporation and others.
 # All Rights Reserved.
-# 
+#
 # This software has been released under the terms of the IBM Public
 # License.  For details, see the LICENSE file in the top-level source
 # directory or online at http://www.openafs.org/dl/license10.html
index 61bac99915c97b6a6f67ba7ee7e2be33e2af83b0..610ba9c253020c37b5a7f862d9eb0c9b38dd9fff 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -579,7 +579,7 @@ ktc_GetToken(struct ktc_principal *server, struct ktc_token *token,
 
     /* user name is here */
 
-    /* check that ticket will fit 
+    /* check that ticket will fit
      * this compares the size of the ktc_token allocated by the app
      * which might be smaller than the current definition of MAXKTCTICKETLEN
      */
index fa1fa03b9ed0a013ce2ec5e81297fdeddae1e025..0adc7949d240cc145a0e7b42fc3236eb4f542c06 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 89296f2755da0b8d69876c53679695083a5ec903..e35da8185aae910cb8e1372e0e438adc9adc5abd 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -29,7 +29,7 @@
 #include <errno.h>
 #include <string.h>
 #include <ctype.h>
-    
+
 #include <rx/xdr.h>
 #include <rx/rx.h>
 #include <stdio.h>
@@ -196,7 +196,7 @@ afsconf_DeleteUser(struct afsconf_dir *adir, char *auser)
 
 /* returns nth super user from the UserList file */
 int
-afsconf_GetNthUser(struct afsconf_dir *adir, afs_int32 an, char *abuffer, 
+afsconf_GetNthUser(struct afsconf_dir *adir, afs_int32 an, char *abuffer,
                   afs_int32 abufferLen)
 {
     char tbuffer[256];
@@ -297,11 +297,11 @@ afsconf_AddUser(struct afsconf_dir *adir, char *aname)
 }
 
 /* special CompFindUser routine that builds up a princ and then
-       calls finduser on it. If found, returns char * to user string, 
+       calls finduser on it. If found, returns char * to user string,
        otherwise returns NULL. The resulting string should be immediately
        copied to other storage prior to release of mutex. */
 static char *
-CompFindUser(struct afsconf_dir *adir, char *name, char *sep, char *inst, 
+CompFindUser(struct afsconf_dir *adir, char *name, char *sep, char *inst,
             char *realm)
 {
     static char fullname[MAXKTCNAMELEN + MAXKTCNAMELEN + MAXKTCREALMLEN + 3];
@@ -443,7 +443,7 @@ afsconf_SuperUser(struct afsconf_dir *adir, struct rx_call *acall, char *namep)
            }
        }
 
-       /* If yes, then make sure that the name is not present in 
+       /* If yes, then make sure that the name is not present in
         * an exclusion list */
        if (lrealm_match) {
            if (tinst[0])
index 5d2e0d21a7859ec2ff14c0628bda0ca13486369d..4e43f7fb7077cea0ba68859c2206a1e066e38cd6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -83,7 +83,7 @@ VerifyEntries(struct afsconf_cell *aci)
    */
 
 int
-afsconf_SetCellInfo(struct afsconf_dir *adir, const char *apath, 
+afsconf_SetCellInfo(struct afsconf_dir *adir, const char *apath,
                    struct afsconf_cell *acellInfo)
 {
     afs_int32 code;
@@ -93,8 +93,8 @@ afsconf_SetCellInfo(struct afsconf_dir *adir, const char *apath,
 }
 
 int
-afsconf_SetExtendedCellInfo(struct afsconf_dir *adir, 
-                           const char *apath, 
+afsconf_SetExtendedCellInfo(struct afsconf_dir *adir,
+                           const char *apath,
                            struct afsconf_cell *acellInfo, char clones[])
 {
     afs_int32 code;
index b0b1e088ea286ce10a421537278445f81418a4a0..c2d1fdd4f148e15ef34523b985845e1326b9b610 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -400,7 +400,7 @@ bnode_Create(char *atype, char *ainstance, struct bnode ** abp, char *ap1,
     *abp = tb;
     tb->type = type;
 
-    /* The fs_create above calls bnode_InitBnode() which always sets the 
+    /* The fs_create above calls bnode_InitBnode() which always sets the
      ** fileGoal to BSTAT_NORMAL .... overwrite it with whatever is passed into
      ** this function as a parameter... */
     tb->fileGoal = fileGoal;
@@ -791,7 +791,7 @@ hdl_notifier(struct bnode_proc *tp)
        ec = setsid();
 #elif defined(AFS_DARWIN90_ENV)
        ec = setpgid(0, 0);
-#elif defined(AFS_LINUX20_ENV) || defined(AFS_AIX_ENV)  
+#elif defined(AFS_LINUX20_ENV) || defined(AFS_AIX_ENV)
        ec = setpgrp();
 #else
        ec = setpgrp(0, 0);
index 5942fdcfec6203337549003f38a207135143550d..7959a437014b647540c3e0dcefb43fe385fea60b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -27,7 +27,7 @@ struct bnode_ops {
     int (*delete) ( struct bnode * );
     int (*procexit) ( struct bnode *, struct bnode_proc * );
     int (*getstring) ( struct bnode *, char *abuffer, afs_int32 alen );
-    int (*getparm) ( struct bnode *, afs_int32 aindex, char *abuffer, 
+    int (*getparm) ( struct bnode *, afs_int32 aindex, char *abuffer,
                     afs_int32 alen);
     int (*restartp) ( struct bnode *);
     int (*hascore) ( struct bnode *);
@@ -89,8 +89,8 @@ struct ezbnode {
     char killSent;             /* have we tried sigkill signal? */
 };
 
-/* this struct is used to construct a list of dirpaths, along with 
- * their recommended permissions 
+/* this struct is used to construct a list of dirpaths, along with
+ * their recommended permissions
  */
 struct bozo_bosEntryStats {
     const char *path;          /* pathname to check */
index 0a00dec6a4f916e2af65a4ee7f5ad2b4628e5f54..57e1a66b02c1601b076199e09b040c6b7f303f13 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -49,7 +49,7 @@
 #include <afs/volser.h>
 
 static int IStatServer(struct cmd_syndesc *as, int int32p);
-static int DoStat(char *aname, struct rx_connection *aconn, 
+static int DoStat(char *aname, struct rx_connection *aconn,
                  int aint32p, int firstTime);
 
 #include "bosint.h"
@@ -1142,9 +1142,9 @@ StopServer(struct cmd_syndesc *as, void *arock)
 #define PARMBUFFERSSIZE 32
 
 static afs_int32
-DoSalvage(struct rx_connection * aconn, char * aparm1, char * aparm2, 
-         char * aoutName, afs_int32 showlog, char * parallel, 
-         char * atmpDir, char * orphans, int dafs, 
+DoSalvage(struct rx_connection * aconn, char * aparm1, char * aparm2,
+         char * aoutName, afs_int32 showlog, char * parallel,
+         char * atmpDir, char * orphans, int dafs,
          struct MRAFSSalvageParms * mrafsParm)
 {
     afs_int32 code;
@@ -1244,7 +1244,7 @@ DoSalvage(struct rx_connection * aconn, char * aparm1, char * aparm2,
     /* For DAFS, specifying a single volume does not result in a standard
      * salvager call.  Instead, it simply results in a SALVSYNC call to the
      * online salvager daemon.  This interface does not give us the same rich
-     * set of call flags.  Thus, we skip these steps for DAFS single-volume 
+     * set of call flags.  Thus, we skip these steps for DAFS single-volume
      * calls */
     if (!dafs || (*aparm2 == 0)) {
        /* add the parallel option if given */
@@ -1314,7 +1314,7 @@ DoSalvage(struct rx_connection * aconn, char * aparm1, char * aparm2,
        if (mrafsParm->OptRxDebug)
            strcat(tbuffer, " -rxdebug");
        if (mrafsParm->OptResidencies) {
-           sprintf(pbuffer, " -Residencies %lu", 
+           sprintf(pbuffer, " -Residencies %lu",
                    afs_printable_uint32_lu(mrafsParm->OptResidencies));
            strcat(tbuffer, pbuffer);
        }
@@ -1739,9 +1739,9 @@ IStatServer(struct cmd_syndesc *as, int int32p)
 }
 
 static int
-DoStat(IN char *aname, 
-       IN struct rx_connection *aconn, 
-       IN int aint32p, 
+DoStat(IN char *aname,
+       IN struct rx_connection *aconn,
+       IN int aint32p,
        IN int firstTime)       /* true iff first instance in cmd */
 {
     afs_int32 temp;
@@ -1908,8 +1908,8 @@ main(int argc, char **argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index 2a07a781f728419327c5b97b9e7598d663d7aea9..5847ab00865075dd460ce2d410255b44bdbfa661 100644 (file)
@@ -1,12 +1,12 @@
-/* 
+/*
  *  Copyright (C) 1989 by the Massachusetts Institute of Technology
- * 
+ *
  *    Export of software employing encryption from the United States of
  *    America is assumed to require a specific license from the United
  *    States Government.  It is the responsibility of any person or
  *    organization contemplating export to obtain such a license before
  *    exporting.
- * 
+ *
  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
  * distribute this software and its documentation for any purpose and
  * without fee is hereby granted, provided that the above copyright
index 458bbcadaa758f5a1f410299898a29fc10711ef7..1a87e499cfc8f6cb1ae92e4435ff3cc8195786d0 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 2000, International Business Machines Corporation and others.
 # All Rights Reserved.
-# 
+#
 # This software has been released under the terms of the IBM Public
 # License.  For details, see the LICENSE file in the top-level source
 # directory or online at http://www.openafs.org/dl/license10.html
index 841f08286e43b3db8a7f92e72a39001463fc9aa6..cdd77457ea2d2883edfb86a50bfae5790572a37a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1082d18322914c555efc33a66710d14e9f72a188..d381d16be3c028c144f532b2101df8e942d9e470 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -143,7 +143,7 @@ SBOZO_Exec(struct rx_call *acall, char *acmd)
 }
 
 afs_int32
-SBOZO_GetDates(struct rx_call *acall, char *aname, afs_int32 *atime, 
+SBOZO_GetDates(struct rx_call *acall, char *aname, afs_int32 *atime,
               afs_int32 *abakTime, afs_int32 *aoldTime)
 {
     struct stat tstat;
@@ -585,7 +585,7 @@ SBOZO_AddCellHost(struct rx_call *acall, char *aname)
 }
 
 afs_int32
-SBOZO_ListKeys(struct rx_call *acall, afs_int32 an, afs_int32 *akvno, 
+SBOZO_ListKeys(struct rx_call *acall, afs_int32 an, afs_int32 *akvno,
               struct bozo_key *akey, struct bozo_keyInfo *akeyinfo)
 {
     struct afsconf_keys tkeys;
@@ -615,7 +615,7 @@ SBOZO_ListKeys(struct rx_call *acall, afs_int32 an, afs_int32 *akvno,
 
     noauth = afsconf_GetNoAuthFlag(bozo_confdir);
     rxkad_GetServerInfo(acall->conn, &enc_level, 0, 0, 0, 0, 0);
-    /* 
+    /*
      * only return actual keys in noauth or if this is an encrypted connection
      */
 
@@ -765,7 +765,7 @@ SBOZO_DeleteSUser(struct rx_call *acall, char *aname)
 }
 
 afs_int32
-SBOZO_CreateBnode(struct rx_call *acall, char *atype, char *ainstance, 
+SBOZO_CreateBnode(struct rx_call *acall, char *atype, char *ainstance,
                  char *ap1, char *ap2, char *ap3, char *ap4, char *ap5,
                   char *notifier)
 {
@@ -1096,7 +1096,7 @@ SBOZO_SetStatus(struct rx_call *acall, char *ainstance, afs_int32 astatus)
 }
 
 afs_int32
-SBOZO_GetStatus(struct rx_call *acall, char *ainstance, afs_int32 *astat, 
+SBOZO_GetStatus(struct rx_call *acall, char *ainstance, afs_int32 *astat,
                char **astatDescr)
 {
     struct bnode *tb;
@@ -1137,7 +1137,7 @@ static int
 eifunc(struct bnode *abnode, void *param)
 {
     struct eidata *arock = (struct eidata *)param;
-    
+
     if (arock->counter-- == 0) {
        /* done */
        strcpy(arock->iname, abnode->name);
@@ -1214,7 +1214,7 @@ SBOZO_Prune(struct rx_call *acall, afs_int32 aflags)
 }
 
 afs_int32
-SBOZO_EnumerateInstance(struct rx_call *acall, afs_int32 anum, 
+SBOZO_EnumerateInstance(struct rx_call *acall, afs_int32 anum,
                        char **ainstance)
 {
     struct eidata tdata;
@@ -1245,7 +1245,7 @@ int bozo_nbosEntryStats =
     sizeof(bozo_bosEntryStats) / sizeof(bozo_bosEntryStats[0]);
 
 /* This function performs initialization of the bozo_bosEntrystats[]
- * array. This array contains the list of dirs that the bosserver 
+ * array. This array contains the list of dirs that the bosserver
  * is interested in along with their recommended permissions
  * NOTE: This initialization is a bit ugly. This was caused because
  * the path names require procedural as opposed to static initialization.
@@ -1321,8 +1321,8 @@ DirAccessOK(void)
        if (!StatEachEntry(e)) {
            bozo_Log("unhappy with %s which is a %s that should "
                     "have at least rights %o, at most rights %o %s\n",
-                    e->path, e->dir ? "dir" : "file", e->reqPerm, 
-                    (~e->proPerm & 0777), 
+                    e->path, e->dir ? "dir" : "file", e->reqPerm,
+                    (~e->proPerm & 0777),
                     e->rootOwner ? ", owned by root" : "");
            result = 0;
            break;
@@ -1479,7 +1479,7 @@ SBOZO_GetLog(struct rx_call *acall, char *aname)
 }
 
 afs_int32
-SBOZO_GetInstanceStrings(struct rx_call *acall, char *abnodeName, 
+SBOZO_GetInstanceStrings(struct rx_call *acall, char *abnodeName,
                         char **as1, char **as2, char **as3, char **as4)
 {
     struct bnode *tb;
index 360bb7792cdfd98cb2593410f2c3329f578de3d0..38403aee97bad213a06782409bca005480ef2441 100644 (file)
@@ -15,7 +15,7 @@
 /* bnode.c */
 int bnode_CoreName(struct bnode *abnode, char *acoreName, char *abuffer);
 int bnode_GetString(struct bnode *abnode, char *abuffer, afs_int32 alen);
-int bnode_GetParm(struct bnode *abnode, afs_int32 aindex, char *abuffer, 
+int bnode_GetParm(struct bnode *abnode, afs_int32 aindex, char *abuffer,
                  afs_int32 alen);
 int bnode_GetStat(struct bnode *abnode, afs_int32 * astatus);
 int bnode_RestartP(struct bnode *abnode);
@@ -45,7 +45,7 @@ int bozo_ReBozo(void);
 int WriteBozoFile(char *aname);
 
 /* bosoprocs.c */
-int GetRequiredDirPerm(const char *path);      
+int GetRequiredDirPerm(const char *path);
 void *bozo_ShutdownAndExit(void *arock /* really int asignal */);
 int initBosEntryStats(void);
 int DirAccessOK(void);
index 811dc315ae354ae5709ad9d6ad15ec127f3d9e82..e9fd51316a3fb293ab67bab36103d8f5e1b8b551 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -605,7 +605,7 @@ tweak_config(void)
  * fundamental errors occur.
  *
  * This routine requires
- * 
+ *
  * #include <sys/types.h>
  * #include <sys/stat.h>
  * #include <fcntl.h>
@@ -627,7 +627,7 @@ tweak_config(void)
 static void
 background(void)
 {
-    /* 
+    /*
      * A process is a process group leader if its process ID
      * (getpid()) and its process group ID (getpgrp()) are the same.
      */
@@ -744,14 +744,14 @@ main(int argc, char **argv, char **envp)
     struct sigaction nsa;
 
     /* for some reason, this permits user-mode RX to run a lot faster.
-     * we do it here in the bosserver, so we don't have to do it 
+     * we do it here in the bosserver, so we don't have to do it
      * individually in each server.
      */
     tweak_config();
 
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
@@ -840,14 +840,14 @@ main(int argc, char **argv, char **envp)
        }
        else if (!strcmp(argv[code], "-rxmaxmtu")) {
            if ((code + 1) >= argc) {
-               fprintf(stderr, "missing argument for -rxmaxmtu\n"); 
-               exit(1); 
+               fprintf(stderr, "missing argument for -rxmaxmtu\n");
+               exit(1);
            }
            rxMaxMTU = atoi(argv[++code]);
-           if ((rxMaxMTU < RX_MIN_PACKET_SIZE) || 
+           if ((rxMaxMTU < RX_MIN_PACKET_SIZE) ||
                (rxMaxMTU > RX_MAX_PACKET_DATA_SIZE)) {
                printf("rxMaxMTU %d invalid; must be between %d-%" AFS_SIZET_FMT "\n",
-                       rxMaxMTU, RX_MIN_PACKET_SIZE, 
+                       rxMaxMTU, RX_MIN_PACKET_SIZE,
                        RX_MAX_PACKET_DATA_SIZE);
                exit(1);
            }
@@ -926,7 +926,7 @@ main(int argc, char **argv, char **envp)
     fflush(stdout);
 #endif
 
-    /* go into the background and remove our controlling tty, close open 
+    /* go into the background and remove our controlling tty, close open
        file desriptors
      */
 
@@ -937,7 +937,7 @@ main(int argc, char **argv, char **envp)
 
     if ((!DoSyslog)
 #ifndef AFS_NT40_ENV
-       && ((lstat(AFSDIR_BOZLOG_FILE, &sb) == 0) && 
+       && ((lstat(AFSDIR_BOZLOG_FILE, &sb) == 0) &&
        !(S_ISFIFO(sb.st_mode)))
 #endif
        ) {
@@ -1053,18 +1053,18 @@ main(int argc, char **argv, char **envp)
 
     if (rxBind) {
        afs_int32 ccode;
-        if (AFSDIR_SERVER_NETRESTRICT_FILEPATH || 
+        if (AFSDIR_SERVER_NETRESTRICT_FILEPATH ||
             AFSDIR_SERVER_NETINFO_FILEPATH) {
             char reason[1024];
             ccode = parseNetFiles(SHostAddrs, NULL, NULL,
                                            ADDRSPERSITE, reason,
                                            AFSDIR_SERVER_NETINFO_FILEPATH,
                                            AFSDIR_SERVER_NETRESTRICT_FILEPATH);
-        } else 
+        } else
        {
             ccode = rx_getAllAddr(SHostAddrs, ADDRSPERSITE);
         }
-        if (ccode == 1) 
+        if (ccode == 1)
             host = SHostAddrs[0];
     }
 
index bb56af19d29a5718dc62d784a648b5a062d62222..01026e3456458b3a33e930ce83e984bad1962a29 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -144,7 +144,7 @@ cron_restartp(struct bnode *abnode)
 }
 
 static int
-cron_delete(struct bnode *bn) 
+cron_delete(struct bnode *bn)
 {
     struct cronbnode *abnode = (struct cronbnode *)bn;
     free(abnode->command);
index 5fea066bde82a7329952dfb5a3f1e5203db24c0b..b7916465e44e13036e326dfa5cb6e055e9e9e9d7 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -97,14 +97,14 @@ static int
 ez_delete(struct bnode *bn)
 {
     struct ezbnode *abnode = (struct ezbnode *)bn;
-    
+
     free(abnode->command);
     free(abnode);
     return 0;
 }
 
 struct bnode *
-ez_create(char *ainstance, char *acommand, char *unused1, char *unused2, 
+ez_create(char *ainstance, char *acommand, char *unused1, char *unused2,
          char *unused3, char *unused4)
 {
     struct ezbnode *te;
@@ -130,7 +130,7 @@ static int
 ez_timeout(struct bnode *bn)
 {
     struct ezbnode *abnode = (struct ezbnode *)bn;
-       
+
     if (!abnode->waitingForShutdown)
        return 0;               /* spurious */
     /* send kill and turn off timer */
@@ -144,7 +144,7 @@ static int
 ez_getstat(struct bnode *bn, afs_int32 * astatus)
 {
     struct ezbnode *abnode = (struct ezbnode *)bn;
-    
+
     afs_int32 temp;
     if (abnode->waitingForShutdown)
        temp = BSTAT_SHUTTINGDOWN;
@@ -160,7 +160,7 @@ static int
 ez_setstat(struct bnode *bn, afs_int32 astatus)
 {
     struct ezbnode *abnode = (struct ezbnode *)bn;
-    
+
     struct bnode_proc *tp;
     afs_int32 code;
 
index 3270ed51c6c1f1b6ff51c6d790182de5324876fa..a81374d7fcc8eba75e9a9481c367a079cfb0e230 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -45,20 +45,20 @@ static int emergency = 0;
 
 /*  basic rules:
     Normal operation involves having the file server and the vol server both running.
-    
+
     If the vol server terminates, it can simply be restarted.
-    
+
     If the file server terminates, the disk must salvaged before the file server
     can be restarted.  In order to restart either the file server or the salvager,
     the vol server must be shut down.
-    
+
     If the file server terminates *normally* (exits after receiving a SIGQUIT)
     then we don't have to salvage it.
-    
+
     The needsSalvage flag is set when the file server is started.  It is cleared
     if the file server exits when fileSDW is true but fileKillSent is false,
     indicating that it exited after receiving a quit, but before we sent it a kill.
-    
+
     The needsSalvage flag is cleared when the salvager exits.
 */
 
@@ -98,9 +98,9 @@ struct fsbnode {
     char needsClock;           /* do we need clock ticks */
 };
 
-struct bnode * fs_create(char *ainstance, char *afilecmd, char *avolcmd, 
+struct bnode * fs_create(char *ainstance, char *afilecmd, char *avolcmd,
                         char *asalcmd, char *ascancmd, char *dummy);
-struct bnode * dafs_create(char *ainstance, char *afilecmd, char *avolcmd, 
+struct bnode * dafs_create(char *ainstance, char *afilecmd, char *avolcmd,
                           char * asalsrvcmd, char *asalcmd, char *ascancmd);
 
 static int fs_hascore(struct bnode *abnode);
@@ -111,9 +111,9 @@ static int fs_getstat(struct bnode *abnode, afs_int32 * astatus);
 static int fs_setstat(struct bnode *abnode, afs_int32 astatus);
 static int fs_procexit(struct bnode *abnode, struct bnode_proc *aproc);
 static int fs_getstring(struct bnode *abnode, char *abuffer, afs_int32 alen);
-static int fs_getparm(struct bnode *abnode, afs_int32 aindex, 
+static int fs_getparm(struct bnode *abnode, afs_int32 aindex,
                      char *abuffer, afs_int32 alen);
-static int dafs_getparm(struct bnode *abnode, afs_int32 aindex, 
+static int dafs_getparm(struct bnode *abnode, afs_int32 aindex,
                        char *abuffer, afs_int32 alen);
 
 static int SetSalFlag(struct fsbnode *abnode, int aflag);
@@ -347,7 +347,7 @@ static int
 fs_delete(struct bnode *bn)
 {
     struct fsbnode *abnode = (struct fsbnode *)bn;
-    
+
     free(abnode->filecmd);
     free(abnode->volcmd);
     free(abnode->salcmd);
@@ -386,8 +386,8 @@ fs_create(char *ainstance, char *afilecmd, char *avolcmd, char *asalcmd,
     int bailout = 0;
 
     fileCmdpath = volCmdpath = salCmdpath = scanCmdpath = NULL;
-    te = NULL; 
-    
+    te = NULL;
+
     /* construct local paths from canonical (wire-format) paths */
     if (ConstructLocalBinPath(afilecmd, &fileCmdpath)) {
        bozo_Log("BNODE: command path invalid '%s'\n", afilecmd);
@@ -467,7 +467,7 @@ fs_create(char *ainstance, char *afilecmd, char *avolcmd, char *asalcmd,
        bailout = 1;
        goto done;
     }
-    bnode_SetTimeout(fsbnode2bnode(te), POLLTIME);     
+    bnode_SetTimeout(fsbnode2bnode(te), POLLTIME);
                /* ask for timeout activations every 10 seconds */
     RestoreSalFlag(te);                /* restore needsSalvage flag based on file's existence */
     SetNeedsClock(te);         /* compute needsClock field */
@@ -492,7 +492,7 @@ fs_create(char *ainstance, char *afilecmd, char *avolcmd, char *asalcmd,
 
 /* create a demand attach fs bnode */
 struct bnode *
-dafs_create(char *ainstance, char *afilecmd, char *avolcmd, 
+dafs_create(char *ainstance, char *afilecmd, char *avolcmd,
            char * asalsrvcmd, char *asalcmd, char *ascancmd)
 {
     struct stat tstat;
@@ -503,7 +503,7 @@ dafs_create(char *ainstance, char *afilecmd, char *avolcmd,
 
     fileCmdpath = volCmdpath = salsrvCmdpath = salCmdpath = scanCmdpath = NULL;
     te = NULL;
-    
+
     /* construct local paths from canonical (wire-format) paths */
     if (ConstructLocalBinPath(afilecmd, &fileCmdpath)) {
        bozo_Log("BNODE: command path invalid '%s'\n", afilecmd);
@@ -596,7 +596,7 @@ dafs_create(char *ainstance, char *afilecmd, char *avolcmd,
        bailout = 1;
        goto done;
     }
-    bnode_SetTimeout(fsbnode2bnode(te), POLLTIME);     
+    bnode_SetTimeout(fsbnode2bnode(te), POLLTIME);
                /* ask for timeout activations every 10 seconds */
     RestoreSalFlag(te);                /* restore needsSalvage flag based on file's existence */
     SetNeedsClock(te);         /* compute needsClock field */
@@ -626,7 +626,7 @@ static int
 fs_timeout(struct bnode *bn)
 {
     struct fsbnode *abnode = (struct fsbnode *)bn;
-    
+
     afs_int32 now;
 
     now = FT_ApproxTime();
@@ -684,7 +684,7 @@ static int
 fs_getstat(struct bnode *bn, afs_int32 * astatus)
 {
     struct fsbnode *abnode = (struct fsbnode *) bn;
-    
+
     afs_int32 temp;
     if (abnode->volSDW || abnode->fileSDW || abnode->salSDW
        || abnode->scanSDW || abnode->salsrvSDW)
@@ -715,7 +715,7 @@ static int
 fs_procexit(struct bnode *bn, struct bnode_proc *aproc)
 {
    struct fsbnode *abnode = (struct fsbnode *)bn;
-   
+
     /* process has exited */
 
     if (aproc == abnode->volProc) {
@@ -946,7 +946,7 @@ static int
 fs_getstring(struct bnode *bn, char *abuffer, afs_int32 alen)
 {
     struct fsbnode *abnode = (struct fsbnode *)bn;
-    
+
     if (alen < 40)
        return -1;
     if (abnode->b.goal == 1) {
@@ -991,7 +991,7 @@ fs_getparm(struct bnode *bn, afs_int32 aindex, char *abuffer,
           afs_int32 alen)
 {
     struct fsbnode *abnode = (struct fsbnode *)bn;
-    
+
     if (aindex == 0)
        strcpy(abuffer, abnode->filecmd);
     else if (aindex == 1)
@@ -1010,7 +1010,7 @@ dafs_getparm(struct bnode *bn, afs_int32 aindex, char *abuffer,
             afs_int32 alen)
 {
     struct fsbnode *abnode = (struct fsbnode *)bn;
-    
+
     if (aindex == 0)
        strcpy(abuffer, abnode->filecmd);
     else if (aindex == 1)
index 296337b5e3b0c47e2a71126a62d3864440fe7aab..3c52be3da9b716e6f4ecbb3819b0c864dc632855 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 74fc60bf349ca2f8e9662dd7cacadd12788e69d4..03ed62603ff140471ed77dc93caddba6ea610563 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index adc7d015bed3baff9ad1f7c7715e2ccec9c0e73c..9d4929849bf5fce40cb3fea91ad132eb209b22f7 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 0bc925c85e9254fc12f6509a5f2b54d7faf09555..628d4b082c4229cc3be5e59dc4033cd1c9e1c56e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -81,7 +81,7 @@
 #define RX_SCINDEX_VAB         1       /* vice tokens, with bcrypt */
 #define RX_SCINDEX_KAD 2       /* Kerberos/DES */
 
-/* maximums for various text strings 
+/* maximums for various text strings
  * DON'T alter these values until all disk/tape structures can be handled
  * correctly. In particular, volume names are 64.
  */
index 00140ac37b8aa7397f3ef19bfb4981947f28d6f8..556520788276ed14c08d47092d18fb1773f56dc3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index d5c54ec2dcdf4e17fcb1c771568ef05cb9a9b9f4..54b9a56d28ede0fbf1997209acc7dd7539f8bf78 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -10,7 +10,7 @@
 package TC_
 prefix S
 statindex 4
-       
+
 /*
 #define        TCPERFORMDUMP           100
 #define        TCPERFORMRESTORE        101
@@ -43,10 +43,10 @@ const TC_MAXFORMATLEN = 100;        /*size of the format statement */
 const TC_MAXHOSTLEN = 32;      /*for server/machine names */
 const TC_MAXTAPELEN = 32;      /*max tape name allowed */
 /*This specifies the interface to the tape coordinator*/
-/*describes the information that should be dumped to dump a single 
+/*describes the information that should be dumped to dump a single
 volume*/
 
-struct tc_dumpDesc 
+struct tc_dumpDesc
 {
     afs_int32 vid;                     /* volume to dump */
     afs_int32 vtype;                /* volume type */
@@ -169,7 +169,7 @@ proc PerformDump(IN struct tc_dumpInterface *tcdiPtr,
                 OUT afs_int32 *dumpID);
 
 /* Start a restore, given a dump set name, a tape set name and the volumes to
- * dump. 
+ * dump.
  */
 proc PerformRestore(IN string dumpSetName<TC_MAXNAMELEN>,
     tc_restoreArray *restores,
@@ -177,18 +177,18 @@ proc PerformRestore(IN string dumpSetName<TC_MAXNAMELEN>,
 
 /* check the status of a dump; the tape coordinator is assumed to sit on
  * the status of completed dumps for a reasonable period (2 - 12 hours)
- * so that they can be examined later 
+ * so that they can be examined later
  */
 /*
  * proc CheckDump(IN afs_int32 dumpID, OUT struct tc_dumpStat *status);
  */
 
 /* abort a dump */
-/* 
+/*
  * proc AbortDump(IN afs_int32 dumpID);
  */
 
-/* this call waits for a dump to complete; it ties up an LWP on the tape 
+/* this call waits for a dump to complete; it ties up an LWP on the tape
 coordinator */
 /*
  * proc WaitForDump(IN afs_int32 dumpID);
@@ -199,7 +199,7 @@ coordinator */
  * proc EndDump(IN afs_int32 dumpID);
  */
 
-/* 
+/*
  * proc GetTMInfo(OUT struct tc_TMInfo *info);
  */
 
@@ -214,7 +214,7 @@ proc LabelTape
 
 proc ReadLabel
  ( OUT struct tc_tapeLabel *label,
-   OUT afs_uint32 *taskId 
+   OUT afs_uint32 *taskId
  );
 
 proc ScanDumps
index 65bc6d65d56b2259850610d5f7be19240fdfe032..9670974d52941d7bf09aa47f66ea084a514bbd9d 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 2000, International Business Machines Corporation and others.
 # All Rights Reserved.
-# 
+#
 # This software has been released under the terms of the IBM Public
 # License.  For details, see the LICENSE file in the top-level source
 # directory or online at http://www.openafs.org/dl/license10.html
index b84287b00a296c06a40b1198d605428c76d8bbe6..7640e094129740fe86dd10df395abefcc666066b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -36,13 +36,13 @@ struct butm_tapeInfo {
        afs_int32(*dismount) (struct butm_tapeInfo *);
        afs_int32(*create) (struct butm_tapeInfo *, struct butm_tapeLabel *,
                            afs_int32);
-       afs_int32(*readLabel) (struct butm_tapeInfo *, 
+       afs_int32(*readLabel) (struct butm_tapeInfo *,
                               struct butm_tapeLabel *,
                               afs_int32);
        afs_int32(*seek) (struct butm_tapeInfo *, afs_int32);
        afs_int32(*seekEODump) (struct butm_tapeInfo *, afs_int32);
        afs_int32(*readFileBegin) (struct butm_tapeInfo *);
-       afs_int32(*readFileData) (struct butm_tapeInfo *, char *, int len, 
+       afs_int32(*readFileData) (struct butm_tapeInfo *, char *, int len,
                                  int *);
        afs_int32(*readFileEnd) (struct butm_tapeInfo *);
        afs_int32(*writeFileBegin) (struct butm_tapeInfo *);
index 3e72fdb5d7151ad888b1f8e3516b6151354b8846..76130487f57e1aba30e0baefdc35c5d0ae94f4c5 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 2000, International Business Machines Corporation and others.
 # All Rights Reserved.
-# 
+#
 # This software has been released under the terms of the IBM Public
 # License.  For details, see the LICENSE file in the top-level source
 # directory or online at http://www.openafs.org/dl/license10.html
index 428e72d1ca885a6c64d7862d014da68b7351942a..e548d2260556ead8e2a36d7b5d0a0e078b7eb79b 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 2000, International Business Machines Corporation and others.
 # All Rights Reserved.
-# 
+#
 # This software has been released under the terms of the IBM Public
 # License.  For details, see the LICENSE file in the top-level source
 # directory or online at http://www.openafs.org/dl/license10.html
@@ -17,7 +17,7 @@ error_table BUTX
        ec BUTX_INVALIDBSANAME,      "XBSA invalid bsaObjectOwner specified"
        ec BUTX_INVALIDAPPNAME,      "XBSA invalid appObjectOwner specified"
        ec BUTX_INVALIDSECTOKEN,     "XBSA invalid secToken specified"
-       ec BUTX_INVALIDOBJECTSPNAME, "XBSA invalid objectSpaceName specified" 
+       ec BUTX_INVALIDOBJECTSPNAME, "XBSA invalid objectSpaceName specified"
        ec BUTX_INVALIDPATHNAME,     "XBSA invalid pathName specified"
        ec BUTX_INVALIDBUFFERSIZE,   "XBSA invalid bufferSize specified"
        ec BUTX_INVALIDDATABUFFER,   "XBSA invalid dataBuffer specified"
index fd7fd68354f90ea74f005c1e45063edd819d5eaa..b34ea7b6682d2fef76f103e6f954fed26d62cc35 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 5a0a20a8b64ca2e2f86a07370c4fb239c6bed7b6..8728a370f29f1f30b5e63dafc3e322051a090ebf 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index bd81f542cce689d42cfab94933f0882382147b46..64ae7be3e7789df6e859e9b76ee8074ef9c636e1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -201,11 +201,11 @@ statusWatcher(void *unused)
        /* A task not started yet - check its start time */
        if (localTaskFlags & STARTING || atTime) {
            /*
-            * Start a timed dump if its time has come.  When the job is 
-            * started, it will allocate its own status structure so this 
-            * one is no longer needed: delete it. 
+            * Start a timed dump if its time has come.  When the job is
+            * started, it will allocate its own status structure so this
+            * one is no longer needed: delete it.
             *
-            * Avoid multiple processes trouncing the cmdLine by placing 
+            * Avoid multiple processes trouncing the cmdLine by placing
             * lock around it.
             */
            if (atTime && (atTime <= time(0))) {
index 0d3deeafda88658c9e3cf3a1383cf50bdf2f16fd..8a1aae5990c5300c3014e2ea6f31dfbee3678e35 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 5e3bbbeafb2c950641c76d584f9309e954c15d84..3dcd9ff844a2ad5a3772ddfb69de5d1724cbfe3c 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 2000, International Business Machines Corporation and others.
 # All Rights Reserved.
-# 
+#
 # This software has been released under the terms of the IBM Public
 # License.  For details, see the LICENSE file in the top-level source
 # directory or online at http://www.openafs.org/dl/license10.html
@@ -26,7 +26,7 @@ error_table BUCD
        ec BC_VOLSETEXISTS, "Volume set already exists"
 
 # general
-       ec BC_NOHOST, "No such server"  
+       ec BC_NOHOST, "No such server"
        ec BC_NOPARTITION, "No such partition"
        ec BC_VERSIONFAIL, "Version number mismatch"
 
index b903f41b184782a32db4364be90bef2a629c3a4f..80ba654f117c879ed166c905e2f77ed936792b93 100644 (file)
@@ -1,6 +1,6 @@
 /* Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a091ba1d4a1f1957bc45e5d7328f08f739b52e78..babb070cefe99680010b5e4bdd1376290dae8602 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -70,9 +70,9 @@ static int EvalVolumeSet2(struct bc_config *aconfig, struct bc_volumeSet *avs,
 static int DBLookupByVolume(char *volumeName);
 
 int
-bc_EvalVolumeSet(struct bc_config *aconfig, 
-                struct bc_volumeSet *avs, 
-                struct bc_volumeDump **avols, 
+bc_EvalVolumeSet(struct bc_config *aconfig,
+                struct bc_volumeSet *avs,
+                struct bc_volumeDump **avols,
                 struct ubik_client *uclient)
 {                              /*bc_EvalVolumeSet */
     int code = -1;
@@ -104,9 +104,9 @@ struct serversort {
 };
 
 afs_int32
-getSPEntries(afs_uint32 server, afs_int32 partition, 
-            struct serversort **serverlist, 
-            struct serversort **ss, 
+getSPEntries(afs_uint32 server, afs_int32 partition,
+            struct serversort **serverlist,
+            struct serversort **ss,
             struct partitionsort **ps)
 {
     if (!(*ss) || ((*ss)->ipaddr != server)) {
@@ -156,7 +156,7 @@ getSPEntries(afs_uint32 server, afs_int32 partition,
 }
 
 afs_int32
-randSPEntries(struct serversort *serverlist, 
+randSPEntries(struct serversort *serverlist,
              struct bc_volumeDump **avols)
 {
     struct serversort *ss, **pss;
@@ -198,9 +198,9 @@ randSPEntries(struct serversort *serverlist,
 }
 
 static int
-EvalVolumeSet2(struct bc_config *aconfig, 
-              struct bc_volumeSet *avs, 
-              struct bc_volumeDump **avols, 
+EvalVolumeSet2(struct bc_config *aconfig,
+              struct bc_volumeSet *avs,
+              struct bc_volumeDump **avols,
               struct ubik_client *uclient)
 {                              /*EvalVolumeSet2 */
     struct bc_volumeEntry *tve;
@@ -222,7 +222,7 @@ EvalVolumeSet2(struct bc_config *aconfig,
 
     /* For each of the volume set entries - collect the volumes that match it */
     for (tve = avs->ventries; tve; tve = tve->next) {
-       /* Put together a call to the vlserver for this vlentry. The 
+       /* Put together a call to the vlserver for this vlentry. The
         * performance gain is from letting the vlserver expand the
         * volumeset and not this routine.
         */
@@ -381,29 +381,29 @@ EvalVolumeSet2(struct bc_config *aconfig,
  * EvalVolumeSetOld
  *
  * Description:
- *     Takes the entries in a volumeset and expands them into a list of 
+ *     Takes the entries in a volumeset and expands them into a list of
  *      volumes. Every VLDB volume entry is looked at and compared to the
  *      volumeset entries.
  *
- *      When matching a VLDB volume entry to a volumeset entry, 
+ *      When matching a VLDB volume entry to a volumeset entry,
  *       1. If the RW volume entry matches, that RW volume is used.
  *       2. Otherwise, if the BK volume entry matches, the BK volume is used.
  *       3. Finally, if the RO volume entry matches, the RO volume is used.
- *      For instance: A volumeset entry of ".* .* user.t.*" will match volume 
- *                    "user.troy" and "user.troy.backup". The rules will use 
+ *      For instance: A volumeset entry of ".* .* user.t.*" will match volume
+ *                    "user.troy" and "user.troy.backup". The rules will use
  *                    the RW volume "user.troy".
  *
  *      When a VLDB volume entry matches a volumeset entry (be it RW, BK or RO),
- *      that volume is used and matches against any remaining volumeset entries 
+ *      that volume is used and matches against any remaining volumeset entries
  *      are not even done.
  *      For instance: A 1st volumeset entry ".* .* .*.backup" will match with
- *                    "user.troy.backup". Its 2nd volumeset entry ".* .* .*" 
- *                    would have matched its RW volume "user.troy", but the first 
+ *                    "user.troy.backup". Its 2nd volumeset entry ".* .* .*"
+ *                    would have matched its RW volume "user.troy", but the first
  *                    match is used and the second match isn't even done.
  *
  * Arguments:
  *     aconfig : Global configuration info.
- *     avs     : 
+ *     avs     :
  *     avols   : Ptr to linked list of entries describing volumes to dump.
  *     uclient : Ptr to Ubik client structure.
  *
@@ -419,9 +419,9 @@ EvalVolumeSet2(struct bc_config *aconfig,
  *-----------------------------------------------------------------------------
  */
 static int
-EvalVolumeSet1(struct bc_config *aconfig, 
+EvalVolumeSet1(struct bc_config *aconfig,
               struct bc_volumeSet *avs,
-              struct bc_volumeDump **avols, 
+              struct bc_volumeDump **avols,
               struct ubik_client *uclient)
 {                              /*EvalVolumeSet1 */
     afs_int32 code;            /*Result of various calls */
@@ -529,7 +529,7 @@ EvalVolumeSet1(struct bc_config *aconfig,
                        }
                    }
 
-                   /* If the BK name matches the volume set entry, take 
+                   /* If the BK name matches the volume set entry, take
                     * it and exit. Second choice is to use the BK volume.
                     */
                    if (entry.flags & BACK_EXISTS) {
@@ -752,7 +752,7 @@ bc_CopyString(char *astring)
 }
 
 /* concatParams
- * 
+ *
  *    Concatenates the parameters of an option and returns the string.
  *
  */
@@ -796,7 +796,7 @@ concatParams(struct cmd_item *itemPtr)
 /* printIfStatus
  *     print out an interface status node as received from butc
  */
+
 void
 printIfStatus(struct tciStatusS *statusPtr)
 {
@@ -1003,7 +1003,7 @@ bc_JobsCmd(struct cmd_syndesc *as, void *arock)
        }
     }
 
-    /* 
+    /*
      * Now print the scheduled dumps.
      */
     if (!dlqEmpty(&statusHead) && as)
@@ -1235,7 +1235,7 @@ bc_VolRestoreCmd(struct cmd_syndesc *as, void *arock)
     oldFlag = 0;
 
     /* Read all the port offsets into the ports array. The first element in the
-     * array is for full restore and the rest are for incremental restores 
+     * array is for full restore and the rest are for incremental restores
      */
     if (as->parms[5].items) {
        for (ti = as->parms[5].items; ti; ti = ti->next)
@@ -1261,7 +1261,7 @@ bc_VolRestoreCmd(struct cmd_syndesc *as, void *arock)
        if (dumpID <= 0)
          dumpID = 0;
       }
-    
+
     /*
      * Perform the call to start the restore.
      */
@@ -1309,7 +1309,7 @@ bc_DiskRestoreCmd(struct cmd_syndesc *as, void *arock)
 
     /* parm 0 is the server to restore
      * parm 1 is the partition to restore
-     
+
      * parm 8 and above as in VolRestoreCmd:
      * parm 8 is the new server to restore to
      * parm 9 is the new partition to restore to
@@ -1397,7 +1397,7 @@ bc_DiskRestoreCmd(struct cmd_syndesc *as, void *arock)
        return (-1);
     }
 
-    /* Since we want only RW volumes, remove any 
+    /* Since we want only RW volumes, remove any
      * BK or RO volumes from the list.
      */
     for (prev = 0, tvol = volsToRestore; tvol; tvol = nextvol) {
@@ -1668,10 +1668,10 @@ bc_DumpCmd(struct cmd_syndesc *as, void *arock)
        return (code);
     }
 
-    /* 
+    /*
      * Some parameters cannot be specified together
-     * The "-file" option cannot exist with the "-volume", "-dump", 
-     * "-portoffset", or "-append" option 
+     * The "-file" option cannot exist with the "-volume", "-dump",
+     * "-portoffset", or "-append" option
      */
     if (as->parms[6].items) {
        loadfile = 1;
@@ -1689,7 +1689,7 @@ bc_DumpCmd(struct cmd_syndesc *as, void *arock)
        }
     }
 
-    /* 
+    /*
      * Get the time we are to perform this dump
      */
     if (as->parms[3].items) {
@@ -1714,7 +1714,7 @@ bc_DumpCmd(struct cmd_syndesc *as, void *arock)
 
     dontExecute = (as->parms[5].items ? 1 : 0);        /* -n */
 
-    /* 
+    /*
      * If this dump is not a load file, then check the parameters.
      */
     if (!loadfile) {           /*6 */
@@ -1758,12 +1758,12 @@ bc_DumpCmd(struct cmd_syndesc *as, void *arock)
 
     /*6 */
     /*
-     * If given the "-at" option, then add this to the jobs list and return 
+     * If given the "-at" option, then add this to the jobs list and return
      * with no error.
      *
      * Create a status node for this timed dump.
      * Fill in the time to dump and the cmd line for the dump leaving off
-     * the -at option.  If the -n option is there, it is scheduled with 
+     * the -at option.  If the -n option is there, it is scheduled with
      * the Timed dump as opposed to not scheduling the time dump at all.
      */
     if (doAt) {
@@ -1851,7 +1851,7 @@ bc_DumpCmd(struct cmd_syndesc *as, void *arock)
        return (0);
     }
 
-    /* 
+    /*
      * Read and execute the load file if specified.  The work of reading is done
      * in the main routine prior the dispatch call. loadFile and dontExecute are
      * global variables so this can take place in main.
@@ -1866,7 +1866,7 @@ bc_DumpCmd(struct cmd_syndesc *as, void *arock)
        return 0;
     }
 
-    /* 
+    /*
      * We are doing a real dump (no load file or timed dump).
      */
     printf("Starting dump of volume set '%s' (dump level '%s')\n", vsName,
@@ -1889,9 +1889,9 @@ bc_DumpCmd(struct cmd_syndesc *as, void *arock)
        }
 
        /* We found the most recent dump at this level. Now check
-        * if we should use it by seeing if its full dump hierarchy 
+        * if we should use it by seeing if its full dump hierarchy
         * exists. If it doesn't, we don't want to base our incremental
-        * off of this dump. 
+        * off of this dump.
         */
        if (!parent || (dumpEntry.id > parent)) {
            /* Follow the parent dumps to see if they are all there */
@@ -1917,7 +1917,7 @@ bc_DumpCmd(struct cmd_syndesc *as, void *arock)
        }
     }
 
-    /* If the problemflag was raise, it means we are not doing the 
+    /* If the problemflag was raise, it means we are not doing the
      * dump at the level we requested it be done at.
      */
     if (problemFindingDump) {
@@ -2179,7 +2179,7 @@ bc_ScanDumpsCmd(struct cmd_syndesc *as, void *arock)
  */
 
 afs_int32
-bc_ParseExpiration(struct cmd_parmdesc *paramPtr, afs_int32 *expType, 
+bc_ParseExpiration(struct cmd_parmdesc *paramPtr, afs_int32 *expType,
                   afs_int32 *expDate)
 {
     struct cmd_item *itemPtr;
@@ -2348,7 +2348,7 @@ deleteDump(afs_uint32 dumpid,             /* The dumpid to delete */
 
        /* If dump is to an XBSA server, connect to butc and send it
         * the dump to delete. Butc will contact the XBSA server.
-        * The dump will not be an appended dump because XBSA butc 
+        * The dump will not be an appended dump because XBSA butc
         * does not support the append option.
         */
        if (xbsadump && dumpEntry.nVolumes) {
@@ -2691,7 +2691,7 @@ bc_restoreDbCmd(struct cmd_syndesc *as, void *arock)
 }
 
 /* ----------------------------------
- * supporting routines for database examination 
+ * supporting routines for database examination
  * ----------------------------------
  */
 
@@ -3137,7 +3137,7 @@ printRecentDumps(int ndumps)
     return (code);
 }
 
-/* bc_dumpInfoCmd 
+/* bc_dumpInfoCmd
  *     list the dumps and contens of the dumps.
  * params:
  *     as - name of tape
index 018e5a424728c33c2010622115e9048e31ac4364..444d726f0146cdffafc616d9ad44a5c98ec4cc39 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 91e2694a79a84a79f0dace73af8c096cff009a8c..05078b75b4884530cf3b51c7f17eee80828cf7fb 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -140,7 +140,7 @@ dlqlinkP dlqUnlinkb(dlqlinkP headptr)
  *     unlink the item on the front of the queue
  */
 
-dlqlinkP dlqUnlinkf(dlqlinkP headptr) 
+dlqlinkP dlqUnlinkf(dlqlinkP headptr)
 {
     dlqlinkP ptr;
     DLQ_ASSERT_HEAD(headptr);
index 53081731ab0df4b8d10a6accc3a8899435814578..23eb0c9d7b5073f8bf7d8b2222d220680d018952 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -105,7 +105,7 @@ static FILE * OpenDump(afs_int32 adumpID, char * awrite)
 }
 
 /* OpenTape
- * notes: 
+ * notes:
  *     non-static for recoverDB
  */
 
@@ -207,7 +207,7 @@ tailCompPtr(char *pathNamePtr)
 
 /* ScanDumpHdr
  *     scan a dump header out of a dump file, leaving the file ptr set after
- *     the header. 
+ *     the header.
  * entry:
  *     afile - ptr to file, for reading.
  *     various - ptrs for return values
@@ -232,7 +232,7 @@ ScanDumpHdr(FILE *afile, char *aname, char *dumpName, afs_int32 *aparent, afs_in
        return -1;
     code =
        sscanf(tbuffer, "%d %d %s %s %ld %ld %ld %ld", &dbmagic, &dbversion,
-              aname, dumpName, (long int *) aparent, (long int *) aincTime, 
+              aname, dumpName, (long int *) aparent, (long int *) aincTime,
               (long int *) acreateTime, (long int *) alevel);
     if (code != 8)
        return -1;
@@ -255,7 +255,7 @@ static afs_int32 ScanTapeHdr(FILE *afile, afs_int32 *adumpID, afs_int32 *aseq, a
     tp = fgets(tbuffer, sizeof(tbuffer), afile);
     if (!tp)
        return -1;
-    code = sscanf(tbuffer, "%ld %ld %ld", (long int *)adumpID, 
+    code = sscanf(tbuffer, "%ld %ld %ld", (long int *)adumpID,
                  (long int *)aseq, (long int *)adamage);
     if (code != 3)
        return -1;
@@ -286,9 +286,9 @@ afs_int32 ScanTapeVolume(FILE *afile, char *avolName, afs_int32 *avolID, char *a
            return 1;           /* eof */
     }
     code =
-       sscanf(tbuffer, "%s %ld %s %ld %ld %ld %ld", avolName, 
-              (long int *) avolID, atapeName, (long int *)apos, 
-              (long int *) aseq, (long int *) alastp, 
+       sscanf(tbuffer, "%s %ld %s %ld %ld %ld %ld", avolName,
+              (long int *) avolID, atapeName, (long int *)apos,
+              (long int *) aseq, (long int *) alastp,
               (long int *) cloneTime);
     if (code != 7)
        return -1;              /* bad input line */
index 5707e96521e581e482449a3f5cdc26f94570337d..5cceda6e48c9899107b6cd0891ff53907e01393c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -34,7 +34,7 @@
 #include <afs/bubasics.h>
 #include "bc.h"
 #include "bucoord_internal.h"
-    
+
 struct ubik_client *cstructp;  /*Ptr to Ubik client structure */
 
 static int FreeVolumeEntryList(struct bc_volumeEntry *aentry);
@@ -296,7 +296,7 @@ bc_DeleteVolumeItem(struct bc_config *aconfig, char *avolName,
 }
 
 int
-bc_AddVolumeItem(struct bc_config *aconfig, char *avolName, char *ahost, 
+bc_AddVolumeItem(struct bc_config *aconfig, char *avolName, char *ahost,
                 char *apart, char *avol)
 {
     struct bc_volumeSet *tset;
@@ -361,8 +361,8 @@ bc_FindVolumeSet(struct bc_config *aconfig, char *aname)
  *     expType - absolute or relative
  */
 
-int 
-bc_CreateDumpSchedule(struct bc_config *aconfig, char *adumpName, 
+int
+bc_CreateDumpSchedule(struct bc_config *aconfig, char *adumpName,
                      afs_int32 expDate, afs_int32 expType)
 {
     struct bc_dumpSchedule *tdump;
@@ -403,7 +403,7 @@ bc_CreateDumpSchedule(struct bc_config *aconfig, char *adumpName,
  * to strange places), so we must call bc_ProcessDumpSchedule when we're done.
  */
 int
-bc_DeleteDumpScheduleAddr(struct bc_config *aconfig, 
+bc_DeleteDumpScheduleAddr(struct bc_config *aconfig,
                           struct bc_dumpSchedule *adumpAddr)
 {
     struct bc_dumpSchedule **tlast, *tdump;
@@ -537,8 +537,8 @@ bc_ProcessDumpSchedule(struct bc_config *aconfig)
  */
 
 int
-FindDump(struct bc_config *aconfig, char *nodeString, 
-        struct bc_dumpSchedule **parentptr, 
+FindDump(struct bc_config *aconfig, char *nodeString,
+        struct bc_dumpSchedule **parentptr,
         struct bc_dumpSchedule **nodeptr)
 {
     struct bc_dumpSchedule *dsptr;
index 1a6e8e7b5673717ad9798850f51bebabdfabac84..09c364d4b1f7e5feb47c3e9562c93d1fc33b8c7b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -54,7 +54,7 @@ extern afs_int32 lastTaskCode;
 /* bc_Dumper
  *     called (indirectly) to make a dump
  * entry:
- *     aindex - index into dumpTask array, contains all the information 
+ *     aindex - index into dumpTask array, contains all the information
  *              relevant to the dump
  */
 int
@@ -86,7 +86,7 @@ bc_Dumper(int aindex)
        return (code);
 
     /* count number of volumes to be dumped and
-     * build array of volumes to be sent to backup system 
+     * build array of volumes to be sent to backup system
      */
     for (count = 0, tde = dumpTaskPtr->volumes; tde;
         tde = tde->next, count++);
@@ -194,7 +194,7 @@ freeDumpTaskVolumeList(struct bc_volumeDump *vdptr)
 }
 
 /* bc_DmpRstStart
- *     The other half of the dump/restore create process call. In bc_StartDmpRst, 
+ *     The other half of the dump/restore create process call. In bc_StartDmpRst,
  *     we allocated a dumpTask entry. Here we do the task and then free the entry.
  */
 void *
@@ -229,7 +229,7 @@ bc_DmpRstStart(void *param)
 /* bc_StartDmpRst
  *     function to start dump running. Packages the relevant information
  *     (from params) into any free dumpTask structure (globally allocated),
- *     and then invokes bc_DmpRstStart to do the work, passing it a single 
+ *     and then invokes bc_DmpRstStart to do the work, passing it a single
  *      parameter, the index into the dumpTask array.
  *
  * entry:
@@ -239,12 +239,12 @@ bc_DmpRstStart(void *param)
  */
 
 int
-bc_StartDmpRst(struct bc_config *aconfig, char *adname, char *avname, 
-              struct bc_volumeDump *avolsToDump, 
+bc_StartDmpRst(struct bc_config *aconfig, char *adname, char *avname,
+              struct bc_volumeDump *avolsToDump,
               struct sockaddr_in *adestServer,
-              afs_int32 adestPartition, afs_int32 afromDate, char *anewExt, 
+              afs_int32 adestPartition, afs_int32 afromDate, char *anewExt,
               int aoldFlag, afs_int32 aparent, afs_int32 alevel,
-              int (*aproc) (int), afs_int32 *ports, afs_int32 portCount, 
+              int (*aproc) (int), afs_int32 *ports, afs_int32 portCount,
               struct bc_dumpSchedule *dsptr, int append, int dontExecute)
 {
     int i;
@@ -348,7 +348,7 @@ bc_FindDumpSlot(afs_int32 dumpID, afs_int32 port)
  */
 
 int
-bc_LabelTape(char *afsname, char *pname, afs_int32 size, 
+bc_LabelTape(char *afsname, char *pname, afs_int32 size,
             struct bc_config *config, afs_int32 port)
 {
     struct rx_connection *tconn;
@@ -474,7 +474,7 @@ bc_ScanDumps(struct bc_config *config, afs_int32 dbAddFlag, afs_int32 port)
 
 /* get a connection to the tape controller */
 afs_int32
-bc_GetConn(struct bc_config *aconfig, afs_int32 aport, 
+bc_GetConn(struct bc_config *aconfig, afs_int32 aport,
           struct rx_connection **tconn)
 {
     afs_uint32 host;
@@ -509,7 +509,7 @@ bc_GetConn(struct bc_config *aconfig, afs_int32 aport,
 
 /* CheckTCVersion
  *     make sure we are talking to a compatible butc process.
- * exit: 
+ * exit:
  *     0 - ok
  *     -1 - not compatible
  */
@@ -531,7 +531,7 @@ CheckTCVersion(struct rx_connection *tconn)
 }
 
 int
-ConnectButc(struct bc_config *config, afs_int32 port, 
+ConnectButc(struct bc_config *config, afs_int32 port,
            struct rx_connection **tconn)
 {
     afs_int32 code;
index 8bcc53e0a17dc37421b6aaa9309c4fd00ecf0b19..05e8983dda493d183373149f0093c3504d4ac163 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -36,7 +36,7 @@
 #include "bucoord_internal.h"
 #include "bucoord_prototypes.h"
 
-/* code to manage dump schedules 
+/* code to manage dump schedules
  * specific to the ubik database implementation
  */
 
index af619a4fe108e3f0b3c2c030c1d4d1e070fea452..c1d0a5f7713eefd62d834e698f005b8d5ecdc432 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 2e7565c56ba04026c431e6a8ef3765d5ff895ffa..4ec586bda8136cba691bba795f90b0a705e85d66 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -186,7 +186,7 @@ ktimeDate_FromLong(timeSecs, ktimePtr)
 
 
 /* AddKtimeToNow
- *     Returns current time with a relative time added. Note that the 
+ *     Returns current time with a relative time added. Note that the
  *     computation adds in most significant fields first, i.e. year, month
  *     day etc. Addition of least significant fields would produce different
  *     results (depending on the data).
@@ -380,7 +380,7 @@ RelDatetoString(datePtr)
  */
 
 afs_int32
-bc_ParseExpiration(struct cmd_parmdesc *paramPtr, afs_int32 *expType, 
+bc_ParseExpiration(struct cmd_parmdesc *paramPtr, afs_int32 *expType,
                   afs_int32 *expDate)
 {
     struct cmd_item *itemPtr, *tempPtr;
index dd5a415d38de31573ecae19d02349310252d5450..3f38d07dca78500c0a0f0a345e956cadc0ad4cd5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -98,8 +98,8 @@ InitErrTabs(void)
     initialize_KTC_error_table();
 }
 
-/* 
- * got to account for the errors which are volume related but 
+/*
+ * got to account for the errors which are volume related but
  * not dealt with by standard errno and com_err stuff.
  */
 void
@@ -339,14 +339,14 @@ extern int dontExecute;           /* declared in commands.c */
 extern char *loadFile;         /* declared in commands.c */
 char lineBuffer[1024];         /* Line typed in by user or read from load file */
 
-/* 
+/*
  * This will dispatch a command.  It holds a recursive loop for the
  * "dump -file" option. This option reads backup commands from a file.
  *
  * Cannot put this code on other side of cmd_Dispatch call (in
  * commands.c) because when make a dispatch call when in a dispatch
  * call, environment is mucked up.
- * 
+ *
  * To avoid multiple processes stepping on each other in the dispatch code,
  * put a lock around it so only 1 process gets in at a time.
  */
@@ -357,7 +357,7 @@ struct Lock dispatchLock;   /* lock on the Dispatch call */
 
 afs_int32
 doDispatch(afs_int32 targc,
-          char *targv[MAXV], 
+          char *targv[MAXV],
           afs_int32 dispatchCount) /* to prevent infinite recursion */
 {
     char *sargv[MAXV];
@@ -459,8 +459,8 @@ main(int argc, char **argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index 34a3c24fcd562482ee1bfd92a8c90476276e9837..69bfba294a2df6f3504099fd8fe73c97c038d9e5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -45,7 +45,7 @@ extern char *whoami;
 #define HOSTADDR(sockaddr) (sockaddr)->sin_addr.s_addr
 
 /* local structure to keep track of volumes and the dumps from which
- * they should be restored 
+ * they should be restored
  */
 struct dumpinfo {
     struct dumpinfo *next;
@@ -205,7 +205,7 @@ bc_Restorer(afs_int32 aindex)
        ERROR(BC_NOMEM);
     }
 
-    /* For each volume to restore, find which dump it's most recent full or 
+    /* For each volume to restore, find which dump it's most recent full or
      * incremental is on and thread onto our dump list (from oldest to newest
      * dump). Also hang the volume off of the dump (no particular order).
      */
@@ -330,8 +330,8 @@ bc_Restorer(afs_int32 aindex)
        di->lastinlist = vi;
     }                          /*tvol */
 
-    /* For each of the above dumps we found (they could be increments), find 
-     * the dump's lineage (up to the full dump). 
+    /* For each of the above dumps we found (they could be increments), find
+     * the dump's lineage (up to the full dump).
      */
     for (di = dumpinfolist; di; di = di->next) {
        /* Find each of the parent dumps */
@@ -365,8 +365,8 @@ bc_Restorer(afs_int32 aindex)
        /* For each of the volumes that has a dump in this lineage (vi),
         * find where it is in each dump level (lv) starting at level 0 and
         * going to higest. Each dump level could contain one or more
-        * fragments (vecount) of the volume (volume fragments span tapes). 
-        * Each volume fragment is sorted by tapeid, tape sequence, and tape 
+        * fragments (vecount) of the volume (volume fragments span tapes).
+        * Each volume fragment is sorted by tapeid, tape sequence, and tape
         * position.
         */
        for (vi = di->volinfolist; vi; vi = vi->next) {
@@ -436,9 +436,9 @@ bc_Restorer(afs_int32 aindex)
                                (tle->initialDumpID ? tle->
                                 initialDumpID : tle->dumpID);
 
-                           /* Sort by tapeids. BUT, we don't want add an entry in the middle 
-                            * of a dumpset (might split a volume fragmented across tapes). 
-                            * So make sure we step to next dumpset. tlid is the tapeid of 
+                           /* Sort by tapeids. BUT, we don't want add an entry in the middle
+                            * of a dumpset (might split a volume fragmented across tapes).
+                            * So make sure we step to next dumpset. tlid is the tapeid of
                             * the last tape we added a volume to. This can happen when an
                             * incremental was appended to a tape created prior its parent-
                             * dump's tape, and needs to be restored after it.
@@ -450,7 +450,7 @@ bc_Restorer(afs_int32 aindex)
                                }       /* Allocate and insert a tape entry */
                            }
 
-                           /* Found the tapeid (the dumpset). Check if its the correct 
+                           /* Found the tapeid (the dumpset). Check if its the correct
                             * tape sequence
                             */
                            else if (tapeid == tid) {
@@ -466,8 +466,8 @@ bc_Restorer(afs_int32 aindex)
                                foundtape = 1;  /* Found dumpset but not the tape */
                            }
 
-                           /* Prevously found the tapeid (the dumpset) but this tape 
-                            * sequence not included (the tapeid has changed). So add 
+                           /* Prevously found the tapeid (the dumpset) but this tape
+                            * sequence not included (the tapeid has changed). So add
                             * this tape entry to the end of its dumpset.
                             */
                            else if (foundtape) {
@@ -514,7 +514,7 @@ bc_Restorer(afs_int32 aindex)
                            (tle->initialDumpID ? tle->initialDumpID : tle->
                             dumpID);
 
-                       /* Now place the volume fragment into the correct position on 
+                       /* Now place the volume fragment into the correct position on
                         * this tapelist entry. Duplicate entries are ignored.
                         */
                        for (pti = 0, ti = tle->restoreList; ti;
index 6bd1f6cd61c78a31fbf05e86c660b2e8d3b4cbfc..1f61dbe0f2bbd66924a0aa3f0e6d9492d18b870d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 16bd74744868609be992bb8b8b517c46d156611a..0940d88f5ef8d997b21ba4c8cde54301d78a1e7c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c5ab6618fbbc58a4af8ee72937ecf03d279abd14..b09811c1d22f9ac06fab70bad45d102c84e0dec8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -29,7 +29,7 @@
 #include <errno.h>
 #include "bucoord_internal.h"
 #include "bucoord_prototypes.h"
-    
+
 /* code to manage tape hosts
  * specific to the ubik database implementation
  */
index 57570ac36ed293ae9c72fc37afc1a9f1fb121ec4..338ea70990a1be22ea137e8abf1e68e324a11475 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -216,7 +216,7 @@ STC_AbortDump(acall, adumpID)
     return 0;
 }
 
-/* this call waits for a dump to complete; it ties up an LWP on the tape 
+/* this call waits for a dump to complete; it ties up an LWP on the tape
 coordinator */
 STC_WaitForDump()
 {
index c0a25be9eca2ccd85ef6623bd7d0ce3458c7b16f..92ac59ecc8bf93b1bf959f636c28af6ef773ed11 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -45,7 +45,7 @@
 extern char *whoami;
 
 /* -------------------------------------
- * Globals 
+ * Globals
  * -------------------------------------
  */
 
@@ -84,7 +84,7 @@ afs_int32 bcdb_CreateDump(struct budb_dumpEntry *deptr)
     return (code);
 }
 
-afs_int32 bcdb_deleteDump(afs_int32 dumpID, afs_int32 fromTime, afs_int32 toTime, 
+afs_int32 bcdb_deleteDump(afs_int32 dumpID, afs_int32 fromTime, afs_int32 toTime,
   budb_dumpsList *dumps)
 {
     afs_int32 code;
@@ -181,7 +181,7 @@ afs_int32 bcdb_FindClone(afs_int32 dumpID, char *volName, afs_int32 *clonetime)
  */
 
 int
-bcdb_FindDump(char *volumeName, afs_int32 beforeDate, 
+bcdb_FindDump(char *volumeName, afs_int32 beforeDate,
              struct budb_dumpEntry *deptr)
 {
     afs_int32 code;
@@ -258,7 +258,7 @@ bcdb_FindDumpByID(afs_int32 dumpID, struct budb_dumpEntry *deptr)
  */
 
 afs_int32
-bcdb_FindLastVolClone(char *volSetName, char *dumpName, char *volName, 
+bcdb_FindLastVolClone(char *volSetName, char *dumpName, char *volName,
                      afs_int32 *clonetime)
 {
     /* server notes
@@ -287,7 +287,7 @@ bcdb_FindLastVolClone(char *volSetName, char *dumpName, char *volName,
  */
 
 int
-bcdb_FindLatestDump(char *volSetName, char *dumpPath, 
+bcdb_FindLatestDump(char *volSetName, char *dumpPath,
                    struct budb_dumpEntry *deptr)
 {
     afs_int32 code;
@@ -306,7 +306,7 @@ bcdb_FindLatestDump(char *volSetName, char *dumpPath,
  */
 
 int
-bcdb_FindTape(afs_int32 dumpid, char *tapeName, 
+bcdb_FindTape(afs_int32 dumpid, char *tapeName,
              struct budb_tapeEntry *teptr)
 {
     budb_tapeList tl;
@@ -338,7 +338,7 @@ bcdb_FindTape(afs_int32 dumpid, char *tapeName,
 }
 
 int
-bcdb_FindTapeSeq(afs_int32 dumpid, afs_int32 tapeSeq, 
+bcdb_FindTapeSeq(afs_int32 dumpid, afs_int32 tapeSeq,
                 struct budb_tapeEntry *teptr)
 {
     budb_tapeList tl;
@@ -369,7 +369,7 @@ bcdb_FindTapeSeq(afs_int32 dumpid, afs_int32 tapeSeq,
 }
 
 /* bcdb_FindVolumes
- * notes: 
+ * notes:
  *     - this is part of dblookup. The existing semantics will not work since
  *     they do lookups based on dump id.
  *     - in the restore code, it uses this to extract information about
@@ -382,9 +382,9 @@ bcdb_FindTapeSeq(afs_int32 dumpid, afs_int32 tapeSeq,
  */
 
 afs_int32
-bcdb_FindVolumes(afs_int32 dumpID, char *volumeName, 
-                struct budb_volumeEntry *returnArray, 
-                afs_int32 last, afs_int32 *next, afs_int32 maxa, 
+bcdb_FindVolumes(afs_int32 dumpID, char *volumeName,
+                struct budb_volumeEntry *returnArray,
+                afs_int32 last, afs_int32 *next, afs_int32 maxa,
                 afs_int32 *nEntries)
 {
     budb_volumeList vl;
@@ -427,8 +427,8 @@ bcdb_FinishTape(struct budb_tapeEntry *teptr)
  */
 
 afs_int32
-bcdb_LookupVolume(char *volumeName, struct budb_volumeEntry *returnArray, 
-                 afs_int32 last, afs_int32 *next, afs_int32 maxa, 
+bcdb_LookupVolume(char *volumeName, struct budb_volumeEntry *returnArray,
+                 afs_int32 last, afs_int32 *next, afs_int32 maxa,
                  afs_int32 *nEntries)
 {
     budb_volumeList vl;
@@ -463,10 +463,10 @@ bcdb_UseTape(struct budb_tapeEntry *teptr, afs_int32 *newFlag)
 
 
 /* ---- text configuration handling routines ----
- * 
- * notes: 
+ *
+ * notes:
  *     The caller should pass in/out a fid for an unlinked, open file to prevent
- *     tampering with the files contents; 
+ *     tampering with the files contents;
  */
 
 /* bcdb_GetTextFile
@@ -788,12 +788,12 @@ parseSecFlags(int noAuthFlag, int localauth, const char **confdir) {
     return secFlags;
 }
 
-/* vldbClientInit 
+/* vldbClientInit
  *      Initialize a client for the vl ubik database.
  */
 int
-vldbClientInit(int noAuthFlag, int localauth, char *cellName, 
-              struct ubik_client **cstruct, 
+vldbClientInit(int noAuthFlag, int localauth, char *cellName,
+              struct ubik_client **cstruct,
               time_t *expires)
 {
     afs_int32 code = 0;
@@ -998,10 +998,10 @@ static struct ubikCallState uServer;
  */
 
 afs_int32
-ubik_Call_SingleServer(int (*aproc) (), struct ubik_client *aclient, 
-                      afs_int32 aflags, char *p1, char *p2, char *p3, 
+ubik_Call_SingleServer(int (*aproc) (), struct ubik_client *aclient,
+                      afs_int32 aflags, char *p1, char *p2, char *p3,
                       char *p4, char *p5, char *p6, char *p7, char *p8,
-                      char *p9, char *p10, char *p11, char *p12, char *p13, 
+                      char *p9, char *p10, char *p11, char *p12, char *p13,
                       char *p14, char *p15, char *p16)
 {
     afs_int32 code;
@@ -1131,7 +1131,7 @@ ubik_Call_SingleServer(int (*aproc) (), struct ubik_client *aclient,
 
 
 /* -------------------------------------
- * debug and test routines 
+ * debug and test routines
  * -------------------------------------
  */
 
@@ -1209,7 +1209,7 @@ udbLocalInit(void)
  *           the udbClientTextP.textStream member.
  * Output: The temp file name is returned in tmpFileName. This should be used
  *   to delete the file when done with it.
- * Return Values: 
+ * Return Values:
  *     !0: error code
  *     0: Success.
  */
@@ -1261,10 +1261,10 @@ bc_openTextFile(udbClientTextP ctPtr, char *tmpFileName)
 
 
 /* bc_closeTextFile: This function closes any actual temp files associated with
- * a udbClientText structure. 
+ * a udbClientText structure.
  * Input: ctPtr->textStream - stream to close
  *        tmpFileName - temp file name to delete
- * RetVal: 
+ * RetVal:
  *    0  - Success
  *    !0 - error code
  */
index a517ed0fea6e5434a0c0b9865dd310498a8b4e46..047cec8fb037de7d537320dd50fa11d4183f8d20 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -29,7 +29,7 @@
 #include "error_macros.h"
 #include "bucoord_internal.h"
 #include "bucoord_prototypes.h"
-    
+
 /* code to manage volumesets
  * specific to the ubik database implementation
  */
@@ -505,7 +505,7 @@ bc_ParseVolumeSet(void)
            tvs->next = (struct bc_volumeSet *)0;
        } /*r */
        else {                  /*e */
-           /* Scan a volume name entry, which contains the server name, 
+           /* Scan a volume name entry, which contains the server name,
             * partition pattern, and volume pattern.
             */
            code = sscanf(tbuffer, "%s %s %s", serverName, partName, vsname);
@@ -517,8 +517,8 @@ bc_ParseVolumeSet(void)
                continue;
            }
 
-           /* The line just read in is a volume spec.  Create a new volume 
-            * spec record, then get the rest of the information regarding 
+           /* The line just read in is a volume spec.  Create a new volume
+            * spec record, then get the rest of the information regarding
             * the host, and stuff everything into place.
             */
            tve = (struct bc_volumeEntry *)
@@ -575,7 +575,7 @@ bc_ParseVolumeSet(void)
        }
     }                          /*forever loop */
 
-    /* If we hit an EOF in the middle of a volume set record, we bitch and 
+    /* If we hit an EOF in the middle of a volume set record, we bitch and
      * moan.
      */
     if (!readHeader)
index bdd59f2cdfeabe1aad9baf9b637727215ce4982d..46d312c9536cbd5c03445e1c0125bb87656800a5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -36,7 +36,7 @@ extern char *whoami;
 /* ********************************************************************* */
 
 afs_int32
-bc_GetEntryByID(struct ubik_client *uclient, afs_int32 volID, 
+bc_GetEntryByID(struct ubik_client *uclient, afs_int32 volID,
                afs_int32 volType, struct vldbentry *vldbEntryPtr)
 {
     afs_int32 code = 0;
index aa62a9ca03651ccc3753ef75ba802b86af84af81..1ec45f1cac906f036386c0d626199c3c04ac20b5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 7be2e3d841cb543dbe12d053b71edbf8c3bac88c..9088fec7862f5b1e16fbd444b454e3d317a60bd7 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 6d64c3469c232276c2608ac43c459fc71e17a11a..bb3852e4254a74a76f6f553882a474954b5c0ff4 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 2000, International Business Machines Corporation and others.
 # All Rights Reserved.
-# 
+#
 # This software has been released under the terms of the IBM Public
 # License.  For details, see the LICENSE file in the top-level source
 # directory or online at http://www.openafs.org/dl/license10.html
index 5c995871b640d6d56c883f3d11ea927f11d31f03..ca8a36334e72a8ef703439227e8b46f92d533a77 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index f28493f50c0fba09f6e3f5390f3da4c06b46d793..8341161b6f6cae7261cac5d4d456349ad4f5c4c8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -52,7 +52,7 @@ InitDB(void)
 
 /* package up seek and write into one procedure for ease of use */
 
-/* dbwrite 
+/* dbwrite
  *     write a portion of the database
  * entry:
  *     pos - offset into the database (disk address). If this is in the
index e192cf67c3d74071685032dd2beade5c97d1e180..6a359a7d8952c4d80d09937882d2837da683959b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -313,7 +313,7 @@ extern struct memoryDB db;
 
 struct memoryHashTable *ht_GetType(int type, int *e_sizeP);
 extern afs_uint32 ht_HashEntry(struct memoryHashTable *mht, char *e);
-extern dbadr ht_LookupBucket(struct ubik_trans *ut, 
+extern dbadr ht_LookupBucket(struct ubik_trans *ut,
                             struct memoryHashTable *mht,
                             afs_uint32 hash, int old);
 
index e8f83a582ee65bd3c0997635ed0d2e179568a9db..3545fd3d1e6f1754aedfe2428a61b34fbe4aa33e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -58,7 +58,7 @@ InitDBalloc(void)
  */
 
 afs_int32
-AllocBlock(struct ubik_trans *ut, 
+AllocBlock(struct ubik_trans *ut,
           struct block *block, /* copy of data */
           dbadr *aP)           /* db addr of block */
 {
@@ -167,7 +167,7 @@ AllocStructure(struct ubik_trans *ut, char type, dbadr related, dbadr *saP, void
                db_panic("nFree is zero");
 
            /* Completely empty blocks go to generic free list if there are
-            * more blocks on this free list 
+            * more blocks on this free list
             */
            if (b.h.next && (nFree == nEntries[(int) type]) && (count-- > 0)) {
                if (set_header_word(ut, freePtrs[(int) type], b.h.next)
index f971a4b679ac43bbe8d6d0e17ab548053a1661f8..c7a1e1a958b1785e08c9040393988b27585c83ef 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index e5193261085cad7605590276ecca7854f3184dec..fa2de597cdf3ed03cf6afdecf673fcf4cdbe1a4f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -79,7 +79,7 @@ ht_ResetT(struct memoryHTBlock ***blocksP, int *sizeP, int length)
 }
 
 /* ht_Reset
- *     reinitialize a memory hash table. 
+ *     reinitialize a memory hash table.
  *     Calls ht_ResetT to invalidate the two block arrays.
  */
 
@@ -247,8 +247,8 @@ ht_FreeTable(struct ubik_trans *ut, struct memoryHashTable *mht)
 }
 
 afs_int32
-ht_GetTableBlock(struct ubik_trans *ut, struct memoryHashTable *mht, 
-                afs_uint32 hash, int old, struct memoryHTBlock **blockP, 
+ht_GetTableBlock(struct ubik_trans *ut, struct memoryHashTable *mht,
+                afs_uint32 hash, int old, struct memoryHTBlock **blockP,
                 int *boP)
 {
     struct hashTable *ht = NULL;
@@ -382,7 +382,7 @@ ht_MaybeAdjust(struct ubik_trans *ut, struct memoryHashTable *mht)
 }
 
 dbadr
-ht_LookupBucket(struct ubik_trans *ut, struct memoryHashTable *mht, 
+ht_LookupBucket(struct ubik_trans *ut, struct memoryHashTable *mht,
                afs_uint32 hash, int old)
 {
     struct memoryHTBlock *block;
@@ -546,7 +546,7 @@ ht_minHBlocks(struct memoryHashTable *mht)
 }
 
 afs_uint32
-ht_HashEntry(struct memoryHashTable *mht, 
+ht_HashEntry(struct memoryHashTable *mht,
             char *e)                           /* entry's address (in b) */
 {
     int type = ntohl(mht->ht->functionType);
@@ -653,8 +653,8 @@ ht_KeyMatch(int type, char *key, char *e)
  */
 
 afs_int32
-ht_LookupEntry(struct ubik_trans *ut, 
-              struct memoryHashTable *mht, 
+ht_LookupEntry(struct ubik_trans *ut,
+              struct memoryHashTable *mht,
               void *key,       /* pointer to lookup key to match */
               dbadr *eaP,      /* db addr of entry found or zero */
               void *e)         /* contents of located entry */
@@ -704,7 +704,7 @@ ht_LookupEntry(struct ubik_trans *ut,
  */
 
 static afs_int32
-ht_HashInList(struct ubik_trans *ut, struct memoryHashTable *mht, 
+ht_HashInList(struct ubik_trans *ut, struct memoryHashTable *mht,
              int *opQuota, struct memoryHTBlock *block, int blockOffset)
 {
     struct hashTable *ht = mht->ht;
@@ -1063,7 +1063,7 @@ ht_HashOutT(struct ubik_trans *ut, struct memoryHashTable *mht,
 
 afs_int32
 ht_HashOut(struct ubik_trans *ut, struct memoryHashTable *mht, dbadr ea,
-          void *e) 
+          void *e)
 {
     afs_uint32 hash;
     afs_int32 code;
@@ -1158,8 +1158,8 @@ scanHashTableBlock(struct ubik_trans *ut,
 
 afs_int32
 scanHashTable(struct ubik_trans *ut, struct memoryHashTable *mhtPtr,
-             int (*selectFn) (dbadr, void *, void *), 
-             int (*operationFn) (dbadr, void *, void *), 
+             int (*selectFn) (dbadr, void *, void *),
+             int (*operationFn) (dbadr, void *, void *),
              void *rockPtr)
 {
     struct htBlock hashTableBlock;
index 131153b7b70ff13b8e3040c39fd5243cb2b06f67..59334b390f18f168a12bcb3a9ca2bcfba9c8257c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -32,7 +32,7 @@
 afs_int32 FreeAllLocks(struct rx_call *, afs_uint32);
 afs_int32 FreeLock(struct rx_call *, afs_uint32);
 afs_int32 GetInstanceId(struct rx_call *, afs_uint32 *);
-afs_int32 GetLock(struct rx_call *, afs_uint32, afs_int32, afs_int32, 
+afs_int32 GetLock(struct rx_call *, afs_uint32, afs_int32, afs_int32,
                  afs_uint32 *);
 
 afs_int32
index ef78afca5872d730507713434fb23baf4d8b71ca..95e621656c7a198c77383f330d5b2490a038dae3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c4117f391bac3d6e94b80620683459cb8960f8f2..083c3cf585d48103a26f613c8ca4b8965313cff3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  */
 
 /* BUDB_GetText
- * notes: 
+ * notes:
  *     routine mallocs storage for charListPtr, freed by stub
  */
 
-afs_int32 GetText(struct rx_call *, afs_uint32, afs_int32, afs_int32, 
+afs_int32 GetText(struct rx_call *, afs_uint32, afs_int32, afs_int32,
                  afs_int32, afs_int32 *, charListT *);
 afs_int32 GetTextVersion(struct rx_call *, afs_int32, afs_uint32 *);
 afs_int32 SaveText(struct rx_call *, afs_uint32, afs_int32, afs_int32,
@@ -63,7 +63,7 @@ SBUDB_GetText(struct rx_call *call, afs_uint32 lockHandle, afs_int32 textType,
 }
 
 afs_int32
-GetText(struct rx_call *call, afs_uint32 lockHandle, afs_int32 textType, 
+GetText(struct rx_call *call, afs_uint32 lockHandle, afs_int32 textType,
        afs_int32 maxLength, afs_int32 offset, afs_int32 *nextOffset,
        charListT *charListPtr)
 {
@@ -223,7 +223,7 @@ freeOldBlockChain(struct ubik_trans *ut, dbadr diskAddr)
  */
 
 afs_int32
-SBUDB_GetTextVersion(struct rx_call *call, afs_int32 textType, 
+SBUDB_GetTextVersion(struct rx_call *call, afs_int32 textType,
                     afs_uint32 *tversion)
 {
     afs_int32 code;
@@ -234,7 +234,7 @@ SBUDB_GetTextVersion(struct rx_call *call, afs_int32 textType,
 }
 
 afs_int32
-GetTextVersion(struct rx_call *call, afs_int32 textType, 
+GetTextVersion(struct rx_call *call, afs_int32 textType,
               afs_uint32 *tversion)
 {
     afs_int32 code;
@@ -266,7 +266,7 @@ GetTextVersion(struct rx_call *call, afs_int32 textType,
  */
 
 afs_int32
-SBUDB_SaveText(struct rx_call *call, afs_uint32 lockHandle, 
+SBUDB_SaveText(struct rx_call *call, afs_uint32 lockHandle,
               afs_int32 textType, afs_int32 offset, afs_int32 flags,
               charListT *charListPtr)
 {
@@ -278,7 +278,7 @@ SBUDB_SaveText(struct rx_call *call, afs_uint32 lockHandle,
 }
 
 afs_int32
-SaveText(struct rx_call *call, afs_uint32 lockHandle, afs_int32 textType, 
+SaveText(struct rx_call *call, afs_uint32 lockHandle, afs_int32 textType,
         afs_int32 offset, afs_int32 flags, charListT *charListPtr)
 {
     struct ubik_trans *ut;
index 9fad9ad96cd34443a0f3d8cb08e00a82f1aff141..6007b699382e09e84958814130a302b1079ee842 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -95,7 +95,7 @@ setupDbDump(void *param)
 
 
 afs_int32
-SBUDB_DumpDB(struct rx_call *call, int firstcall, afs_int32 maxLength, 
+SBUDB_DumpDB(struct rx_call *call, int firstcall, afs_int32 maxLength,
             charListT *charListPtr, afs_int32 *done)
 {
     afs_int32 code;
@@ -128,7 +128,7 @@ DumpDB(struct rx_call *call,
     ObtainWriteLock(&dumpSyncPtr->ds_lock);
 
     /* If asking for zero bytes, then this is a call to reset the timeToLive
-     * timer. Reset it if there is a dump in progress. 
+     * timer. Reset it if there is a dump in progress.
      */
     if (maxLength == 0) {
        charListPtr->charListT_val = NULL;
@@ -320,9 +320,9 @@ RestoreDbHeader(struct rx_call *call, struct DbHeader *header)
 }
 
 /* dumpWatcher
- *     monitors the state of a database dump. If the dump calls do not 
+ *     monitors the state of a database dump. If the dump calls do not
  *     reset the time to live value, the dump times out. In that case,
- *     we kill the database traversal thread and clean up all the other 
+ *     we kill the database traversal thread and clean up all the other
  *     state. Most importantly, the database is unlocked so that other
  *     transactions can proceed.
  */
index 84778eed29076000a048343faba97931d3e611d2..99531be118abc3a04e5e082f927997a0857af1f6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 2f85eebfb80a5e5c662d8203a18f2d5206dd6142..ed6bfdbb93ada6209987e0dfbd52de45fe9f9d8c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 0ca22a5976da7f9125dc04518fb73b23e4e8fbf9..a53f921fe9743793f8754579f82126d5a3996a46 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -38,8 +38,8 @@
 /* notes
  * 1) volInfo structures refering to a volume of the same name are
  *     chained together, i.e. the volumes described differ in volid, partition
- *     etc. The structure at the head of this list (the sameNameChain) is 
- *     treated specially. When a delete volInfo request is processed, heads 
+ *     etc. The structure at the head of this list (the sameNameChain) is
+ *     treated specially. When a delete volInfo request is processed, heads
  *     are not deleted unless all other items on the sameNameChain are gone.
  *
  *     The result is that volInfo (head) structures may be present
@@ -52,7 +52,7 @@
  *     is only for the off-line case.
  */
 
-/* flags associated with each structure. These are set and checked in 
+/* flags associated with each structure. These are set and checked in
  * the blockMap entries
  */
 
@@ -186,10 +186,10 @@ char *textName[TB_NUM] = {
 extern int sizeFunctions[];
 extern int nHTBuckets;
 
-afs_int32 DbVerify(struct rx_call *call, afs_int32 *status, 
+afs_int32 DbVerify(struct rx_call *call, afs_int32 *status,
                   afs_int32 *orphans, afs_int32 *host);
 afs_int32 verifyTextChain(struct ubik_trans *ut, struct textBlock *tbPtr);
-       
+
 
 #define DBBAD BUDB_DATABASEINCONSISTENT
 
@@ -225,7 +225,7 @@ BumpErrors(void)
  */
 
 afs_int32
-checkDiskAddress(unsigned long address, int type, int *blockIndexPtr, 
+checkDiskAddress(unsigned long address, int type, int *blockIndexPtr,
                 int *entryIndexPtr)
 {
     int index, offset;
@@ -315,7 +315,7 @@ getDumpID(struct ubik_trans *ut,
  */
 
 /* verifyDumpEntry
- *      Follow the tapes entries hanging off of a dump and verify they belong 
+ *      Follow the tapes entries hanging off of a dump and verify they belong
  *      to the dump.
  */
 afs_int32
@@ -323,7 +323,7 @@ verifyDumpEntry(struct ubik_trans *ut, afs_int32 dumpAddr, int ai, int ao,
                void *param)
 {
     struct dump *dumpPtr = (struct dump *)param;
-    
+
     struct tape tape;
     afs_int32 tapeAddr, tapeCount = 0, volCount = 0, appDumpCount = 0;
     afs_int32 appDumpAddr, appDumpIndex, appDumpOffset;
@@ -448,7 +448,7 @@ verifyDumpEntry(struct ubik_trans *ut, afs_int32 dumpAddr, int ai, int ao,
 
 /*
  * verifyTapeEntry
- *      Follw the volume fragments hanging off of a tape entry and verify 
+ *      Follw the volume fragments hanging off of a tape entry and verify
  *      they belong to the tape.
  */
 afs_int32
@@ -544,11 +544,11 @@ verifyVolFragEntry(struct ubik_trans *ut, afs_int32 va, int ai, int ao,
  *      also verify all entries are also on the chain.
  */
 afs_int32
-verifyVolInfoEntry(struct ubik_trans *ut, afs_int32 volInfoAddr, int ai, 
+verifyVolInfoEntry(struct ubik_trans *ut, afs_int32 volInfoAddr, int ai,
                   int ao, void *param)
 {
     struct volInfo *volInfo = (struct volInfo *) param;
-    
+
     int volCount = 0, ccheck = 1;
     afs_int32 volFragAddr;
     int blockIndex, entryIndex;
@@ -603,7 +603,7 @@ verifyVolInfoEntry(struct ubik_trans *ut, afs_int32 volInfoAddr, int ai,
     if (volCount > misc->maxVolsPerVolInfo)
        misc->maxVolsPerVolInfo = volCount;
 
-    /* Check that all volInfo structures with same name point to the same 
+    /* Check that all volInfo structures with same name point to the same
      * head. If sameNameHead == 0, this is the head structure so we check,
      * otherwise ignore
      */
@@ -670,7 +670,7 @@ verifyVolInfoEntry(struct ubik_trans *ut, afs_int32 volInfoAddr, int ai,
  */
 
 /* verifyBlocks
- *     Read each block header of every 2K block and remember it in our global 
+ *     Read each block header of every 2K block and remember it in our global
  *     blockMap array. Also check that the type of block is good.
  */
 afs_int32
@@ -726,7 +726,7 @@ int minvols, maxvols, ttlvols;
 
 /* verifyHashTableBlock
  *      Take a 2K hash table block and traverse its entries. Make sure each entry
- *      is of the correct type for the hash table, is hashed into the correct 
+ *      is of the correct type for the hash table, is hashed into the correct
  *      entry and is not threaded on multiple lists.
  */
 afs_int32
@@ -826,13 +826,13 @@ verifyHashTableBlock(struct ubik_trans *ut,
 }
 
 /* verifyHashTable
- *      Read each 2K block a hashtable has (both its old hastable and 
+ *      Read each 2K block a hashtable has (both its old hastable and
  *      new hashtable) and verify the block has not been read before.
  *      Will also make call to verify entries within each 2K block of
  *      the hash table.
  */
 afs_int32
-verifyHashTable(struct ubik_trans *ut, struct memoryHashTable *mhtPtr, 
+verifyHashTable(struct ubik_trans *ut, struct memoryHashTable *mhtPtr,
                int mapBit)
 {
     struct hashTable *htPtr = mhtPtr->ht;
@@ -942,7 +942,7 @@ verifyEntryChains(struct ubik_trans *ut)
     int type;
     int nFree;
 
-    static afs_int32(*checkEntry[NBLOCKTYPES]) (struct ubik_trans *, 
+    static afs_int32(*checkEntry[NBLOCKTYPES]) (struct ubik_trans *,
                                                afs_int32, int, int, void *)
        = {
        /* FIXME: this list does not match typeName[] and may be incorrect */
@@ -1421,7 +1421,7 @@ SBUDB_DbVerify(struct rx_call *call, afs_int32 *status, afs_int32 *orphans,
 }
 
 afs_int32
-DbVerify(struct rx_call *call, afs_int32 *status, afs_int32 *orphans, 
+DbVerify(struct rx_call *call, afs_int32 *status, afs_int32 *orphans,
         afs_int32 *host)
 {
     struct ubik_trans *ut = 0;
index 927a0427b5246a3ff6a426df95004e7fa6902076..8cf051e428f6c687fbaf614cf22b40da91295c28 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -63,21 +63,21 @@ afs_int32 AddVolumes(struct rx_call *, struct budb_volumeList *);
 afs_int32 CreateDump(struct rx_call *, struct budb_dumpEntry *);
 afs_int32 DoDeleteDump(struct rx_call *, dumpId, Date, Date, budb_dumpsList *);
 afs_int32 DoDeleteTape(struct rx_call *, struct budb_tapeEntry *);
-afs_int32 ListDumps(struct rx_call *, afs_int32, afs_int32, Date, Date, 
+afs_int32 ListDumps(struct rx_call *, afs_int32, afs_int32, Date, Date,
                    budb_dumpsList *, budb_dumpsList *);
 afs_int32 DeleteVDP(struct rx_call *, char *, char *, afs_int32);
 afs_int32 FindClone(struct rx_call *, afs_int32, char *, afs_int32 *);
-afs_int32 FindDump(struct rx_call *, char *, afs_int32, 
+afs_int32 FindDump(struct rx_call *, char *, afs_int32,
                   struct budb_dumpEntry *);
-afs_int32 FindLatestDump(struct rx_call *, char *, char *, 
+afs_int32 FindLatestDump(struct rx_call *, char *, char *,
                         struct budb_dumpEntry *);
 afs_int32 FinishDump(struct rx_call *, struct budb_dumpEntry *);
 afs_int32 FinishTape(struct rx_call *, struct budb_tapeEntry *);
-afs_int32 GetDumps(struct rx_call *, afs_int32, afs_int32, char *, 
+afs_int32 GetDumps(struct rx_call *, afs_int32, afs_int32, char *,
                   afs_int32, afs_int32, afs_int32, afs_int32 *,
                   afs_int32 *, budb_dumpList *);
 afs_int32 getExpiration(struct ubik_trans *ut, struct tape *);
-afs_int32 makeAppended(struct ubik_trans *ut, afs_int32, afs_int32, 
+afs_int32 makeAppended(struct ubik_trans *ut, afs_int32, afs_int32,
                       afs_int32);
 afs_int32 MakeDumpAppended(struct rx_call *, afs_int32, afs_int32,
                           afs_int32);
@@ -125,7 +125,7 @@ static int procsInited = 0;
 
 static int (*rebuildDatabase) (struct ubik_trans *);
 
-/* AwaitInitialization 
+/* AwaitInitialization
  * Wait unitl budb has initialized (InitProcs). If it hasn't
  * within 5 seconds, then return no quorum.
  */
@@ -369,7 +369,7 @@ AddToReturnList(struct returnList *list, dbadr a, afs_int32 *to_skipP)
        return 0;
     }
 
-    /* Up to 5 plus a maximum so SendReturnList() knows if we 
+    /* Up to 5 plus a maximum so SendReturnList() knows if we
      * need to come back for more.
      */
     if (list->nElements >= BUDB_MAX_RETURN_LIST + 5)
@@ -519,7 +519,7 @@ FillTapeEntry(struct ubik_trans *ut, dbadr ta, void *rock)
 static afs_int32
 SendReturnList(struct ubik_trans *ut,
               struct returnList *list, /* list of elements to return */
-              afs_int32(*FillProc) (struct ubik_trans *, dbadr da, 
+              afs_int32(*FillProc) (struct ubik_trans *, dbadr da,
                                     void *),
                                        /* proc to fill entry */
               int e_size,              /* size of each element */
@@ -807,7 +807,7 @@ GetVolInfo(struct ubik_trans *ut, struct budb_volumeEntry *volP, dbadr *viaP,
 }
 
 /* deletesomevolumesfromtape
- *     Deletes a specified number of volumes from a tape. The tape 
+ *     Deletes a specified number of volumes from a tape. The tape
  *     and dump are modified to reflect the smaller number of volumes.
  *     The transaction is not terminated, it is up to the caller to
  *     finish the transaction and start a new one (if desired).
@@ -1550,8 +1550,8 @@ DoDeleteDump(struct rx_call *call, dumpId id, Date fromTime, Date toTime,
 }
 
 afs_int32
-SBUDB_ListDumps(struct rx_call *call, afs_int32 sflags, char *name, 
-               afs_int32 groupid, Date fromTime, Date toTime, 
+SBUDB_ListDumps(struct rx_call *call, afs_int32 sflags, char *name,
+               afs_int32 groupid, Date fromTime, Date toTime,
                budb_dumpsList *dumps, budb_dumpsList *flags)
 {
     afs_int32 code;
@@ -1562,8 +1562,8 @@ SBUDB_ListDumps(struct rx_call *call, afs_int32 sflags, char *name,
 }
 
 afs_int32
-ListDumps(struct rx_call *call, afs_int32 sflags, afs_int32 groupid, 
-         Date fromTime, Date toTime, budb_dumpsList *dumps, 
+ListDumps(struct rx_call *call, afs_int32 sflags, afs_int32 groupid,
+         Date fromTime, Date toTime, budb_dumpsList *dumps,
          budb_dumpsList *flags)
 {
     struct ubik_trans *ut;
@@ -1833,11 +1833,11 @@ DeleteVDP(struct rx_call *call, char *dsname, char *dumpPath,
 
 /* BUDB_FindClone
  * notes:
- *      Given a volume name, and a dumpID, find the volume in that dump and 
- *      return the clone date of the volume (this is the clone date of the 
+ *      Given a volume name, and a dumpID, find the volume in that dump and
+ *      return the clone date of the volume (this is the clone date of the
  *      volume at the time it was dumped).
- *   
- *      Hashes on the volume name and traverses the fragments. Will need to read 
+ *
+ *      Hashes on the volume name and traverses the fragments. Will need to read
  *      the volumes tape entry to determine if it belongs to the dump. If the
  *      volume is not found in the dump, then look for it in its parent dump.
  */
@@ -2403,12 +2403,12 @@ FinishTape(struct rx_call *call, struct budb_tapeEntry *tape)
  *     flags - for search and select operations. Broken down into flags
  *             for name, start point, end point and time.
  *     name - name to search for. Interpretation based on flags
- *     end 
+ *     end
  *     index
  *     nextIndexP
  *     dbTimeP
  * exit:
- *     nextIndexP 
+ *     nextIndexP
  *     dbTimeP - time at which the database was last modified. Up to
  *             caller (client) to take appropriate action if database
  *             modified between successive calls
@@ -2622,9 +2622,9 @@ GetDumps(struct rx_call *call,
     return code;
 }
 
-/* 
+/*
  * Get the expiration of a tape.  Since the dump could have appended dumps,
- * we should use the most recent expiration date. Put the most recent 
+ * we should use the most recent expiration date. Put the most recent
  * expiration tape into the given tape structure.
  */
 afs_int32
@@ -2679,7 +2679,7 @@ getExpiration(struct ubik_trans *ut, struct tape *tapePtr)
 
 /* Mark the following dump as appended to another, intial dump */
 afs_int32
-makeAppended(struct ubik_trans *ut, afs_int32 appendedDumpID, 
+makeAppended(struct ubik_trans *ut, afs_int32 appendedDumpID,
             afs_int32 initialDumpID, afs_int32 startTapeSeq)
 {
     dbadr ada, da, lastDumpAddr;
@@ -2717,8 +2717,8 @@ makeAppended(struct ubik_trans *ut, afs_int32 appendedDumpID,
     /* Update the appended dump's tape format with that of the initial */
     strcpy(ad.tapes.format, d.tapes.format);
 
-    /* starting with the initial dump step through its appended dumps till 
-     * we reach the last appended dump. 
+    /* starting with the initial dump step through its appended dumps till
+     * we reach the last appended dump.
      */
     lastDumpAddr = da;
     while (d.appendedDumpChain) {
@@ -2754,7 +2754,7 @@ makeAppended(struct ubik_trans *ut, afs_int32 appendedDumpID,
 }
 
 afs_int32
-SBUDB_MakeDumpAppended(struct rx_call *call, afs_int32 appendedDumpID, 
+SBUDB_MakeDumpAppended(struct rx_call *call, afs_int32 appendedDumpID,
                       afs_int32 initialDumpID, afs_int32 startTapeSeq)
 {
     afs_int32 code;
@@ -2767,7 +2767,7 @@ SBUDB_MakeDumpAppended(struct rx_call *call, afs_int32 appendedDumpID,
 }
 
 afs_int32
-MakeDumpAppended(struct rx_call *call, afs_int32 appendedDumpID, 
+MakeDumpAppended(struct rx_call *call, afs_int32 appendedDumpID,
                 afs_int32 initialDumpID, afs_int32 startTapeSeq)
 {
     struct ubik_trans *ut;
@@ -2794,9 +2794,9 @@ MakeDumpAppended(struct rx_call *call, afs_int32 appendedDumpID,
 
 /* Find the last tape of a dump-set. This includes any appended dumps */
 afs_int32
-SBUDB_FindLastTape(struct rx_call *call, afs_int32 dumpID, 
-                  struct budb_dumpEntry *dumpEntry, 
-                  struct budb_tapeEntry *tapeEntry, 
+SBUDB_FindLastTape(struct rx_call *call, afs_int32 dumpID,
+                  struct budb_dumpEntry *dumpEntry,
+                  struct budb_tapeEntry *tapeEntry,
                   struct budb_volumeEntry *volEntry)
 {
     afs_int32 code;
@@ -2807,9 +2807,9 @@ SBUDB_FindLastTape(struct rx_call *call, afs_int32 dumpID,
 }
 
 afs_int32
-FindLastTape(struct rx_call *call, afs_int32 dumpID, 
-            struct budb_dumpEntry *dumpEntry, 
-            struct budb_tapeEntry *tapeEntry, 
+FindLastTape(struct rx_call *call, afs_int32 dumpID,
+            struct budb_dumpEntry *dumpEntry,
+            struct budb_tapeEntry *tapeEntry,
             struct budb_volumeEntry *volEntry)
 {
     struct ubik_trans *ut;
@@ -3715,7 +3715,7 @@ volFragsDump(struct ubik_trans *ut, FILE *dumpfid, dbadr dbAddr)
  */
 
 void
-volFragmentDiskToHost(struct volFragment *diskVfPtr, 
+volFragmentDiskToHost(struct volFragment *diskVfPtr,
                      struct volFragment *hostVfPtr)
 {
     hostVfPtr->vol = ntohl(diskVfPtr->vol);
index 79a7d7014f01825fbfa4992583a63b314c6fe976..e5cb4600de33880e9583b8b2fb9b3656d77123bb 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -393,8 +393,8 @@ main(int argc, char **argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
@@ -435,7 +435,7 @@ main(int argc, char **argv)
 /*
     globalConfPtr->log = fopen(DEFAULT_LOGNAME,"a");
     if ( globalConfPtr->log == NULL )
-    {   
+    {
        printf("Can't open log file %s - aborting\n", DEFAULT_LOGNAME);
        BUDB_EXIT(-1);
     }
@@ -530,14 +530,14 @@ main(int argc, char **argv)
 
     if (rxBind) {
        afs_int32 ccode;
-        if (AFSDIR_SERVER_NETRESTRICT_FILEPATH || 
+        if (AFSDIR_SERVER_NETRESTRICT_FILEPATH ||
             AFSDIR_SERVER_NETINFO_FILEPATH) {
             char reason[1024];
             ccode = parseNetFiles(SHostAddrs, NULL, NULL,
                                            ADDRSPERSITE, reason,
                                            AFSDIR_SERVER_NETINFO_FILEPATH,
                                            AFSDIR_SERVER_NETRESTRICT_FILEPATH);
-        } else 
+        } else
        {
             ccode = rx_getAllAddr(SHostAddrs, ADDRSPERSITE);
         }
@@ -548,9 +548,9 @@ main(int argc, char **argv)
     }
 
     code = ubik_ServerInitByInfo (globalConfPtr->myHost,
-                                 htons(AFSCONF_BUDBPORT), 
+                                 htons(AFSCONF_BUDBPORT),
                                  &cellinfo,
-                                 clones,              
+                                 clones,
                                  dbNamePtr,           /* name prefix */
                                  &BU_dbase);
 
@@ -626,7 +626,7 @@ LogDebug(int level, char *fmt, ... )
     va_list ap;
 
     va_start(ap, fmt);
-       
+
     if (debugging >= level) {
        /* log normally closed so can remove it */
        globalConfPtr->log = fopen(AFSDIR_SERVER_BUDBLOG_FILEPATH, "a");
index 0894614792cdf8bfdfddbdbc2fdd15355b1803b3..f7399d3ec608f4e0c438fcec12718765b328f0e3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -68,7 +68,7 @@ printDump(FILE *fid, struct dump *dptr)
 
 }
 
-void 
+void
 printDumpEntry(struct budb_dumpEntry *deptr)
 {
     time_t created = deptr->created;
@@ -296,7 +296,7 @@ printVolInfo(FILE *fid, struct volInfo *viptr)
 
 /* -----------------------------------------
  * structure xdr routines
- * ----------------------------------------- 
+ * -----------------------------------------
  */
 
 /* utilities - network to host conversion
@@ -304,7 +304,7 @@ printVolInfo(FILE *fid, struct volInfo *viptr)
  */
 
 void
-volFragment_ntoh(struct volFragment *netVfPtr, 
+volFragment_ntoh(struct volFragment *netVfPtr,
                 struct volFragment *hostVfPtr)
 {
     hostVfPtr->vol = ntohl(netVfPtr->vol);
@@ -321,7 +321,7 @@ volFragment_ntoh(struct volFragment *netVfPtr,
 }
 
 void
-volInfo_ntoh(struct volInfo *netViPtr, 
+volInfo_ntoh(struct volInfo *netViPtr,
             struct volInfo *hostViPtr)
 {
     strcpy(hostViPtr->name, netViPtr->name);
@@ -337,7 +337,7 @@ volInfo_ntoh(struct volInfo *netViPtr,
 }
 
 void
-tape_ntoh(struct tape *netTapePtr, 
+tape_ntoh(struct tape *netTapePtr,
          struct tape *hostTapePtr)
 {
     strcpy(hostTapePtr->name, netTapePtr->name);
@@ -359,12 +359,12 @@ tape_ntoh(struct tape *netTapePtr,
 }
 
 void
-dump_ntoh(struct dump *netDumpPtr, 
+dump_ntoh(struct dump *netDumpPtr,
          struct dump *hostDumpPtr)
 {
     hostDumpPtr->id = ntohl(netDumpPtr->id);
     hostDumpPtr->idHashChain = ntohl(netDumpPtr->idHashChain);
-    strlcpy(hostDumpPtr->dumpName, netDumpPtr->dumpName, 
+    strlcpy(hostDumpPtr->dumpName, netDumpPtr->dumpName,
            sizeof(hostDumpPtr->dumpName));
     strlcpy(hostDumpPtr->dumpPath, netDumpPtr->dumpPath,
            sizeof(hostDumpPtr->dumpPath));
@@ -385,7 +385,7 @@ dump_ntoh(struct dump *netDumpPtr,
 }
 
 void
-DbHeader_ntoh(struct DbHeader *netptr, 
+DbHeader_ntoh(struct DbHeader *netptr,
              struct DbHeader *hostptr)
 {
     hostptr->dbversion = ntohl(netptr->dbversion);
@@ -397,7 +397,7 @@ DbHeader_ntoh(struct DbHeader *netptr,
 }
 
 void
-dumpEntry_ntoh(struct budb_dumpEntry *netptr, 
+dumpEntry_ntoh(struct budb_dumpEntry *netptr,
               struct budb_dumpEntry *hostptr)
 {
     hostptr->id = ntohl(netptr->id);
@@ -418,7 +418,7 @@ dumpEntry_ntoh(struct budb_dumpEntry *netptr,
 }
 
 void
-principal_hton(struct budb_principal *hostptr, 
+principal_hton(struct budb_principal *hostptr,
               struct budb_principal *netptr)
 {
     strcpy(netptr->name, hostptr->name);
@@ -427,7 +427,7 @@ principal_hton(struct budb_principal *hostptr,
 }
 
 void
-principal_ntoh(struct budb_principal *netptr, 
+principal_ntoh(struct budb_principal *netptr,
               struct budb_principal *hostptr)
 {
     strcpy(hostptr->name, netptr->name);
@@ -436,7 +436,7 @@ principal_ntoh(struct budb_principal *netptr,
 }
 
 void
-structDumpHeader_hton(struct structDumpHeader *hostPtr, 
+structDumpHeader_hton(struct structDumpHeader *hostPtr,
                      struct structDumpHeader *netPtr)
 {
     netPtr->type = htonl(hostPtr->type);
@@ -445,7 +445,7 @@ structDumpHeader_hton(struct structDumpHeader *hostPtr,
 }
 
 void
-structDumpHeader_ntoh(struct structDumpHeader *netPtr, 
+structDumpHeader_ntoh(struct structDumpHeader *netPtr,
                      struct structDumpHeader *hostPtr)
 {
     hostPtr->type = ntohl(netPtr->type);
@@ -454,7 +454,7 @@ structDumpHeader_ntoh(struct structDumpHeader *netPtr,
 }
 
 void
-tapeEntry_ntoh(struct budb_tapeEntry *netptr, 
+tapeEntry_ntoh(struct budb_tapeEntry *netptr,
               struct budb_tapeEntry *hostptr)
 {
     strcpy(hostptr->name, netptr->name);
@@ -473,7 +473,7 @@ tapeEntry_ntoh(struct budb_tapeEntry *netptr,
 }
 
 int
-tapeSet_hton(struct budb_tapeSet *hostptr, 
+tapeSet_hton(struct budb_tapeSet *hostptr,
             struct budb_tapeSet *netptr)
 {
     netptr->id = htonl(hostptr->id);
@@ -486,7 +486,7 @@ tapeSet_hton(struct budb_tapeSet *hostptr,
 }
 
 int
-tapeSet_ntoh(struct budb_tapeSet *netptr, 
+tapeSet_ntoh(struct budb_tapeSet *netptr,
             struct budb_tapeSet *hostptr)
 {
     hostptr->id = ntohl(netptr->id);
@@ -499,7 +499,7 @@ tapeSet_ntoh(struct budb_tapeSet *netptr,
 }
 
 void
-textBlock_hton(struct textBlock *hostptr, 
+textBlock_hton(struct textBlock *hostptr,
               struct textBlock *netptr)
 {
     netptr->version = htonl(hostptr->version);
@@ -510,7 +510,7 @@ textBlock_hton(struct textBlock *hostptr,
 }
 
 void
-textBlock_ntoh(struct textBlock *netptr, 
+textBlock_ntoh(struct textBlock *netptr,
               struct textBlock *hostptr)
 {
     hostptr->version = ntohl(netptr->version);
@@ -543,7 +543,7 @@ textLock_ntoh(db_lockP netptr, db_lockP hostptr)
 }
 
 void
-volumeEntry_ntoh(struct budb_volumeEntry *netptr, 
+volumeEntry_ntoh(struct budb_volumeEntry *netptr,
                 struct budb_volumeEntry *hostptr)
 {
     strcpy(hostptr->name, netptr->name);
@@ -565,7 +565,7 @@ volumeEntry_ntoh(struct budb_volumeEntry *netptr,
 }
 
 /* -------------------------------------
- * structure conversion & copy routines 
+ * structure conversion & copy routines
  * -------------------------------------
  */
 
@@ -644,7 +644,7 @@ volsToBudbVol(struct volFragment *volFragPtr, struct volInfo *volInfoPtr,
 }
 
 /* ----------------------------------
- * structure initialization routines 
+ * structure initialization routines
  *  ---------------------------------
  */
 
index 77920f490cc1db3055024c7ef1ed6bd7367cbed4..cb8a7a1d5a3025700f2e64d692e3ceccf9ad7ce9 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -667,7 +667,7 @@ void * dynlib = NULL ;
        printf("dsm_MountLibrary : SUCCESS to Open the libApiDS shared library. \n");
 #endif
 #if defined(AFS_AIX_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_LINUX26_ENV)
-       AFSdsmBeginQuery = (dsInt16_t (*)( dsUint32_t dsmHandle, dsmQueryType queryType, dsmQueryBuff *queryBuffer)) dlsym((void *)dynlib, "dsmBeginQuery"); 
+       AFSdsmBeginQuery = (dsInt16_t (*)( dsUint32_t dsmHandle, dsmQueryType queryType, dsmQueryBuff *queryBuffer)) dlsym((void *)dynlib, "dsmBeginQuery");
        AFSdsmGetNextQObj = (dsInt16_t (*)( dsUint32_t dsmHandle, DataBlk *dataBlkPtr))dlsym((void *)dynlib, "dsmGetNextQObj") ;
        AFSdsmEndQuery = (dsInt16_t (*)( dsUint32_t dsmHandle))dlsym((void *)dynlib, "dsmEndQuery");
        AFSdsmRCMsg = (dsInt16_t (*)( dsUint32_t dsmHandle, dsInt16_t dsmRC, char *msg))dlsym((void *)dynlib, "dsmRCMsg");
@@ -694,13 +694,13 @@ void * dynlib = NULL ;
 
 
        if (    !AFSdsmBeginQuery || !AFSdsmGetNextQObj || !AFSdsmEndQuery ||
-               !AFSdsmRCMsg || !AFSdsmLogEventEx || !AFSdsmTrace || 
-               !AFSdsmTerminate || !AFSdsmEndGetObj || !AFSdsmSendData || 
+               !AFSdsmRCMsg || !AFSdsmLogEventEx || !AFSdsmTrace ||
+               !AFSdsmTerminate || !AFSdsmEndGetObj || !AFSdsmSendData ||
                !AFSdsmBeginTxn || !AFSdsmDeleteObj || !AFSdsmEndGetData ||
-               !AFSdsmEndTxn || !AFSdsmQueryApiVersion || !AFSdsmInit || 
+               !AFSdsmEndTxn || !AFSdsmQueryApiVersion || !AFSdsmInit ||
                !AFSdsmGetData || !AFSdsmQuerySessInfo || !AFSdsmBeginGetData ||
-               !AFSdsmGetObj || !AFSdsmEndSendObj || !AFSdsmRegisterFS || 
-               !AFSdsmBindMC || !AFSdsmSendObj || !AFSdsmChangePW ) 
+               !AFSdsmGetObj || !AFSdsmEndSendObj || !AFSdsmRegisterFS ||
+               !AFSdsmBindMC || !AFSdsmSendObj || !AFSdsmChangePW )
        {
                ELog(0,"dsm_MountLibrary: The dlopen call to load the TSM shared library failed\n");
                return(BUTX_NOLIBRARY);
index 5d437da98c88f1709670c1de61f87a0c76b0617d..4a0581937c3119340f517d93b382d2206ef02b08 100644 (file)
@@ -1,15 +1,15 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  */
 
-#ifndef _BSA_XBSA_H_                                                            
-#define _BSA_XBSA_H_                                                            
-                                                                                
+#ifndef _BSA_XBSA_H_
+#define _BSA_XBSA_H_
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -28,7 +28,7 @@ extern "C" {
 #include <dsmapitd.h>
 #include <dsmapifp.h>
 #include <dsmrc.h>
-                                                                                
+
 /* BSA_Boolean  */
 typedef char BSA_Boolean;
 
@@ -36,7 +36,7 @@ typedef char BSA_Boolean;
 typedef short BSA_Int16;
 
 /* BSA_Int32 */
-typedef long BSA_Int32;     
+typedef long BSA_Int32;
 
 /* BSA_Int64  */
 typedef struct {    /* defined as two 32-bit integers */
@@ -90,10 +90,10 @@ typedef struct {        /* defined as two unsigned 32-bit integers*/
 #define ADSM_RC_PSWD_TOO_LONG               0x67 /* pswd  too long            */
 #define ADSM_RC_PSWD_GEN                    0x68 /* pswd access = generate    */
 
-/* Constants used                                                               
- *                                                                              
- * Maximum string lengths (lower bound), including trailing null                
- */                                                                             
+/* Constants used
+ *
+ * Maximum string lengths (lower bound), including trailing null
+ */
 #define BSA_LIST_ELEMENT_DELIMITER  null    /* Element delimiter in list      */
 #define BSA_MAX_ADMIN_NAME          64      /* Administrator name             */
 #define BSA_MAX_APPOBJECT_OWNER     64      /* Max end-object owner length    */
@@ -123,340 +123,340 @@ typedef struct {        /* defined as two unsigned 32-bit integers*/
 #define BSA_MAX_RESOURCETYPE        31      /* Max resource mgr name length   */
 #define BSA_MAX_TOKEN_SIZE          64      /* Max size of a security token   */
 #define BSA_PUBLIC              "BSA_ANY"   /* Default string                 */
-                                                                                
-/* Return Codes Used                                                            
- *                                                                              
- * Return Code descriptions are given in Section 4.3.                           
- */                                                                             
-#define BSA_RC_ABORT_ACTIVE_NOT_FOUND       0x02                                
-#define BSA_RC_ABORT_SYSTEM_ERROR           0x03                                
-#define BSA_RC_AUTHENTICATION_FAILURE       0x04                                
-#define BSA_RC_BAD_CALL_SEQUENCE            0x05                                
-#define BSA_RC_BAD_HANDLE                   0x06                                
-#define BSA_RC_BUFFER_TOO_SMALL             0x07                                
-#define BSA_RC_DESC_TOO_LONG                0x08                                
-#define BSA_RC_OBJECTSPACE_TOO_LONG         0x09                                
-#define BSA_RC_INVALID_TOKEN                0x0a                                
-#define BSA_RC_INVALID_VOTE                 0x0b                                
-#define BSA_RC_INVALID_KEYWORD              0x0c                                
-#define BSA_RC_MATCH_EXISTS                 0x0d                                
-#define BSA_RC_MORE_DATA                    0x0e                                
-#define BSA_RC_MORE_RULES                   0x0f                                
-#define BSA_RC_NEWTOKEN_REQD                0x10                                
-#define BSA_RC_NO_MATCH                     0x11                                
-#define BSA_RC_NO_MORE_DATA                 0x12                                
-#define BSA_RC_NO_RESOURCES                 0x13                                
-#define BSA_RC_NULL_DATABLKPTR              0x14                                
-#define BSA_RC_NULL_OBJNAME                 0x15                                
-#define BSA_RC_NULL_POINTER                 0x16                                
-#define BSA_RC_NULL_RULEID                  0x17                                
-#define BSA_RC_OBJECT_NAME_TOO_LONG         0x18                                
-#define BSA_RC_OBJECT_NOT_EMPTY             0x19                                
-#define BSA_RC_OBJECT_NOT_FOUND             0x1a                                
-#define BSA_RC_OBJINFO_TOO_LONG             0x1b                                
-#define BSA_RC_OBJNAME_TOO_LONG             0x1c                                
-#define BSA_RC_OPERATION_NOT_AUTHORIZED     0x1d                                
-#define BSA_RC_OLDTOKEN_REQD                0x1e                                
-#define BSA_RC_TOKEN_EXPIRED                0x1f                                
-#define BSA_RC_TXN_ABORTED                  0x20                                
-#define BSA_RC_UNMATCHED_QUOTE              0x21                                
-#define BSA_RC_USER_OWNS_OBJECTS            0x22                                
-                                                                                
-/* AppObjectOwner                                                               
- */                                                                             
-typedef char AppObjectOwner[BSA_MAX_APPOBJECT_OWNER];                           
-                                                                                
-/* BSAObjectOwner                                                               
- */                                                                             
-typedef char BSAObjectOwner[BSA_MAX_BSAOBJECT_OWNER];                           
-                                                                                
-/* CopyGpDest                                                                   
- */                                                                             
-typedef char CopyGpDest[BSA_MAX_CG_DEST];                                       
-                                                                                
-/* CopyGpName                                                                   
- */                                                                             
-typedef char CopyGpName[BSA_MAX_CG_NAME];                                       
-                                                                                
-/* CopyMode                                                                     
- *                                                                              
- * Constant     Value     Explanation                                           
- * --------     -----     -----------                                           
- * INCREMENTAL  1         Specifies that the Backup Services should make a      
- *                        copy only if the application object has been          
- *                        modified since the last time this copy group was      
- *                        used to create the object's copy.                     
- * ABSOLUTE     2         Specifies that the Backup Services should make a      
- *                        copy even if the application object has not been      
- *                        modified since the last time this copy group was      
- *                        used to create the object's copy.                     
- */                                                                             
-typedef enum {                                                                  
-    BSACopyMode_INCREMENTAL = 1,                                                
-    BSACopyMode_ABSOLUTE = 2                                                    
-} CopyMode;                                                                     
-                                                                                
-/* CopySerialization                                                            
- *                                                                              
- * Constant     Value     Explanation                                           
- * --------     -----     -----------                                           
- * STATIC       1         Specifies that the Backup Services must create a      
- *                        consistent (unmodified during the operation) copy of  
- *                        the object.  If the application is unable to create a 
- *                        consistent copy then it should skip the operation     
- *                        (creating backup or archive copy) for the object.     
- * SHAREDSTATIC 2         Specifies that the Backup Services must create a      
- *                        consistent copy of the object.  It can retry the      
- *                        operation a number of times (application dependent).  
- *                        If the Backup Services is unable to create a          
- *                        consistent copy even after retries, then it should    
- *                        skip creating a backup or archive copy of the         
- *                        object.                                               
- * SHAREDDYNAMIC 3        Specifies that the Backup Services must create a      
- *                        copy of the object.  It can retry the operation a     
- *                        number of times in an attempt to create a consistent  
- *                        copy; however, if it fails to make a consistent       
- *                        copy, a copy must still be made, ignoring the fact    
- *                        that the copy may have been modified during the       
- *                        operation.  Such copies are useful for log file       
- *                        objects which are being continuously modified.        
- * DYNAMIC      4         Specifies that the Backup Services must create a      
- *                        copy of the obbject even if the source object is      
- *                        modified during the operation.  No retries should be  
- *                        attempted to create a consistent copy.                
- */                                                                             
-typedef enum {                                                                  
-    BSACopySerialization_STATIC = 1,                                            
-    BSACopySerialization_SHAREDSTATIC = 2,                                      
-    BSACopySerialization_SHAREDDYNAMIC = 3,                                     
-    BSACopySerialization_DYNAMIC = 4                                            
-} CopySerialization;                                                            
-                                                                                
-/* CopyType                                                                     
- *                                                                              
- * Constant     Value     Explanation                                           
- * --------     -----     -----------                                           
- * ANY          1         Used for matching any copy type (e.g. "backup" or     
- *                        "archive" in the copy type field of structures for    
- *                        selecting query results).                             
- * ARCHIVE      2         Specifies that the copy type should be "archive".     
- *                        When used in the copy type field of the CopyGroup,    
- *                        it identifies the copy data as of type                
- *                        ArchiveCopyData, which is used to create archive      
- *                        copies.                                               
- * BACKUP       3         Specifies that the copy type should be "backup".      
- *                        When used in the copy type field of the CopyGroup,    
- *                        it identifies the copy data as of type                
- *                        BackupCopyData, which is used to create backup        
- *                        copies.                                               
- */                                                                             
-typedef enum {                                                                  
-    BSACopyType_ANY = 1,                                                        
-    BSACopyType_ARCHIVE = 2,                                                    
-    BSACopyType_BACKUP = 3                                                      
-} CopyType;                                                                     
-                                                                                
-/* Description                                                                  
- */                                                                             
-typedef char Description[BSA_MAX_DESC];                                         
-                                                                                
-/* DomainName                                                                   
- */                                                                             
-typedef char * DomainName[BSA_MAX_POLICYDOMAIN_NAME];                           
-                                                                                
-/* EventInfo                                                                    
- */                                                                             
-typedef char EventInfo[BSA_MAX_EVENTINFO];                                      
-                                                                                
-/* LGName                                                                       
- */                                                                             
-typedef char LGName[BSA_MAX_LG_NAME];                                           
-                                                                                
-/* ObjectInfo                                                                   
- */                                                                             
-typedef char ObjectInfo[BSA_MAX_OBJINFO];                                       
-                                                                                
-/* ObjectName                                                                   
- */                                                                             
-typedef struct {                                                                
-    char    objectSpaceName[BSA_MAX_OSNAME]; /* Highest-level name qualifier */ 
-    char    pathName[BSA_MAX_PATHNAME];      /* Object name within           */ 
-                                             /* objectspace                  */ 
-} ObjectName;                                                                   
-                                                                                
-/* ObjectOwner                                                                  
- */                                                                             
-typedef struct {                                                                
-    BSAObjectOwner  bsaObjectOwner;    /* BSA Owner name - this is the name  */ 
-                                       /* that Backup Services authenticates */ 
-    AppObjectOwner  appObjectOwner;    /* End-owner name, this is the name   */ 
-                                       /* defined by the application         */ 
-} ObjectOwner;                                                                  
-                                                                                
-/* ObjectSize                                                                   
- */                                                                             
-typedef BSA_UInt64 ObjectSize;         /* Unsigned 64-bit integer */            
-                                                                                
-/* ObjectStatus                                                                 
- *                                                                              
- * Constant     Value     Explanation                                           
- * --------     -----     -----------                                           
- * ANY          1         Provides a wild card function.  Can only be used in   
- *                        queries.                                              
- * ACTIVE       2         Indicates that this is the most recent backup copy    
- *                        of an object.                                         
- * INACTIVE     3         Indicates that this is not the most recent backup     
- *                        copy, or that the object itself no longer exists.     
- */                                                                             
-typedef enum {                                                                  
-    BSAObjectStatus_ANY = 1,                                                    
-    BSAObjectStatus_ACTIVE = 2,                                                 
-    BSAObjectStatus_INACTIVE = 3                                                
-} ObjectStatus;                                                                 
-                                                                                
-/* ObjectType                                                                   
- *                                                                              
- * Constant     Value     Explanation                                           
- * --------     -----     -----------                                           
- * any          1         Used for matching any object type (e.g. "file" or     
- *                        "directory") value in the object type field of        
- *                        structures for selecting query results.               
- * file         2         Used by the application to indicate that the type of  
- *                        application object is a "file" or single object.      
- * directory    3         Used by the application to indicate that the type of  
- *                        application object is a "directory" or container of   
- *                        objects.                                              
- */                                                                             
+
+/* Return Codes Used
+ *
+ * Return Code descriptions are given in Section 4.3.
+ */
+#define BSA_RC_ABORT_ACTIVE_NOT_FOUND       0x02
+#define BSA_RC_ABORT_SYSTEM_ERROR           0x03
+#define BSA_RC_AUTHENTICATION_FAILURE       0x04
+#define BSA_RC_BAD_CALL_SEQUENCE            0x05
+#define BSA_RC_BAD_HANDLE                   0x06
+#define BSA_RC_BUFFER_TOO_SMALL             0x07
+#define BSA_RC_DESC_TOO_LONG                0x08
+#define BSA_RC_OBJECTSPACE_TOO_LONG         0x09
+#define BSA_RC_INVALID_TOKEN                0x0a
+#define BSA_RC_INVALID_VOTE                 0x0b
+#define BSA_RC_INVALID_KEYWORD              0x0c
+#define BSA_RC_MATCH_EXISTS                 0x0d
+#define BSA_RC_MORE_DATA                    0x0e
+#define BSA_RC_MORE_RULES                   0x0f
+#define BSA_RC_NEWTOKEN_REQD                0x10
+#define BSA_RC_NO_MATCH                     0x11
+#define BSA_RC_NO_MORE_DATA                 0x12
+#define BSA_RC_NO_RESOURCES                 0x13
+#define BSA_RC_NULL_DATABLKPTR              0x14
+#define BSA_RC_NULL_OBJNAME                 0x15
+#define BSA_RC_NULL_POINTER                 0x16
+#define BSA_RC_NULL_RULEID                  0x17
+#define BSA_RC_OBJECT_NAME_TOO_LONG         0x18
+#define BSA_RC_OBJECT_NOT_EMPTY             0x19
+#define BSA_RC_OBJECT_NOT_FOUND             0x1a
+#define BSA_RC_OBJINFO_TOO_LONG             0x1b
+#define BSA_RC_OBJNAME_TOO_LONG             0x1c
+#define BSA_RC_OPERATION_NOT_AUTHORIZED     0x1d
+#define BSA_RC_OLDTOKEN_REQD                0x1e
+#define BSA_RC_TOKEN_EXPIRED                0x1f
+#define BSA_RC_TXN_ABORTED                  0x20
+#define BSA_RC_UNMATCHED_QUOTE              0x21
+#define BSA_RC_USER_OWNS_OBJECTS            0x22
+
+/* AppObjectOwner
+ */
+typedef char AppObjectOwner[BSA_MAX_APPOBJECT_OWNER];
+
+/* BSAObjectOwner
+ */
+typedef char BSAObjectOwner[BSA_MAX_BSAOBJECT_OWNER];
+
+/* CopyGpDest
+ */
+typedef char CopyGpDest[BSA_MAX_CG_DEST];
+
+/* CopyGpName
+ */
+typedef char CopyGpName[BSA_MAX_CG_NAME];
+
+/* CopyMode
+ *
+ * Constant     Value     Explanation
+ * --------     -----     -----------
+ * INCREMENTAL  1         Specifies that the Backup Services should make a
+ *                        copy only if the application object has been
+ *                        modified since the last time this copy group was
+ *                        used to create the object's copy.
+ * ABSOLUTE     2         Specifies that the Backup Services should make a
+ *                        copy even if the application object has not been
+ *                        modified since the last time this copy group was
+ *                        used to create the object's copy.
+ */
+typedef enum {
+    BSACopyMode_INCREMENTAL = 1,
+    BSACopyMode_ABSOLUTE = 2
+} CopyMode;
+
+/* CopySerialization
+ *
+ * Constant     Value     Explanation
+ * --------     -----     -----------
+ * STATIC       1         Specifies that the Backup Services must create a
+ *                        consistent (unmodified during the operation) copy of
+ *                        the object.  If the application is unable to create a
+ *                        consistent copy then it should skip the operation
+ *                        (creating backup or archive copy) for the object.
+ * SHAREDSTATIC 2         Specifies that the Backup Services must create a
+ *                        consistent copy of the object.  It can retry the
+ *                        operation a number of times (application dependent).
+ *                        If the Backup Services is unable to create a
+ *                        consistent copy even after retries, then it should
+ *                        skip creating a backup or archive copy of the
+ *                        object.
+ * SHAREDDYNAMIC 3        Specifies that the Backup Services must create a
+ *                        copy of the object.  It can retry the operation a
+ *                        number of times in an attempt to create a consistent
+ *                        copy; however, if it fails to make a consistent
+ *                        copy, a copy must still be made, ignoring the fact
+ *                        that the copy may have been modified during the
+ *                        operation.  Such copies are useful for log file
+ *                        objects which are being continuously modified.
+ * DYNAMIC      4         Specifies that the Backup Services must create a
+ *                        copy of the obbject even if the source object is
+ *                        modified during the operation.  No retries should be
+ *                        attempted to create a consistent copy.
+ */
+typedef enum {
+    BSACopySerialization_STATIC = 1,
+    BSACopySerialization_SHAREDSTATIC = 2,
+    BSACopySerialization_SHAREDDYNAMIC = 3,
+    BSACopySerialization_DYNAMIC = 4
+} CopySerialization;
+
+/* CopyType
+ *
+ * Constant     Value     Explanation
+ * --------     -----     -----------
+ * ANY          1         Used for matching any copy type (e.g. "backup" or
+ *                        "archive" in the copy type field of structures for
+ *                        selecting query results).
+ * ARCHIVE      2         Specifies that the copy type should be "archive".
+ *                        When used in the copy type field of the CopyGroup,
+ *                        it identifies the copy data as of type
+ *                        ArchiveCopyData, which is used to create archive
+ *                        copies.
+ * BACKUP       3         Specifies that the copy type should be "backup".
+ *                        When used in the copy type field of the CopyGroup,
+ *                        it identifies the copy data as of type
+ *                        BackupCopyData, which is used to create backup
+ *                        copies.
+ */
+typedef enum {
+    BSACopyType_ANY = 1,
+    BSACopyType_ARCHIVE = 2,
+    BSACopyType_BACKUP = 3
+} CopyType;
+
+/* Description
+ */
+typedef char Description[BSA_MAX_DESC];
+
+/* DomainName
+ */
+typedef char * DomainName[BSA_MAX_POLICYDOMAIN_NAME];
+
+/* EventInfo
+ */
+typedef char EventInfo[BSA_MAX_EVENTINFO];
+
+/* LGName
+ */
+typedef char LGName[BSA_MAX_LG_NAME];
+
+/* ObjectInfo
+ */
+typedef char ObjectInfo[BSA_MAX_OBJINFO];
+
+/* ObjectName
+ */
+typedef struct {
+    char    objectSpaceName[BSA_MAX_OSNAME]; /* Highest-level name qualifier */
+    char    pathName[BSA_MAX_PATHNAME];      /* Object name within           */
+                                             /* objectspace                  */
+} ObjectName;
+
+/* ObjectOwner
+ */
+typedef struct {
+    BSAObjectOwner  bsaObjectOwner;    /* BSA Owner name - this is the name  */
+                                       /* that Backup Services authenticates */
+    AppObjectOwner  appObjectOwner;    /* End-owner name, this is the name   */
+                                       /* defined by the application         */
+} ObjectOwner;
+
+/* ObjectSize
+ */
+typedef BSA_UInt64 ObjectSize;         /* Unsigned 64-bit integer */
+
+/* ObjectStatus
+ *
+ * Constant     Value     Explanation
+ * --------     -----     -----------
+ * ANY          1         Provides a wild card function.  Can only be used in
+ *                        queries.
+ * ACTIVE       2         Indicates that this is the most recent backup copy
+ *                        of an object.
+ * INACTIVE     3         Indicates that this is not the most recent backup
+ *                        copy, or that the object itself no longer exists.
+ */
+typedef enum {
+    BSAObjectStatus_ANY = 1,
+    BSAObjectStatus_ACTIVE = 2,
+    BSAObjectStatus_INACTIVE = 3
+} ObjectStatus;
+
+/* ObjectType
+ *
+ * Constant     Value     Explanation
+ * --------     -----     -----------
+ * any          1         Used for matching any object type (e.g. "file" or
+ *                        "directory") value in the object type field of
+ *                        structures for selecting query results.
+ * file         2         Used by the application to indicate that the type of
+ *                        application object is a "file" or single object.
+ * directory    3         Used by the application to indicate that the type of
+ *                        application object is a "directory" or container of
+ *                        objects.
+ */
 
 typedef enum {
     BSAObjectType_ANY  = 1,
     BSAObjectType_FILE    = 2,
     BSAObjectType_DIRECTORY = 3
  } ObjectType;
-                                                                                
-/* Operation                                                                    
- *                                                                              
- * Constant     Value     Explanation                                           
- * --------     -----     -----------                                           
- * archive      1         Used to indicate that a scheduled operation is of     
- *                        type "archive".                                       
- * backup       2         Used to indicate that a scheduled operation is of     
- *                        type "backup".                                        
- */                                                                             
-typedef enum {                                                                  
-    BSAOperation_ARCHIVE = 1,                                                   
-    BSAOperation_BACKUP  = 2                                                    
-} Operation;                                                                    
-                                                                                
-/* Period                                                                       
- *                                                                              
- * Use of the Period structure in a Schedule for an event:                      
- * 1. The Schedule structure specifies 3 timing elements:                       
- *    a. "firstStartTime" - a timestamp showing the "earliest"                  
- *        possible time the event could take place                              
- *    b. "day" - the day of the week the event should occur                     
- *    c. "frequency" - the period between successive events                     
- * 2. To determine the day the event should occur (this does                    
- *    not change the time of the event in the day):                             
- *    a. Determine the requested day from "firstStartTime".                     
- *    b. If "day" does not equal XBSA_DAYOFWEEK_ANY                             
- *       i. Compare "day" to the day of the week corresponding                  
- *          to "firstStartTime" determined in 2a above.                         
- *       ii.If the days match, then use "firstStartTime" else                   
- *          use the first "day" *following* the day shown                       
- *          in "firstStartTime" as the day of the event.                        
- * 3. If the PeriodWhich field in the Period structure is other                 
- *    than XBSA_PERIOD_UNDEFINED, then successive events are                    
- *    determined using the value of "periodData".                               
- *    a. For seconds and days, the appropriate seconds or days                  
- *       are added to the "firstStartTime" and step 2 to correct                
- *       for the day of the week (if needed) is applied again.                  
- *    b. If a monthly period is specified, then the appropriate                 
- *       number of months are added by incrementing the month index is          
- *       made (for example, a one month increment from February to              
- *       March).  If the monthly date is not valid (for example, January        
- *       30 --> February 30) then the last day of the desired month is          
- *       used (example January 30 --> February 28).  Then step 2 is             
- *       followed to adjust for the requested day (which might move the         
- *       event time into the following month).                                  
- */                                                                             
-typedef enum {                                                                  
-    BSAPeriod_SECONDS = 1,                                                      
-    BSAPeriod_DAYS = 2,                                                         
-    BSAPeriod_MONTHS = 3,                                                       
-    BSAPeriod_UNDEFINED = -9,                                                   
-    BSAPeriod_DAILY = 4, BSAPeriod_WEEKLY = 5, BSAPeriod_MONTHLY = 6,           
-    BSAPeriod_QUARTERLY = 7, BSAPeriod_ANNUALLY = 8                             
-} PeriodWhich;                                                                  
-                                                                                
-typedef struct {                                                                
-    PeriodWhich     which;                                                      
-    union {                                                                     
-        time_t      nSeconds;                                                   
-        BSA_Int16   nDays;                                                      
-        BSA_Int16   nMonths;                                                    
-    } periodData;                                                               
-} Period;                                                                       
-                                                                                
-/* ResourceType                                                                 
- */                                                                             
-typedef char ResourceType[BSA_MAX_RESOURCETYPE];                                
-                                                                                
-/* RuleId                                                                       
- */                                                                             
-typedef BSA_UInt64 RuleId;                                                      
-                                                                                
-/* Scheduleid                                                                   
- */                                                                             
-typedef BSA_UInt64 ScheduleId;                                                  
-                                                                                
-/* AccessRight                                                                  
- *                                                                              
- * Constant     Value     Explanation                                           
- * --------     -----     -----------                                           
- * GET          1         Access right for getting an object from Backup        
- *                        Services, also includes access right for querying     
- *                        (getting attributes) an object from Backup Services.  
- * QUERY        2         Access right for querying (getting attributes) an     
- *                        object from Backup Services.                          
- */                                                                             
-typedef enum {                                                                  
-    BSAAccessRight_GET  = 1,                                                    
-    BSAAcessRight_QUERY = 2                                                     
-} AccessRight;                                                                  
-                                                                                
-/* AccessRule                                                                   
- */                                                                             
-typedef struct {                                                                
+
+/* Operation
+ *
+ * Constant     Value     Explanation
+ * --------     -----     -----------
+ * archive      1         Used to indicate that a scheduled operation is of
+ *                        type "archive".
+ * backup       2         Used to indicate that a scheduled operation is of
+ *                        type "backup".
+ */
+typedef enum {
+    BSAOperation_ARCHIVE = 1,
+    BSAOperation_BACKUP  = 2
+} Operation;
+
+/* Period
+ *
+ * Use of the Period structure in a Schedule for an event:
+ * 1. The Schedule structure specifies 3 timing elements:
+ *    a. "firstStartTime" - a timestamp showing the "earliest"
+ *        possible time the event could take place
+ *    b. "day" - the day of the week the event should occur
+ *    c. "frequency" - the period between successive events
+ * 2. To determine the day the event should occur (this does
+ *    not change the time of the event in the day):
+ *    a. Determine the requested day from "firstStartTime".
+ *    b. If "day" does not equal XBSA_DAYOFWEEK_ANY
+ *       i. Compare "day" to the day of the week corresponding
+ *          to "firstStartTime" determined in 2a above.
+ *       ii.If the days match, then use "firstStartTime" else
+ *          use the first "day" *following* the day shown
+ *          in "firstStartTime" as the day of the event.
+ * 3. If the PeriodWhich field in the Period structure is other
+ *    than XBSA_PERIOD_UNDEFINED, then successive events are
+ *    determined using the value of "periodData".
+ *    a. For seconds and days, the appropriate seconds or days
+ *       are added to the "firstStartTime" and step 2 to correct
+ *       for the day of the week (if needed) is applied again.
+ *    b. If a monthly period is specified, then the appropriate
+ *       number of months are added by incrementing the month index is
+ *       made (for example, a one month increment from February to
+ *       March).  If the monthly date is not valid (for example, January
+ *       30 --> February 30) then the last day of the desired month is
+ *       used (example January 30 --> February 28).  Then step 2 is
+ *       followed to adjust for the requested day (which might move the
+ *       event time into the following month).
+ */
+typedef enum {
+    BSAPeriod_SECONDS = 1,
+    BSAPeriod_DAYS = 2,
+    BSAPeriod_MONTHS = 3,
+    BSAPeriod_UNDEFINED = -9,
+    BSAPeriod_DAILY = 4, BSAPeriod_WEEKLY = 5, BSAPeriod_MONTHLY = 6,
+    BSAPeriod_QUARTERLY = 7, BSAPeriod_ANNUALLY = 8
+} PeriodWhich;
+
+typedef struct {
+    PeriodWhich     which;
+    union {
+        time_t      nSeconds;
+        BSA_Int16   nDays;
+        BSA_Int16   nMonths;
+    } periodData;
+} Period;
+
+/* ResourceType
+ */
+typedef char ResourceType[BSA_MAX_RESOURCETYPE];
+
+/* RuleId
+ */
+typedef BSA_UInt64 RuleId;
+
+/* Scheduleid
+ */
+typedef BSA_UInt64 ScheduleId;
+
+/* AccessRight
+ *
+ * Constant     Value     Explanation
+ * --------     -----     -----------
+ * GET          1         Access right for getting an object from Backup
+ *                        Services, also includes access right for querying
+ *                        (getting attributes) an object from Backup Services.
+ * QUERY        2         Access right for querying (getting attributes) an
+ *                        object from Backup Services.
+ */
+typedef enum {
+    BSAAccessRight_GET  = 1,
+    BSAAcessRight_QUERY = 2
+} AccessRight;
+
+/* AccessRule
+ */
+typedef struct {
     RuleId          ruleId;         /* Provided by Backup Services            */
     ObjectName      objName;        /* Object name to be given access         */
     ObjectOwner     objectOwner;    /* BSA object owner and Applicaton object */
                                     /* owner to be given access               */
     AccessRight     rights;         /* The access rights to be given          */
-} AccessRule;                                                                   
-                                                                                
-/* ApiVersion                                                                   
- */                                                                             
-typedef struct {                                                                
+} AccessRule;
+
+/* ApiVersion
+ */
+typedef struct {
     BSA_UInt16      version;        /* Version of this API                    */
     BSA_UInt16      release;        /* Release of this API                    */
     BSA_UInt16      level;          /* Level of this API                      */
-} ApiVersion;                                                                   
-                                                                                
-/* ArchiveCopyData                                                              
- */                                                                             
-typedef struct {                                                                
+} ApiVersion;
+
+/* ArchiveCopyData
+ */
+typedef struct {
     CopyGpName          cGName;     /* Copy group name                        */
     BSA_UInt16          freq;       /* Archive frequency                      */
     CopySerialization   copySer;    /* Copy serialization code                */
     CopyMode            copyMode;   /* Copy mode                              */
     CopyGpDest          destName;   /* Copy destination name                  */
     BSA_UInt16          retVersion; /* Retention time for the version         */
-} ArchiveCopyData;                                                              
-                                                                                
-/* BackupCopyData                                                               
- */                                                                             
-typedef struct {                                                                
+} ArchiveCopyData;
+
+/* BackupCopyData
+ */
+typedef struct {
     CopyGpName          cGName;     /* Copy group name                        */
     BSA_UInt16          freq;       /* Backup frequency                       */
     CopySerialization   copySer;    /* Copy serialization code                */
@@ -467,55 +467,55 @@ typedef struct {
     BSA_UInt16          verDataDel; /* Versions (data deleted)                */
     Period              retXtraVer; /* Retain extra versions                  */
     Period              retOnlyVer; /* Retain only versions                   */
-} BackupCopyData;                                                               
-                                                                                
-/* CopyGroup                                                                    
- */                                                                             
-typedef struct {                                                                
+} BackupCopyData;
+
+/* CopyGroup
+ */
+typedef struct {
     CopyType    copyType;       /* Type of copy group: archive, backup, etc   */
-    union {                                                                     
-        ArchiveCopyData archive;                                                
-        BackupCopyData  backup;                                                 
-    } copyData;                                                                 
-} CopyGroup;                                                                    
-                                                                                
-/* CopyId                                                                       
- */                                                                             
-typedef BSA_UInt64      CopyId;                                                 
-                                                                                
-/* DataBlock                                                                    
- */                                                                             
-typedef struct {                                                                
-    BSA_UInt16  bufferLen;                                                      
-    BSA_UInt16  numBytes;       /* Actual number of bytes read from */          
-                                /* or written to the buffer, or the */          
-                                /* minimum number of bytes needed   */          
-    char *      bufferPtr;                                                      
-} DataBlock;                                                                    
-                                                                                
-/* DayOfWeek                                                                    
- */                                                                             
-typedef enum {                                                                  
-    BSADayOfWeek_Monday = 1,    BSADayOfWeek_Tuesday = 2,                       
-    BSADayOfWeek_Wednesday = 3, BSADayOfWeek_Thursday = 4,                      
-    BSADayOfWeek_Friday = 5,    BSADayOfWeek_Saturday = 6,                      
-    BSADayOfWeek_Sunday = 7                                                     
-} DayOfWeek;                                                                    
-                                                                                
-/* Environment                                                                  
- */                                                                             
-typedef struct {                                                                
+    union {
+        ArchiveCopyData archive;
+        BackupCopyData  backup;
+    } copyData;
+} CopyGroup;
+
+/* CopyId
+ */
+typedef BSA_UInt64      CopyId;
+
+/* DataBlock
+ */
+typedef struct {
+    BSA_UInt16  bufferLen;
+    BSA_UInt16  numBytes;       /* Actual number of bytes read from */
+                                /* or written to the buffer, or the */
+                                /* minimum number of bytes needed   */
+    char *      bufferPtr;
+} DataBlock;
+
+/* DayOfWeek
+ */
+typedef enum {
+    BSADayOfWeek_Monday = 1,    BSADayOfWeek_Tuesday = 2,
+    BSADayOfWeek_Wednesday = 3, BSADayOfWeek_Thursday = 4,
+    BSADayOfWeek_Friday = 5,    BSADayOfWeek_Saturday = 6,
+    BSADayOfWeek_Sunday = 7
+} DayOfWeek;
+
+/* Environment
+ */
+typedef struct {
     char * envVariables; /* Identifies the Backup Services instance and other */
                          /* implementation-dependent variables such as        */
                          /* communication ports, etc.  Each variable is a     */
                          /* (keyword, value) pair separated by a space.       */
                          /* If a value contains spaces, it must be            */
                          /* enclosed in single or double quotes.              */
-} BSAEnvironment;                                                               
-                                                                                
-/* Event                                                                        
- */                                                                             
-typedef struct {                                                                
+} BSAEnvironment;
+
+/* Event
+ */
+typedef struct {
     BSA_UInt32      eventId;    /* This is an internal (to Backup Services) id*/
     ObjectOwner     objectOwner;/* Identifies the owner of the event          */
     struct tm       time;       /* Identifies the time the action is to start */
@@ -524,15 +524,15 @@ typedef struct {
     ResourceType    resourceType;/* Identifies the resource manager for the   */
                                  /* event                                     */
     EventInfo       eventInfo;  /* User- and resource-manager-specific info   */
-} BSAEvent;                                                                     
-                                                                                
-/* MethodName                                                                   
- */                                                                             
-typedef char EncodingMethod[BSA_MAX_ENCODINGMETHOD];                            
-                                                                                
-/* ObjectDescriptor                                                             
- */                                                                             
-typedef struct {                                                                
+} BSAEvent;
+
+/* MethodName
+ */
+typedef char EncodingMethod[BSA_MAX_ENCODINGMETHOD];
+
+/* ObjectDescriptor
+ */
+typedef struct {
     BSA_UInt32      version;        /* Version number for this structure      */
     ObjectOwner     Owner;          /* Owner of the object                    */
     ObjectName      objName;        /* Object name                            */
@@ -552,11 +552,11 @@ typedef struct {
                                     /* terminated with a null entry           */
     Description     desc;           /* Descriptive label for the object       */
     ObjectInfo      objectInfo;     /* Application information                */
-} ObjectDescriptor;                                                             
-                                                                                
-/* QueryDescriptor                                                              
- */                                                                             
-typedef struct {                                                                
+} ObjectDescriptor;
+
+/* QueryDescriptor
+ */
+typedef struct {
     ObjectOwner     owner;          /* Owner of the object                    */
     ObjectName      objName;        /* Object name                            */
     struct tm       createTimeLB;   /* Lower bound on create time             */
@@ -575,10 +575,10 @@ typedef struct {
                                     /* wild card.                             */
                                     /* Any undefined value is interpreted as  */
                                     /* an error.                              */
-                                                                                
-/* Schedule                                                                     
- */                                                                             
-typedef struct {                                                                
+
+/* Schedule
+ */
+typedef struct {
     ScheduleId      schedId;        /* Provided by Backup Services            */
     ObjectOwner     objectOwner;    /* Specifies the owner of the schedule    */
     Operation       operation;      /* Specifies the action to be taken       */
@@ -590,64 +590,64 @@ typedef struct {
     ResourceType    resourceType;   /* Identifies the resource manager for the*/
                                     /* schedule                               */
     EventInfo       scheduleInfo;   /* Resource manager specific information  */
-} Schedule;                                                                     
-                                                                                
-/* Security Token                                                               
- */                                                                             
-typedef char SecurityToken[BSA_MAX_TOKEN_SIZE];                                 
-                                                                                
-/* StreamHandle                                                                 
- */                                                                             
-typedef int StreamHandle;                                                       
-                                                                                
-/* UserDescriptor                                                               
- */                                                                             
-typedef struct t_UserDescriptor {                                               
+} Schedule;
+
+/* Security Token
+ */
+typedef char SecurityToken[BSA_MAX_TOKEN_SIZE];
+
+/* StreamHandle
+ */
+typedef int StreamHandle;
+
+/* UserDescriptor
+ */
+typedef struct t_UserDescriptor {
     BSA_UInt16      version;        /* Version num of this structure          */
-    BSAObjectOwner  bsaObjectOwner; /* BSA Object owner name              */    
-    DomainName      domainName;     /* Policy domain for the user         */    
-    Description     desc;           /* User information                   */    
-} UserDescriptor;                                                               
-                                                                                
-/* Vote                                                                         
- */                                                                             
-typedef enum {                                                                  
-    BSAVote_COMMIT = 1,                                                         
-    BSAVote_ABORT  = 2                                                          
-} Vote;                                                                         
-                                                                                
+    BSAObjectOwner  bsaObjectOwner; /* BSA Object owner name              */
+    DomainName      domainName;     /* Policy domain for the user         */
+    Description     desc;           /* User information                   */
+} UserDescriptor;
+
+/* Vote
+ */
+typedef enum {
+    BSAVote_COMMIT = 1,
+    BSAVote_ABORT  = 2
+} Vote;
+
 /* Function Prototypes for Data Movement API Subset
  * Note that int and long have been replaced with typedefs
  * from custom.h.
- */                                                                             
+ */
 
-extern BSA_Int16 
+extern BSA_Int16
 BSABeginTxn
 (      long              bsaHandle
 );
 
-extern BSA_Int16 
+extern BSA_Int16
 BSAChangeToken
 (      long              bsaHandle,
        SecurityToken    *oldTokenPtr,
        SecurityToken    *newTokenPtr
 );
 
-extern BSA_Int16 
+extern BSA_Int16
 BSACreateObject
 (      long              bsaHandle,
        ObjectDescriptor *objectDescriptorPtr,
        DataBlock        *dataBlockPtr
 );
 
-extern BSA_Int16 
+extern BSA_Int16
 BSACreateObjectF
 (      long              bsaHandle,
        ObjectDescriptor *objectDescriptorPtr,
        StreamHandle     *streamPtr
 );
 
-extern BSA_Int16 
+extern BSA_Int16
 BSADeleteObject
 (      long              bsaHandle,
        CopyType          copyType,
@@ -655,12 +655,12 @@ BSADeleteObject
        CopyId           *copyId
 );
 
-extern BSA_Int16 
+extern BSA_Int16
 BSAEndData
 (      long              bsaHandle
 );
 
-extern BSA_Int16 
+extern BSA_Int16
 BSAEndTxn
 (      long              bsaHandle,
        Vote              vote
@@ -672,34 +672,34 @@ BSAGetData
        DataBlock        *dataBlockPtr
 );
 
-extern BSA_Int16 
+extern BSA_Int16
 BSAGetEnvironment
 (      long              bsaHandle,
        ObjectOwner      *objectOwnerPtr,
        char            **environmentPtr
 );
 
-extern BSA_Int16 
+extern BSA_Int16
 BSAGetNextQueryObject
 (      long              bsaHandle,
        ObjectDescriptor *objectDescriptorPtr
 );
 
-extern BSA_Int16 
+extern BSA_Int16
 BSAGetObject
 (      long              bsaHandle,
        ObjectDescriptor *objectDescriptorPtr,
        DataBlock        *dataBlockPtr
 );
 
-extern BSA_Int16 
+extern BSA_Int16
 BSAGetObjectF
 (      long              bsaHandle,
        ObjectDescriptor *objectDescriptorPtr,
        StreamHandle     *streamPtr
 );
 
-extern BSA_Int16 
+extern BSA_Int16
 BSAInit
 (      long             *bsaHandleP,
        SecurityToken    *tokenPtr,
@@ -707,37 +707,37 @@ BSAInit
        char            **environmentPtr
 );
 
-extern BSA_Int16 
+extern BSA_Int16
 BSAMarkObjectInactive
 (      long              bsaHandle,
        ObjectName       *objectNamePtr
 );
 
-extern void 
+extern void
 BSAQueryApiVersion
 (      ApiVersion       *apiVersionPtr
 );
 
-extern BSA_Int16 
+extern BSA_Int16
 BSAQueryObject
 (      long              bsaHandle,
        QueryDescriptor  *queryDescriptorPtr,
        ObjectDescriptor *objectDescriptorPtr
 );
 
-extern BSA_Int16 
+extern BSA_Int16
 BSASendData
 (      long              bsaHandle,
        DataBlock        *dataBlockPtr
 );
 
-extern BSA_Int16 
+extern BSA_Int16
 BSASetEnvironment
 (      long              bsaHandle,
        char            **environmentPtr
 );
 
-extern BSA_Int16 
+extern BSA_Int16
 BSATerminate
 (      long              bsaHandle
 );
index be97c93eb126f7328ecba1433cc5f2cd2dc165e9..1c62c34b4d01e9ff21327a9f0e26ffe8fa5d2e55 100644 (file)
@@ -1,6 +1,6 @@
 /* Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1890759a942305da5e0444fb3f7a4d68934359c8..f009cba7946a51b50f124abcaec09cb094f9e0a6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -241,7 +241,7 @@ xbsa_MountLibrary(struct butx_transactionInfo *info, afs_int32 serverType)
     XBSAGetData                 = BSAGetData;
     XBSAQueryApiVersion         = BSAQueryApiVersion;
     XBSAGetEnvironment          = BSAGetEnvironment;
-    
+
     if (!XBSAInit || !XBSABeginTxn || !XBSAEndTxn || !XBSATerminate ||
        !XBSAQueryObject || !XBSAGetObject || !XBSAEndData ||
        !XBSACreateObject || !XBSADeleteObject || !XBSAMarkObjectInactive ||
@@ -262,7 +262,7 @@ xbsa_MountLibrary(struct butx_transactionInfo *info, afs_int32 serverType)
      */
     if ((info->apiVersion.version == XBSA_TS_VERSION)
        && (info->apiVersion.release == XBSA_TS_RELEASE)) {
-       /* XOPEN Techincal Standard Level! 
+       /* XOPEN Techincal Standard Level!
         * We are coded to the Preliminary Spec!  Time to go boom!
         */
        ELog(0,
index 311599e6f1e62b9d61edbc4917f574eee92e3a01..e2bc29911b2ae4de65edf520073965239d91b179 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index cfcd88cbbf68a57a1db6a36937eff90ddcd16833..806481350d410f0a1fdbcaf0d3b85547f21a645b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 27af35a84a14a4351602699f04eeff83de3e0297..0270cbdbab85f0d843157b7d2ca20eec861d56e9 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -86,7 +86,7 @@ threadEntryDir(void *anEntry, afs_int32 size, afs_int32 type)
 /*
  * threadEntry.
  *     Creates an entry and puts it onto the savedEntries list.
- *     Will retry up to 5 times if not enough memory. Hopfully, the 
+ *     Will retry up to 5 times if not enough memory. Hopfully, the
  *     Watcher thread will free up some memory for it to continue.
  */
 
@@ -250,7 +250,7 @@ freeEntry(void *e)
 
 /*
  * flushSavedEntries
- *     Runs through the list of savedEntries and adds the volumes and 
+ *     Runs through the list of savedEntries and adds the volumes and
  *     tapes to the database.
  *     A status of DUMP_NORETRYEOT means the tape(s) contains no useful data,
  *     and tapes and volumes should not be added to the DB.
@@ -281,8 +281,8 @@ flushSavedEntries(afs_int32 status)
            free(entryPtr);
     }
 
-    /* 
-     * Add dump, tape, and volume entries to the list for the dbWatcher to 
+    /*
+     * Add dump, tape, and volume entries to the list for the dbWatcher to
      * flush. Volume entries are not added if the volume failed to dump.
      */
     while ((entryPtr = dlqUnlinkf(&savedEntries))) {
index 53649493624852ddffbc096286e2d14e16beafd2..94bc76a4ca66f279e6647ec476e3f985c91d31bb 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -88,7 +88,7 @@ afs_int32 tapeblocks;         /* Number of 16K tape datablocks in buffer (!CONF_XBSA) *
  * 6) Ensure bucoord status calls work
  *
  * notes
- * pass 3: 
+ * pass 3:
  *     keep token timeout. If no user reponse (idle time > some period)
  *     and tokens about to time out, terminate dump. This provides at
  *     least something usable.
@@ -206,10 +206,10 @@ Bind(afs_uint32 server)
 /* notes
  * 1) save the chunksize or otherwise ensure tape space remaining is
  *     check frequently enough
- * 2) This is called once. For partial dumps, need to 
+ * 2) This is called once. For partial dumps, need to
  *     ensure that the tape device is left in the correct state for
  *     further dumps.
- * 
+ *
  */
 #define BIGCHUNK 102400
 
@@ -284,7 +284,7 @@ dumpVolume(struct tc_dumpDesc * curDump, struct dumpRock * dparamsPtr)
     buffer = bufferBlock + BUTM_HDRSIZE;
 
     /* Dump one volume fragment at a time until we dump the full volume.
-     * A volume with more than 1 fragment means the volume will 'span' 
+     * A volume with more than 1 fragment means the volume will 'span'
      * 2 or more tapes.
      */
     for (fragmentNumber = 1; !endofvolume; fragmentNumber++) { /*frag */
@@ -338,11 +338,11 @@ dumpVolume(struct tc_dumpDesc * curDump, struct dumpRock * dparamsPtr)
            /* Determine how much data to read in upcoming RX_Read() call */
            toread = dataSize;
            /* Check if we are close to the EOT. There should at least be some
-            * data on the tape before it is switched. HACK: we have to split a 
-            * volume across tapes because the volume trailer says the dump 
-            * continues on the next tape (and not the filemark). This could 
-            * result in a volume starting on one tape (no volume data dumped) and 
-            * continued on the next tape. It'll work, just requires restore to 
+            * data on the tape before it is switched. HACK: we have to split a
+            * volume across tapes because the volume trailer says the dump
+            * continues on the next tape (and not the filemark). This could
+            * result in a volume starting on one tape (no volume data dumped) and
+            * continued on the next tape. It'll work, just requires restore to
             * switch tapes. This allows many small volumes (<16K) to be dumped.
             */
            kRemaining = butm_remainingKSpace(tapeInfoPtr);
@@ -482,7 +482,7 @@ dumpVolume(struct tc_dumpDesc * curDump, struct dumpRock * dparamsPtr)
     dparamsPtr->curVolumeStatus = DUMP_SUCCESS;
 
   error_exit:
-    /* 
+    /*
      * If we hit the end, see if this is the first volume on the tape or not.
      * Also, mark the tape as finished if the tape contains other dumps.
      */
@@ -505,7 +505,7 @@ dumpVolume(struct tc_dumpDesc * curDump, struct dumpRock * dparamsPtr)
        }
     }
 
-    /* 
+    /*
      * This is used when an error occurs part way into a volume dump. Clean
      * the tape state by writing an FileEnd mark. Forgo this action if we hit
      * the end of tape.
@@ -712,7 +712,7 @@ xbsaDumpVolume(struct tc_dumpDesc * curDump, struct dumpRock * dparamsPtr)
            bytesread += sizeof(hostVolumeHeader);
 
            /* End the dump and transaction with the volserver. We end it now, before
-            * we make the XBSA call because if XBSA blocks, we could time out on the 
+            * we make the XBSA call because if XBSA blocks, we could time out on the
             * volserver (After last read, the transaction with the volserver is idle).
             */
            rc = rx_EndCall(fromcall, 0);
@@ -978,8 +978,8 @@ dumpPass(struct dumpRock * dparamsPtr, int passNumber)
        if (checkAbortByTaskId(taskId))
            ERROR_EXIT(TC_ABORTEDBYREQUEST);
 
-       /* Establish connection to volume - UV_ routine expects 
-        * host address in network order 
+       /* Establish connection to volume - UV_ routine expects
+        * host address in network order
         */
        if (CONF_XBSA) {
            dvcode = xbsaDumpVolume(curDump, dparamsPtr);
@@ -1272,7 +1272,7 @@ Dumper(void *param)
            break;
     }
 
-    /* 
+    /*
      * Log the error but ignore it since the dump is effectively done.
      * Scantape may assume another volume and ask for next tape.
      */
@@ -1392,7 +1392,7 @@ Dumper(void *param)
  *     volume parameters describe the volume that failed
  * entry:
  *     volumeName - name of volume
- *     volumeId - volume id 
+ *     volumeId - volume id
  *     taskId - for job contrl
  * fn return:
  *     character typed by user, one of r, o or a
@@ -1754,7 +1754,7 @@ getDumpTape(struct dumpRock *dparamsPtr, int interactiveFlag,
 
        /*
         * Now have the right tape. Create a new label for the tape
-        * Appended labels have the dump's dumpId - labels at beginnings of 
+        * Appended labels have the dump's dumpId - labels at beginnings of
         *     tape have the initial dump's dumpId.
         * Appended labels do not increment the useCount.
         * Labels at beginnings of tape use the most future expiration of the dump set.
@@ -1884,7 +1884,7 @@ makeVolumeHeader(struct volumeHeader *vhptr, struct dumpRock *dparamsPtr,
     strcpy(vhptr->dumpSetName, nodePtr->dumpSetName);
     strcpy(vhptr->preamble, "H++NAME#");
     strcpy(vhptr->postamble, "T--NAME#");
-  
+
     return (code);
 }
 
index 132afa19367a3092d7e4499d2c030c1b1502804c..7042426d6dbcdfb1ee5592b4b1562849cee3da40 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 312e4b8f1d34e0fc389ec61ddc3fd5c9ea0e7562..a08eca9c5fbe4dc448ada53dfa6d466ee6968636 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 75194971715dabcd1f10fdfe64a5c366e89a4eb3..79690fb9a9b903331f7483d842f74836d1171fa8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -363,7 +363,7 @@ WaitForKeystroke(int seconds)
         * process run some*/
        select(0, 0, 0, 0, &twait);
 
-       if (seconds > 0) {      /* we only worry about elapsed time if 
+       if (seconds > 0) {      /* we only worry about elapsed time if
                                 * not looping forever (seconds < 0) */
            time(&nowTime);
            timeleft = seconds - difftime(nowTime, startTime);
@@ -409,7 +409,7 @@ WaitForKeystroke(int seconds)
  * Input:
  *    seconds - how long to wait for a key press.
  *    *key    - char entered by user
- * Return Values: 
+ * Return Values:
  *    0 - Time ran out before the user typed a key.
  *    1 - Valid char is being returned.
  *
@@ -705,7 +705,7 @@ PrintPrompt(int flag, char *name, int dumpid)
 }
 
 /* PromptForTape
- *     Prompt the operator to change the tape. 
+ *     Prompt the operator to change the tape.
  *      Use to be a void routine but now returns an error. Some calls
  *      don't use the error code.
  * notes:
@@ -1362,7 +1362,7 @@ restoreVolumeData(struct rx_call *call, void *rock)
        }
 
        /* lastbuf is last block read and it has nbytes of data
-        * startWbuf is the 2nd to last block read 
+        * startWbuf is the 2nd to last block read
         * Seach for the volume trailer in these two blocks.
         */
        if (lastbuf == startWbuf)
@@ -1404,7 +1404,7 @@ restoreVolumeData(struct rx_call *call, void *rock)
        if (!tapeVolTrailer.contd)
            break;              /* We've read the entire volume */
 
-       /* Volume is continued on next tape. 
+       /* Volume is continued on next tape.
         * Step to the next volume fragment and prompt for its tape.
         * When a volume has multiple frags, those frags are on different
         * tapes. So we know that we need to prompt for a tape.
@@ -1848,7 +1848,7 @@ Restorer(void *param) {
 
        /* restoreVolume function takes care of all the related fragments
         * spanning various tapes. On return the complete volume has been
-        * restored 
+        * restored
         */
        if (CONF_XBSA) {
            tcode = xbsaRestoreVolume(taskId, RestoreDesc, &rparams);
@@ -2116,7 +2116,7 @@ tapeExpired(struct butm_tapeLabel *tapeLabelPtr)
 
 /* updateTapeLabel
  *     given the label on the tape, delete any old information from the
- *     database. 
+ *     database.
 
  * Deletes all entries that match the volset.dumpnode
  *     and the dump path.
@@ -2161,7 +2161,7 @@ updateTapeLabel(struct labelTapeIf *labelIfPtr,
 
            if ((strcmp(newLabelPtr->AFSName, "") != 0)
                && (strcmp(oldLabel.pName, "") != 0)) {
-               /* We are setting the AFS name, yet tape 
+               /* We are setting the AFS name, yet tape
                 * has a permanent name (not allowed).
                 */
                TLog(taskId, "Can't label. Tape has permanent label '%s'\n",
@@ -2319,7 +2319,7 @@ PrintTapeLabel(struct butm_tapeLabel *labelptr)
     printf("-- End of tape label --\n\n");
 }
 
-/* ReadLabel 
+/* ReadLabel
  *     Read the label from a tape.
  *     Currently prints out a "detailed" summary of the label but passes
  *     back only selected fields.
@@ -2425,7 +2425,7 @@ readVolumeHeader(char *buffer,            /* in - buffer to read header from */
     int nextSplice = sizeof(struct volumeHeader) - firstSplice - padLen;
 
     /* Four cases are to be handled
-     * 
+     *
      * Volume Header (byte alignment)
      * -----------------------
      * Tape   In Core
@@ -2435,7 +2435,7 @@ readVolumeHeader(char *buffer,            /* in - buffer to read header from */
      * Case 3:  1       1
      * Case 4:  1       4
      * -----------------------
-     * 
+     *
      * Case 2 and Case 3 are identical cases and handled the same way.
      * Case 1 and Case 4 are separate cases. In one case the pad needs
      * to be removed and in the other, it needs to be spliced in. The
index 96050b0bb36f1421def6671c7a98ead41dc2fdca..9fc92d46761a0cfdb093d0026796a67fa8af5975 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 6274290f6b2e80de99b52b4a3b2107b47dd48690..1446f7984be3a9963c795248b0f43cd99cc4a39d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -99,7 +99,7 @@ PrintDumpLabel(struct butm_tapeLabel *labelptr)
 }
 
 /* PrintVolumeHeader
- *     print the contents of a volume header. 
+ *     print the contents of a volume header.
  */
 static void
 PrintVolumeHeader(struct volumeHeader *volHeader)
@@ -233,8 +233,8 @@ scanVolData(afs_int32 taskId, struct butm_tapeInfo *curTapePtr,
            chunkSize += BIGCHUNK;
        }
 
-       /* 
-        * Read volume date - If prematurely hit the HW EOF 
+       /*
+        * Read volume date - If prematurely hit the HW EOF
         * marker, check to see if data contains a volumetrailer.
         */
        rcode =
@@ -272,9 +272,9 @@ scanVolData(afs_int32 taskId, struct butm_tapeInfo *curTapePtr,
        *bytesRead -= sizeof(struct volumeHeader);
     }
 
-    /* 
-     * If we didn't hit the EOF while reading data, read FileEnd marker 
-     * or EOF marker. 
+    /*
+     * If we didn't hit the EOF while reading data, read FileEnd marker
+     * or EOF marker.
      */
     if (!rcode) {
        tcode = butm_ReadFileEnd(curTapePtr);
@@ -293,7 +293,7 @@ scanVolData(afs_int32 taskId, struct butm_tapeInfo *curTapePtr,
 
 /* nextTapeLabel
  *     generate the name of the next tape label expected
- * exit: 
+ * exit:
  *     ptr to static string
  */
 
@@ -387,7 +387,7 @@ readDump(afs_uint32 taskId, struct butm_tapeInfo *tapeInfoPtr,
                    continue;
                }
 
-               /* No volume was found. We may have hit the EOT or a 
+               /* No volume was found. We may have hit the EOT or a
                 * bad-spot. Try to skip over this spot.
                 */
                if (badscan < 2) {      /* allow 2 errors, then fail */
@@ -409,7 +409,7 @@ readDump(afs_uint32 taskId, struct butm_tapeInfo *tapeInfoPtr,
            PrintVolumeHeader(&volHeader);
 
            /* If this is not the first volume fragment, make sure it follows
-            * the last volume fragment 
+            * the last volume fragment
             */
            if (volEntry.dump) {
                if ((volEntry.dump != volHeader.dumpID)
@@ -705,14 +705,14 @@ getScanTape(afs_int32 taskId, struct butm_tapeInfo *tapeInfoPtr, char *tname,
 /* ScanDumps
  *     This set of code fragments read a tape, and add the information to
  *     the database. Builds a literal structure.
- *     
+ *
  */
 
 void *
 ScanDumps(void *param)
 {
     struct scanTapeIf *ptr = (struct scanTapeIf *)param;
-    
+
     struct butm_tapeInfo curTapeInfo;
     struct tapeScanInfo tapeScanInfo;
     afs_uint32 taskId;
@@ -872,8 +872,8 @@ extractDumpName(char *ptr)
  *     The routine assumes that tape names have an embedded sequence number
  *     as the trialing component. It is suggested that any tape naming
  *     changes retain the trailing seq. number
- * entry: 
- *     tapename - ptr to tape name 
+ * entry:
+ *     tapename - ptr to tape name
  * exit:
  *     0 or positive - sequence number
  *     -1 - error, couldn't extract sequence number
@@ -892,7 +892,7 @@ extractTapeSeq(char *tapename)
 }
 
 /* databaseTape
- *   returns true or false depending on whether the tape is 
+ *   returns true or false depending on whether the tape is
  *   a database tape or not.
  */
 int
index f7cecbd8a0b2b8e50fba1942d147781e3b361b11..e399a4ec51bb4992c4750577900a39f75f9cb5be 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -1040,18 +1040,18 @@ WorkerBee(struct cmd_syndesc *as, void *arock)
 
     if (rxBind) {
         afs_int32 ccode;
-        if (AFSDIR_SERVER_NETRESTRICT_FILEPATH || 
+        if (AFSDIR_SERVER_NETRESTRICT_FILEPATH ||
             AFSDIR_SERVER_NETINFO_FILEPATH) {
             char reason[1024];
             ccode = parseNetFiles(SHostAddrs, NULL, NULL,
                                            ADDRSPERSITE, reason,
                                            AFSDIR_SERVER_NETINFO_FILEPATH,
                                            AFSDIR_SERVER_NETRESTRICT_FILEPATH);
-        } else 
+        } else
        {
             ccode = rx_getAllAddr(SHostAddrs, ADDRSPERSITE);
         }
-        if (ccode == 1) 
+        if (ccode == 1)
             host = SHostAddrs[0];
     }
 
@@ -1084,7 +1084,7 @@ WorkerBee(struct cmd_syndesc *as, void *arock)
 
     /* Create a single security object, in this case the null security
      * object, for unauthenticated connections, which will be used to control
-     * security on connections made to this server 
+     * security on connections made to this server
      */
 
     securityObjects[0] = rxnull_NewServerSecurityObject();
@@ -1109,7 +1109,7 @@ WorkerBee(struct cmd_syndesc *as, void *arock)
        exit(1);
     }
     /* This call is here to verify that we are authentiated.
-     * The call does nothing and will return BUDB_NOTPERMITTED 
+     * The call does nothing and will return BUDB_NOTPERMITTED
      * if we don't belong.
      */
     code = bcdb_deleteDump(0, 0, 0, 0);
@@ -1166,8 +1166,8 @@ main(int argc, char **argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index 0b1b6b7f75a38bd0ebdf6d5d63d5ba15ec1819d2..e447d583660f96c9d12a63d8feae196b0b9889f6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index bd2c17b54d96fc09fcd5866fb41f7bad62d68515..1bd280f2d1f22f1d47598b5f36964e26479bfe84 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 234ca6403bac72af4c1f2513e8992bacb8ab9192..a9ea47f68e1c219a9ba394220d36a531522b9391 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -86,7 +86,7 @@ int restoreText(struct butm_tapeInfo *, struct rstTapeInfo *,
 
 void * KeepAlive(void *);
 /* CreateDBDump
- *      create a dump entry for a saved database 
+ *      create a dump entry for a saved database
  */
 
 afs_int32
@@ -198,7 +198,7 @@ GetDBTape(afs_int32 taskId, Date expires, struct butm_tapeInfo *tapeInfoPtr,
                goto getNewTape;
            }
 
-           /* On first tape, the savedb has not started yet, so the database is not locked 
+           /* On first tape, the savedb has not started yet, so the database is not locked
             * and we can therefore, access information from it. This is easier to do because
             * database dumps don't have appended dumps (nor appended).
             */
@@ -207,7 +207,7 @@ GetDBTape(afs_int32 taskId, Date expires, struct butm_tapeInfo *tapeInfoPtr,
                struct budb_dumpEntry de, de2;
 
                /* Verify the tape has not expired
-                * Early database dumps don't have a dumpid 
+                * Early database dumps don't have a dumpid
                 */
                if (!tapeExpired(&oldTapeLabel)) {
                    TLog(taskId, "This tape has not expired\n");
@@ -248,7 +248,7 @@ GetDBTape(afs_int32 taskId, Date expires, struct butm_tapeInfo *tapeInfoPtr,
            }
 
            /* Otherwise, the savedb is in progress and we can't
-            * access the database (it's locked). So we rely on the 
+            * access the database (it's locked). So we rely on the
             * information available (and not the backup database).
             */
            else {
@@ -344,7 +344,7 @@ freeTapeList(void)
 }
 
 /* addTapesToDb
- *       With the list of tapes, add them to the database. 
+ *       With the list of tapes, add them to the database.
  *       Also delete any olddumpids that are around.
  */
 
@@ -439,12 +439,12 @@ writeDbDump(struct butm_tapeInfo *tapeInfoPtr, afs_uint32 taskId,
     memset(writeBuffer, 0, BUTM_BLKSIZE);
     maxReadSize = 1024;
 
-    /* 
-     * The margin of space to check for end of tape is set to the 
-     * amount of space used to write an end-of-tape multiplied by 2. 
+    /*
+     * The margin of space to check for end of tape is set to the
+     * amount of space used to write an end-of-tape multiplied by 2.
      * The amount of space is size of a 16K EODump marker, its EOF
      * marker, and up to two EOF markers done on close (1 16K blocks +
-     * 3 EOF * markers). 
+     * 3 EOF * markers).
      */
     tc_EndMargin = (16384 + 3 * globalTapeConfig.fileMarkSize) * 2;
     tc_KEndMargin = tc_EndMargin / 1024;
@@ -699,7 +699,7 @@ saveDbToTape(void *param)
                  &wroteLabel);
 
     /*
-     * If did not write the label, remove created dump 
+     * If did not write the label, remove created dump
      * Else if wrote the label, remove old dump from db so it's not saved.
      */
     if (!wroteLabel) {
@@ -1117,12 +1117,12 @@ restoreDbFromTape(void *param)
 }
 
 /* KeepAlive
- * 
- *      While dumping the database, keeps the connection alive.  
+ *
+ *      While dumping the database, keeps the connection alive.
  *      Every 10 seconds, wake up and ask to read 0 bytes of the database.
- *      This resets the database's internal timer so that it does not 
+ *      This resets the database's internal timer so that it does not
  *      prematuraly quit (on asking for new tapes and such).
- *      
+ *
  *      Use the same udbHandle as writeDbDump so we go to the same server.
  */
 void *
@@ -1207,7 +1207,7 @@ restoreDbHeader(struct butm_tapeInfo *tapeInfo,
  *     nextHeader - ptr to structure for return value
  * exit:
  *     nextHeader - next structure header from tape
- * notes: 
+ * notes:
  *     upon entry, the dump structure header has been read confirming that
  *     a database dump tree exists on the tape
  */
@@ -1532,7 +1532,7 @@ static char *tapeReadBufferPtr = 0;       /* position in buffer */
 
 /* getTapeData
  *     Read information from tape, and place the requested number of bytes
- *     in the buffer supplied 
+ *     in the buffer supplied
  * entry:
  *     tapeInfo
  *     rstTapeInfoPtr - Info about the dump being restored.
index 5fa540b6cc047faea7eb647feae18f55a57831de..db82ccd7a1f1a978722159496e12d09375c240e3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -39,8 +39,8 @@ main(argc, argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index 12f0cff9610199e8e488fcef651c5e2db5957165..1ce6a25e036f84c6ff77b135de2525cbd5b63135 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -280,8 +280,8 @@ main(argc, argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index 87d7d70143de9ec632f3acec41a330b0c14789cf..ce86a5db4a46757ec31b09fbcb2fbd66ef327d97 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -41,8 +41,8 @@ connect_buserver()
 
     rx_SetRxDeadTime(60);
 
-    /* 
-     * Connect to buserver 
+    /*
+     * Connect to buserver
      */
     cellName[0] = '\0';
     code = udbClientInit(0, 0, cellName);
index b487c4597a164c1bb43decd0928e06aa64639cd9..ef0454cb1b5e54626912b8c80f465e27cf9818b0 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -69,7 +69,7 @@ main(argc, argv)
     struct butm_tapeLabel tapeLabelWrite, tapeLabelRead;
 
     /* -------------
-     * General Setup 
+     * General Setup
      * ------------- */
     initialize_BUTM_error_table();
 
index e5e90525b76d17c02dd841c7691fd3d4c746e9c5..7a387cf3bdb0d33faf59a7364c5a0915106c9ba8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 333bd5a54636ed2dbc0568a3fbfb608dbbd38861..dfed4b5f2a81d99a3370f90f24ce31ba074d3762 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -80,9 +80,9 @@ extern int isafile;
  * blockMark contains a magic number and counts of real data bytes
  * written out in the block.
  *
- * each file is preceeded by a fileMark, which acts as the file 
+ * each file is preceeded by a fileMark, which acts as the file
  * delimiter. A file consists of contigous data blocks. TM does
- * understand or interrpet the data in data blocks. 
+ * understand or interrpet the data in data blocks.
  *
  * The tape begins with a tape label and ends with EOF file markers
  * in succession (2 or 4 of them ).
@@ -133,9 +133,9 @@ char tapeBlock[BUTM_BLOCKSIZE];     /* Tape buffer for reads and writes */
 
 /* ----------------------------------------------------------------------
  * These routines use the usd library to perform tape operations.
- * ForkIoctl, ForkOpen, ForkClose, ForwardSpace, BackwardSpace, WriteEOF, 
+ * ForkIoctl, ForkOpen, ForkClose, ForwardSpace, BackwardSpace, WriteEOF,
  * PrepareAccess(nt), ShutdownAccess(nt)
- * 
+ *
  * Return Values: USD functions return 0 if successful or errno if failed.
  */
 /* ------------------ USD Interface Functions Begin ------------------------ */
@@ -642,7 +642,7 @@ incSize(struct butm_tapeInfo *info, afs_uint32 dataSize)
  *      TO ALSO MAKE THE SAME CHANGES IN bu_utils/fms.c.
  *
  *     add the supplied no. of bytes to the byte count of data placed
- *     on the tape. Also check for reaching 2GB limit and reset the 
+ *     on the tape. Also check for reaching 2GB limit and reset the
  *      pointer if necessary.  This allows us to use >2GB tapes.
  * entry:
  *      fid      - file id for the tape.
@@ -670,7 +670,7 @@ incPosition(struct butm_tapeInfo *info, usd_handle_t fid, afs_uint32 dataSize)
 }
 
 /*
- * This accounts for tape drives with a block size different from variable or 16K 
+ * This accounts for tape drives with a block size different from variable or 16K
  * blocks and only reads that block size.
  */
 afs_int32 TapeBlockSize;
@@ -772,7 +772,7 @@ NextFile(struct butm_tapeInfo *info)
 }
 
 static afs_int32
-WriteTapeBlock(struct butm_tapeInfo *info, 
+WriteTapeBlock(struct butm_tapeInfo *info,
               char *buffer,     /* assumed to be 16384 bytes with data in it */
               afs_int32 length, /* amount data in buffer */
               afs_int32 blockType)
@@ -856,7 +856,7 @@ WriteTapeBlock(struct butm_tapeInfo *info,
 }
 
 static afs_int32
-ReadTapeBlock(struct butm_tapeInfo *info, 
+ReadTapeBlock(struct butm_tapeInfo *info,
              char *buffer, /* assumed to be 16384 bytes */
              afs_int32 *blockType)
 {
@@ -931,7 +931,7 @@ ReadTapeBlock(struct butm_tapeInfo *info,
  */
 
 static afs_int32
-check(struct butm_tapeInfo *info, 
+check(struct butm_tapeInfo *info,
       int write) /* write operation requested */
 {
     struct progress *p;
@@ -1126,7 +1126,7 @@ file_Dismount(struct butm_tapeInfo *info)
  */
 
 static afs_int32
-file_WriteLabel(struct butm_tapeInfo *info, struct butm_tapeLabel *label, 
+file_WriteLabel(struct butm_tapeInfo *info, struct butm_tapeLabel *label,
                afs_int32 rewind)
 {
     afs_int32 code = 0;
@@ -1182,9 +1182,9 @@ file_WriteLabel(struct butm_tapeInfo *info, struct butm_tapeLabel *label,
     tlabel->label.useCount = htonl(tlabel->label.useCount);
     tlabel->label.dumpid = htonl(tlabel->label.dumpid);
 
-    /* 
-     * write the tape label - For appends, the write may need to skip 
-     * over 1 or 2 EOF marks that were written when tape was closed after 
+    /*
+     * write the tape label - For appends, the write may need to skip
+     * over 1 or 2 EOF marks that were written when tape was closed after
      * the last dump. Plus, some AIX tape drives require we try forwarding
      * over the last EOF and take an error before we can write the new label.
      * ---------------------------------------------------------------------- */
@@ -1232,7 +1232,7 @@ file_WriteLabel(struct butm_tapeInfo *info, struct butm_tapeLabel *label,
 }
 
 static afs_int32
-file_ReadLabel(struct butm_tapeInfo *info, struct butm_tapeLabel *label, 
+file_ReadLabel(struct butm_tapeInfo *info, struct butm_tapeLabel *label,
               afs_int32 rewind)
 {
     struct tapeLabel *tlabel;
@@ -1259,7 +1259,7 @@ file_ReadLabel(struct butm_tapeInfo *info, struct butm_tapeLabel *label,
 
     /*
      * When appended labels were written, either 1 or 2 EOF marks may
-     * have had to be skipped.  When reading a label, these EOF marks 
+     * have had to be skipped.  When reading a label, these EOF marks
      * must also be skipped. When an EOF is read, 0 bytes are returned
      * (refer to the write calls in file_WriteLabel routine).
      * ---------------------------------------------------------------- */
@@ -1490,8 +1490,8 @@ file_WriteFileEnd(struct butm_tapeInfo *info)
     return (code);
 }
 
-/* Read a SW filemark, verify that it is a SW filemark, then skip to the next 
- * HW filemark. If the read of the SW filemark shows it's an EOF, then 
+/* Read a SW filemark, verify that it is a SW filemark, then skip to the next
+ * HW filemark. If the read of the SW filemark shows it's an EOF, then
  * ignore that the SW filemark is not there and return 0 (found the SW filemark
  * missing with some 3.1 dumps).
  */
@@ -1612,8 +1612,8 @@ file_Seek(struct butm_tapeInfo *info, afs_int32 position)
 }
 
 /*
- * Seek to the EODump (end-of-dump) after the given position. This is 
- * the position after the EOF filemark immediately after the EODump mark. 
+ * Seek to the EODump (end-of-dump) after the given position. This is
+ * the position after the EOF filemark immediately after the EODump mark.
  * This is for tapes of version 4 or greater.
  */
 static afs_int32
index 248d87dbbf5c96b56a16e0cc23bfd17b06f6d807..9c6c49b45bc23afd7a14fe1ff0eb2677766ba8c8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
 
 int isafile = 0, debugLevel = 1;
 
-/* Format of the config file is now 
+/* Format of the config file is now
  * <capacity devicename portno isafile>
  * capacity - size of tape or file in bytes
  * devicename - tape device or file name to write data into
- * portno - tape coordinator port no. (irrelevant) 
- * isafile - Is this entry a file or a tape? 
+ * portno - tape coordinator port no. (irrelevant)
+ * isafile - Is this entry a file or a tape?
  *
  * test_ftm goes through the lines in the config file and selects the
  * entry that has a port no. of 0 and tries to open the device.
index 652b56b26f584e47ab0078d8a68ae3e1513e5e57..179dd322de00472f17d427fdc2fb0f1bf2beb36e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -884,7 +884,7 @@ cmd_Dispatch(int argc, char **argv)
     }
 
     /*
-     * Before calling the beforeProc and afterProc and all the implications 
+     * Before calling the beforeProc and afterProc and all the implications
      * from those calls, check if the help procedure was called and call it now.
      */
     if ((ts->proc == HelpProc) || (ts->proc == AproposProc)) {
index 1ca0e63ecd44be34410970219d0b1a633898799b..689d9e4d42022353053035595afc8cdfca8b192e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 91834975ceb00fb26ae9b115c0d67bc5116c1aab..1f6e6b1c9559fdd09085c80e4f90e8036255888d 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 2000, International Business Machines Corporation and others.
 # All Rights Reserved.
-# 
+#
 # This software has been released under the terms of the IBM Public
 # License.  For details, see the LICENSE file in the top-level source
 # directory or online at http://www.openafs.org/dl/license10.html
index 4e477352774a041cb361468e2adf7f76d980a454..79f3a45ea726047cfab5fab2d32df9b9e35dffaf 100644 (file)
@@ -30,7 +30,7 @@ extern void (*afs_reset_com_err_hook(void)) (const char *, afs_int32,
                                         const char *, va_list);
 
 #define __AFS_COM_ERR_H
-#ifdef AFS_OLD_COM_ERR 
+#ifdef AFS_OLD_COM_ERR
 #define com_err                 afs_com_err
 #define com_err_va              afs_com_err_va
 #define error_table_name        afs_error_table_name
index 37df6b61cc6aa0056a0383a195de3f27956611ad..b90238a4987c998f4c74a055235c2dc1afda1dd8 100644 (file)
@@ -155,8 +155,8 @@ main(int argc, char **argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index b2eafd21f1e81715d40bbd29c45323cd5bd63099..8273011086ea94236e0b2fb295925e443d1003de 100755 (executable)
@@ -347,7 +347,7 @@ int yydebug;                        /*  nonzero means print parse trace     */
 #ifdef __GNUC__
 int yyparse(void);
 #endif
-\f
+
 #if __GNUC__ > 1               /* GNU C and GNU C++ define this.  */
 #define __yy_memcpy(FROM,TO,COUNT)     __builtin_memcpy(TO,FROM,COUNT)
 #else /* not GNU C or C++ */
@@ -386,7 +386,7 @@ __yy_memcpy(char *from, char *to, int count)
 
 #endif
 #endif
-\f
+
 #line 192 "bison.simple"
 
 /* The user can define YYPARSE_PARAM as the name of an argument to be passed
@@ -747,7 +747,7 @@ yyparse(YYPARSE_PARAM)
     }
     /* the action file gets copied in in place of this dollarsign */
 #line 487 "bison.simple"
-\f
+
     yyvsp -= yylen;
     yyssp -= yylen;
 #ifdef YYLSP_NEEDED
@@ -959,10 +959,10 @@ yyparse(YYPARSE_PARAM)
 #include "mit-sipb-cr.h"
 #include <stdio.h>
 
-/* 
+/*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 7a52d365d19b2eb947f22c933eb93a0d36ee4b60..23128fc2c4abf50e8d2f07d98d1f64bcaf751531 100755 (executable)
@@ -1,7 +1,7 @@
 typedef union {
 
 char *dynstr;
+
 } YYSTYPE;
 
 #define        ERROR_TABLE     258
index c7f6f7360d8dbc9aaced5ed5b5e83f6823074fcc..50689827a7bf9fc2951c6fcc5805a11ab072ec78 100644 (file)
@@ -1560,10 +1560,10 @@ int main()
 #endif
 #line 23 "et_lex.lex.l"
 
-/* 
+/*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 6ccd65b384e0514eb92a6a87cb7e6cfce1da42a1..fb9be1da2cd91a9b70141904e8fe8b7db264e50b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -48,7 +48,7 @@
 #define AFSOP_SET_BACKUPTREE    37     /* enable backup tree support */
 #define AFSOP_SET_RXPCK                 38     /* set rx_extraPackets*/
 #define AFSOP_BUCKETPCT          39     /* bucket percentage */
-#define AFSOP_SET_RXMAXMTU       40     /* set rx_MyMaxSendSize,rx_maxReceiveSizeUser,rx_maxReceiveSize */  
+#define AFSOP_SET_RXMAXMTU       40     /* set rx_MyMaxSendSize,rx_maxReceiveSizeUser,rx_maxReceiveSize */
 #define AFSOP_BKG_HANDLER        41     /* userspace-capable Bkg daemon */
 
 /* The range 20-30 is reserved for AFS system offsets in the afs_syscall */
@@ -80,7 +80,7 @@
 
 #ifdef AFS_SGI53_ENV
 #define AFSOP_NFSSTATICADDR     32     /* to contents addr of nfs kernel addr */
-#define AFSOP_NFSSTATICADDRPTR  33     /* pass addr of variable containing 
+#define AFSOP_NFSSTATICADDRPTR  33     /* pass addr of variable containing
                                         * address into kernel. */
 #define AFSOP_NFSSTATICADDR2    34     /* pass address in as hyper. */
 #define AFSOP_SBLOCKSTATICADDR2  35    /* for sblock and sbunlock */
@@ -94,7 +94,7 @@
 #define AFSOP_CACHEDIRS          51     /* number of files per dir */
 #define AFSOP_CACHEFILES         52     /* number of files */
 
-#define AFSOP_SETINT             60     /* we should just set key/value pairs 
+#define AFSOP_SETINT             60     /* we should just set key/value pairs
                                           for things which are just ints */
 
 /* these are for initialization flags */
@@ -215,7 +215,7 @@ typedef struct cm_initparams_v1 {
 /* Defines and structures for the AFS proc replacement layer for the original syscall (AFS_SYSCALL) strategy */
 
 #ifdef AFS_LINUX20_ENV
+
 #define PROC_FSDIRNAME "openafs"
 #define PROC_SYSCALL_NAME "afs_ioctl"
 #define PROC_SYSCALL_FNAME "/proc/fs/openafs/afs_ioctl"
@@ -227,10 +227,10 @@ typedef struct cm_initparams_v1 {
 #define PROC_RX_NAME "rx"
 #define PROC_SERVICES_NAME "rx_services"
 #define PROC_RXSTATS_NAME "rx_stats"
-#define VIOC_SYSCALL_TYPE 'C' 
+#define VIOC_SYSCALL_TYPE 'C'
 #define VIOC_SYSCALL _IOW(VIOC_SYSCALL_TYPE,1,void *)
 #define VIOC_SYSCALL32 _IOW(VIOC_SYSCALL_TYPE,1,int)
+
 struct afsprocdata {
   long param4;
   long param3;
@@ -246,7 +246,7 @@ struct afsprocdata32 {
   unsigned int param1;
   unsigned int syscall;
 };
+
 #endif
 
 #ifdef AFS_DARWIN80_ENV
@@ -272,7 +272,7 @@ struct afssysargs64 {
     unsigned int syscall;
     unsigned int retval;
 };
-#define VIOC_SYSCALL_TYPE 'C' 
+#define VIOC_SYSCALL_TYPE 'C'
 #define VIOC_SYSCALL _IOWR(VIOC_SYSCALL_TYPE,1,struct afssysargs)
 #define VIOC_SYSCALL64 _IOWR(VIOC_SYSCALL_TYPE,2,struct afssysargs64)
 #define SYSCALL_DEV_FNAME "/dev/openafs_ioctl"
index 1476140a1127a4295168bd5071fdfb8d28fa1f16..011f1256b6532f13f03abf383bbb46d590d4e680 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
 #define SYS_NAME_ID_amd64_obsd46        4015
 
 /*
- * Placeholder to keep system-wide standard flags since this file is included by all 
+ * Placeholder to keep system-wide standard flags since this file is included by all
  * files (i.e in afs/param.h)
  */
 #ifdef notdef
index b91ed9327a17ad86b4c592a64ac82ca63391f3da..23ad2af704e86e2cb2935f094b7835cd2ec19221 100644 (file)
@@ -37,7 +37,7 @@
 #define SIZEOF_LONG 4
 
 /* Define to `unsigned' if <sys/types.h> doesn't define.  */
-//#undef size_t unsigned int 
+//#undef size_t unsigned int
 
 /* Define if you have the ANSI C header files.  */
 #undef STDC_HEADERS
index 076f073b9c742949af4a2eb6c710f0d58a95bc80..ad023685fdfc59bc68e0d0b5b00ab5803d159127 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -49,7 +49,7 @@ main(int argc, char **argv)
     alist[1] = "all";
 
     /* This allows JUST arch or JUST OS/version,
-     * Linux 2.6 uses the in-kernel build system, so 
+     * Linux 2.6 uses the in-kernel build system, so
      * just 'linux26' is enough. */
     sysname = strdup (alist[0]);
     alist[2] = strchr (sysname, '_');
index 2ec6ec8b293b85e5b14fd87cecbd8e926868b7b4..5304f922c8996d468190e085cafbde4732bd87f3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -66,7 +66,7 @@ if(!(x)) { printf("assertion failed: line %d, file %s\n",\
 #define MAXMODS_DEBUG  20
 
 #ifdef AFSDEBUG_DECLARE
-/* 
+/*
  *  Should get here only once per kernel instance!
  */
 char afsdebug[MAXMODS_DEBUG] =
index deb111489911c706af286e7917b30f24c3839698..c8b9208b42934bb775a5dd5439d38c194cb46eb8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index b3e3690196d14a30546c260280c1b737b34f2e66..18d2efcad02032a7d4b5f8b3dc6c88439bf2917b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 38f252d3e5fd78155589cf4a932a7aac26f275be..d0565cedf627d858ed452e4df300c39298178e0c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -301,7 +301,7 @@ PrintStamps(void)
                fprintf(fpVers, "Base configuration %s\n",
                        stateDeltas[i].name);
            } else if (cfgFormat == CF_XML) {
-                fprintf(fpVers, 
+                fprintf(fpVers,
                         "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
                         "<revision>\n"
                         "<revnumber>\n"
@@ -331,7 +331,7 @@ PrintStamps(void)
                fprintf(fpVers, "%c%s\n", stateDeltas[i].type,
                        stateDeltas[i].name);
            } else if (cfgFormat == CF_XML) {
-               fprintf(fpVers, 
+               fprintf(fpVers,
                         "<revremark>\n"
                         ";%c%s"
                          "</revremark>\n",
@@ -354,7 +354,7 @@ PrintStamps(void)
                fprintf(fpVers, "%c%s\n", stateDeltas[i].type,
                        stateDeltas[i].name);
            } else if (cfgFormat == CF_XML) {
-               fprintf(fpVers, 
+               fprintf(fpVers,
                         "<revremark>\n"
                         ";%c%s"
                          "</revremark>\n",
index 870e0c632f1f206b963485c264760bf496a14610..927c31c665f4eed2fc4137ea3e6588b6d939dd6f 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -121,7 +121,7 @@ enum vcexcl { NONEXCL, EXCL };
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 79e89bb90f4167f50c425f0f41c481f73d7e1751..ddccdc5d29027740cd46f6132c6079c3c1eeea17 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -129,7 +129,7 @@ enum vcexcl { NONEXCL, EXCL };
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 7020a89b07bc166bac419106b984bc346ab71f6b..f9b8e6b043045204654e76f52542bba13d32cd1d 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -130,7 +130,7 @@ enum vcexcl { NONEXCL, EXCL };
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c414fa0f7e67951148d62fb2cf801f000895b94d..e609138c8a3633f7e94f36b47a5d0497086ad3a5 100644 (file)
@@ -1,7 +1,7 @@
-/* 
+/*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.    For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index f8a2d086894d97bedb3a3de9df25e345708f36ee..c14657aa749fb3557b65d5ff6f7bd6d44dba50f9 100644 (file)
@@ -1,7 +1,7 @@
-/* 
+/*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.    For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 55225b98d7b351693a7157d3cf952cd61f377c3e..8c27b05d0a95cfc0c1d3e7c4ba6c2fd0b55f7c65 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -49,7 +49,7 @@ typedef __int64 ssize_t;
 #define lstat(a, b)       _stat((a), (struct _stat32 *)(b))
 #else
 #define lstat(a, b)       _stat((a), (struct _stat64i32 *)(b))
-#endif 
+#endif
 #endif
 
 #if 0
index 21f98d06019d7422618ddeaea5b8b92ddf68dd1e..b5726ad51d45e52413657cff0aa37a78711e2140 100644 (file)
@@ -36,7 +36,7 @@
 #define DARWIN_REFBASE 3
 #define AFS_WARNUSER_MARINER_ENV 1
 #define AFS_CACHE_VNODE_PATH
-#define NEED_IOCTL32 
+#define NEED_IOCTL32
 
 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
 #define AFS_MOUNT_AFS    "afs"
@@ -67,7 +67,7 @@
 #define SYS_NAME               "ppc64_darwin_100"
 #define SYS_NAME_ID            SYS_NAME_ID_ppc64_darwin_100
 #define AFSBIG_ENDIAN          1
-#elif defined(__i386__) 
+#elif defined(__i386__)
 #define sys_x86_darwin_12      1
 #define sys_x86_darwin_13      1
 #define sys_x86_darwin_14      1
@@ -79,7 +79,7 @@
 #define SYS_NAME               "x86_darwin_100"
 #define SYS_NAME_ID            SYS_NAME_ID_x86_darwin_100
 #define AFSLITTLE_ENDIAN       1
-#elif defined(__amd64__) 
+#elif defined(__amd64__)
 #define sys_x86_darwin_12      1
 #define sys_x86_darwin_13      1
 #define sys_x86_darwin_14      1
@@ -92,7 +92,7 @@
 #define SYS_NAME               "amd64_darwin_100"
 #define SYS_NAME_ID            SYS_NAME_ID_amd64_darwin_100
 #define AFSLITTLE_ENDIAN       1
-#elif defined(__arm__) 
+#elif defined(__arm__)
 #define sys_arm_darwin_100     1
 #define SYS_NAME               "arm_darwin_100"
 #define SYS_NAME_ID            SYS_NAME_ID_arm_darwin_100
@@ -220,7 +220,7 @@ struct rt_addrinfo {
 #define SYS_NAME               "amd64_darwin_100"
 #define SYS_NAME_ID            SYS_NAME_ID_amd64_darwin_100
 #define AFSLITTLE_ENDIAN       1
-#elif defined(__arm__) 
+#elif defined(__arm__)
 #define sys_arm_darwin_100     1
 #define SYS_NAME               "arm_darwin_100"
 #define SYS_NAME_ID            SYS_NAME_ID_arm_darwin_100
index e33eb00439015ca13dc4b701af940a5130d1a118..bf83b16bd0ee3c0a70d9a25ef10c9135bf002aab 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -98,7 +98,7 @@ struct uio;
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 14fc5bf8b95daf0754c9a547d83f46ca799f688b..d7eff8236cdf53f0875c899b8fae49c7abc951ec 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -104,7 +104,7 @@ struct uio;
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 0c29dd5457b41bc16429593e24e40b2688f3e1a8..3b07114729299916dc108ed8b35cef0b7265f2c9 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -94,7 +94,7 @@ struct uio;
 #define memcmp(A, B, S) bcmp(A, B, S)
 #endif
 #endif /* KERNEL */
-#define        AFS_DIRENT      
+#define        AFS_DIRENT
 /* Non-standard definitions */
 #ifndef        EDQUOT
 #define        EDQUOT          69      /* Disc quota exceeded          */
index db615143431e88038596be293027e1e94079a0ce..799a4e72c6339b1f76328a76aa43d812bf3d9311 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -108,7 +108,7 @@ struct uio;
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a418bdd6413ab86617e18ed4f24fefad02f10afd..d6fa4b7ce181cdcfffe499380ed10273b68308e1 100644 (file)
@@ -18,7 +18,7 @@
 
 #if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
 #ifdef AFS_SMP
-#ifndef CONFIG_X86_LOCAL_APIC 
+#ifndef CONFIG_X86_LOCAL_APIC
 #define CONFIG_X86_LOCAL_APIC 1
 #endif
 #endif
index 418c5c76166517d2fae848e8ccb10a62439a4dca..486f97ed1688bb6176fafaed07074b48060c6ef6 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 0a8abdc2cb6352b1f83b5273d2faa6ccc3316500..8818bebf27b1446b86d3ea7a7d996c8a2e3f0776 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index 4836cb9812ddeba0bdc75553bd7515e338dbbacb..083fe5501a2f766dca43a7a61addb36327e0969e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index 9b0d3ebaa1e96bfa5bca25565d206f5d22bb822a..6ae10d3aea9b9e9814082f5132634d00f554d097 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index d5a8ba2ab7e6e1deb1f88bcfb65ffd4cba100057..66a96c6749df9dd3c24fcd584c6b1a92905a6f62 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index cc019c26e05decdc2d67e919d334c6a2a93e1a2b..c47c34c0bed53ba89ab34bb6306476ac1f342b74 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index 7260e70fff4b63bfab4ce0ff18f76c6325ebb9bc..7baa64a1dc0287e7f9e23008d3b45659bc512bb6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index 84f4cea49067a9600afc5a574d99686d15a98cdb..f0e9688f4ecf9413169c62bae740832ce0c81655 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index 0352bbacf22afb26e2253ac91b4d76b351a78df5..0e9b038ebd93ce85c607301a134e0046a67e928b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index 4f3ddbe0d129589317e16e66f2f9eca0ef52c6af..d3b76e3c40c64a0c09f87f5ea0c32c7cd343bcb5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index ace4b26e0862d9ffe504be3ec89a7f83e9e4c6ef..070dbd422a4609b823d8741b00a39d00781180eb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index 0b0c8c15a45d306bdf68e6bea45722147851d169..f1d3b65cd06192138f952f11993199365da7e0e6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index 7b8b5e49f919c0b03816983034b18d7e05d50e97..f088c03e633b49edeed7376e0f5e6abe4e194eb9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index b1525a600f6e37aa6f69845bdcd7010b8ac00ab4..9da2ae5fcf70787d67564deecd2e0b36e10a0114 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index cb5ccc5720abb02e82a612a57bedab822364d9d1..8fbe94807a65edd1a9d070284906e402f61778f5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index 61d972836e72fa44235c7cb6993ae8e38a40e0bd..e050b2bd4449c13460ef4c057a0faaf2761e7906 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index 7232ce0922de5f524043d9b1151d06ddfbd247e0..aa6107d9749c02377a1a78f00238416ac64d414a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index 97f47f909f0179e00523c3fff4823cb5f83c2381..888f8b3c6c804562c85002679fe8a6f580a02163 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 7b200e0248472b431fcda2e266e124a945f5f0ca..527c27362f339d1ddb199d1566ffd3e9f745efbb 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -48,7 +48,7 @@ typedef int ssize_t;
 #define lstat(a, b)       _stat((a), (struct _stat32 *)(b))
 #else
 #define lstat(a, b)       _stat((a), (struct _stat64i32 *)(b))
-#endif 
+#endif
 #endif
 
 #if 0
index a96d7a74a56e7daae0bd4f0fabfe316e13a30931..8ef7e9c60816098ac2458a98e4e4028e555bc1cc 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -47,7 +47,7 @@ typedef __int64 ssize_t;
 #define lstat(a, b)       _stat((a), (struct _stat32 *)(b))
 #else
 #define lstat(a, b)       _stat((a), (struct _stat64i32 *)(b))
-#endif 
+#endif
 #endif
 
 #if 0
index 08e1a2974181820e1efdd4957e78840ca6805749..92fee400ab7fa8de8d3a05ed94f39183131e81f5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ae685a89eb1a1b47af0fbb6366423c5f141325d4..d4f5dadf5db3b1c2c3a2d53ea1e9026cc1df14fc 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -94,7 +94,7 @@ struct uio;
 #define memcmp(A, B, S) bcmp(A, B, S)
 #endif
 #endif /* KERNEL */
-#define        AFS_DIRENT      
+#define        AFS_DIRENT
 /* Non-standard definitions */
 #ifndef        EDQUOT
 #define        EDQUOT          69      /* Disc quota exceeded          */
index de0102a2f25764cea0dbe253d4508c6730676047..11111b4ad01557257a9f64cf706262f5fd5d9c69 100644 (file)
@@ -1,7 +1,7 @@
-/* 
+/*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.    For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index d0b413e4f81b24ff5b995f673c3fd120f3657c79..04e3fd77e8eb57042a6af77ef9aacc472b8aceaf 100644 (file)
@@ -1,7 +1,7 @@
-/* 
+/*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.    For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 712012e9460eee95690d949e7374c36ee2b32567..4eb461d078c71b92210963da280e9da9e5d9d474 100644 (file)
@@ -114,7 +114,7 @@ enum vcexcl { NONEXCL, EXCL };
 #endif
 #endif /* KERNEL */
 
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ && !defined(IGNORE_STDS_H) */ 
+#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ && !defined(IGNORE_STDS_H) */
 #endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
index b20d2bec589da5623748af03b9818e77326c091e..68967595ae0a7d600733c0f1a7cfc2b61b096db8 100644 (file)
@@ -114,7 +114,7 @@ enum vcexcl { NONEXCL, EXCL };
 #endif
 #endif /* KERNEL */
 
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ && !defined(IGNORE_STDS_H) */ 
+#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ && !defined(IGNORE_STDS_H) */
 #endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
index 857ca5950bcdc45ac24326f48504d1af30589b18..a83d83a38c99c9779d9cb96c0418469f09c3963c 100644 (file)
@@ -110,7 +110,7 @@ enum vcexcl { NONEXCL, EXCL };
 #endif
 #endif /* KERNEL */
 
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ && !defined(IGNORE_STDS_H) */ 
+#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ && !defined(IGNORE_STDS_H) */
 #endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
index 0c685c47ffd183a7c4a89892fdb91060573c3148..91bae65091316ddc802844ee8dfc918db1608b2e 100644 (file)
@@ -121,7 +121,7 @@ enum vcexcl { NONEXCL, EXCL };
 #endif
 #endif /* KERNEL */
 
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ && !defined(IGNORE_STDS_H) */ 
+#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ && !defined(IGNORE_STDS_H) */
 #endif /* _KERNEL_DEPRECATED */
 
 #else /* !defined(UKERNEL) */
index 7517d6c487fdbf60203c67f34024075453038aec..35e51551218f1f8a65d2c415913eb02ccadaaf18 100644 (file)
@@ -112,7 +112,7 @@ enum vcexcl { NONEXCL, EXCL };
 #endif
 #endif /* KERNEL */
 
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ && !defined(IGNORE_STDS_H) */ 
+#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ && !defined(IGNORE_STDS_H) */
 #endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
index 35db00a7eefc338a451a1e6c8bbcf8a6063f76d7..cd51007813ccc83ba28564086f664eaf814dfedf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index f4b341f93da7c895ce56425f5fc81ddb1c062e0e..f2cc01c1b3eb2d8dae57b9b94cc9433261fbde7f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index 014f4d40004506a3c1fb583b6877392aa66dd139..52ed20615801a4beaa0a86d0f70432dbfe78980c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index ba3ecbb9e08f1e6b945465446c0a722e955854bc..4422de2a3b6f4764f96ec66ab1cfc3a145fea856 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index 0f830d9d3503825512dbecf7f611051c2669a6de..311785a5e2f3118e4954f7886226cac949d8fa1c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index 351e972a185461ed1d04c0a68322a7d8dd50287e..a3b309eb214b99dc5a505365fb0b22c27effd33c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index 264c7442bc90d40b505b05dbb3296d4291c904b7..d382c60b24a450e65dbcc0a5156dd624941120bd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index 3e68922aee267ba0205c22cc805c5493718fa244..081f7785899b2d4d43f01cbd921c6ac07ffedcc4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index 9fe99cf95ff39810c2a625cdd1caf71bba52fe06..1d20f4227df81c44cfb245e376e08134590d7f3f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index 3bc48b14d39d2b8fdf37de6cd14b5a44f4961773..0e0e0e785c3dfc00085e1bbfa84d0954e4115371 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index c4e652204997d23b94d38504b2507d9aa28feccf..2a58ab2e599854e9d30c907e5c5d30589e276f58 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index c6905e210b58145a52d0bd4729ccfefdfca6d81a..50ddaf9d7721b2c8d6d64d65c389138ee37efd59 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index 4a5cd39dade38c2bf8e6794693cf22d75672d564..a792d0351f610a1c6696736b0d76f2299cb69393 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index 9d9db334f63c9d457972717eee271116674d9f9b..6f87cf35c29d9eb6e68e7bfaa683844a2587942c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index a268c1ae4d66a005d7b0f4b077b7edd64a6aca1d..c4758acdee0b9a85180b8d3150d9c5a8f494935c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index 24a92289f5de94df302d07a9585c16c206b0062e..c77f51a091c81ba9c6f20bbfc772cec6550ec4d6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Thanks to Jim Rees and University of Michigan CITI, for the initial 
+ * Thanks to Jim Rees and University of Michigan CITI, for the initial
  * OpenBSD porting work.
  */
 
index e2bbfb45ac8a6a8628063258e3bfaed0b6f7a1b1..e0b3cca9a47b983515b102233642e48306c4c715 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -87,7 +87,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 09fb8273a937f499a3404c7e8a2fd56c724f019e..f902569b19deea657bae09f66343135a5aeda16f 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -88,7 +88,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 9e6b66b70c846b95ab6a0e869694094d1913f21a..64af9ce4110b7ba71e76bd7a3cb276a2c3a283cd 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -89,7 +89,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 2e53230dcf45284a669f6a83f4f586a4e7cd3583..a155172a78aaffc99086048ebc130358fdb59c98 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -90,7 +90,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 79b73eed299fe959c9e6b61575fc4197cde60c41..8ddeea9577c2dad765e7d9c45fb473651d8f1db0 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -91,7 +91,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ddad31a1641f8c837c1d2a5e480e732eb7b48290..b6b50de10c96f505a0de14570c790357d95da57e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c0335906fd62188be46141d596b294d4201ae133..902bc23ec0cba674405b8f881d3e935628e250fe 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 302799503fec931d1df74a44179e8d6f80d3e8dc..6757c4cd194464757d8f606d5a1d06f0d6438f0f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 77c3ef1a87645a79b253f4aacf924287d4f01e9a..bf106bee7559b01c1e2e6aa9b769d6754f837221 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 91181d35d173890490bd5ca2c0c7718d44fdbe3a..1606c230c3f29b90e3909e86462e9589ffefb7b2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index eed5e93f9a2fae36efb6c267a867213ee3f4002a..aff86cdaafdf976a96ad8da65d84afd252d4749d 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 794305bb48fce3009e6bd11c6decc1e5bf1df4ea..846d05ab18ede816f76c76f57fa518f381c5ce51 100644 (file)
@@ -1,7 +1,7 @@
-/* 
+/*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 8880cb12aab070375ebb6f0fddae0bce868a9ffe..649a328adeb0b4b8e7ad03c456c5af2981c0dca8 100644 (file)
@@ -1,7 +1,7 @@
-/* 
+/*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index cf227408d7af27e2b107d4176129ed302231ee32..c51b66d07f88a3c2cce042afcf1f25e17466b7f1 100644 (file)
@@ -1,7 +1,7 @@
-/* 
+/*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index afeb186cdb1dac7fba15695784c1a8aa33d163e7..fe366c2ffd79b16678f5e0499eb1f230f48cef79 100644 (file)
@@ -1,7 +1,7 @@
-/* 
+/*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1e98e518e73e45b67587576e975be57cac7cb0bc..cd0d1d0ad130c2bf5e54a3448fd92d25dcfa01bd 100644 (file)
@@ -1,7 +1,7 @@
-/* 
+/*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -50,7 +50,7 @@
 #define AFS_SYSCALL            227
 #define AFSBIG_ENDIAN          1
 
-/* glibc doesn't implement getcontext/savecontext for 32-bit sparc, so 
+/* glibc doesn't implement getcontext/savecontext for 32-bit sparc, so
    never use UCONTEXT here. */
 #undef USE_UCONTEXT
 
index 29fd025e6bbfbdf8fa5f709a925dddca3bc00cfe..136cd91b5bfc03af9d796be7cfddfafc9974f1f9 100644 (file)
@@ -4,32 +4,32 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
- */  
-    
+ */
+
 #ifndef        AFS_PARAM_H
 #define        AFS_PARAM_H
-    
+
 #define AFS_VFSINCL_ENV        1       /* NOBODY uses this.... */
 #define AFS_ENV                        1
 #define AFS_SUN_ENV            1
 #define AFS_SUN4_ENV           1
-    
+
 #include <afs/afs_sysnames.h>
-    
+
 #define AFS_GCPAGS             1       /* if nonzero, garbage collect PAGs */
 #define AFS_GLOBAL_SUNLOCK     1       /* For global locking */
-    
+
 #define        AFS_3DISPARES           1       /* Utilize the 3 available disk inode 'spares' */
 #define        AFS_SYSCALL             31
-    
-/* File system entry (used if mount.h doesn't define MOUNT_AFS */ 
+
+/* File system entry (used if mount.h doesn't define MOUNT_AFS */
 #define AFS_MOUNT_AFS   "afs"
-    
-/* Machine / Operating system information */ 
+
+/* Machine / Operating system information */
 #define sys_sun4_413   1
 #define SYS_NAME       "sun4_413"
 #define SYS_NAME_ID    SYS_NAME_ID_sun4_411
 #define AFS_HAVE_FFS    1       /* Use system's ffs. */
 #define AFS_HAVE_STATVFS 0
 #define AFS_VM_RDWR_ENV        1       /* read/write implemented via VM */
-    
+
 #define KERNEL_HAVE_UERROR 1
-    
-/* Extra kernel definitions (from kdefs file) */ 
+
+/* Extra kernel definitions (from kdefs file) */
 #ifdef KERNEL
-/* sun definitions here */ 
+/* sun definitions here */
 #define        AFS_UIOFMODE            1       /* Only in afs/afs_vnodeops.c (afs_ustrategy) */
 #define        afsio_iov               uio_iov
 #define        afsio_iovcnt    uio_iovcnt
 #define        VATTR_NULL      vattr_null
 #endif /* KERNEL */
 #define memset(A, B, S) bzero(A, S)
-#define memcpy(B, A, S) bcopy(A, B, S) 
+#define memcpy(B, A, S) bcopy(A, B, S)
 #define memcmp(A, B, S) bcmp(A, B, S)
 #define memmove(B, A, S) bcopy(A, B, S)
-#define        AFS_DIRENT      
+#define        AFS_DIRENT
 #ifndef CMSERVERPREF
 #define CMSERVERPREF
 #endif /*  */
-    
+
 #endif /* AFS_PARAM_H */
 #else /* !defined(UKERNEL) */
 
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
- */  
-    
+ */
+
 #ifndef        AFS_PARAM_H
 #define        AFS_PARAM_H
-    
+
 #define UKERNEL
 #define AFS_ENV                        1
-/* define AFS_USR_XXX_ENV XXX */ 
-    
+/* define AFS_USR_XXX_ENV XXX */
+
 #include <afs/afs_sysnames.h>
-    
+
 #define RXK_LISTENER_ENV        1
 #define AFS_USERSPACE_IP_ADDR   1
 #define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-    
+
 #define        AFS_3DISPARES           1       /* Utilize the 3 available disk inode 'spares' */
 #define        AFS_SYSCALL             31
-    
-/* File system entry (used if mount.h doesn't define MOUNT_AFS */ 
+
+/* File system entry (used if mount.h doesn't define MOUNT_AFS */
 #define AFS_MOUNT_AFS   1
-    
-/* Machine / Operating system information */ 
+
+/* Machine / Operating system information */
 #define sys_sun4_413   1
 #define SYS_NAME       "sun4_413"
 #define SYS_NAME_ID    SYS_NAME_ID_sun4_411
 #define AFSBIG_ENDIAN  1
 #define AFS_HAVE_FFS    1       /* Use system's ffs. */
 #define AFS_HAVE_STATVFS 0
-    
-/* Extra kernel definitions (from kdefs file) */ 
+
+/* Extra kernel definitions (from kdefs file) */
 #ifdef KERNEL
-/* sun definitions here */ 
+/* sun definitions here */
 #define        AFS_UIOFMODE            1       /* Only in afs/afs_vnodeops.c (afs_ustrategy) */
 #define        afsio_iov               uio_iov
 #define        afsio_iovcnt    uio_iovcnt
 #define        AFS_MINCHANGE   2
 #define        VATTR_NULL      usr_vattr_null
 #endif /* KERNEL */
-#define        AFS_DIRENT      
+#define        AFS_DIRENT
 #ifndef CMSERVERPREF
 #define CMSERVERPREF
 #endif /*  */
-    
+
 #endif /* AFS_PARAM_H */
 #endif /* !defined(UKERNEL) */
index 51ba830ba676b4d3a34e7bdba98ede8bceb9ebb3..03c4b40f103dc7a3bb97e4009e31a302142520cd 100644 (file)
@@ -24,7 +24,7 @@
 #define AFS_BOZONLOCK_ENV       1
 
 #define AFS_64BIT_ENV          1       /* Defines afs_int32 as int, not long. */
-#define AFS_64BIT_CLIENT       1       
+#define AFS_64BIT_CLIENT       1
 
 #define AFS_HAVE_FLOCK_SYSID   1
 
index 8ba22c48acc5512ccd7155015b764c839946de48..b36c5cff6549a731ebb79fab19654caf684936bc 100644 (file)
@@ -25,7 +25,7 @@
 #define AFS_BOZONLOCK_ENV       1
 
 #define AFS_64BIT_ENV          1       /* Defines afs_int32 as int, not long. */
-#define AFS_64BIT_CLIENT       1       
+#define AFS_64BIT_CLIENT       1
 
 #define AFS_HAVE_FLOCK_SYSID   1
 
index 1d6a853e56b249961cf071dce318cc894f2169c9..d337e68904e941448217ef96aee79235c6403ea0 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 7967e6da4e179f00e535ce3da9ee7272ec75c791..3ec069d0d6979c389fe95fcc63ecdfd417c7cd63 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a1ca9ae6fc5e75428c5369776a11c37e6f7bb51a..a4fe3e66e8477491a77ad605255b625abb23f6f1 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index d663575e4827c374e88b5866fc79400be5998820..9ca443aa5b9eaf4aaa40cfea76f41c55691759f2 100644 (file)
@@ -22,7 +22,7 @@
 #define AFS_BOZONLOCK_ENV       1
 
 #define AFS_64BIT_ENV          1       /* Defines afs_int32 as int, not long. */
-#define AFS_64BIT_CLIENT       1       
+#define AFS_64BIT_CLIENT       1
 
 #define AFS_HAVE_FLOCK_SYSID    1
 
index 46d62de7e579dfcd8e27bdddb9655dc1931b95aa..934afeff6c64fac6d1f6b5f6f1c7e0ec31801ad0 100644 (file)
@@ -23,7 +23,7 @@
 #define AFS_BOZONLOCK_ENV       1
 
 #define AFS_64BIT_ENV          1       /* Defines afs_int32 as int, not long. */
-#define AFS_64BIT_CLIENT       1       
+#define AFS_64BIT_CLIENT       1
 
 #define AFS_HAVE_FLOCK_SYSID    1
 
index d65e8e0a32c2e37004656ac7f828e5616aa7c86e..652b1835b443b07ba9c5e3f1fab941fcab8ccdee 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -34,7 +34,7 @@
 #define AFS_X86_ENV            1
 
 #define AFS_64BIT_ENV          1       /* Defines afs_int32 as int, not long. */
-#define AFS_64BIT_CLIENT       1       
+#define AFS_64BIT_CLIENT       1
 
 #define AFS_HAVE_FLOCK_SYSID    1
 
index afcf702170d2418e20cda3c2e506dc188997d7e9..6ea57e2dd25a0fcd2dcd397e86ece2007c5406a1 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -35,7 +35,7 @@
 #define AFS_X86_ENV            1
 
 #define AFS_64BIT_ENV          1       /* Defines afs_int32 as int, not long. */
-#define AFS_64BIT_CLIENT       1       
+#define AFS_64BIT_CLIENT       1
 
 #define AFS_HAVE_FLOCK_SYSID    1
 
index 35937cd2ba01bc7b677e7465c495c2b90128d9e7..b6186191261bd04d2731ab5bfeafcf636e992818 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 98902c1cb8fca0a6b66b979be3f415eafa176d69..2bbfa3504c1d821313697e092d6a783349ad2f7b 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 31c2f32058fe4d09eb86b3e3ad76ef325d152de8..69a2bb9b102c4a311ed548b0eb0dc5a4b8453b59 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index abdcdd1442f5679b0e2b920f9f395bd6b5a24f06..4954f058130cb4fd4ffdc47ded9e763c6a3c0770 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 6d711cd589cc4431fc3239bdba0875bdb5765e49..1b7cc19320df098290509321b10a7cbf3c13f50f 100644 (file)
@@ -34,7 +34,7 @@
 #define DARWIN_REFBASE 3
 #define AFS_WARNUSER_MARINER_ENV 1
 #define AFS_CACHE_VNODE_PATH
-#define NEED_IOCTL32 
+#define NEED_IOCTL32
 
 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
 #define AFS_MOUNT_AFS    "afs"
@@ -65,7 +65,7 @@
 #define SYS_NAME               "ppc64_darwin_100"
 #define SYS_NAME_ID            SYS_NAME_ID_ppc64_darwin_100
 #define AFSBIG_ENDIAN          1
-#elif defined(__i386__) 
+#elif defined(__i386__)
 #define sys_x86_darwin_12      1
 #define sys_x86_darwin_13      1
 #define sys_x86_darwin_14      1
@@ -77,7 +77,7 @@
 #define SYS_NAME               "x86_darwin_100"
 #define SYS_NAME_ID            SYS_NAME_ID_x86_darwin_100
 #define AFSLITTLE_ENDIAN       1
-#elif defined(__amd64__) 
+#elif defined(__amd64__)
 #define sys_x86_darwin_12      1
 #define sys_x86_darwin_13      1
 #define sys_x86_darwin_14      1
index 7d5cc6564200e41cd86fd4d3d0dffb2b71fc0f61..8812c6f4e8b9384413ad18f9074b56694a3b6325 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 8fbd509c88afceafb1d84baa33b9fb56578d6215..55350a743756c69034ba8a3ea7173861dce6b061 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -70,7 +70,7 @@ typedef long long afs_int64;
 typedef unsigned long long afs_uint64;
 #endif
 #define ZeroInt64(a)       (a = 0)
-#define AssignInt64(a, b) *(b) = (a) 
+#define AssignInt64(a, b) *(b) = (a)
 #define IncInt64(a) (*(a))++
 #define IncUInt64(a) (*(a))++
 #define DecInt64(a) (*(a))--
@@ -116,12 +116,12 @@ typedef struct u_Int64 afs_uint64;
 #define GEInt64(a,b) (((a).high > (b).high) || (((a).high == (b).high) && ((a).low >= (b).low)))
 #define LEInt64(a,b) (((a).high < (b).high) || (((a).high == (b).high) && ((a).low <= (b).low)))
 #define LTInt64(a,b) (((a).high < (b).high) || (((a).high == (b).high) && ((a).low < (b).low)))
-#define CompareInt64(a,b) (((afs_int32)(a).high - (afs_int32)(b).high) || (((a).high == (b).high) && ((a).low - (b).low))) 
-#define AddInt64(a, b, c) {  afs_int64 _a, _b; _a = a; _b = b; (c)->low = _a.low + _b.low; (c)->high = _a.high + _b.high + ((c)->low < _b.low); } 
-#define SubtractInt64(a, b, c) { afs_int64 _a, _b; _a = a; _b = b; (c)->low = _a.low - _b.low;  (c)->high = _a.high - _b.high - (_a.low < _b.low); } 
-#define CompareUInt64(a,b) (((afs_uint32)(a).high - (afs_uint32)(b).high) || (((a).high == (b).high) && ((a).low - (b).low))) 
-#define AddUInt64(a, b, c) {  afs_uint64 _a, _b; _a = a; _b = b; (c)->low = _a.low + _b.low; (c)->high = _a.high + _b.high + ((c)->low < _b.low); } 
-#define SubtractUInt64(a, b, c) { afs_uint64 _a, _b; _a = a; _b = b; (c)->low = _a.low - _b.low;  (c)->high = _a.high - _b.high - (_a.low < _b.low); } 
+#define CompareInt64(a,b) (((afs_int32)(a).high - (afs_int32)(b).high) || (((a).high == (b).high) && ((a).low - (b).low)))
+#define AddInt64(a, b, c) {  afs_int64 _a, _b; _a = a; _b = b; (c)->low = _a.low + _b.low; (c)->high = _a.high + _b.high + ((c)->low < _b.low); }
+#define SubtractInt64(a, b, c) { afs_int64 _a, _b; _a = a; _b = b; (c)->low = _a.low - _b.low;  (c)->high = _a.high - _b.high - (_a.low < _b.low); }
+#define CompareUInt64(a,b) (((afs_uint32)(a).high - (afs_uint32)(b).high) || (((a).high == (b).high) && ((a).low - (b).low)))
+#define AddUInt64(a, b, c) {  afs_uint64 _a, _b; _a = a; _b = b; (c)->low = _a.low + _b.low; (c)->high = _a.high + _b.high + ((c)->low < _b.low); }
+#define SubtractUInt64(a, b, c) { afs_uint64 _a, _b; _a = a; _b = b; (c)->low = _a.low - _b.low;  (c)->high = _a.high - _b.high - (_a.low < _b.low); }
 #define NonZeroInt64(a)   (a).low || (a).high
 #define Int64ToInt32(a)    (a).low
 #define FillInt64(t,h,l) (t).high = (h); (t).low = (l);
@@ -277,7 +277,7 @@ typedef struct afsUUID afsUUID;
 #define AFS_DEMAND_ATTACH_FS 1
 #endif
 
-/* A macro that can be used when printf'ing 64 bit integers, as Unix and 
+/* A macro that can be used when printf'ing 64 bit integers, as Unix and
  * windows use a different format string
  */
 #ifdef AFS_NT40_ENV
@@ -296,7 +296,7 @@ typedef struct afsUUID afsUUID;
 # endif /* PRINTF_TAKES_Z_LEN */
 #endif /* AFS_NT40_ENV */
 
-/* Functions to safely cast afs_int32 and afs_uint32 so they can be used in 
+/* Functions to safely cast afs_int32 and afs_uint32 so they can be used in
  * printf statemements with %ld and %lu
  */
 #ifdef AFS_NT40_ENV
index 687ccb84792b0b198508c19b4bade5835b1a297d..e6e20cd545256912356520e1f2cc457405b2e277 100644 (file)
@@ -1,7 +1,7 @@
 /* touch.c : Defines the entry point for the console application.*/
 /* Copyright 2000, International Business Machines Corporation and others.
        All Rights Reserved.
+
        This software has been released under the terms of the IBM Public
        License.  For details, see the LICENSE file in the top-level source
        directory or online at http://www.openafs.org/dl/license10.html
index 475fc1a1af2ebdf47be4c6ba3a3b2700a13f6e14..210c3e24d15bbf410bbe599a517f7efd46c217d5 100644 (file)
@@ -2,7 +2,7 @@
 
 /* Copyright 2000, International Business Machines Corporation and others.
        All Rights Reserved.
+
        This software has been released under the terms of the IBM Public
        License.  For details, see the LICENSE file in the top-level source
        directory or online at http://www.openafs.org/dl/license10.html
@@ -430,10 +430,10 @@ main(int argc, char *argv[])
            } else
                usage();
            break;
-       case 3:         //1.0.401 or 1.0.40a are the same; 
+       case 3:         //1.0.401 or 1.0.40a are the same;
            if ((isdigit(*ptr) == 0)    // first 2 must be digit
                || (isdigit(*(ptr + 1)) == 0)
-               || (*(ptr + 1) != '0' && isdigit(*(ptr + 2)) == 0)      // disallow 1.0.4b0  or 1.0.41a 
+               || (*(ptr + 1) != '0' && isdigit(*(ptr + 2)) == 0)      // disallow 1.0.4b0  or 1.0.41a
                )
                usage();
            pat = *ptr - '0';
index 3e98fd3e4ebe0abdf0eb4c60dbbf872141109faa..81f0b87c61dfbd21399e5f677f4d947b3515aec6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 705f2752650cf50514f1288ef2c620c42c689c98..d204c9a524d61ba977091b5d3aa67dd412fbf847 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 60caa216468bdf63ffcd3aefac2d64abed82d1a4..00a5a89ccc048b382e89653ca5a0c4eeb0386a38 100644 (file)
@@ -11,7 +11,7 @@
  *
  * Under U.S. law, this software may not be exported outside the US
  * without license from the U.S. Commerce department.
- * 
+ *
  * These routines form the library interface to the DES facilities.
  *
  *     spm     8/85    MIT project athena
index ee01fad1ca18747c71e79d601b9dccd7568ce5d1..d94edd6b38115d3b89e288fb66c64412c87e1a9d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index bfe330d7d9fdd209090293a60281a738dc6fdfcc..45938b510c875a6a2fbcbbe48c255eccdd272ec7 100644 (file)
@@ -316,7 +316,7 @@ permute(unsigned char *cp, C_block *out, C_block *p, int chars_in)
 #endif /* LARGEDATA */
 
 STATIC void init_des(void);
-STATIC void init_perm(C_block [64 / CHUNKBITS][1 << CHUNKBITS], 
+STATIC void init_perm(C_block [64 / CHUNKBITS][1 << CHUNKBITS],
                      unsigned char [64], int, int);
 STATIC int des_setkey(const char *key);
 STATIC int des_cipher(const char *in, char *out, long salt, int num_iter);
@@ -897,7 +897,7 @@ init_des(void)
  * "perm" must be all-zeroes on entry to this routine.
  */
 STATIC void
-init_perm(C_block perm[64 / CHUNKBITS][1 << CHUNKBITS], 
+init_perm(C_block perm[64 / CHUNKBITS][1 << CHUNKBITS],
          unsigned char p[64], int chars_in, int chars_out)
 {
     int i, j, k, l;
index dc25d95865f745863c529ee2428f69fb4c2fd743..813ef479859ed8a9b8c29b8471fb5911bdc34d34 100644 (file)
@@ -438,7 +438,7 @@ des_ecb_encrypt(void * clear, void * cipher,
     } else
 #endif
     {
-        *((afs_uint32*)cipher)= L2;    
+        *((afs_uint32*)cipher)= L2;
        cipher = ((afs_int32 *)cipher)+1;
        *((afs_uint32 *)cipher) = R2;
     }
index b2c77acfdf85e3fdb9a320ad11a3cddfc377c7c8..e23746b1502e2ba01b34d091fc1d0f8ece0cfb9b 100644 (file)
@@ -7,12 +7,12 @@
  * This file contains configuration information for the DES library
  * which is machine specific; currently, this file contains
  * configuration information for the vax, the "ibm032" (RT), and
- * the "PC8086" (IBM PC). 
+ * the "PC8086" (IBM PC).
  *
  * Note:  cross-compiled targets must appear BEFORE their corresponding
  * cross-compiler host.  Otherwise, both will be defined when running
  * the native compiler on the programs that construct cross-compiled
- * sources. 
+ * sources.
  */
 
 #include <afs/param.h>
index d0ac533685d25b15686077474cfc33c0d4a0230f..d91a255eb0edf81e169f6a02b1218e7d2417acda 100644 (file)
@@ -103,7 +103,7 @@ des_random_key(des_cblock key)
  *
  * Note: this routine calls des_set_random_generator_seed.
  */
-#if !defined(BSDUNIX) && !defined(AFS_SGI_ENV) && !defined(AFS_NT40_ENV) && !defined(AFS_LINUX20_ENV) && !defined(AFS_DARWIN_ENV) 
+#if !defined(BSDUNIX) && !defined(AFS_SGI_ENV) && !defined(AFS_NT40_ENV) && !defined(AFS_LINUX20_ENV) && !defined(AFS_DARWIN_ENV)
 you lose ... (aka, you get to implement an analog of this for your system ...)
 #else
 
index dd26fb270b6e8b9484833464d628fc9f733c8ab2..bbb188a21cf780131b3da6510472b689075b4c88 100644 (file)
@@ -1,7 +1,7 @@
-/* 
+/*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -55,7 +55,7 @@ struct rxkad_stats {
 };
 #ifdef AFS_NT40_ENV
 struct rxkad_stats rxkad_stats;         /* put this here for convenience */
-#endif 
+#endif
 #endif /* AFS_PTHREAD_ENV */
 
 
index f5eea9c0db04834fa970a8faca90f4d9e47c1214..3379159404adcb7bb0a4ad26dcee0aa46e9f9ccc 100644 (file)
@@ -69,7 +69,7 @@ int nbuffers;
 int timecounter;
 static int calls = 0, ios = 0;
 
-struct buffer *newslot(afs_int32 *afid, afs_int32 apage, 
+struct buffer *newslot(afs_int32 *afid, afs_int32 apage,
                       struct buffer *lp);
 
 /* XXX - This sucks. The correct prototypes for these functions are ...
index 25f5b6d37fe984baadb16e62377b85ac25488b09..c98d254eb986a9394dd381b6645efcec26f8108a 100644 (file)
@@ -391,7 +391,7 @@ LookupOffset(void *dir, char *entry, void *voidfid, long *offsetp)
 
 int
 EnumerateDir(void *dir, int (*hookproc) (void *dir, char *name,
-                                        afs_int32 vnode, afs_int32 unique), 
+                                        afs_int32 vnode, afs_int32 unique),
             void *hook)
 {
     /* Enumerate the contents of a directory.
@@ -552,10 +552,10 @@ FindItem(void *dir, char *ename, unsigned short **previtem)
 static struct DirEntry *
 FindFid (void *dir, afs_uint32 vnode, afs_uint32 unique)
 {
-    /* Find a directory entry, given the vnode and uniquifier of a object.  
+    /* Find a directory entry, given the vnode and uniquifier of a object.
      * This entry returns a pointer to a locked buffer.  If no entry is found,
-     * however, no items are left locked, and a null pointer is returned 
-     * instead. 
+     * however, no items are left locked, and a null pointer is returned
+     * instead.
      */
     int i;
     struct DirHeader *dhp;
@@ -571,8 +571,8 @@ FindFid (void *dir, afs_uint32 vnode, afs_uint32 unique)
                return 0;
            }
            while(tp) {
-               if (vnode == ntohl(tp->fid.vnode) 
-                   && unique == ntohl(tp->fid.vunique)) { 
+               if (vnode == ntohl(tp->fid.vnode)
+                   && unique == ntohl(tp->fid.vunique)) {
                    DRelease(dhp, 0);
                    return tp;
                }
@@ -590,13 +590,13 @@ FindFid (void *dir, afs_uint32 vnode, afs_uint32 unique)
 }
 
 int
-InverseLookup (void *dir, afs_uint32 vnode, afs_uint32 unique, char *name, 
+InverseLookup (void *dir, afs_uint32 vnode, afs_uint32 unique, char *name,
               afs_uint32 length)
 {
     /* Look for the name pointing to given vnode and unique in a directory */
     struct DirEntry *entry;
     int code = 0;
-    
+
     entry = FindFid(dir, vnode, unique);
     if (!entry)
        return ENOENT;
index 1bb702e0185059ac624df48f4e85c1b7e7233601..701346355bac914974d7e2c77dda61922ff40c58 100644 (file)
@@ -1,16 +1,16 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  */
 
-/* This is the directory salvager.  It consists of two routines.  The first, 
- * DirOK, checks to see if the directory looks good.  If the directory does 
- * NOT look good, the approved procedure is to then call Salvage, which 
- * copies all the good entries from the damaged dir into a new directory. 
+/* This is the directory salvager.  It consists of two routines.  The first,
+ * DirOK, checks to see if the directory looks good.  If the directory does
+ * NOT look good, the approved procedure is to then call Salvage, which
+ * copies all the good entries from the damaged dir into a new directory.
  */
 
 #include <afsconfig.h>
@@ -37,18 +37,18 @@ extern void Log(const char *format, ...)
     AFS_ATTRIBUTE_FORMAT(__printf__, 1, 2);
 /* Defined in vol/physio.c */
 extern void Die(char *);
-    
+
 #define printf Log             /* To make it work with volume salvager */
 
-/* This routine is called with one parameter, the id (the same thing that is 
- * passed to physio or the buffer package) of a directory to check.  It 
+/* This routine is called with one parameter, the id (the same thing that is
+ * passed to physio or the buffer package) of a directory to check.  It
  * returns 1 if the directory looks good, and 0 otherwise. */
 
 #define MAXENAME 256
 
 extern afs_int32 DErrno;
 
-/* figure out how many pages in use in a directory, given ptr to its (locked) 
+/* figure out how many pages in use in a directory, given ptr to its (locked)
  * header */
 static int
 ComputeUsedPages(struct DirHeader *dhp)
@@ -165,7 +165,7 @@ DirOK(void *file)
        }
     }
 
-    /* Compute number of used directory pages and max entries in all 
+    /* Compute number of used directory pages and max entries in all
      ** those pages, the value of 'up' must be less than pgcount. The above
      ** loop only checks the first MAXPAGES in a directory. An alloMap does
      ** not exists for pages between MAXPAGES and BIGMAXPAGES */
index 763a5f4efc26502a86e249eea4e5e09748b56e37..5f55fb10f44aa7e317b2b84b94f2179b7600f844 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -45,8 +45,8 @@ main(argc, argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index 1268f2f1eda50396749bff6e56e5429ddb27ebb7..5e1aef4e60fe6280348221e05e3ad6c183a679f0 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -51,8 +51,8 @@ main(argc, argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
@@ -202,7 +202,7 @@ get_syms(conf, syms)
 
     if (syms == NULL)
       sys_error("syms is NULL");
-    fp = fopen(syms, "r"); 
+    fp = fopen(syms, "r");
     if (fp == NULL)
        sys_error(syms);
 
@@ -481,7 +481,7 @@ xlate_xtok(xp, kp, strp, szp)
     if (debug)
        dump_ksym(kp, *strp);
 }
-\f
+
 /*
  * find_suffix -       look for a string that arg string is suffix of
  *
@@ -533,7 +533,7 @@ find_suffix(p, strings, max, offp)
 
     return 0;
 }
-\f
+
 /*
  * xsym_compar -       compare two XCOFF symbol table entries
  *
@@ -564,7 +564,7 @@ xsym_compar(xp, xq)
 
     return compar;
 }
-\f
+
 /*
  * dump_xsym - print to XCOFF symbol
  */
index 393d47458d769c2057aad6f9ed2ecb1c94a957a0..c02ee662901a26a28dcdd2c32e4120f5b9feacb0 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -71,7 +71,7 @@ export(cmd, uiop)
 
     return err;
 }
-\f
+
 /*
  * config -    process configuration data
  */
index f8d17f2d6627091b2e2f49fb53a9de9b6460b59f..385c0d1409af2b752e480b034d0a8dcd313d0fc1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c5354806c7bcbe190e9c60d05c54bb000079bdea..8cb8d7997bcdf59141983366bc61baa9323d9837 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1d8e3ecda56f0075833d25366cec2d8bdc9b4305..74942bc3cf15c7ee07c57ab6ffb9096634ea9a64 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 136d332555a877a45bdf87b503a0a66d776f7975..0eacce0b7f69ebffded141aec34eae379d988f44 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -40,8 +40,8 @@ main(int argc, char *argv[])
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index a9a3dce350aab1b24aeafad69102bae76342338a..a4341c19b5aeace79b224b2f8ebbb476201ad90d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -27,8 +27,8 @@ main(int argc, char **argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index a8ef8b76a83584bf5516c4b4817d6ec1b3a23269..19c9841225f77fe8abdff500dafc6aec34ebd3de 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -57,8 +57,8 @@ static afs_int32 bslosers = 0;
 #ifdef AFS_AIXNFS11
 #define        AUTH_DES 1
 #endif
-/* 
- * Wrapper for xdr_string that can be called directly from 
+/*
+ * Wrapper for xdr_string that can be called directly from
  * routines like clnt_call; from user-mode xdr package.
  */
 #ifndef        AFS_SUN5_ENV
index db28169914098e6fa68941da3c9801c49186a270..a1d3903662a46af086c188e5fcf51ab2088013d4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -90,7 +90,7 @@ proc GetCacheConfig(
   OUT afs_uint32 *serverVersion,
   OUT afs_uint32 *configCount,
   OUT cacheConfig *config
-) = 218;  
+) = 218;
 
 proc GetCE64(
   IN  afs_int32 index,
index 98fb106fd6a727ab373f649d828cc6ab7738fdd0..9fe4980c6cffcae457789e363393825e29dcb7b1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -38,9 +38,9 @@ customized struct AFSAccessList {
 typedef afs_int32 ViceDataType;
 
 %#define Invalid 0
-%#define File 1 
-%#define Directory 2 
-%#define SymbolicLink 3 
+%#define File 1
+%#define Directory 2
+%#define SymbolicLink 3
 
 %#ifdef       KERNEL
 %#define      afs_xdr_array(a,b,c,d,e,f)  afs_xdr_arrayN(a,b,c,d,e,f)
@@ -105,7 +105,7 @@ struct AFSFetchStatus {
 };
 
 struct AFSStoreStatus {
-    afs_uint32 Mask;   
+    afs_uint32 Mask;
     afs_uint32 ClientModTime;
     afs_uint32 Owner;
     afs_uint32 Group;
@@ -577,7 +577,7 @@ GetRootVolume(
 ) = 151;
 
 CheckToken(
-  IN  afs_int32 ViceId, 
+  IN  afs_int32 ViceId,
   AFSOpaque *token
 ) = 152;
 
@@ -678,21 +678,21 @@ InlineBulkStatus(
 ) = 65536;
 
 FetchData64(
-  IN  AFSFid *Fid, 
-  afs_int64 Pos, 
-  afs_int64 Length, 
-  OUT AFSFetchStatus *OutStatus, 
-  AFSCallBack *CallBack, 
+  IN  AFSFid *Fid,
+  afs_int64 Pos,
+  afs_int64 Length,
+  OUT AFSFetchStatus *OutStatus,
+  AFSCallBack *CallBack,
   AFSVolSync *Sync
 ) split = 65537;
 
 StoreData64(
-  IN  AFSFid *Fid, 
-  AFSStoreStatus *InStatus, 
-  afs_uint64 Pos, 
-  afs_uint64 Length, 
-  afs_uint64 FileLength, 
-  OUT AFSFetchStatus *OutStatus, 
+  IN  AFSFid *Fid,
+  AFSStoreStatus *InStatus,
+  afs_uint64 Pos,
+  afs_uint64 Length,
+  afs_uint64 FileLength,
+  OUT AFSFetchStatus *OutStatus,
   AFSVolSync *Sync
 ) split = 65538;
 
@@ -727,7 +727,7 @@ CallBackRxConnAddr(
 const STATS64_VERSION = 16;
 typedef afs_uint64 ViceStatistics64<STATS64_VERSION>;
 
-/* the "version" is a number representing the number of 
+/* the "version" is a number representing the number of
    array elements to return, from 0 to N-1 */
 
 GetStatistics64(
index cb3b4362658e8e71aa8a721fc6e945eda32ce0f7..253efc5e010a77a15859f6d30116c0103b0a2609 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index d6b6ab495d372199985ba923c1526fb89e1f97b4..bc136fa028afd14b8d5fafc576b43576fb0b6253 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2006, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a308af20c53df5f900d9f0ed064195d1922a983a..1eda563eff40d60aaa7e9f58e9d82349d6b49f71 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -315,8 +315,8 @@ fsprobe_LWP(void *unused)
                            strcpy(curr_stats->Disk[i].Name, pname);
                        }
                        if (code == RXGEN_OPCODE) {
-                           code = 
-                               AFSVolPartitionInfo(curr_conn->rxVolconn, 
+                           code =
+                               AFSVolPartitionInfo(curr_conn->rxVolconn,
                                                    pname, &partition);
                            if (!code) {
                                curr_stats->Disk[i].BlocksAvailable =
@@ -476,7 +476,7 @@ XListPartitions(struct rx_connection *aconn, struct partList *ptrPartList,
  *------------------------------------------------------------------------*/
 
 int
-fsprobe_Init(int a_numServers, struct sockaddr_in *a_socketArray, 
+fsprobe_Init(int a_numServers, struct sockaddr_in *a_socketArray,
             int a_ProbeFreqInSecs, int (*a_ProbeHandler)(void),
             int a_debug)
 {                              /*fsprobe_Init */
index 33221fc9107e085c3892d3df302bc72bf286d7d4..94083bfe9f6bcf3810cf726bdbd82368f0e044d8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 5570f98fd56b26f3127796d260c1648deed75986..807c9eccc38da978ffe1079eb281693233b98324 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -411,7 +411,7 @@ SRXAFSCB_GetXStats(struct rx_call * rxcall, afs_int32 clientVN,
  *      rxcall : Ptr to Rx call on which this request came in.
  *
  * Returns:
- *      RXGEN_OPCODE (always). 
+ *      RXGEN_OPCODE (always).
  *
  * Environment:
  *      Nothing interesting.
index 54b93f45802f8ff0a010b5a5825e31f4008cdef6..4bd825aa11a29296b7f6c37501175dcac33d8a54 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -20,7 +20,7 @@
 #include <string.h>
 #include "fsprobe.h"           /*Interface for fsprobe module */
 #include <afs/afsutil.h>
-    
+
 /*------------------------------------------------------------------------
  * FS_Handler
  *
index b3d853cfecff7a1ec788462cc66356087799fdfc..419655d00de4d80889142308d020f35959cf296c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 0fd933e49539051c73e9c35c771ed1d4d0a38683..53868b21f3023ac5d97f2e172098d5677e23e65f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 6142d7ab8ab30cb8dc2e22efcfec1cc65ee1096b..d555ae5246aace219ca0723b5331f3cfcde27f6e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index bbb50b6345b295a8936b88e7ca9ce689b249d2bb..5d1d5e06cc6947dfcbb19fe8530f0b7c411e69a9 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 446b9e5d31a4e242a0c7b652ae84e2febe1c4ae2..3237de4ff768a609a832f72e6b40f65695ea62f0 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index f40bc886d8596ec86bf7cd70de3a02b4438e2ec5..620be0a3b9f356e0f7bc8ea198d627adb1a86a7c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -49,7 +49,7 @@ int
 gtxframe_CtrlHCmd(void *aparam, void *arock)
 {
     struct gwin *awindow = (struct gwin *) aparam;
-    
+
     struct gtx_frame *tframe;
     char *tp;
     int pos;
@@ -68,7 +68,7 @@ int
 gtxframe_RecursiveEndCmd(void *aparam, void *arock)
 {
     struct gwin *awindow = (struct gwin *) aparam;
-    
+
     struct gtx_frame *tframe;
 
     tframe = awindow->w_frame;
@@ -81,7 +81,7 @@ int
 gtxframe_RecursiveErrCmd(void *aparam, void *arock)
 {
     struct gwin *awindow = (struct gwin *) aparam;
-    
+
     struct gtx_frame *tframe;
 
     tframe = awindow->w_frame;
@@ -94,9 +94,9 @@ int
 gtxframe_SelfInsertCmd(void *aparam, void *rockparam)
 {
     struct gwin *awindow = (struct gwin *) aparam;
-    
+
     int arock = (intptr_t)rockparam;
-    
+
     struct gtx_frame *tframe;
     int pos;
     char *tp;
@@ -252,7 +252,7 @@ gtxframe_ClearMenus(struct gtx_frame *aframe)
 }
 
 int
-gtxframe_AskForString(struct gtx_frame *aframe, char *aprompt, 
+gtxframe_AskForString(struct gtx_frame *aframe, char *aprompt,
                      char *adefault, char *aresult, int aresultSize)
 {
     int code;
index ca76933a4d2d295cbf6b18527b2556eb4dd928d4..f911b9709e2bac9b25ed13f9dc90a9d31ea2d42c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -152,7 +152,7 @@ extern int gator_X11gwin_drawline(struct gwin *, struct gwin_lineparams *);
      *    Error value otherwise.
      */
 
-extern int gator_X11gwin_drawrectangle(struct gwin *, 
+extern int gator_X11gwin_drawrectangle(struct gwin *,
                                       struct gwin_rectparams *);
     /*
      * Summary:
index 9c6dd07201add115f54f702ba7bff479f965101a..096a3f67215fef9f5738449892de820d9a5e51c3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -160,7 +160,7 @@ extern int gator_cursesgwin_drawline(struct gwin *, struct gwin_lineparams *);
      *    Error value otherwise.
      */
 
-extern int gator_cursesgwin_drawrectangle(struct gwin *, 
+extern int gator_cursesgwin_drawrectangle(struct gwin *,
                                          struct gwin_rectparams *);
     /*
      * Summary:
index 3a0374125453187b1093871e0fcdadae3ccc0c3b..dc0789e59d8805ab60d63c098a1162094d4433e9 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -152,7 +152,7 @@ extern int gator_dumbgwin_drawline(struct gwin *, struct gwin_lineparams *);
      *    Error value otherwise.
      */
 
-extern int gator_dumbgwin_drawrectangle(struct gwin *, 
+extern int gator_dumbgwin_drawrectangle(struct gwin *,
                                        struct gwin_rectparams *);
     /*
      * Summary:
@@ -217,7 +217,7 @@ extern int gator_dumbgwin_invert(struct gwin *, struct gwin_invparams *);
 extern int gator_dumbgwin_getchar(struct gwin *gwp);
     /* get a character from a window */
 
-extern int gator_dumbgwin_getdimensions(struct gwin *, 
+extern int gator_dumbgwin_getdimensions(struct gwin *,
                                        struct gwin_sizeparams *);
 
 extern int gator_dumbgwin_wait(struct gwin *gwp);
index ad4df7fdf57fb4d0e597f0db09e1bc2527dc3cd8..14b0956c2b29a89d1bb05aebb98ede405f7ad502 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -39,12 +39,12 @@ struct gtx_frame {
 
 extern int gtxframe_SetFrame(struct gwin *awin, struct gtx_frame *aframe);
 extern struct gtx_frame *gtxframe_GetFrame(struct gwin *);
-extern int gtxframe_AddMenu(struct gtx_frame *aframe, char *alabel, 
+extern int gtxframe_AddMenu(struct gtx_frame *aframe, char *alabel,
                            char *astring);
 extern int gtxframe_DeleteMenu(struct gtx_frame *aframe, char *alabel);
 extern int gtxframe_ClearMenus(struct gtx_frame *aframe);
-extern int gtxframe_AskForString(struct gtx_frame *aframe, char *aprompt, 
-                                char *adefault, char *aresult, 
+extern int gtxframe_AskForString(struct gtx_frame *aframe, char *aprompt,
+                                char *adefault, char *aresult,
                                 int aresultSize);
 extern int gtxframe_DisplayString(struct gtx_frame *, char *);
 extern int gtxframe_ClearMessageLine(struct gtx_frame *aframe);
@@ -52,7 +52,7 @@ extern struct gtx_frame *gtxframe_Create(void);
 extern int gtxframe_Delete(struct gtx_frame *aframe);
 extern int gtxframe_Display(struct gtx_frame *aframe, struct gwin *awm);
 extern int gtxframe_AddToList(struct gtx_frame *aframe, struct onode *aobj);
-extern int gtxframe_RemoveFromList(struct gtx_frame *aframe, 
+extern int gtxframe_RemoveFromList(struct gtx_frame *aframe,
                                   struct onode *aobj);
 extern int gtxframe_ClearList(struct gtx_frame *aframe);
 
index 9103f836de957b17ac896480782d7720a8becbb5..131a10c2b988a3bbc4bcac8d97a5800114771937 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 96f974e7a0811c46961f0e6bc373051bf9747496..7b8a4c105afb134401df774b2681e2cb889fb2cd 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 6b80d2671e2d85a3baf695fe7bf461181ced3267..9cf92a00b0c7d4db6c6c895465ae02a6e80d8a64 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index bd61e0a20ffaace550641767fa12912e3ac1308f..10c59c62f5bad168f5fa979d908843606b74f4ce 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 0537d07db497a7dbd16124b2faca88509ecae651..564e208f98bf0adb964e634dbd12480ab86a9c27 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index f07be8ef6abc5a1cca0e9365fc944d7c55b8395e..29fabf58b88b35e8378694f1683298d450868c39 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -33,7 +33,7 @@ ChangeMenuCmd(void *param1, void *param2)
 {
     struct gwin * awin = (struct gwin *) param1;
     afs_int32 arock = (intptr_t)param2;
-    
+
     struct gtx_frame *tf;
     afs_int32 code;
 
@@ -60,7 +60,7 @@ ChangeListCmd(void *param1, void *param2)
 {
     struct gwin *awin = (struct gwin *) param1;
     afs_int32 arock = (intptr_t)param2;
-    
+
     struct gtx_frame *tf;
     afs_int32 code;
 
@@ -86,7 +86,7 @@ static int
 NoCallCmd(void *param, void *unused)
 {
     struct gwin *awin = (struct gwin *)param;
-    
+
     gtxframe_DisplayString(awin->w_frame,
                           "Function should be mapped on '$d', not 'd'");
     return 0;
@@ -113,7 +113,7 @@ static int
 StupidCmd(void *param, void *unused)
 {
     struct gwin *awin = (struct gwin *)param;
-    
+
     gtxframe_DisplayString(awin->w_frame,
                           "You're already showing that frame!");
     return 0;
index c228457d747de6c3629f24893031252ff411c337..e379f63bbdb92ea1239e150cb1b3ce85c6f871f1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 967393774c4157bdcec5a0fec33164fc0bd55223..78e4cd0480f72fd24a3465533342669d1276f8ed 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 0d70c6d819da50e3e5e9c1708f172194ebd9381b..7d0e1df537f41af68754481862c985dc65c68d1b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -116,18 +116,18 @@ struct gwinops {
     int (*gw_clear) (struct gwin *);   /* Clear out a window */
     int (*gw_destroy) (struct gwin *); /* Destroy a window */
     int (*gw_display) (struct gwin *); /* [Re]display a window */
-    int (*gw_drawline) (struct gwin *, struct gwin_lineparams *);      
+    int (*gw_drawline) (struct gwin *, struct gwin_lineparams *);
                        /* Draw a line between two points */
-    int (*gw_drawrectangle) (struct gwin *, struct gwin_rectparams *); 
+    int (*gw_drawrectangle) (struct gwin *, struct gwin_rectparams *);
                        /* Draw a rectangle at the given loc & dimensions */
-    int (*gw_drawchar) (struct gwin *, struct gwin_charparams *);      
+    int (*gw_drawchar) (struct gwin *, struct gwin_charparams *);
                        /* Draw a char at the given location */
-    int (*gw_drawstring) (struct gwin *, struct gwin_strparams *);     
+    int (*gw_drawstring) (struct gwin *, struct gwin_strparams *);
                        /* Draw a char string at the given location */
-    int (*gw_invert) (struct gwin *, struct gwin_invparams *); 
+    int (*gw_invert) (struct gwin *, struct gwin_invparams *);
                        /* Invert region */
     int (*gw_getchar) (struct gwin *); /* Get a character from a window */
-    int (*gw_getdimensions) (struct gwin *, struct gwin_sizeparams *); 
+    int (*gw_getdimensions) (struct gwin *, struct gwin_sizeparams *);
                        /* Get dimensions of a window */
     int (*gw_wait) (struct gwin *);     /* Wait for input */
 };
@@ -152,7 +152,7 @@ struct gwinops {
  * Base operations on the lower-level window system.
  */
 struct gwinbaseops {
-    struct gwin *(*gw_createwin) (void *);     
+    struct gwin *(*gw_createwin) (void *);
                                        /*Create a window */
     int (*gw_cleanup) (struct gwin *); /*Clean up before program exit */
 };
index 4fe3cb3193f8d96533ee2430d9ddba1e58b7b0c2..4fa7d33f5b58ed0b69372d4fa44dbaf6f83b63c8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -30,7 +30,7 @@ void *
 gtx_InputServer(void *param)
 {
     struct gwin *awin = (struct gwin *) param;
-    
+
     int tc;
     int code;
     struct gtx_frame *tframe;
@@ -64,7 +64,7 @@ gtx_InputServer(void *param)
 }
 
 struct gwin *
-gtx_Init(int astartInput, 
+gtx_Init(int astartInput,
         int atype)                     /* type of window to create */
 {
     PROCESS junk;
index 99fddb5a8a490238b1c31f578bd7bbc56b621024..0cc8beb17dc847f52b76ab10f65dcef3992ec15d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -65,8 +65,8 @@ BindIt(struct keymap_map *amap, int aslot, int atype, void *aproc, char *aname,
 }
 
 int
-keymap_BindToString(struct keymap_map *amap, char *astring, 
-                   int (*aproc)(void *, void *), 
+keymap_BindToString(struct keymap_map *amap, char *astring,
+                   int (*aproc)(void *, void *),
                    char *aname, void *arock)
 {
     char *cptr;
index 83f97dd15bda830c64b54df5982b20fab4c00828..71df8b22286efa739c20076e7c2260e73715d1b7 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 5ade8bf0ce67b320b7101639a72a52bafccc21d2..c2ded9c427faee1c9188c466f29ed5161b5c76ee 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index b9f55e2fbd75d82fce60c450f681313c22b5d02b..e06c34464d2c24d46c7cebcc596a7c9863b170d4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 98fe9a390c501aa0b6345e7d18b45ac7ee29d9a7..1dfcf95293708f940dca193b71cbe24eb796514b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -35,7 +35,7 @@
 static char mn[] = "gator_objects";    /*Module name */
 int objects_debug;             /*Is debugging output on? */
 
-int (*on_create[GATOR_NUM_OBJTYPES]) (struct onode *, 
+int (*on_create[GATOR_NUM_OBJTYPES]) (struct onode *,
                                      struct onode_createparams *);
                                        /*Array of ptrs to creation functions */
 
@@ -60,7 +60,7 @@ struct onodeops objops[GATOR_NUM_OBJTYPES];   /*Per-type op arrays */
  *           THIS PACKAGE ***
  *
  * Side Effects:
- *     
+ *
  *--------------------------------------------------------------------------------*/
 
 int
@@ -269,7 +269,7 @@ gator_objects_create(struct onode_createparams *params)
  * gator_objects_lookup
  *
  * Description:
- *     
+ *
  *
  * Arguments:
  *     char *onode_name: Onode string name to find.
index 6811b7efad4d41b4e886437782f4135034ae5b05..ac9c858f02393be73984452f59c345d02a19b39d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 3193cf5a41138054e39d2bf463dc8a673288637c..0f15d7292fd9eedd006cf424dfcc268eafaf9d8a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -506,7 +506,7 @@ gator_textcb_Write(struct gator_textcb_hdr *a_cbhdr, char *a_textToWrite,
  *------------------------------------------------------------------------*/
 
 int
-gator_textcb_BlankLine(struct gator_textcb_hdr *a_cbhdr, 
+gator_textcb_BlankLine(struct gator_textcb_hdr *a_cbhdr,
                       int a_numBlanks)
 {                              /*gator_textcb_BlankLine */
 
index 7afd91e4bd5e0f64cd12d5152bd286fc1555ac44..ffe004294479355d56c14fc078b87c6c46cc3e9b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -412,7 +412,7 @@ gator_text_Scroll(struct onode *onp, int nlines, int direction)
  *------------------------------------------------------------------------*/
 
 int
-gator_text_Write(struct onode *onp, char *strToWrite, int numChars, 
+gator_text_Write(struct onode *onp, char *strToWrite, int numChars,
                 int highlight, int skip)
 {                              /*gator_text_Write */
 
@@ -428,7 +428,7 @@ gator_text_Write(struct onode *onp, char *strToWrite, int numChars,
     int bumpAmount;            /*Amount to bump count */
 
     /*
-     * 
+     *
      */
     if (objects_debug) {
        fprintf(stderr,
index 3cc4c4475d0689404cd5824f14f8359f306ce640..45c391eda25d172af4a40287865951386aa79ccf 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 7e18078174fc03a895891dcd885ad938e5f8e29f..d63e53bbc6919f97eed6ec6b136fd613fc98e12a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -1114,7 +1114,7 @@ Statistics(struct cmd_syndesc *as, void *arock)
     printf("Hash table utilization = %f%%\n",
           (double)dynamics.hashTableUtilization / 100.0);
     ka_timestr(dynamics.start_time, bob, KA_TIMESTR_LEN);
-    printf("From host %lx started at %s:\n", 
+    printf("From host %lx started at %s:\n",
           afs_printable_uint32_lu(dynamics.host), bob);
 
 #define print_stat(name) if (dynamics.name.requests) printf ("  of %d requests for %s, %d were aborted.\n", dynamics.name.requests, # name, dynamics.name.aborts)
@@ -1205,7 +1205,7 @@ DebugInfo(struct cmd_syndesc *as, void *arock)
             timeOffset, now - start);
     }
     ka_timestr(info.startTime, bob, KA_TIMESTR_LEN);
-    printf("From host %lx started %sat %s:\n", 
+    printf("From host %lx started %sat %s:\n",
           afs_printable_uint32_lu(info.host),
           (info.noAuth ? "w/o authorization " : ""), bob);
     ka_timestr(info.lastTrans, bob, KA_TIMESTR_LEN);
@@ -1220,7 +1220,7 @@ DebugInfo(struct cmd_syndesc *as, void *arock)
     printf("Next autoCPW at %s or in %d updates.\n", bob,
           info.updatesRemaining);
     if (info.cheader_lock || info.keycache_lock)
-       printf("locks: cheader %08lx, keycache %08lx\n", 
+       printf("locks: cheader %08lx, keycache %08lx\n",
                afs_printable_uint32_lu(info.cheader_lock),
                afs_printable_uint32_lu(info.keycache_lock));
     printf("Last authentication for %s, last admin user was %s\n",
@@ -1263,7 +1263,7 @@ MyAfterProc(struct cmd_syndesc *as, void *arock)
        return 0;
 
     /* Determine if we need to destory the ubik connection.
-     * Closing it avoids resends of packets. 
+     * Closing it avoids resends of packets.
      */
     if (conn) {
        ubik_ClientDestroy(conn);
@@ -1679,7 +1679,7 @@ ka_AdminInteractive(int cmd_argc, char *cmd_argv[])
     ts = cmd_CreateSyntax("noauthentication", NoAuth, NULL,
                          "connect to AuthServer w/o using token");
 
-    ts = cmd_CreateSyntax("list", ListUsers, NULL, 
+    ts = cmd_CreateSyntax("list", ListUsers, NULL,
                          "list all users in database");
     cmd_AddParm(ts, "-long", CMD_FLAG, CMD_OPTIONAL,
                "show detailed info about each user");
index 5a6155f7f32b682b5e5df5eab2d3e9dddf08b805..2831a12a4de2f55224d5970935dd1a90abd9c478 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 7db7ba053d3e1746e11b1af5b5f6583d61ba6806..3021c6d2be2803bb83cc6c4b1a2dbab3fe33110e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 86124e761cac306e5982bc344eff6e6b46d0c667..15082e5794cceb12f7d4a72e63b9898c2043753a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 5f83d22536ab59d08d1228b6770ea7f1b89eb6d7..e6f013d7b608aba496e552af81da0d0474e95d31 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 09ba13f3582f7aef2ed2c6057f01251b10fc4700..77ae9bfa4a62d4807cd5cc376bc8b90083056e9c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -69,7 +69,7 @@ kaux_closedb(void)
 }
 
 
-/* 
+/*
  * The read and write routines take as a parameter, the offset into
  * the main database at which a particular user's entry resides.  They
  * then convert that into an offset into the auxiliary database.  This
@@ -77,7 +77,7 @@ kaux_closedb(void)
  * detail.
  */
 int
-kaux_read(afs_int32 to,                /* this is the offset of the user id in the main database. 
+kaux_read(afs_int32 to,                /* this is the offset of the user id in the main database.
                                 * we do the conversion here - probably a bad idea. */
          unsigned int *nfailures, afs_uint32 * lasttime)
 {
@@ -95,7 +95,7 @@ kaux_read(afs_int32 to,               /* this is the offset of the user id in the main databa
     if (offset > lseek(fd, offset, SEEK_SET))
        return 0;
 
-    /* we should just end up with 0 for nfailures and lasttime if EOF is 
+    /* we should just end up with 0 for nfailures and lasttime if EOF is
      * encountered here, I hope */
     if ((0 > read(fd, nfailures, sizeof(int)))
        || (0 > read(fd, lasttime, sizeof(afs_int32)))) {
@@ -157,7 +157,7 @@ kaux_inc(afs_int32 to, afs_uint32 locktime)
 
 }
 
-/* 
+/*
  * report on whether a particular id is locked or not...
  * has to get some dirt from ubik.
  * We multiply the actual number of permitted attempts by two because
@@ -165,7 +165,7 @@ kaux_inc(afs_int32 to, afs_uint32 locktime)
  * with the ka_string_to_key, and once with des_string_to_key, for
  * Kerberos compatibility.  It's easier to frob here than to explain
  * to users/admins.
- * RETURNS: time when the ID will be unlocked, or 0 if it's not locked. 
+ * RETURNS: time when the ID will be unlocked, or 0 if it's not locked.
  */
 int
 kaux_islocked(afs_int32 to, u_int attempts, u_int locktime)
index f80f1c64700b4d7e8e751d65db655d3550186fe6..b204225da34f08acc49eafbbd87415e18b715df1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -265,7 +265,7 @@ FreeBlock(struct ubik_trans *at, afs_int32 index)
    returned. */
 
 afs_int32
-FindBlock(struct ubik_trans *at, char *aname, char *ainstance, afs_int32 *toP, 
+FindBlock(struct ubik_trans *at, char *aname, char *ainstance, afs_int32 *toP,
          struct kaentry *tentry)
 {
     afs_int32 i, code;
@@ -295,7 +295,7 @@ FindBlock(struct ubik_trans *at, char *aname, char *ainstance, afs_int32 *toP,
    returns zero if there were no errors. */
 
 afs_int32
-ThreadBlock(struct ubik_trans *at, afs_int32 index, 
+ThreadBlock(struct ubik_trans *at, afs_int32 index,
            struct kaentry *tentry)
 {
     int code;
@@ -364,7 +364,7 @@ UnthreadBlock(struct ubik_trans *at, struct kaentry *aentry)
    remaining count is negative.  */
 
 afs_int32
-NextBlock(struct ubik_trans *at, afs_int32 index, struct kaentry *tentry, 
+NextBlock(struct ubik_trans *at, afs_int32 index, struct kaentry *tentry,
          afs_int32 *remaining)
 {
     int code;
@@ -401,7 +401,7 @@ NextBlock(struct ubik_trans *at, afs_int32 index, struct kaentry *tentry,
    and pointer to the user entry. */
 
 afs_int32
-ka_NewKey(struct ubik_trans *tt, afs_int32 tentryaddr, 
+ka_NewKey(struct ubik_trans *tt, afs_int32 tentryaddr,
          struct kaentry *tentry, struct ktc_encryptionKey *key)
 {
     struct kaOldKeys okeys;    /* old keys block */
@@ -575,7 +575,7 @@ ka_NewKey(struct ubik_trans *tt, afs_int32 tentryaddr,
 }
 
 afs_int32
-ka_DelKey(struct ubik_trans *tt, afs_int32 tentryaddr, 
+ka_DelKey(struct ubik_trans *tt, afs_int32 tentryaddr,
          struct kaentry *tentry)
 {
     int code;
@@ -678,7 +678,7 @@ ka_debugKeyCache(struct ka_debugInfo *info)
 /* Add a key to the key cache, expanding it if necessary. */
 
 void
-ka_Encache(char *name, char *inst, afs_int32 kvno, 
+ka_Encache(char *name, char *inst, afs_int32 kvno,
           struct ktc_encryptionKey *key, Date superseded)
 {
     int i;
@@ -727,7 +727,7 @@ ka_Encache(char *name, char *inst, afs_int32 kvno,
    with tt==0, since Rx can't call Ubik. */
 
 afs_int32
-ka_LookupKvno(struct ubik_trans *tt, char *name, char *inst, afs_int32 kvno, 
+ka_LookupKvno(struct ubik_trans *tt, char *name, char *inst, afs_int32 kvno,
              struct ktc_encryptionKey *key)
 {
     int i;
@@ -792,9 +792,9 @@ ka_LookupKvno(struct ubik_trans *tt, char *name, char *inst, afs_int32 kvno,
 /* Look up the primary key and key version for a principal. */
 
 afs_int32
-ka_LookupKey(struct ubik_trans *tt, 
-            char *name, 
-            char *inst, 
+ka_LookupKey(struct ubik_trans *tt,
+            char *name,
+            char *inst,
             afs_int32 *kvno,                   /* returned */
             struct ktc_encryptionKey *key)     /* copied out */
 {
index 910dac92e82a976aa7384841daab99d2a61e8831..5959b83f76b0505f4993da37c4baf521934363e0 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 2000, International Business Machines Corporation and others.
 # All Rights Reserved.
-# 
+#
 # This software has been released under the terms of the IBM Public
 # License.  For details, see the LICENSE file in the top-level source
 # directory or online at http://www.openafs.org/dl/license10.html
index bcd88dc5afe08fb2ce2b294d6a666c49be3d4a50..29cf7bd8cd1e9bc3c36215c3f9b8b5e1d531a3e9 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index de0bd97d2a74b72a90b99ad0379b68807d7bf136..326cddf3ce8981893a4269d7c9590118da8955c1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 44110d25c8b4916f35b5a3b81329397fe1e248bb..2a0801eb9f2af6da21dfc1c6c9f087697539eb7c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 2fcdd0e59d67acc9407cd4a23a4e98623e723b9f..06e081307cda8330d7db95e14cdfee5d3bcf0e76 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  * Revision 1.5  88/11/18  09:17:53
  * This is now obsolete, opcodes are defined in kauth.rg, no opcode names
  *   are used.
- * 
+ *
  * Revision 1.4  88/09/20  11:37:36
  * Added IBM Copyright
- * 
+ *
  * Revision 1.3  88/08/29  12:46:27
  * This checks in several new modules and many updates.  The AuthServer
  *   at this point works more or less as described in the NAFS document
@@ -22,7 +22,7 @@
  * Tickets are as described in the kerberos.ticket file.
  * Intergrated w/ MIT's des implementation and the Andrew one-way password
  *   encryption.  Uses bcrypt for RSECURE connections.  Uses R not Rx.
- * 
+ *
  * Revision 1.2  88/07/19  16:19:58
  * Added GetEntry and ListEntry; other internal changes.
  *  */
index be51172580339a13b927aaa9076efdc28edc8050..a0521e7dc200bc1a8a0d47d77124c5874b01edd8 100644 (file)
@@ -1,16 +1,16 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  */
 
 /*
- * some macros to permit a couple of new features while remaining compatible 
+ * some macros to permit a couple of new features while remaining compatible
  * and reasonably portable...
- * could tighten up 0 and 3 a little, but I've left them like this for now 
+ * could tighten up 0 and 3 a little, but I've left them like this for now
  * for ease of understanding.
  * assumes sizeof(afs_int32) == 4, but then, so does the rest of AFS...
  */
index 035994c80da4fb517a2d7ee54d5b550a134734d8..7298b862c09689d8354ce8254142cda10e97ca75 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -75,11 +75,11 @@ extern int npwSums;
 static afs_int32 autoCPWInterval;
 static afs_int32 autoCPWUpdates;
 
-static afs_int32 set_password(struct ubik_trans *tt, char *name, 
+static afs_int32 set_password(struct ubik_trans *tt, char *name,
                              char *instance,
                              struct ktc_encryptionKey *password,
                              afs_int32 kvno, afs_int32 caller);
-static afs_int32 impose_reuse_limits(EncryptionKey *password, 
+static afs_int32 impose_reuse_limits(EncryptionKey *password,
                                     struct kaentry *tentry);
 static int create_user(struct ubik_trans *tt, char *name, char *instance,
                       struct ktc_encryptionKey *key, afs_int32 caller,
@@ -621,7 +621,7 @@ SKAM_CreateUser(struct rx_call *call, char *aname, char *ainstance,
 
 
 afs_int32
-kamCreateUser(struct rx_call *call, char *aname, char *ainstance, 
+kamCreateUser(struct rx_call *call, char *aname, char *ainstance,
              EncryptionKey ainitpw)
 {
     int code;
@@ -666,7 +666,7 @@ SKAA_ChangePassword(struct rx_call *call, char *aname, char *ainstance,
 }
 
 afs_int32
-ChangePassWord(struct rx_call *call, char *aname, char *ainstance, 
+ChangePassWord(struct rx_call *call, char *aname, char *ainstance,
               ka_CBS *arequest, ka_BBS *oanswer)
 {
     int code;
@@ -801,7 +801,7 @@ impose_reuse_limits(EncryptionKey *password, struct kaentry *tentry)
 
 
 static afs_int32
-set_password(struct ubik_trans *tt, char *name, char *instance, 
+set_password(struct ubik_trans *tt, char *name, char *instance,
             struct ktc_encryptionKey *password, afs_int32 kvno, afs_int32 caller)
 {
     afs_int32 code;
@@ -980,7 +980,7 @@ GetEndTime(Date start,              /* start time of ticket */
 static afs_int32
 PrepareTicketAnswer(ka_BBS *oanswer, afs_int32 challenge, char *ticket,
                    afs_int32 ticketLen, struct ktc_encryptionKey *sessionKey,
-                   Date start, Date end, struct kaentry *caller, 
+                   Date start, Date end, struct kaentry *caller,
                    struct kaentry *server, char *cell, char *label)
 {
     afs_int32 code;
@@ -1042,7 +1042,7 @@ PrepareTicketAnswer(ka_BBS *oanswer, afs_int32 challenge, char *ticket,
    is normally disabled for these two principals. */
 
 static afs_int32
-Authenticate(int version, struct rx_call *call, char *aname, char *ainstance, 
+Authenticate(int version, struct rx_call *call, char *aname, char *ainstance,
             Date start, Date end, ka_CBS *arequest, ka_BBS *oanswer)
 {
     int code;
@@ -1086,7 +1086,7 @@ Authenticate(int version, struct rx_call *call, char *aname, char *ainstance,
     }
 #ifdef LOCKPW
     /* have to check for locked before verifying the password, otherwise all
-     * KALOCKED means is "yup, you guessed the password all right, now wait a 
+     * KALOCKED means is "yup, you guessed the password all right, now wait a
      * few minutes and we'll let you in"
      */
     if (kaux_islocked
@@ -1260,7 +1260,7 @@ Authenticate(int version, struct rx_call *call, char *aname, char *ainstance,
 
 afs_int32
 SKAA_Authenticate_old(struct rx_call *call, char *aname, char *ainstance,
-                     Date start, Date end, ka_CBS *arequest, 
+                     Date start, Date end, ka_CBS *arequest,
                      ka_BBS *oanswer)
 {
     int code;
@@ -1276,7 +1276,7 @@ SKAA_Authenticate_old(struct rx_call *call, char *aname, char *ainstance,
 }
 
 afs_int32
-SKAA_Authenticate(struct rx_call *call, char *aname, char *ainstance, 
+SKAA_Authenticate(struct rx_call *call, char *aname, char *ainstance,
                  Date start, Date end, ka_CBS *arequest, ka_BBS *oanswer)
 {
     int code;
@@ -1291,7 +1291,7 @@ SKAA_Authenticate(struct rx_call *call, char *aname, char *ainstance,
 }
 
 afs_int32
-SKAA_AuthenticateV2(struct rx_call *call, char *aname, char *ainstance, 
+SKAA_AuthenticateV2(struct rx_call *call, char *aname, char *ainstance,
                    Date start, Date end, ka_CBS *arequest, ka_BBS *oanswer)
 {
     int code;
@@ -1402,13 +1402,13 @@ kamSetFields(struct rx_call *call,
        tentry.max_ticket_lifetime = htonl(alifetime);
 
 #ifndef NOPWCONTROLS
-    /* 
+    /*
      * We've packed a bunch of bytes into a long for backward compatibility.
      * These include password expiration time, and some failed login limits
      * counters.  Now let's unpack them and stick them into the
      * kaentry struct.  All the bytes have values in the range
      * 1..255, else they were not specified in the interface, and are
-     * set to zero. 
+     * set to zero.
      * In the case of password expiration times, 1 means password never
      * expires (==>0), 2 means password only lives for one day (==>1),
      * and so on.
@@ -1627,7 +1627,7 @@ kamGetEntry(struct rx_call *call,
 
     temp = pack_long(tentry.misc_auth_bytes);
     aentry->misc_auth_bytes = temp;
-    /* 
+    /*
      * only return user's key if security disabled or if admin and
      * we have an encrypted connection to the user
      */
@@ -1984,7 +1984,7 @@ SKAT_GetTicket(struct rx_call *call,
 }
 
 afs_int32
-SKAM_GetStats(struct rx_call *call, afs_int32 version, 
+SKAM_GetStats(struct rx_call *call, afs_int32 version,
              afs_int32 *admin_accounts, kasstats *statics,
              kadstats *dynamics)
 {
@@ -1996,7 +1996,7 @@ SKAM_GetStats(struct rx_call *call, afs_int32 version,
 }
 
 afs_int32
-kamGetStats(struct rx_call *call, afs_int32 version, 
+kamGetStats(struct rx_call *call, afs_int32 version,
            afs_int32 *admin_accounts, kasstats *statics,
            kadstats *dynamics)
 {
@@ -2223,7 +2223,7 @@ kamDebug(struct rx_call *call,
     return 0;
 }
 
-/* these are auxiliary routines. They don't do any Ubik stuff.  They use 
+/* these are auxiliary routines. They don't do any Ubik stuff.  They use
  * a tacked-on-the-side data file.
  * prob'ly ought to check the noauth flag.
  */
@@ -2232,9 +2232,9 @@ afs_int32
 SKAM_Unlock(struct rx_call *call,
            char *aname,
            char *ainstance,
-           afs_int32 spare1, 
-           afs_int32 spare2, 
-           afs_int32 spare3, 
+           afs_int32 spare1,
+           afs_int32 spare2,
+           afs_int32 spare3,
            afs_int32 spare4)
 {
     int code;
@@ -2277,9 +2277,9 @@ SKAM_LockStatus(struct rx_call *call,
                char *aname,
                char *ainstance,
                afs_int32 *lockeduntil,
-               afs_int32 spare1, 
-               afs_int32 spare2, 
-               afs_int32 spare3, 
+               afs_int32 spare1,
+               afs_int32 spare2,
+               afs_int32 spare3,
                afs_int32 spare4)
 {
     int code;
index 538d93e569c41bd814bdc5a34ad875b90c3932f5..4e91b59ee9a871fe697c80a0e2f95464d74d428b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -47,8 +47,8 @@ main(int argc, char *argv[])
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index 18006eff4506e45687abc4f102542efab2c96f1c..cc642a55e41875e4b0606a85bc580569805062e3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -173,8 +173,8 @@ main(int argc, char *argv[])
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
@@ -246,7 +246,7 @@ main(int argc, char *argv[])
                printf("Invalid audit interface '%s'\n", interface);
                exit(1);
            }
-           
+
        } else if (strcmp(arg, "-localfiles") == 0)
            lclpath = argv[++a];
        else if (strcmp(arg, "-servers") == 0)
@@ -308,7 +308,7 @@ main(int argc, char *argv[])
 #else
     /* NT & HPUX do not have dbm package support. So we can only do some
      * text logging. So open the AuthLog file for logging and redirect
-     * stdin and stdout to it 
+     * stdin and stdout to it
      */
     OpenLog(AFSDIR_SERVER_KALOG_FILEPATH);
     SetupLogSignals();
@@ -365,14 +365,14 @@ main(int argc, char *argv[])
 
     if (rxBind) {
        afs_int32 ccode;
-        if (AFSDIR_SERVER_NETRESTRICT_FILEPATH || 
+        if (AFSDIR_SERVER_NETRESTRICT_FILEPATH ||
             AFSDIR_SERVER_NETINFO_FILEPATH) {
             char reason[1024];
             ccode = parseNetFiles(SHostAddrs, NULL, NULL,
                                            ADDRSPERSITE, reason,
                                            AFSDIR_SERVER_NETINFO_FILEPATH,
                                            AFSDIR_SERVER_NETRESTRICT_FILEPATH);
-        } else 
+        } else
        {
             ccode = rx_getAllAddr(SHostAddrs, ADDRSPERSITE);
         }
@@ -402,7 +402,7 @@ main(int argc, char *argv[])
     rx_SetNoJumbo();
 
     tservice =
-       rx_NewServiceHost(host, 0, KA_AUTHENTICATION_SERVICE, 
+       rx_NewServiceHost(host, 0, KA_AUTHENTICATION_SERVICE,
                          "AuthenticationService", sca, 1, KAA_ExecuteRequest);
     if (tservice == (struct rx_service *)0) {
        ViceLog(0, ("Could not create Authentication rx service\n"));
@@ -411,7 +411,7 @@ main(int argc, char *argv[])
     rx_SetMinProcs(tservice, 1);
     rx_SetMaxProcs(tservice, 1);
 
-    
+
     tservice =
        rx_NewServiceHost(host, 0, KA_TICKET_GRANTING_SERVICE, "TicketGrantingService",
                      sca, 1, KAT_ExecuteRequest);
index 00ec90a33fecd4ba20fb5cf629f06b9dcd90b1ba..c840135b0a9236dc6c088934add30fc0979d451a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  * Revision 1.11  89/02/10  11:56:23
  * Added union to kaentry structure which allows overloading several
  *   fields depending on which type of user it is.
- * 
+ *
  * Revision 1.10  89/02/02  14:24:22
  * Removed calls to gethostid() which doesn't return IP address on Suns.
- * 
+ *
  * Revision 1.9  88/12/22  14:43:48
  * COUNT_REQ remembers name of last operation.
- * 
+ *
  * Revision 1.8  88/12/09  14:42:00
- * Greatly improved the external key version number management code. 
+ * Greatly improved the external key version number management code.
  * Added new entry type called kaOldKeys.
- * 
+ *
  * Revision 1.7  88/11/22  09:30:40
  * Change RPC statistics to be more robust.
- * 
+ *
  * Revision 1.6  88/11/18  09:21:09
  * Conversion to Rx and the new RxGen.
  * Key version number is now a long.
  * Conversion to use of <afs/auth.h> include file.
  * Changed macros for statistics code since opcode hacking was punted.
- * 
+ *
  * Revision 1.5  88/10/12  16:26:34
  * Added much better (working) support of key version number maintenance.
- * 
+ *
  * Revision 1.4  88/09/20  11:53:12
  * Added IBM Copyright
- * 
+ *
  * Revision 1.3  88/08/29  12:46:39
  * This checks in several new modules and many updates.  The AuthServer
  *   at this point works more or less as described in the NAFS document
@@ -47,7 +47,7 @@
  * Tickets are as described in the kerberos.ticket file.
  * Intergrated w/ MIT's des implementation and the Andrew one-way password
  *   encryption.  Uses bcrypt for RSECURE connections.  Uses R not Rx.
- * 
+ *
  * Revision 1.2  88/07/19  16:20:33
  * Added GetEntry and ListEntry; other internal changes.
  *  */
index 640af4cc7b30670372d4b4d3a130b9c1bdd953d1..704f1999e4e797a786ede42ce37982d729e1ce24 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -64,9 +64,9 @@ const KAMINORVERSION = 2;
 %#define Date afs_uint32
 %#endif
 #define Date afs_uint32
-/* We log to AuthLog and a dbm-based log file on most platforms. 
+/* We log to AuthLog and a dbm-based log file on most platforms.
  * On NT & some HPs  we only log to AuthLog
- * For HPs, AUTH_DBM_LOG is defined in their respective Makefiles for 
+ * For HPs, AUTH_DBM_LOG is defined in their respective Makefiles for
  * platforms that can log using dbm.
  * On Linux, dbm is not part of the standard installation, and we can't
  * statically link it in. So, ignore it for now.
index f80fc4df70347126219901491781548269cbb305..02c91e9738cda49b39fae38db56dcee4719708d1 100644 (file)
@@ -15,17 +15,17 @@ extern afs_int32 ka_AdminInteractive(int cmd_argc, char *cmd_argv[]);
 /* kadatabase.c */
 extern void init_kadatabase(int initFlags);
 
-extern afs_int32 ka_LookupKey(struct ubik_trans *tt, 
-                             char *name, char *inst, 
+extern afs_int32 ka_LookupKey(struct ubik_trans *tt,
+                             char *name, char *inst,
                              afs_int32 *kvno,
                              struct ktc_encryptionKey *key);
 
 struct kaentry;
-extern afs_int32 FindBlock(struct ubik_trans *at, char *aname, 
-                          char *ainstance, afs_int32 *toP, 
+extern afs_int32 FindBlock(struct ubik_trans *at, char *aname,
+                          char *ainstance, afs_int32 *toP,
                           struct kaentry *tentry);
 
-extern afs_int32 ThreadBlock(struct ubik_trans *at, afs_int32 index, 
+extern afs_int32 ThreadBlock(struct ubik_trans *at, afs_int32 index,
                             struct kaentry *tentry);
 
 extern afs_int32 ka_FillKeyCache(struct ubik_trans *tt);
@@ -35,7 +35,7 @@ extern afs_int32 CheckInit(struct ubik_trans *at,
 
 extern afs_int32 AllocBlock(struct ubik_trans *at, struct kaentry *tentry);
 
-extern afs_int32 ka_NewKey(struct ubik_trans *tt, afs_int32 tentryaddr, 
+extern afs_int32 ka_NewKey(struct ubik_trans *tt, afs_int32 tentryaddr,
                           struct kaentry *tentry,
                           struct ktc_encryptionKey *key);
 
index f197d609c79e928149b07c0a9c09e77ac8ae00d7..c8c48efe8868bdff216d5bab131b2b10496e52f2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 3eb1ee5a18e7a205b06c4531365955716d50061f..dec459e6b9310fb957df15405c42e508627fcbd1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 3a654bf55968735e2f0b8d558cf10edbc7b3c9d5..5d73f6d2201364175e74ffeeea4bfaf8df61bede 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -62,15 +62,15 @@ cmdproc(struct cmd_syndesc *as, void * arock)
                if (! as->parms[3].items) {
                    char *hostName;
                    hostName = hostutil_GetNameByINet(rdata.host);
-                   printf("%s: last operation from host %s at %s", 
-                          (char *)key.dptr, hostName, 
+                   printf("%s: last operation from host %s at %s",
+                          (char *)key.dptr, hostName,
                           ctime(&rdata.last_use));
                } else {
                    char *hostIP;
                    char hoststr[16];
                    hostIP = afs_inet_ntoa_r(rdata.host, hoststr);
-                   printf("%s: last operation from host %s at %s", 
-                          (char *)key.dptr, hostIP, 
+                   printf("%s: last operation from host %s at %s",
+                          (char *)key.dptr, hostIP,
                           ctime(&rdata.last_use));
                }
             } else {
index b420abd29145a423702cb3fa837bfe6ba700bb68..d004028a5b02cc4337df649aeb47410e3016e7fa 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -69,7 +69,7 @@ simplify_name(char *orig_name, char *true_name)
        int link_chars_read;
        char *last_component;
        if (lstat(orig_name, &statbuff) < 0) {
-           /* if lstat fails, it's possible that it's transient, but 
+           /* if lstat fails, it's possible that it's transient, but
             * unlikely.  Let's hope it isn't, and continue... */
            *true_name = '\0';
            return 0;
@@ -117,7 +117,7 @@ simplify_name(char *orig_name, char *true_name)
    * if it exists, it must be us, eh?
    * NB there may be possible security implications involving
    * symlinks; I think they are only relevant if the symlink points
-   * directly at kpasswd, not when it points at kpasswd's parent directory. 
+   * directly at kpasswd, not when it points at kpasswd's parent directory.
    */
 static int
 find_me(char *arg, char *parent_dir)
@@ -294,8 +294,8 @@ safestrtok(char *str, char *tok)
  * there's not much point in being more secure than the kpasswd executable.
  */
 /* 1.  is this directory in AFS?
- * 2.  Is every component of the pathname secure 
- *     (ie, only system:administrators have w or a rights)? 
+ * 2.  Is every component of the pathname secure
+ *     (ie, only system:administrators have w or a rights)?
  */
 static int
 is_secure(char *dir)
@@ -312,7 +312,7 @@ is_secure(char *dir)
 
 #ifndef INSECURE
     for (temp = safestrtok(dir, "/"); temp; temp = safestrtok(NULL, "/")) {
-       /* strtok keeps sticking NUL in place of /, so we can look at 
+       /* strtok keeps sticking NUL in place of /, so we can look at
         * ever-longer chunks of the path.
         */
        if (!InAFS(dir))
@@ -342,7 +342,7 @@ is_secure(char *dir)
 }
 
 /* Then, once we've found our own location, we look for a program named
- * kpwvalid.  
+ * kpwvalid.
  */
 
 /* look for a password-checking program named kpwvalid.
@@ -358,7 +358,7 @@ kpwvalid_is(char *dir)
     strcpy(dir + len, "/kpwvalid");
 
     if (stat(dir, &statbuff) < 0) {
-       /* if lstat fails, it's possible that it's transient, but 
+       /* if lstat fails, it's possible that it's transient, but
         * unlikely.  Let's hope it isn't, and continue... */
        *(dir + len) = '\0';
        return 0;
@@ -370,7 +370,7 @@ kpwvalid_is(char *dir)
 
 #ifdef AFS_NT40_ENV
 /* We don't allow the use of kpwvalid executable scripts to set policy
- * for passwd changes. 
+ * for passwd changes.
  */
 int
 init_child(char *myname)
index 927f459c65b710aae764a80a947e0fe75cad31b3..31df3b8f602daf55bb5e616a40682f1e7cbf881e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -80,8 +80,8 @@ main(int argc, char *argv[])
     afs_int32 code;
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index af363e5c608aac499c5254fe1f5587b0fc43543a..97da77a845256364f71eaa622d294c278d5e7166 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -132,8 +132,8 @@ main(int argc, char **argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index 0d53ee062e7057431c0e37fac1253fdcf3b07f32..6852e44a78fc081ddeb8adace89abee30e367b3c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -433,8 +433,8 @@ main(int argc, char **argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index aef0a93d34e2bd1ad84167c3662967ae1fa2d53a..c40640a706b9cc46df3ab59528066f77356f5d1c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -96,8 +96,8 @@ main(int argc, char *argv[], char **envp)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index bfd5f27f3849429eea3c0d37a5ce8a10ee987ff4..89957051edecbb5cad4983946dcdd1e883203e09 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c8941cc2536ca39a459d620385a8623fcac11827..53653ef9602909990a3e47fcafcafeadbe08e7ff 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -243,7 +243,7 @@ krb_write_ticket_file(char *realm)
        return code;
 
     /* Use the KRBTKFILE environment variable if it exists, otherwise fall
-     * back upon /tmp/tkt(uid}. 
+     * back upon /tmp/tkt(uid}.
      */
     if ((tf_name = (char *)getenv("KRBTKFILE")))
        (void)sprintf(ticket_file, "%s", tf_name);
@@ -361,8 +361,8 @@ krb_write_ticket_file(char *realm)
 #endif  /* AFSLITTLE_ENDIAN */
     close(fd);
     return 0;
-      
-    
+
+
   bad:
     close(fd);
     return -1;
index 3d5ad94f277773296e1c0cb800d3c81fb54e77e7..b1f8ffad7dee6472aee455766cdc4790a8b8e29c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index eece610d9bd40a341778e30a33cffbbfac4fc67e..0a0c84bea33796f3c39ef4e79b20a896350ca979 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -79,8 +79,8 @@ main(argc, argv)
     afs_int32 code;
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index 5f2c66bf33840d3e7accbdd034385e095a82de85..9c1d0db76e7a77a94081a2cc45317e83453273c6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index e2e7c5e1e1440db4870187e2f8ec47640edac8bc..0680b6c6e1b5ade33baf30c762f777b4c9f7fe31 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 9f002a7157bb9839fa5d1bf54c8646a21f145b24..e9b32e6c86d878a9fba6bac7563c9fbb90409cc5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -62,7 +62,7 @@ GetTickets(char *name, char *instance, char *realm,
     return code;
 }
 
-/* 
+/*
  * Requires that you already possess a TGT.
  */
 afs_int32
@@ -133,8 +133,8 @@ ka_GetAFSTicket(char *name, char *instance, char *realm, Date lifetime,
 #endif
 
 afs_int32
-ka_UserAuthenticateGeneral(afs_int32 flags, char *name, char *instance, 
-                          char *realm, char *password, Date lifetime, 
+ka_UserAuthenticateGeneral(afs_int32 flags, char *name, char *instance,
+                          char *realm, char *password, Date lifetime,
                           afs_int32 * password_expires,        /* days 'til, or don't change if not set */
                           afs_int32 spare2, char **reasonP)
 {
@@ -160,7 +160,7 @@ ka_UserAuthenticateGeneral(afs_int32 flags, char *name, char *instance,
 
     ka_StringToKey(password, realm, &key);
 
-/* 
+/*
  * alarm is set by klogin and kpasswd only so ignore for
  * NT
  */
index bac627d16d287b3e5a5b2c670fc2d6bf78f6e846..8ad01f248dfafb87ac4dcf0c02c0cdde24d78cf4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -181,7 +181,7 @@ ka_UserAuthenticateGeneral2(afs_int32 flags, char *name, char *instance,
 /*
  * krb_get_in_tkt()
  *
- * This code is descended from kerberos files krb_get_in_tkt.c and 
+ * This code is descended from kerberos files krb_get_in_tkt.c and
  * send_to_kdc.c, and one.c.
  */
 
@@ -289,7 +289,7 @@ KTEXT pkt_cipher(KTEXT packet);
  */
 
 /*
- * Check_response is a support routine for krb_get_in_tkt. 
+ * Check_response is a support routine for krb_get_in_tkt.
  *
  * Check the response with the supplied key. If the key is apparently
  * wrong, return INTK_BADPW, otherwise zero.
index 746a4b55499c14aa3f051cfb09e775c3120482dd..13f66b223f1a2bac43b90f92f0d908671671c348 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 3bdbc19974226953df690b0695d91d25cb9e1921..5c60ff98de01c751ed04ff6f8ee94104b4ce3849 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index fa3a5fffc06a3cec75e463ed98e952550318fd26..7bf40e387c33a2feb6f9efd96148fc07a8c60663 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 790cc53350c80db0e72c5889bc0ea8490311a974..0cdd626970371b50f4ed665c4d499e295ee17dcd 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index b591c6f91d59cdec3c35ff7f3d3176df168900da..f998e71ef5f73bd4ce6948cc652be8284fab90f0 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c6c3bea615585eecb427d3515afac546c90d58e3..106dfe356627bb75a0d38fc9796190159a24b3e1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -66,7 +66,7 @@ CmpMinus(const void *arg1, const void *arg2)
 {
     const struct acl_accessEntry *a = (struct acl_accessEntry *) arg1;
     const struct acl_accessEntry *b = (struct acl_accessEntry *) arg2;
-               
+
     if (a->id > b->id)
        return (-1);
     if (a->id == b->id)
@@ -137,7 +137,7 @@ acl_NewExternalACL(int nEntries, char **r)
     struct freeListEntry *e;
 
     t = 20 + (nEntries) * (PR_MAXNAMELEN + 20);
-    /* Conservative estimate: enough space in each entry for longest 
+    /* Conservative estimate: enough space in each entry for longest
      * name plus decimal 2**32 (for largest rights mask) plus some formatting */
 
     if (GetFromList(&freeList, &e, t)) {
@@ -171,10 +171,10 @@ acl_FreeExternalACL(char **r)
 int
 acl_Externalize_pr(int (*func)(idlist *ids, namelist *names), struct acl_accessList *acl, char **elist)
 {
-    /* Converts the access list defined by acl into the external access list 
-     * in elist.  Non-translatable id's are converted to their ASCII string 
-     * representations.  Returns 0 on success, -1 if number of entries 
-     * exceeds ACL_MAXENTRIES, or a failure code from the protection server 
+    /* Converts the access list defined by acl into the external access list
+     * in elist.  Non-translatable id's are converted to their ASCII string
+     * representations.  Returns 0 on success, -1 if number of entries
+     * exceeds ACL_MAXENTRIES, or a failure code from the protection server
      * if the problem occured there. */
 
     int i;
@@ -238,8 +238,8 @@ acl_Externalize(struct acl_accessList *acl, char **elist)
 int
 acl_Internalize_pr(int (*func)(namelist *names, idlist *ids), char *elist, struct acl_accessList **acl)
 {
-    /* Converts the external access list elist into the access list acl.  
-     * Returns 0 on success, -1 if ANY name is not translatable, or if 
+    /* Converts the external access list elist into the access list acl.
+     * Returns 0 on success, -1 if ANY name is not translatable, or if
      * the number of entries exceeds al_maxExtEntries. */
     int i;
     int j;
@@ -456,12 +456,12 @@ AddToList(struct freeListEntry **pflist, struct freeListEntry *elem)
 }
 
 static int
-GetFromList(struct freeListEntry **pflist, struct freeListEntry **elem, 
+GetFromList(struct freeListEntry **pflist, struct freeListEntry **elem,
            afs_int32 minsize)
 {
-    /* Looks for an element whose body is at least minsize bytes in the 
-     * freelist flist.  If found, unlinks it, puts its address in elem, 
-     * and returns 0, else returns -1.  A trivial first-fit algorithm is 
+    /* Looks for an element whose body is at least minsize bytes in the
+     * freelist flist.  If found, unlinks it, puts its address in elem,
+     * and returns 0, else returns -1.  A trivial first-fit algorithm is
      * used. */
 
     struct freeListEntry *y, *z;
index 672e3afa6b8f411950ff31b7e2da24401f204ad3..f9aec80afa430c77dbe5ac8b6ff1bb923f611910 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ca405ccb18a64f70930f8566259f9b22ae6ad7c0..b29c7615988f72dbc58cdcc086c66fd580496a43 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index d7e24d3403fe1a16da42e482d5987c244e94ffad..27b3d28d2f4b34a1d61f57fbb114345aa66328f2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 96629bdd5651b9516f9ea3929b51291c1f86ad2d..6f1af33779204e35d836fecae53926aa72e7ae47 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -50,8 +50,8 @@ typedef struct afs_cell_handle {
     int pts_valid;
     int vos_valid;
     int vos_new;
-    /* need to add server lists with TTL 
-     * so we don't pound the dns servers constantly 
+    /* need to add server lists with TTL
+     * so we don't pound the dns servers constantly
      * when generating the iterators
      */
     void *server_list;
index 6e4d444a25adf3865742bfaf04317ddc5ea319d5..3f4bdd2c2d8410de0d30225d76ab7021be52e1b1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -52,8 +52,8 @@ extern int ADMINAPI util_RPCStatsGetBegin(struct rx_connection *conn,
                                          int (*rpc) (struct rx_connection *,
                                                      afs_uint32, afs_uint32 *,
                                                      afs_uint32 *, afs_uint32 *,
-                                                     afs_uint32 *, 
-                                                     struct rpcStats *), 
+                                                     afs_uint32 *,
+                                                     struct rpcStats *),
                                          void **iterationIdP,
                                          afs_status_p st);
 
@@ -71,15 +71,15 @@ extern int ADMINAPI util_RPCStatsStateGet(struct rx_connection *conn,
                                          afs_status_p st);
 
 extern int ADMINAPI util_RPCStatsStateEnable(struct rx_connection *conn,
-                                            int (*rpc) (struct rx_connection *), 
+                                            int (*rpc) (struct rx_connection *),
                                             afs_status_p st);
 
 extern int ADMINAPI util_RPCStatsStateDisable(struct rx_connection *conn,
-                                             int (*rpc) (struct rx_connection *), 
+                                             int (*rpc) (struct rx_connection *),
                                              afs_status_p st);
 
 extern int ADMINAPI util_RPCStatsClear(struct rx_connection *conn,
-                                      int (*rpc) (struct rx_connection *, 
+                                      int (*rpc) (struct rx_connection *,
                                                   afs_RPCStatsClearFlag_t),
                                       afs_RPCStatsClearFlag_t flag,
                                       afs_status_p st);
index c29085a60b2cec2606b603e2d7d993fa8bdda8a3..2a96a767375796671da723b9f6906fb10b4c7435 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c853850cb898028fe75ad7ad8c5c6734a37caabb..88868d4e360674d8140257a025fe9fe9ac8440da 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 58349bd6aa51667bf75548ba4adaf1a3863b6550..7d64ca2e118298cd86a8ac4046b522fb7854945b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 7eb5c3d12b857f0a22c95bc39e63669d6b4689db..1a727bf67e13e9ff21c666c8a20293a0a563f53b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 6a7ea0cda2ca8440c43ccbd5fc77a77d7f0d2dfe..14a41802f2c2548c02e74d1d9a75e85c773c2ac1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c7b178ecbe184a0880bda8bfc878bf10df286932..9ec483fddfafc9f0ff1ca30dcdf0b5e0e3680385 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 5b3e0f8db51ea42a1c52198a7002066f61cd347d..aed90b826d31b973e62e14a39ca77441e55770fe 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 3319d7051960a16ea3148b515ee2bf6e9f26eaf2..7b0de8594ac3a333fb0e444024c60475afd26a04 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c2e4783ab93ddda85136b5a0a1994b3507e18299..9aa1ff852b01ce916b101a9f7d5ce73bde60c426 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ba85955fe651480d9f96788b419a31bb4e23e16d..aa28fe6c19685350daae306e7e0834dc242be8db 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 9984a33965e04ea8a91b3b3ad8abd5bbb0d354c8..2401595de9d1a0da07db89aed17da1616470d513 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a036b5ea59a8954c14809703d277bb145d648a62..b296689f00afb5e805e6ea114212b8da024fc080 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index dd1bb55dabb2ce7e8cb70f018d44b37bc159f129..3ec91217e45e4a35aabc17b8b1c9e569fa39c12f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 39a64d52b3ab2888c802f6c01cda277d2cc92ce1..549a7f3207b688b263974ea650236edac0432454 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a84250d84392a222cac4a120faacdd2c1ae25f88..f4f243596e61ba51fa05a572c7d689ef6970996e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -478,6 +478,6 @@ extern int ADMINAPI vos_ClearVolUpdateCounter(const void *cellHandle,
                                  const void *serverHandle,
                                  unsigned int partition,
                                  unsigned int volumeId,
-                                 afs_status_p st);                               
+                                 afs_status_p st);
 
 #endif /* OPENAFS_VOS_ADMIN_H */
index e84e4e5f691600fb924abfbe26aae40d3717856b..0ebbf3c82fb38269b2866f947a46da6ba2f5cd19 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index fcf6b5efec85f1be18ff1e51184ad32474cebdb4..77b8487c856d15ae2bdf62b91625b7434880552f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c1829580a281fc6334c0670dd003df6b6b64194e..74a1dcaab3970b7698d49425d94d7eda3a396123 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -104,7 +104,7 @@ extern int UV_XListOneVolume(struct rx_connection *server, afs_int32 a_partID,
 extern int UV_ListOneVolume(struct rx_connection *server, afs_int32 a_partID,
                             afs_uint32 a_volID, struct volintInfo **a_resultPP,
                             afs_status_p st);
-                           
+
 extern int UV_SyncVldb(afs_cell_handle_p cellHandle,
                       struct rx_connection *server, afs_int32 apart,
                       int flags, int force, afs_status_p st);
index c9e83c261fdf2e8531cb98796332219c5669b9e7..0a7d0be96527dcfb73cb87ca092ee5451179d15c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index bcc93abc091edc034744392da9d8747321fbc175..2ece82a193fe08ab2b3d4b921d65e58eb9e05515 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -43,8 +43,8 @@ main(int argc, char **argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index ce12ffc4b4daca87b17e8b1f67460392ac00c718..826ffa1b4580bad20d1ecacbe4295ae7eb832aeb 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -51,8 +51,8 @@ main(int argc, char **argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index 764fe440a2689e3a96a1948fe925407ae53e518e..e807c0a9a7964f702bdd2edd3ecf798ca3b53116 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -104,8 +104,8 @@ main(int argc, char *argv[])
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index 439d95d1a20bb8c0fac08d8103185fb07bbb77a9..24e9751df6ea7d2f99d8322a5ec0a040e957b35d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a1ef7019cb9e7f86264de95c59054399ab8a4b5b..ecc36d8d9c778ea1ec133fa1eb0875d63b92a385 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -97,7 +97,7 @@ typedef unsigned char bool;
 #endif
 
 static int SignalSignals(void);
-\f
+
 /********************************\
 *                               *
 *  Stuff for managing IoRequests *
@@ -150,7 +150,7 @@ static int sigDelivered[NSIG];              /* True for signals delivered so far.
 static void *(*sigProc[NSOFTSIG])(void *);
 static void *sigRock[NSOFTSIG];
 
-\f
+
 static struct IoRequest *iorFreeList = 0;
 
 static struct TM_Elem *Requests;       /* List of requests */
@@ -164,7 +164,7 @@ static void SignalIO(int fds, fd_set *rfds, fd_set *wfds, fd_set *efs,
                    int code);
 static void SignalTimeout(int code, struct timeval *timeout);
 
-/* fd_set pool managment. 
+/* fd_set pool managment.
  * Use the pool instead of creating fd_set's on the stack. fd_set's can be
  * 8K in size, so making three could put 24K in the limited space of an LWP
  * stack.
@@ -221,7 +221,7 @@ static struct IoRequest *NewRequest(void)
 
 #define Purge(list) FOR_ALL_ELTS(req, list, { free(req->BackPointer); })
 
-\f
+
 /* FD_SET support routines. All assume the fd_set size is a multiple of an int
  * so we can at least do logical operations on ints instead of chars.
  *
@@ -306,7 +306,7 @@ static void FDSetSet(int nfds, fd_set *fd_set1, fd_set *fd_set2)
 #endif
 }
 
-/* FDSetAnd - fd_set1  <- fd_set1 & fd_set2. 
+/* FDSetAnd - fd_set1  <- fd_set1 & fd_set2.
  */
 #ifdef AFS_NT40_ENV
 static void FDSetAnd(int nfds, fd_set *fd_set1, fd_set *fd_set2)
@@ -316,7 +316,7 @@ static void FDSetAnd(int nfds, fd_set *fd_set1, fd_set *fd_set2)
 
     if (fd_set1 == NULL || fd_set1->fd_count == 0)
        return;
-    
+
     if (fd_set2 == NULL || fd_set2->fd_count == 0) {
        FD_ZERO(fd_set1);
     }
@@ -343,8 +343,8 @@ static void FDSetAnd(int nfds, fd_set *fd_set1, fd_set *fd_set2)
     }
 }
 #endif
-           
-/* FDSetEmpty - return true if fd_set is empty 
+
+/* FDSetEmpty - return true if fd_set is empty
  */
 static int FDSetEmpty(int nfds, fd_set *fds)
 {
@@ -622,7 +622,7 @@ static void *IOMGR(void *dummy)
     }
     return (void *)-1; /* keeps compilers happy. */
 }
-\f
+
 /************************\
 *                       *
 *  Signalling routines          *
@@ -670,7 +670,7 @@ static void SignalTimeout(int code, struct timeval *timeout)
            return;
     })
 }
-\f
+
 /*****************************************************\
 *                                                    *
 *  Signal handling routine (not to be confused with   *
@@ -704,7 +704,7 @@ static int SignalSignals (void)
     for (i=0; i < NSOFTSIG; i++) {
        PROCESS pid;
        if ((p=sigProc[i])) /* This yields!!! */
-           LWP_CreateProcess2(p, stackSize, LWP_NORMAL_PRIORITY, 
+           LWP_CreateProcess2(p, stackSize, LWP_NORMAL_PRIORITY,
                               sigRock[i], "SignalHandler", &pid);
        sigProc[i] = 0;
     }
@@ -718,7 +718,7 @@ static int SignalSignals (void)
     return gotone;
 }
 
-\f
+
 /***************************\
 *                          *
 *  User-callable routines   *
@@ -766,7 +766,7 @@ int IOMGR_Initialize(void)
     anySigsDelivered = TRUE; /* A soft signal may have happened before
        IOMGR_Initialize:  so force a check for signals regardless */
 
-    return LWP_CreateProcess(IOMGR, AFS_LWP_MINSTACKSIZE, 0, (void *) 0, 
+    return LWP_CreateProcess(IOMGR, AFS_LWP_MINSTACKSIZE, 0, (void *) 0,
                             "IO MANAGER", &IOMGR_Id);
 }
 
@@ -780,7 +780,7 @@ int IOMGR_Finalize(void)
     IOMGR_Id = NULL;
     return status;
 }
-\f
+
 /* signal I/O for anyone who is waiting for a FD or a timeout; not too cheap,
  * since forces select and timeofday check */
 int IOMGR_Poll(void) {
@@ -835,7 +835,7 @@ int IOMGR_Poll(void) {
        if (fds < req->nfds)
            fds = req->nfds;
     })
-       
+
     tv.tv_sec = 0;
     tv.tv_usec = 0;
 #ifdef AFS_NT40_ENV
@@ -858,7 +858,7 @@ int IOMGR_Poll(void) {
     return 0;
 }
 
-int IOMGR_Select(int fds, fd_set *readfds, fd_set *writefds, 
+int IOMGR_Select(int fds, fd_set *readfds, fd_set *writefds,
                 fd_set *exceptfds, struct timeval *timeout)
 {
     struct IoRequest *request;
@@ -893,7 +893,7 @@ again:
             * can also get this error return
             */
            if (code < 0 && errno == EAGAIN)
-               goto again;     
+               goto again;
 #endif
 #ifdef AFS_NT40_ENV
            if (code == SOCKET_ERROR) {
@@ -955,7 +955,7 @@ again:
     FreeRequest(request);
     return (result > 1 ? 1 : result);
 }
-\f
+
 int IOMGR_Cancel(PROCESS pid)
 {
     struct IoRequest *request;
@@ -978,7 +978,7 @@ int IOMGR_Cancel(PROCESS pid)
 
     return 0;
 }
-\f
+
 #ifndef AFS_NT40_ENV
 /* Cause delivery of signal signo to result in a LWP_SignalProcess of
    event. */
index bf5030ef062c99cb8399d339c1bfc40476bc5b91..faab0bc2c9da1e01a53d809e5926be5e8da6cdae 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -64,7 +64,7 @@ Lock_Destroy(struct Lock *lock)
     assert(pthread_cond_destroy(&lock->write_cv) == 0);
 #endif /* AFS_PTHRED_ENV */
 }
-\f
+
 void
 Afs_Lock_Obtain(struct Lock *lock, int how)
 {
index 3e79789e5c33ef82113a1215065d8383726b96c1..cac86e101634310fb64132892cf616ac35990933 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index f7f689dbe683e192cdec54a7c2e1ee1fda58f28f..403e534c761dea8011ebdfa501022f45fcf411c1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -101,7 +101,7 @@ extern char PRE_Block;              /* from preempt.c */
     ;                                                                  \
 } while (0)
 #endif
-\f
+
 static void Dispatcher(void);
 static void Create_Process_Part2(void);
 static void Exit_LWP(void);
@@ -111,14 +111,14 @@ static int Stack_Used(char *stackptr, int stacksize);
 static void Abort_LWP(char *msg);
 static void Overflow_Complain(void);
 static void Initialize_PCB(PROCESS temp, int priority, char *stack,
-                          int stacksize, void *(*ep)(void *), void *parm, 
+                          int stacksize, void *(*ep)(void *), void *parm,
                           char *name);
 static void Dispose_of_Dead_PCB(PROCESS cur);
 static void Free_PCB(PROCESS pid);
 static int Internal_Signal(void *event);
 static int purge_dead_pcbs(void);
 static int LWP_MwaitProcess(int wcount, void *evlist[]);
-       
+
 
 #define MAX_PRIORITIES (LWP_MAX_PRIORITY+1)
 
@@ -126,8 +126,8 @@ struct QUEUE {
     PROCESS head;
     int count;
 } runnable[MAX_PRIORITIES], blocked, qwaiting;
-/* Invariant for runnable queues: The head of each queue points to the 
- * currently running process if it is in that queue, or it points to the 
+/* Invariant for runnable queues: The head of each queue points to the
+ * currently running process if it is in that queue, or it points to the
  * next process in that queue that should run. */
 
 /* Offset of stack field within pcb -- used by stack checking stuff */
@@ -205,7 +205,7 @@ move(PROCESS p, struct QUEUE *from, struct QUEUE *to)
                body\
            }\
        }
-\f
+
 /*                                                                         */
 /*****************************************************************************\
 *                                                                            *
@@ -314,8 +314,8 @@ LWP_CreateProcess(void *(*ep) (void *), int stacksize, int priority, void *parm,
 #ifdef AFS_AIX32_ENV
        if (!stackptr) {
            /*
-            * The following signal action for AIX is necessary so that in case of a 
-            * crash (i.e. core is generated) we can include the user's data section 
+            * The following signal action for AIX is necessary so that in case of a
+            * crash (i.e. core is generated) we can include the user's data section
             * in the core dump. Unfortunately, by default, only a partial core is
             * generated which, in many cases, isn't too useful.
             *
@@ -333,7 +333,7 @@ LWP_CreateProcess(void *(*ep) (void *), int stacksize, int priority, void *parm,
            /*
             * First we need to increase the default resource limits,
             * if necessary, so that we can guarantee that we have the
-            * resources to create the core file, but we can't always 
+            * resources to create the core file, but we can't always
             * do it as an ordinary user.
             */
            if (!geteuid()) {
@@ -770,7 +770,7 @@ LWP_StackUsed(PROCESS pid, int *maxa, int *used)
        return LWP_NO_STACK;
     return LWP_SUCCESS;
 }
-\f
+
 /*
  *  The following functions are strictly
  *  INTERNAL to the LWP support package.
@@ -814,7 +814,7 @@ Delete_PCB(PROCESS pid)
     lwp_remove(pid,
               (pid->blockflag || pid->status == WAITING
                || pid->status ==
-               DESTROYED ? &blocked : 
+               DESTROYED ? &blocked :
                (pid->status == QWAITING) ? &qwaiting :
                &runnable[pid->priority]));
     LWPANCHOR.processcnt--;
@@ -977,7 +977,7 @@ Dispatcher(void)
     lwp_cpptr = runnable[i].head;
 
     returnto(&lwp_cpptr->context);
-    
+
     return; /* not reachable */
 }
 
@@ -1154,7 +1154,7 @@ LWP_NewRock(int Tag, char *Value)
      * LWP_SUCCESS      Rock did not exist and a new one was used
      * LWP_EBADROCK     Rock already exists.
      * LWP_ENOROCKS     All rocks are in use.
-     * 
+     *
      * From the above semantics, you can only set a rock value once.  This is specifically
      * to prevent multiple users of the LWP package from accidentally using the same Tag
      * value and clobbering others.  You can always use one level of indirection to obtain
index 355124e5cd6d3b2a278a21f787bfda953d4774d0..12923d1c1598328e9363a0b90a0bed0c509f21d9 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -306,7 +306,7 @@ extern
 #endif
 char lwp_debug;                        /* ON = show LWP debugging trace */
 
-/* 
+/*
  * Under hpux, any stack size smaller than 16K seems prone to
  * overflow problems.
  *
@@ -386,12 +386,12 @@ extern int LWP_QWait(void);
 extern int LWP_QSignal(PROCESS pid);
 #endif
 
-extern afs_int32 savecontext(void (*ep)(void), 
+extern afs_int32 savecontext(void (*ep)(void),
                             struct lwp_context *savearea, char *sp);
 extern void returnto(struct lwp_context *savearea);
 
 #ifdef AFS_LINUX24_ENV
-/* max time we are allowed to spend in a select call on Linux to avoid 
+/* max time we are allowed to spend in a select call on Linux to avoid
  lost signal issues */
 #define IOMGR_MAXWAITTIME        60    /* seconds */
 #else
index 3dfc48eff45fca4196a07fe6227654d44c7aa40c..1ae4423db9a0fd0a54a85708eada3d69eea5ded3 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 2000-2002 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index edfa07c1e64516a65d8167303b34955aa171aeae..b2f9711720680284c063924f3671870aa07e8300 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -134,7 +134,7 @@ int lwp_MinStackSize = 0;
  *     pid - return this process
  *     value:
  *     LWP_SUCCESS (else aborts)
- *     
+ *
  */
 
 int LWP_InitializeProcessSupport(int priority, PROCESS *pid)
@@ -153,7 +153,7 @@ int LWP_InitializeProcessSupport(int priority, PROCESS *pid)
        Abort_LWP("Insufficient Storage to Initialize LWP PCB");
     (void) memset((void*)pcb, 0, sizeof(*pcb));
     pcb->fiber = ConvertThreadToFiber(pcb);
-    if (pcb == NULL) 
+    if (pcb == NULL)
        Abort_LWP("Cannot convert main thread to LWP fiber");
 
     lwp_init = (struct lwp_ctl *) malloc(sizeof(struct lwp_ctl));
@@ -174,18 +174,18 @@ int LWP_InitializeProcessSupport(int priority, PROCESS *pid)
 
 
     Initialize_PCB(pcb, priority, 0, NULL, NULL,
-               "Main Process [created by LWP]");   
+               "Main Process [created by LWP]");
 
     lwp_cpptr = pcb;
     Debug(10, ("Init: Insert 0x%p into runnable at priority %d\n", pcb, priority))
     insert(pcb, &runnable[priority]);
 
     if ( ( value = getenv("AFS_LWP_STACK_SIZE")) == NULL )
-       lwp_MinStackSize = AFS_LWP_MINSTACKSIZE;        
+       lwp_MinStackSize = AFS_LWP_MINSTACKSIZE;
     else
        lwp_MinStackSize = (AFS_LWP_MINSTACKSIZE>atoi(value)?
                                AFS_LWP_MINSTACKSIZE : atoi(value));
-   
+
     *pid = pcb;
 
     return LWP_SUCCESS;
@@ -195,7 +195,7 @@ int LWP_InitializeProcessSupport(int priority, PROCESS *pid)
  *
  * Arguments:
  *     funP - start function
- *     stacksize - size of 
+ *     stacksize - size of
  *     priority - LWP priority
  *     argP - initial parameter for start function
  *     name - name of LWP
@@ -211,7 +211,7 @@ int LWP_CreateProcess(int (*funP)(), int stacksize, int priority, void *argP,
                      char *name, PROCESS *pid)
 {
     PROCESS pcb;
-    
+
     purge_dead_pcbs();
 
     pcb = (PROCESS)malloc(sizeof(*pcb));
@@ -257,7 +257,7 @@ int LWP_DestroyProcess(PROCESS pid)
     if (!lwp_init)
        return LWP_EINIT;
 
-    
+
     if (lwp_cpptr != pid) {
        Dispose_of_Dead_PCB(pid);
     } else {
index 1a8f54f859ffadba2de132dea73ded3af4e0c214..0ca9b5fea57fa6c70cc64106f32a8ef81ae7d832 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -21,7 +21,7 @@
 #include "lwp.h"
 #include "preempt.h"
 
-#if defined(AFS_LINUX20_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV) 
+#if defined(AFS_LINUX20_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
 int PRE_Block = 0;
 
 
index c4e6b4826f1c667303d12674c9b7094b84d287cf..3703f761f2fc60c0a551f8a16bb5370549708ae4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1aabe7b1185607584d997cbffb4e22c7c7f6f36c..06efcfb3c5daa10843268a9b95421f066c5be63e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -133,7 +133,7 @@ Need offset to SP in jmp_buf for this platform.
 typedef __uint64_t jmp_buf_type;
 #endif
 #else
-#if defined(AFS_ALPHA_LINUX20_ENV) || defined(AFS_PPC64_LINUX20_ENV) 
+#if defined(AFS_ALPHA_LINUX20_ENV) || defined(AFS_PPC64_LINUX20_ENV)
 typedef long jmp_buf_type;
 #else
 typedef int jmp_buf_type;
@@ -155,13 +155,13 @@ static jmp_buf_type *jmpBuffer;
 #if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
 
 #if defined(AFS_SPARC64_LINUX24_ENV) || defined(AFS_SPARC_LINUX24_ENV)
-/* technically we should use POINTER_GUARD 
+/* technically we should use POINTER_GUARD
  * ( == offsetof (tcbhead_t, pointer_guard) )
  * instead of 0x18
  */
 #undef ptr_mangle
 static int ptr_mangle(int p)
-{   
+{
     register char *tls_ptr __asm__("%g7");
     return p ^ *(int*)(tls_ptr + 0x18);
 }
index 6572b4f8901b3242f2ff383ac26245bbb542e7eb..f814fd8220356b55463f88fc45432d79c1b3ce1c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -93,7 +93,7 @@ Remove(q)
     free(old);
     return (s);
 }
-\f
+
 queue *q;
 
 int asleep;                    /* Number of processes sleeping -- used for
index f29c3e55db906784f1808f8401d4e6ca4199740f..f92a45648fcc4f975eb630dac620bfdd0920a6b3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 2474540ea7af571a3781ae0c637abdeb34ec161a..90fe67e0c7c3bb47e901448c6141f36c2ba3dbe9 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -51,7 +51,7 @@ static int globalInitDone = 0;
 
 /* t1 = t2 - t3 */
 static void
-subtract(struct timeval *t1, struct timeval *t2, 
+subtract(struct timeval *t1, struct timeval *t2,
         struct timeval *t3)
 {
     int sec2, usec2, sec3, usec3;
@@ -93,7 +93,7 @@ add(struct timeval *t1, struct timeval *t2)
        t1->tv_usec -= MILLION;
     }
 }
-\f
+
 /* t1 == t2 */
 
 int
@@ -118,7 +118,7 @@ blocking(struct TM_Elem *t)
 {
     return (t->TotalTime.tv_sec < 0 || t->TotalTime.tv_usec < 0);
 }
-\f
+
 
 
 /*
@@ -198,7 +198,7 @@ TM_Insert(struct TM_Elem *tlistPtr, struct TM_Elem *elem)
            next = tlistPtr;
     openafs_insque(elem, next->Prev);
 }
-\f
+
 /*
     Walks through the specified list and updates the TimeLeft fields in it.
     Returns number of expired elements in the list.
index 4934cbf02b51b560881ab88737355abddf233c0d..b5c6499e302a24c3a1d20ea16672a8952e8745e7 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a0229e5d93dd526ef3fc51cb19cee96a332641a3..98e93bcbb82562569e25672396f2a366fc66255d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -11,7 +11,7 @@
  * LWP_WaitForKeystroke - wait indefinitely or for a specified number of
  * seconds for keyboard input.
  *
- * If seconds < 0, LWP_WaitForKeystroke will wait indefinitely. 
+ * If seconds < 0, LWP_WaitForKeystroke will wait indefinitely.
  * If seconds == 0, LWP_WaitForKeystroke will just determine if data is now
  *     present.
  * Otherwise, wait "seconds" for data.
@@ -77,7 +77,7 @@ LWP_WaitForKeystroke(int seconds)
         * process run some*/
        IOMGR_Select(0, 0, 0, 0, &twait);
 
-       if (seconds > 0) {      /* we only worry about elapsed time if 
+       if (seconds > 0) {      /* we only worry about elapsed time if
                                 * not looping forever (seconds < 0) */
            /* now check elapsed time */
            time(&nowTime);
@@ -91,7 +91,7 @@ LWP_WaitForKeystroke(int seconds)
 
 /* LWP_GetLine() - Waits indefinitely until a newline has been typed
  * and then returns the line typed.
- * 
+ *
  * This is trivial in unix, but requires some processing on NT.
  *   we basically read all chars into a buffer until we hit a newline and
  *   then return it to the user.
@@ -142,7 +142,7 @@ LWP_GetLine(char *linebuf, int len)
 #else
 /* LWP_WaitForKeystroke(Unix) :Wait until a key has been struck or time (secconds)
  * runs out and return to caller. The Unix version will actually wait until
- * a <cr> has been entered before returning. 
+ * a <cr> has been entered before returning.
  * Input:
  *   seconds: wait for <seconds> seconds before returning. If seconds < 0,
  *            wait infinitely.
@@ -169,7 +169,7 @@ LWP_WaitForKeystroke(int seconds)
       int     _size;
     };
     struct APPX_FILE
-    {      
+    {
       struct __FILE_public    pub;
       struct  appx_sbuf _bf;     /* the buffer (at least 1 byte, if !NULL) */
     };
@@ -202,7 +202,7 @@ LWP_WaitForKeystroke(int seconds)
 
 /* LWP_GetLine() - Waits indefinitely until a newline has been typed
  * and then returns the line typed.
- * 
+ *
  * This is trivial in unix, but requires some processing on NT.
  *   we basically read all chars into a buffer until we hit a newline and
  *   then return it to the user.
@@ -238,7 +238,7 @@ LWP_GetLine(char *linebuf, int len)
  * Input:
  *    seconds - how long to wait for a key press.
  *    *key    - char entered by user
- * Return Values: 
+ * Return Values:
  *    0 - Time ran out before the user typed a key.
  *    1 - Valid char is being returned.
  */
index a5d79cebc32d7814928734a1412a1140262461c1..ab23bc4187f458abafe95b8020200689024584b9 100644 (file)
@@ -120,11 +120,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #define CAS64O CAS64
 
 /*
- * II. Memory barriers. 
+ * II. Memory barriers.
  *  WMB(): All preceding write operations must commit before any later writes.
  *  RMB(): All preceding read operations must commit before any later reads.
  *  MB():  All preceding memory accesses must commit before any later accesses.
- * 
+ *
  *  If the compiler does not observe these barriers (but any sane compiler
  *  will!), then VOLATILE should be defined as 'volatile'.
  */
index b90dcb5c4e31068e372a6125c65bf593f34e0358..4c03355e52183cbf66089490b310da0c0e4468dc 100644 (file)
@@ -1,6 +1,6 @@
 /******************************************************************************
  * bst_lock_fraser.c
- * 
+ *
  * Lock-free binary serach trees (BSTs), based on per-node spinlocks.
  * Uses threaded tree presentation as described in my PhD dissertation:
  *  "Practical Lock-Freedom", University of Cambridge, 2003.
@@ -196,9 +196,9 @@ setval_t set_update(set_t *s, setkey_t k, setval_t v, int overwrite)
                 new->k = k;
                 new->v = v;
             }
+
             LOCK(p, qp, P_LOCKED);
+
             if ( p->k < k )
             {
                 if ( (p->r != n) || (UNTHREAD(n)->k < k) ) goto retry;
index dedc62916d01dc21b797e13813a0006af19efe4c..82aade77e6da8047d5fdfeb3575350794d033a39 100644 (file)
@@ -123,7 +123,7 @@ static node_t *find(node_t *n, setkey_t k, qnode_t *qn, int *pdir)
         }
     }
     while ( (s != NULL) && (s->k != k) );
+
     LOCK(f, qn);
     if ( IS_BLUE(f) )
     {
@@ -179,7 +179,7 @@ static node_t *rotate(ptst_t *ptst, node_t *a, int dir1,
     UNLOCK(a, pqn[0]);
     UNLOCK(b, pqn[1]);
     UNLOCK(c, &c_qn);
+
     *pc = bp;
     return cp;
 }
@@ -289,7 +289,7 @@ setval_t set_update(set_t *s, setkey_t k, setval_t v, int overwrite)
 
  retry:
     f = find(&s->root, k, &f_qn, &dir);
+
     if ( (w = FOLLOW(f, dir)) != NULL )
     {
         /* Protected by parent lock. */
index 9b381b03ea468654607151a6d3787a5866d014c6..effe96ffd0b5f3a49fc8e9a432e386ed46d79ea3 100644 (file)
@@ -173,7 +173,7 @@ static void redundancy_removal(ptst_t *ptst, void *x)
         if ( IS_GARBAGE(d) ) UNLOCK(d, &d_qn);
     }
     while ( IS_GARBAGE(d) );
+
     LOCK(e, &e_qn);
 
     if ( IS_GARBAGE(e) || !IS_REDUNDANT(e) ) goto out_de;
@@ -195,7 +195,7 @@ static void redundancy_removal(ptst_t *ptst, void *x)
     assert(!e->copy);
 
     MK_GARBAGE(e);
+
     if ( e->l != NULL ) e->l->p = d;
 
     e->r->copy = 0;
index 603755125b397ab8170f8119990bed46937c1b94..369dd5c5bdc865889408c75525caf5c4181db377 100644 (file)
@@ -358,7 +358,7 @@ static void gc_reclaim(void)
     int           two_ago, three_ago, i, j;
 
     ViceLog(11, ("GC: gc_reclaim enter\n"));
+
     /* Barrier to entering the reclaim critical section. */
     if ( gc_global.inreclaim || CASIO(&gc_global.inreclaim, 0, 1) ) return;
 
index 2f8c97ee4ebe857154346dbe99b1fa8817ac6699..b954bd91660ede5c04121651fff345fa954f3f97 100644 (file)
@@ -237,7 +237,7 @@ static CasDescriptor_t *new_descriptor (per_thread_state_t *ptst, int length)
 
         for ( i = 0; i < num_threads; i++ )
             result->pt[i] = result;
+
         result->length = length;
         result->rc = 2;
     }
index e0d843f8adaf0fee7590d0800959ec6990a536ef..b4f6566d8b45f5c156bc58e88e1dccd037c1bdb0 100644 (file)
@@ -1,31 +1,31 @@
 /*
- * Copyright (c) 2008-2009                                     
- * The Linux Box Corporation                                    
- * ALL RIGHTS RESERVED                                          
- *                                                              
- * Permission is granted to use, copy, create derivative works  
- * and redistribute this software and such derivative works     
- * for any purpose, so long as the name of the Linux Box        
- * Corporation is not used in any advertising or publicity      
- * pertaining to the use or distribution of this software       
- * without specific, written prior authorization.  If the       
- * above copyright notice or any other identification of the    
- * Linux Box Corporation is included in any copy of any         
- * portion of this software, then the disclaimer below must     
- * also be included.                                            
- *                                                              
- * This software is provided as is, without representation      
- * from the Linux Box Corporation as to its fitness for any     
- * purpose, and without warranty by the Linux Box Corporation   
- * of any kind, either express or implied, including            
- * without limitation the implied warranties of                 
- * merchantability and fitness for a particular purpose.  The   
- * regents of the Linux Box Corporation shall not be liable     
- * for any damages, including special, indirect, incidental, or 
- * consequential damages, with respect to any claim arising     
- * out of or in connection with the use of the software, even   
- * if it has been or is hereafter advised of the possibility of 
- * such damages.                                                
+ * Copyright (c) 2008-2009
+ * The Linux Box Corporation
+ * ALL RIGHTS RESERVED
+ *
+ * Permission is granted to use, copy, create derivative works
+ * and redistribute this software and such derivative works
+ * for any purpose, so long as the name of the Linux Box
+ * Corporation is not used in any advertising or publicity
+ * pertaining to the use or distribution of this software
+ * without specific, written prior authorization.  If the
+ * above copyright notice or any other identification of the
+ * Linux Box Corporation is included in any copy of any
+ * portion of this software, then the disclaimer below must
+ * also be included.
+ *
+ * This software is provided as is, without representation
+ * from the Linux Box Corporation as to its fitness for any
+ * purpose, and without warranty by the Linux Box Corporation
+ * of any kind, either express or implied, including
+ * without limitation the implied warranties of
+ * merchantability and fitness for a particular purpose.  The
+ * regents of the Linux Box Corporation shall not be liable
+ * for any damages, including special, indirect, incidental, or
+ * consequential damages, with respect to any claim arising
+ * out of or in connection with the use of the software, even
+ * if it has been or is hereafter advised of the possibility of
+ * such damages.
  */
 
 #ifndef OSI_MCAS_ATOMIC_H
index 91f79f35305bec55dd408c3b6748b3d9a647f0ed..16d9202c74fadf1fea8527d4ada414d09e500224 100644 (file)
@@ -188,7 +188,7 @@ static _u32 strong_ll(_u64 *ptr, int p)
 #endif /* !INTEL */
 
 
-static int strong_vl(_u64 *ptr, int p) 
+static int strong_vl(_u64 *ptr, int p)
 {
     _u64 val_read;
     _u64 flag;
@@ -200,7 +200,7 @@ static int strong_vl(_u64 *ptr, int p)
 }
 
 #if !defined(INTEL) && !defined(X86_64)
-static int strong_sc(_u64 *ptr, int p, _u32 n) 
+static int strong_sc(_u64 *ptr, int p, _u32 n)
 {
     _u64 val_read;
     _u64 new_val;
@@ -226,7 +226,7 @@ static int strong_sc(_u64 *ptr, int p, _u32 n)
 #endif /* !INTEL */
 
 
-static void s_store(_u64 *ptr, _u32 n) 
+static void s_store(_u64 *ptr, _u32 n)
 {
     _u64 new_val;
 
@@ -234,7 +234,7 @@ static void s_store(_u64 *ptr, _u32 n)
     *ptr = new_val;
 }
 
-static _u32 s_load(_u64 *ptr) 
+static _u32 s_load(_u64 *ptr)
 {
     _u64 val_read;
 
@@ -342,7 +342,7 @@ static void rd_lock(mrsw_lock_t *lock, mrsw_qnode_t *qn)
     WMB_NEAR_CAS();
 
     pred = FASPO(&lock->tail, qn);
-    
+
     if ( pred == NULL )
     {
         ADD_TO(lock->reader_count, 1);
@@ -398,7 +398,7 @@ static void rd_unlock(mrsw_lock_t *lock, mrsw_qnode_t *qn)
     /* Bounded to maximum # readers if no native atomic_decrement */
     c = lock->reader_count;
     while ( (oc = CASIO(&lock->reader_count, c, c-1)) != c ) c = oc;
-   
+
     if ( c == 1 )
     {
         WEAK_DEP_ORDER_MB();
@@ -425,7 +425,7 @@ static void wr_lock(mrsw_lock_t *lock, mrsw_qnode_t *qn)
     qn->state = ST_NOSUCC | ST_BLOCKED;
 
     WMB_NEAR_CAS();
-    
+
     pred = FASPO(&lock->tail, qn);
 
     if ( pred == NULL )
index 5c23d53a2ed9d42e8830dfbd8ed9b68a216d050c..fbcec4b5292f38ba55a03828e3ccdbfab3062aff 100644 (file)
@@ -61,7 +61,7 @@ ptst_t *critical_enter(void)
                 break;
             }
         }
+
         if ( ptst == NULL )
         {
             ptst = ALIGNED_ALLOC(sizeof(*ptst));
@@ -80,7 +80,7 @@ ptst_t *critical_enter(void)
             }
             while ( (new_next = CASPO(&ptst_list, next, ptst)) != next );
         }
+
         pthread_setspecific(ptst_key, ptst);
     }
 
index 39867f553fd21999fe8cd5fbbdf2f5dd35e560ad..4fbadb08857d7686c566f29d2352617bbdd0f163 100644 (file)
@@ -147,7 +147,7 @@ static void fix_unbalance_up(node_t *x)
         gg = g->p;
 
         wr_lock(&gg->lock, &gg_qn);
-        if ( !ADJACENT(gg, g) || IS_UNBALANCED(gg->v) || IS_GARBAGE(gg) ) 
+        if ( !ADJACENT(gg, g) || IS_UNBALANCED(gg->v) || IS_GARBAGE(gg) )
             goto unlock_gg;
 
         wr_lock(&g->lock, &g_qn);
@@ -157,7 +157,7 @@ static void fix_unbalance_up(node_t *x)
         if ( !ADJACENT(p, x) || IS_UNBALANCED(p->v) ) goto unlock_pggg;
 
         wr_lock(&x->lock, &x_qn);
+
         assert(IS_RED(x->v));
         assert(IS_UNBALANCED(x->v));
 
@@ -254,7 +254,7 @@ static void fix_unbalance_up(node_t *x)
         wr_unlock(&g->lock, &g_qn);
     unlock_gg:
         wr_unlock(&gg->lock, &gg_qn);
+
         if ( done == 2 )
         {
             x = g;
@@ -324,7 +324,7 @@ static void fix_unbalance_down(node_t *x)
         }
 
         assert(!IS_LEAF(w));
+
         if ( x == p->l )
         {
             wn = w->l;
@@ -431,7 +431,7 @@ static void fix_unbalance_down(node_t *x)
         wr_unlock(&p->lock, &p_qn);
     unlock_g:
         wr_unlock(&g->lock, &g_qn);
+
         if ( done == 2 )
         {
             x = p;
@@ -457,7 +457,7 @@ static void delete_finish(ptst_t *ptst, node_t *x)
         wr_lock(&g->lock, &g_qn);
         if ( !ADJACENT(g, p) || IS_UNBALANCED(g->v) || IS_GARBAGE(g) )
             goto unlock_g;
+
         wr_lock(&p->lock, &p_qn);
         /* Removing unbalanced red nodes is okay. */
         if ( !ADJACENT(p, x) || (IS_UNBALANCED(p->v) && IS_BLACK(p->v)) )
index ba7878996169e443fe0344cc07268f4a496dd062..7e278467e95e1c2993571fb7dbdac771521ac8ed 100644 (file)
@@ -183,7 +183,7 @@ static void fix_unbalance_up(ptst_t *ptst, node_t *x)
         if ( !ADJACENT(p, x) || IS_UNBALANCED(p->v) ) goto unlock_pggg;
 
         mcs_lock(&x->lock, &x_qn);
+
         assert(IS_RED(x->v));
         assert(IS_UNBALANCED(x->v));
 
@@ -280,7 +280,7 @@ static void fix_unbalance_up(ptst_t *ptst, node_t *x)
         mcs_unlock(&g->lock, &g_qn);
     unlock_gg:
         mcs_unlock(&gg->lock, &gg_qn);
+
         if ( done == 2 )
         {
             x = g;
@@ -350,7 +350,7 @@ static void fix_unbalance_down(ptst_t *ptst, node_t *x)
         }
 
         assert(!IS_LEAF(w));
+
         if ( x == p->l )
         {
             wn = w->l;
@@ -457,7 +457,7 @@ static void fix_unbalance_down(ptst_t *ptst, node_t *x)
         mcs_unlock(&p->lock, &p_qn);
     unlock_g:
         mcs_unlock(&g->lock, &g_qn);
+
         if ( done == 2 )
         {
             x = p;
@@ -483,7 +483,7 @@ static void delete_finish(ptst_t *ptst, node_t *x)
         mcs_lock(&g->lock, &g_qn);
         if ( !ADJACENT(g, p) || IS_UNBALANCED(g->v) || IS_GARBAGE(g) )
             goto unlock_g;
+
         mcs_lock(&p->lock, &p_qn);
         /* Removing unbalanced red nodes is okay. */
         if ( !ADJACENT(p, x) || (IS_UNBALANCED(p->v) && IS_BLACK(p->v)) )
@@ -587,7 +587,7 @@ setval_t set_update(set_t *s, setkey_t k, setval_t v, int overwrite)
     z = &s->root;
     while ( (y = (k <= z->k) ? z->l : z->r) != NULL )
         z = y;
+
     y = z->p;
     mcs_lock(&y->lock, &y_qn);
     if ( (((k <= y->k) ? y->l : y->r) != z) || IS_GARBAGE(y) )
index 0b7e37504c7c0c37d6b34b66fcc647e4576a7bdd..3b2824e2abeaed67d1de06edad85b72035bea888 100644 (file)
@@ -132,7 +132,7 @@ static void delete_fixup(ptst_t *ptst, set_t *s, node_t *x)
     while ( (x->p != &s->root) && IS_BLACK(x->v) )
     {
         p = x->p;
+
         if ( x == p->l )
         {
             w = p->r;
@@ -145,7 +145,7 @@ static void delete_fixup(ptst_t *ptst, set_t *s, node_t *x)
                 /* Get new sibling W. */
                 w = p->r;
             }
+
             if ( IS_BLACK(w->l->v) && IS_BLACK(w->r->v) )
             {
                 w->v = MK_RED(w->v);
@@ -162,7 +162,7 @@ static void delete_fixup(ptst_t *ptst, set_t *s, node_t *x)
                     /* Old w is new w->r. Old w->l is new w.*/
                     w = p->r;
                 }
+
                 w->v = SET_COLOUR(GET_VALUE(w->v), GET_COLOUR(p->v));
                 p->v = MK_BLACK(p->v);
                 w->r->v = MK_BLACK(w->r->v);
@@ -182,7 +182,7 @@ static void delete_fixup(ptst_t *ptst, set_t *s, node_t *x)
                 /* Get new sibling W. */
                 w = p->l;
             }
+
             if ( IS_BLACK(w->l->v) && IS_BLACK(w->r->v) )
             {
                 w->v = MK_RED(w->v);
@@ -199,7 +199,7 @@ static void delete_fixup(ptst_t *ptst, set_t *s, node_t *x)
                     /* Old w is new w->l. Old w->r is new w.*/
                     w = p->l;
                 }
+
                 w->v = SET_COLOUR(GET_VALUE(w->v), GET_COLOUR(p->v));
                 p->v = MK_BLACK(p->v);
                 w->l->v = MK_BLACK(w->l->v);
@@ -259,7 +259,7 @@ setval_t set_update(set_t *s, setkey_t k, setval_t v, int overwrite)
         x = y;
         if ( k == x->k ) break;
     }
+
     if ( k == x->k )
     {
         ov = x->v;
index 26ad6a8d482e55882592d1f69cb8d7d3ace9586b..02b7b1208874f488c8019742af9b93936593946b 100644 (file)
@@ -129,7 +129,7 @@ static void delete_fixup(ptst_t *ptst, stm_tx *tx, set_t *s,
     {
         pb = x->p;
         p  = write_stm_blk(ptst, tx, pb);
+
         if ( xb == p->l )
         {
             wb = p->r;
@@ -164,7 +164,7 @@ static void delete_fixup(ptst_t *ptst, stm_tx *tx, set_t *s,
                     wb = p->r;
                     w  = write_stm_blk(ptst, tx, wb);
                 }
+
                 wrb = w->r;
                 wr  = write_stm_blk(ptst, tx, wrb);
                 w->v = SET_COLOUR(GET_VALUE(w->v), GET_COLOUR(p->v));
@@ -186,7 +186,7 @@ static void delete_fixup(ptst_t *ptst, stm_tx *tx, set_t *s,
                 wb = p->l;
                 w  = write_stm_blk(ptst, tx, wb);
             }
+
             wlb = w->l;
             wl  = read_stm_blk(ptst, tx, wlb);
             wrb = w->r;
@@ -208,7 +208,7 @@ static void delete_fixup(ptst_t *ptst, stm_tx *tx, set_t *s,
                     wb = p->l;
                     w  = write_stm_blk(ptst, tx, wb);
                 }
+
                 wlb = w->l;
                 wl  = write_stm_blk(ptst, tx, wlb);
                 w->v = SET_COLOUR(GET_VALUE(w->v), GET_COLOUR(p->v));
@@ -410,7 +410,7 @@ setval_t set_remove(set_t *s, setkey_t k)
         new_stm_tx(tx, ptst, MEMORY);
         ov = NULL;
         b  = s;
-    
+
         while ( b != NULLB )
         {
             zb = b;
@@ -422,7 +422,7 @@ setval_t set_remove(set_t *s, setkey_t k)
             }
             b = (k < z->k) ? z->l : z->r;
         }
+
         if ( ov != NULL )
         {
             z = write_stm_blk(ptst, tx, zb);
@@ -492,7 +492,7 @@ setval_t set_lookup(set_t *s, setkey_t k)
         new_stm_tx(tx, ptst, MEMORY);
         v  = NULL;
         nb = s;
+
         while ( nb != NULLB )
         {
             n = read_stm_blk(ptst, tx, nb);
index bc7000720b20ffa2d3ec87ceccb469fa1bc38f27..613efbf4bc79713ac68b21389d9a042f130c4daf 100644 (file)
@@ -196,7 +196,7 @@ static int linearise_ops_for_key(
     int i;
     log_t **sp = stack;
     interval_t cutoff;
+
     /* Construct cutoff heap. */
     cutoff_heap[0] = (void *)nr_items;
     for ( i = 0; i < nr_items; i++ )
@@ -218,15 +218,15 @@ static int linearise_ops_for_key(
             if ( !do_op(&log[i], key_state) ) { i++; continue; }
 
             *sp++ = &log[i];
+
             /* Done? */
             if ( (sp - stack) == nr_items ) goto success;
+
             remove_entry(cutoff_heap, heap_offsets, log, &log[i]);
             cutoff = cutoff_heap[1]->end;
             i = 0;
         }
+
         /* Failure? */
         if ( (sp - stack) == 0 )
         {
@@ -400,7 +400,7 @@ int main(int argc, char **argv)
         fprintf(stderr, "Error opening log\n");
         exit(-1);
     }
+
     /* Grok the log header. */
     read(fd, log_header, sizeof(log_header));
     nr_threads = log_header[0];
@@ -418,7 +418,7 @@ int main(int argc, char **argv)
         fprintf(stderr, "Error allocating space for log\n");
         exit(-1);
     }
+
     /* Read log entries, and sort into key and timestamp order. */
     read(fd, global_log, nr_threads*nr_updates*sizeof(log_t));
     global_log[nr_threads*nr_updates].data = LOG_KEY_MASK; /* sentinel */
index 69fe9f07f4c7f5c80d90321fa37e7532d997af34..2d88422da35a6633fac4b7b9bfc1694703714f0b 100644 (file)
@@ -30,7 +30,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 /******************************************************************************
  * set_func.h
- * 
+ *
  * Matt Benjamin <matt@linuxbox.com>
  *
  * Adapts MCAS set interface to use a pointer-key and typed comparison
@@ -38,7 +38,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
  * Caution, pointer values 0x0, 0x01, and 0x02 are reserved.  Fortunately,
  * no real pointer is likely to have one of these values.
- * 
+ *
  */
 
 #ifndef __SET_ADT_H__
@@ -123,7 +123,7 @@ set_t *set_alloc(osi_set_cmp_func cmpf);
 /*
  * Add mapping (@k -> @v) into set @s. Return previous mapped value if
  * one existed, or NULL if no previous mapping for @k existed.
- * 
+ *
  * If @overwrite is FALSE, then if a mapping already exists it is not
  * modified, and the existing value is returned unchanged. It is possible
  * to see if the value was changed by observing if the return value is NULL.
index 89078d7a2f67f5a179d25b8b44b8a4b44e7e6c42..9a0d80b67d3e03d75b5e1da8cb1e903ad30e7b1a 100644 (file)
@@ -520,7 +520,7 @@ int main (int argc, char **argv)
 
         if ( j != num_threads )
         {
-            printf("Urk! Not enough CPUs for threads (%d < %d)\n", 
+            printf("Urk! Not enough CPUs for threads (%d < %d)\n",
                    j, num_threads);
             abort();
         }
index 303746e24f278b9d496aa6c5229544a5ab6502ca..7bf5ba059e1a9b75f1fbff268dbbb9180b2a1814 100644 (file)
@@ -1,6 +1,6 @@
 /******************************************************************************
  * set_queue_adt.h
- * 
+ *
  * Matt Benjamin <matt@linuxbox.com>
  *
  * Adapts MCAS set interface to use a pointer-key and typed comparison
@@ -11,7 +11,7 @@
  *
  * Caution, pointer values 0x0, 0x01, and 0x02 are reserved.  Fortunately,
  * no real pointer is likely to have one of these values.
- * 
+ *
 
 Copyright (c) 2003, Keir Fraser All rights reserved.
 
@@ -59,7 +59,7 @@ typedef void *setval_t;
 
 /* Fine for 2^NUM_LEVELS nodes. */
 #define NUM_LEVELS 20
-//#define NUM_LEVELS 19 
+//#define NUM_LEVELS 19
 
 
 /* Internal key values with special meanings. */
@@ -128,7 +128,7 @@ osi_set_t *osi_cas_skip_alloc(int (*cmpf) (const void *, const void *));
 /*
  * Add mapping (@k -> @v) into set @s. Return previous mapped value if
  * one existed, or NULL if no previous mapping for @k existed.
- * 
+ *
  * If @overwrite is FALSE, then if a mapping already exists it is not
  * modified, and the existing value is returned unchanged. It is possible
  * to see if the value was changed by observing if the return value is NULL.
index 706ed3c928821ffe6e4ac9bfe0688e3595fa6bb6..6b3c64afd0ebf1594e311f76dcaaec26857454c2 100644 (file)
@@ -304,7 +304,7 @@ setval_t set_update(set_t *l, setkey_t k, setval_t v, int overwrite)
     ptst = critical_enter();
 
     succ = weak_search_predecessors(l, k, preds, succs);
+
  retry:
     ov = NULL;
 
index 6c0cf64b00772404370258324cfbc6aa7a105fc1..bf2983ad6f641b02616084bb2dcb9f51f86812c9 100644 (file)
@@ -1,7 +1,7 @@
 /******************************************************************************
  * skip_cas_adt.c
- * 
- * Skip lists, allowing concurrent update by use of CAS primitives. 
+ *
+ * Skip lists, allowing concurrent update by use of CAS primitives.
  *
  * Matt Benjamin <matt@linuxbox.com>
  *
index 2a3b19f3ece6baed3bc68a7f584accd90a60d771..daeced36774a0bb8f4f56ae6afe3337aca443ba4 100644 (file)
@@ -1,8 +1,8 @@
 /******************************************************************************
  * skip_cas_func.c
- * 
- * Skip lists, allowing concurrent update by use of CAS primitives. 
- * 
+ *
+ * Skip lists, allowing concurrent update by use of CAS primitives.
+ *
  * Matt Benjamin <matt@linuxbox.com>
  *
  * Adapts MCAS skip list to use a pointer-key and typed comparison
index 846e671368b03a93b9343e9d61de355682a57659..2f6ab4960cabe6966895dc340a2735a4f07f62c1 100644 (file)
@@ -171,7 +171,7 @@ static setval_t finish_delete(sh_node_pt x, sh_node_pt *preds)
     cd = new_descriptor(mcas_ptst, (level << 1) + 1);
     cd->status = STATUS_IN_PROGRESS;
     cd->length = (level << 1) + 1;
+
     /* First, the deleted node's value field. */
     READ_FIELD(v, x->v);
     PROCESS(v, &x->v);
@@ -193,7 +193,7 @@ static setval_t finish_delete(sh_node_pt x, sh_node_pt *preds)
         cd->entries[i+level+1].old = x;
         cd->entries[i+level+1].new = x_next;
     }
+
     ret = mcas0(mcas_ptst, cd);
     if ( ret == 0 ) v = NULL;
 
@@ -258,7 +258,7 @@ setval_t set_update(set_t *l, setkey_t k, setval_t v, int overwrite)
         ov = NULL;
 
         succ = search_predecessors(l, k, preds, succs);
+
         if ( succ->k == k )
         {
             /* Already a @k node in the list: update its mapping. */
@@ -324,9 +324,9 @@ setval_t set_remove(set_t *l, setkey_t k)
     sh_node_pt preds[NUM_LEVELS], x;
 
     k = CALLER_TO_INTERNAL_KEY(k);
+
     ptst = critical_enter();
+
     do {
         x = search_predecessors(l, k, preds, NULL);
         if ( x->k > k ) goto out;
@@ -370,5 +370,5 @@ void _init_set_subsystem(void)
     {
         gc_id[i] = gc_add_allocator(sizeof(node_t) + i*sizeof(node_t *));
     }
+
 }
index 86e19b223a352c048f6a18b1859053c895f90aaa..63bcca8174b0f416422d0e3a802cd7f30c9bf835 100644 (file)
@@ -209,9 +209,9 @@ setval_t set_remove(set_t *l, setkey_t k)
     int       i;
 
     k = CALLER_TO_INTERNAL_KEY(k);
+
     ptst = critical_enter();
+
     do {
         new_stm_tx(tx, ptst, MEMORY);
         x = search_predecessors(ptst, tx, l, k, bpreds, bsuccs);
index d3c4e705499313ca8fdb1968ad1d097a9121e01d..0b2791d4cf7879d5c143f76707729c32cc53ec85 100644 (file)
@@ -110,11 +110,11 @@ atomic_swap_64((volatile uint64_t *)(_a), (_n))
 
 
 /*
- * II. Memory barriers. 
+ * II. Memory barriers.
  *  WMB(): All preceding write operations must commit before any later writes.
  *  RMB(): All preceding read operations must commit before any later reads.
  *  MB():  All preceding memory accesses must commit before any later accesses.
- * 
+ *
  *  If the compiler does not observe these barriers (but any sane compiler
  *  will!), then VOLATILE should be defined as 'volatile'.
  */
index 583ad912e3a886b13dbf82ac4d597c7c060d0889..06ba457b473ed359e826531325d9b3728ecdf3ca 100644 (file)
@@ -107,11 +107,11 @@ atomic_swap_32((volatile uint32_t *)(_a), (_n))
 
 
 /*
- * II. Memory barriers. 
+ * II. Memory barriers.
  *  WMB(): All preceding write operations must commit before any later writes.
  *  RMB(): All preceding read operations must commit before any later reads.
  *  MB():  All preceding memory accesses must commit before any later accesses.
- * 
+ *
  *  If the compiler does not observe these barriers (but any sane compiler
  *  will!), then VOLATILE should be defined as 'volatile'.
  */
index fe6f89fb631fe6af4f15caf6c4b7e0436b41b365..c74e24504a0832d42a4fdbd94ec69b268e6fd324 100644 (file)
@@ -354,9 +354,9 @@ bool_t commit_stm_tx(ptst_t *ptst, stm_tx *t)
             {
                 data = CASPO(&ent->b->data, ent->old, marked_tx);
                 if ( (data == ent->old) || (data == marked_tx) ) break;
+
                 if ( !is_descriptor(data) ) goto fail;
+
                 other = ptr_to_descriptor(data);
                 rc_up_descriptor(other);
                 if ( ent->b->data != data )
@@ -364,7 +364,7 @@ bool_t commit_stm_tx(ptst_t *ptst, stm_tx *t)
                     rc_down_descriptor(ptst, other);
                     continue;
                 }
+
                 commit_stm_tx(ptst, other);
             }
         }
@@ -385,7 +385,7 @@ bool_t commit_stm_tx(ptst_t *ptst, stm_tx *t)
             MB_NEAR_CAS();
         }
         else MB();
+
         for ( ent = t->reads; ent != NULL; ent = ent->next )
         {
             for ( ; ; )
@@ -408,7 +408,7 @@ bool_t commit_stm_tx(ptst_t *ptst, stm_tx *t)
                     rc_down_descriptor(ptst, other);
                     continue;
                 }
+
                 /*
                  * What we do now depends on the status of the contending
                  * operation. This is easy for any status other than
@@ -463,7 +463,7 @@ bool_t commit_stm_tx(ptst_t *ptst, stm_tx *t)
         old_status = new_status;
     }
     WMB_NEAR_CAS();
+
     /*
      * PHASE 3: CLEAN-UP.
      */
@@ -608,7 +608,7 @@ void remove_from_tx(ptst_t *ptst, stm_tx *t, stm_blk *b)
     pent = search_stm_tx_entry(&t->writes, b);
     ent  = *pent;
     if ( (ent != NULL) && (ent->b == b) )
-    { 
+    {
         *pent = ent->next;
         data = ent->new;
         assert(!is_descriptor(data));
index 3410198df6296eb77bc21dc41cf557efe475b2d3..24e23d1feaee5f23c507a2311389b50dcdd09d59 100644 (file)
@@ -435,7 +435,7 @@ bool_t commit_stm_tx(ptst_t *ptst, stm_tx *t)
     priv->cur_tx = NULL;
 
     MB();
+
     for ( ent = t->reads; ent != NULL; ent = ent->next )
     {
         if ( ent->b->loc != ent->l )
@@ -467,10 +467,10 @@ bool_t commit_stm_tx(ptst_t *ptst, stm_tx *t)
                 (st == TXS_SUCCESSFUL) ? ent->l->old : ent->l->new,
                 t->gc_data_id);
     }
+
     if ( t->dummy != NULL )
         gc_unsafe_free(ptst, t->dummy, t->gc_data_id);
+
     rc_down_descriptor(ptst, t);
 
     return st == TXS_SUCCESSFUL;
index ce65ea0d5eafc93fb7c1447cb87626db1baae2d4..6c94270c2a29ba85f31786c367e5ad32347cc41d 100644 (file)
@@ -252,7 +252,7 @@ bool_t commit_stm_tx(ptst_t *ptst, stm_tx *t)
             gc_unsafe_free(ptst, ent->new, t->gc_data_id);
         }
         return FALSE;
-    } 
+    }
 
     /*
      * We put (hopefully rare) failure case out-of-line here.
index 56251b3fee593265ee0ba694d70549b30ede408d..173aad4efc980cc1a1719153467a8e21ff09c5ff 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index af76201fe335da4f4c53bb433b1cf27a9f567ea8..9cf3a89b6d3f880883fa59e5fd1a6eb167aada2c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 7570bcd40ae0c2441b500acfb08d2de40bbe5297..51cf826d02e8ad343b031f9181d97a2f1e1ac380 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 9e96f0c6f978fd92a6c08507fb0cea1ae3b524d5..28c1a7d7050aa4fe99e6a00089846926ec280bb4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index cb0d335ff5f039e99fed71c5b2a9e240bb9b96b4..e55461283713e171b6229493bb2bb6dd0d94999e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ff7bf6eeccca90812fb9d4a4fea12c5bc959ea48..c7e31654e80ab772ec5a11d534f2ca1b73ad571e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a6a67da2f45af52eff70b8c0f109b2751c029178..3bd471ab44224fdc4f4d7fc7b111928d452e2c75 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index b58cec26d2c37c39a2514f82d7652f9b870ec6dc..788e8616085f6cdb9e106aa9c3529e39380cbfbe 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index dcafc9148804ae6b6c2bd2f6f246022517465efb..e671f24ed9343f6bc07f88e3da3c373b72fff8c0 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -324,7 +324,7 @@ pam_sm_setcred(pam_handle_t * pamh, int flags, int argc, const char **argv)
            goto try_auth;
        }
 
-       /* pam_sm_authenticate should have set this 
+       /* pam_sm_authenticate should have set this
         * if (auth_ok && !got_authtok) {
         *     torch_password = 0;
         *     (void) pam_set_item(pamh, PAM_AUTHTOK, password);
index 40f9701f50829b707e373fe12454eb9eafc7b069..c9d1a6f491f4ffc9d2a2e5ef515484d2e5903988 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -50,12 +50,12 @@ nil_cleanup(pam_handle_t * pamh, void *data, int pam_end_status)
     return;
 }
 
-/* The PAM module needs to be free from libucb dependency. Otherwise, 
+/* The PAM module needs to be free from libucb dependency. Otherwise,
 dynamic linking is a problem, the AFS PAM library refuses to coexist
 with the DCE library. The sigvec() and sigsetmask() are the only two
 calls that neccesiate the inclusion of libucb.a.  There are used by
-the lwp library to support premeptive threads and signalling between 
-threads. Since the lwp support used by the PAM module uses none of 
+the lwp library to support premeptive threads and signalling between
+threads. Since the lwp support used by the PAM module uses none of
 these facilities, we can safely define these to be null functions */
 
 #if !defined(AFS_HPUX110_ENV)
index a5a9f6347e495faf6843636df748a65226b9a6a4..56a42457be7c4aafc673b139f70e7b148ac7fe86 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 5cee5a035c9d575594eddd198525137b2ecc7283..b819d8d810e9b279fc95bc2451498a5a7de3ed46 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 285a4ebc3443835c648da1f9c22ee5ef10531517..951ff58436905546cd32a149798bfadcdaf6d15c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 04b0dd23663840d3cd6de8f5b9ba1e0da3bbc26a..9b0b56d66beee244458c3871b6637c65f2a03a85 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 6ab02fa0e6dd6414e3ce8207fd43bfa8a6a4ecd2..5f151aabf757e31eff834fee503c5aef011e6171 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 030ed4214d7c8f34ae51b2665ee0dfacdc3655be..172053461277f29989f3d03a98b452b58a1bf80c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 2bb222c71ff2780a04f9349d9c453dea4786ffd3..2d777713e53a198005fc6dc7a2dbd395bc92c13f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 897b8a1c88e9c16a5ba42eafd444ee2a58021205..f8dacc44f5dde9928b98efa114a01f94d474297f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 8ed2f85da8101453b6a43893b4c0535f2bc4514d..5966549d208c980b36aac13341645922b1e81c41 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -931,12 +931,12 @@ GC(char map[], struct misc_data *misc)
            id = ntohl(e.id);
 #if defined(SUPERGROUPS)
            if ((id != ANONYMOUSID)
-               && ((refCount = idcount(&misc->idmap, id)) != ntohl(e.count))) 
+               && ((refCount = idcount(&misc->idmap, id)) != ntohl(e.count)))
 #else
            if ((id >= misc->minId) && (id <= misc->maxId)
                && (id != ANONYMOUSID)
                && ((refCount = misc->idmap[id - misc->minId]) !=
-                   ntohl(e.count))) 
+                   ntohl(e.count)))
 #endif /* SUPERGROUPS */
              {
                afs_int32 na;
@@ -1040,9 +1040,9 @@ DumpRecreate(char map[], struct misc_data *misc)
                /* check for duplicate id.  This may still lead to duplicate
                 * names. */
 #if defined(SUPERGROUPS)
-               if (idcount(&idmap, id)) 
+               if (idcount(&idmap, id))
 #else
-               if (idmap[id - misc->minId]) 
+               if (idmap[id - misc->minId])
 #endif
                  {
                    fprintf(stderr, "Skipping entry with duplicate id %di\n",
@@ -1151,9 +1151,9 @@ DumpRecreate(char map[], struct misc_data *misc)
 
            owner = ntohl(e.owner);
 #if defined(SUPERGROUPS)
-           if (!idcount(&idmap, owner)) 
+           if (!idcount(&idmap, owner))
 #else
-           if (idmap[owner - misc->minId] == 0) 
+           if (idmap[owner - misc->minId] == 0)
 #endif
              {
                fprintf(stderr,
@@ -1383,7 +1383,7 @@ CheckPrDatabase(struct misc_data *misc)   /* info & statistics */
     free(map);
     return code;
 }
-    
+
 #include "AFS_component_version_number.c"
 
 int
index be5be10a589f6a2c712a721d5518d87e0d9afd3d..07f15d651662f22dc7ff8b557453d77c139dabe6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index da14eb1c02004383e4cd2159818827c40b308871..8814510c625424d41422388e973e0b08c8e25e7c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c58c258c9db976ce2a43412374957e5707d25f3d..3ea4b26d6675e246265a81ee9487f1d9359b0459 100644 (file)
@@ -619,7 +619,7 @@ bic_map(struct map *mp1, struct map *mp2)
 }
 
 #ifdef PRINT_MAP_ERROR
-void 
+void
 print_map(struct map *parm)
 {
     struct bitmap *map;
@@ -722,7 +722,7 @@ read_map(int (*f) (void *), char *arg)
     return (struct map *)result;
 }
 
-int 
+int
 write_map(struct map *parm, int (*f) (void *, int), char *arg)
 {
     struct bitmap *map;
index e0f53adaa3a2881ec446fbb5f97b21ec0f659cba..c0a89aef986560b984795d7d63574e5debeb5ece 100644 (file)
@@ -342,7 +342,7 @@ CommandProc(struct cmd_syndesc *a_as, void *arock)
                long newpos;
                newpos = display_entry(upos);
                if (newpos == upos) {
-                   fprintf(stderr, "pt_util: hash error in %s chain %d\n", 
+                   fprintf(stderr, "pt_util: hash error in %s chain %d\n",
                            nflag ? "name":"id", i);
                    exit(1);
                } else
index b88ea74dd46e95db8bb01d951193c6cd6c650191..bb47339d14b27f9017e3aa33ab440dfde0dea450 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -183,8 +183,8 @@ main(int argc, char **argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index 65e45ac1528458976d5f20f4928ae1586984c2a0..abb487da7b589c986539aad740534ea512e81b03 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c1537bc1e70f42a08572a2856128d385c800821f..4b066ae9b7592145dbea2c33a481e9c9ff705d8b 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 2000, International Business Machines Corporation and others.
 # All Rights Reserved.
-# 
+#
 # This software has been released under the terms of the IBM Public
 # License.  For details, see the LICENSE file in the top-level source
 # directory or online at http://www.openafs.org/dl/license10.html
index 0b54be16510e800d427115fb11d9cf990f8769cc..fe6a2a30e9d7d82a2ef08d8cfab22167d069c966 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -63,7 +63,7 @@ struct prcheckentry {
        afs_int32 count;
        afs_int32 reserved[5];
        char name[PR_MAXNAMELEN];
-};     
+};
 
 struct prlistentries {
         afs_int32 flags;
@@ -75,7 +75,7 @@ struct prlistentries {
        afs_int32 count;
        afs_int32 reserved[5];
        char name[PR_MAXNAMELEN];
-};     
+};
 
 struct PrUpdateEntry {
        afs_uint32 Mask;
@@ -88,7 +88,7 @@ struct PrUpdateEntry {
        afs_int32 count;
        afs_int32 reserved[5];
        char name[PR_MAXNAMELEN];
-};     
+};
 
 /* struct VldbUpdateEntry Mask bit values */
 const  PRUPDATE_NAME   =       0x0001;
index d25fca7e2f23199ba012071c119c4ea5b3270f97..551991abff54583eb3563b84cc10728b78399a2d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 6f55959267732cd1846b0ad85d040e7ed92f847e..a3e8b2973578499102eecfce8be7299dc5752bc2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  *                             to groups. This is an error in normal AFS.
  *                          2. If adding a group to a group call AddToSGEntry
  *                             to add the id of the group it's a member of.
- *                      
+ *
  *                      (4) function Delete
  *
  *                          1. Print a messsage if an error is returned from
- *                             FindByID() and PTDEBUG is defined. 
- *                          2. If removing a group from a group call   
- *                             RemoveFromSGEntry to remove the id of the  
- *                             group it's a member of.            
+ *                             FindByID() and PTDEBUG is defined.
+ *                          2. If removing a group from a group call
+ *                             RemoveFromSGEntry to remove the id of the
+ *                             group it's a member of.
  *                          3. Remove supergroup continuation records.
  *
- *                      (5) function RemoveFromGroup 
- *               
+ *                      (5) function RemoveFromGroup
+ *
  *                          1. Eliminate the code that tests for adding groups
- *                             to groups. This is an error in normal AFS. 
- *                          2. If removing a group from a group call 
- *                             RemoveFromSGEntry to remove the id of the 
+ *                             to groups. This is an error in normal AFS.
+ *                          2. If removing a group from a group call
+ *                             RemoveFromSGEntry to remove the id of the
  *                             group it's a member of.
  *
- *                      (6) Add new functions PR_ListSuperGroups and 
+ *                      (6) Add new functions PR_ListSuperGroups and
  *                          listSuperGroups.
- *                      
+ *
  *                      (7) function isAMemberOf
- *                      
+ *
  *                          1. Allow groups to be members of groups.
  *
  *                      Transarc does not currently use opcodes past 520, but
@@ -84,60 +84,60 @@ extern char *pr_realmName;
 extern int prp_group_default;
 extern int prp_user_default;
 
-static afs_int32 iNewEntry(struct rx_call *call, char aname[], afs_int32 aid, 
+static afs_int32 iNewEntry(struct rx_call *call, char aname[], afs_int32 aid,
                           afs_int32 oid, afs_int32 *cid);
-static afs_int32 newEntry(struct rx_call *call, char aname[], afs_int32 flag, 
-                         afs_int32 oid, afs_int32 *aid, afs_int32 *cid);       
+static afs_int32 newEntry(struct rx_call *call, char aname[], afs_int32 flag,
+                         afs_int32 oid, afs_int32 *aid, afs_int32 *cid);
 static afs_int32 whereIsIt(struct rx_call *call, afs_int32 aid, afs_int32 *apos,
                           afs_int32 *cid);
-static afs_int32 dumpEntry(struct rx_call *call, afs_int32 apos, 
+static afs_int32 dumpEntry(struct rx_call *call, afs_int32 apos,
                           struct prdebugentry *aentry, afs_int32 *cid);
-static afs_int32 addToGroup(struct rx_call *call, afs_int32 aid, afs_int32 gid, 
+static afs_int32 addToGroup(struct rx_call *call, afs_int32 aid, afs_int32 gid,
                            afs_int32 *cid);
 static afs_int32 nameToID(struct rx_call *call, namelist *aname, idlist *aid);
 static afs_int32 idToName(struct rx_call *call, idlist *aid, namelist *aname);
 static afs_int32 Delete(struct rx_call *call, afs_int32 aid, afs_int32 *cid);
-static afs_int32 UpdateEntry(struct rx_call *call, afs_int32 aid, char *name, 
+static afs_int32 UpdateEntry(struct rx_call *call, afs_int32 aid, char *name,
                             struct PrUpdateEntry *uentry, afs_int32 *cid);
-static afs_int32 removeFromGroup(struct rx_call *call, afs_int32 aid, 
+static afs_int32 removeFromGroup(struct rx_call *call, afs_int32 aid,
                                 afs_int32 gid, afs_int32 *cid);
-static afs_int32 getCPS(struct rx_call *call, afs_int32 aid, prlist *alist, 
+static afs_int32 getCPS(struct rx_call *call, afs_int32 aid, prlist *alist,
                        afs_int32 *over, afs_int32 *cid);
 static afs_int32 getCPS2(struct rx_call *call, afs_int32 aid, afs_uint32 ahost,
                         prlist *alist, afs_int32 *over, afs_int32 *cid);
 static afs_int32 getHostCPS(struct rx_call *call, afs_uint32 ahost,
                            prlist *alist, afs_int32 *over);
 static afs_int32 listMax(struct rx_call *call, afs_int32 *uid, afs_int32 *gid);
-static afs_int32 setMax(struct rx_call *call, afs_int32 aid, afs_int32 gflag, 
+static afs_int32 setMax(struct rx_call *call, afs_int32 aid, afs_int32 gflag,
                        afs_int32 *cid);
-static afs_int32 listEntry(struct rx_call *call, afs_int32 aid, 
+static afs_int32 listEntry(struct rx_call *call, afs_int32 aid,
                           struct prcheckentry *aentry, afs_int32 *cid);
-static afs_int32 listEntries(struct rx_call *call, afs_int32 flag, 
-                            afs_int32 startindex, prentries *bulkentries, 
+static afs_int32 listEntries(struct rx_call *call, afs_int32 flag,
+                            afs_int32 startindex, prentries *bulkentries,
                             afs_int32 *nextstartindex, afs_int32 *cid);
 static afs_int32 put_prentries(struct prentry *tentry, prentries *bulkentries);
-static afs_int32 changeEntry(struct rx_call *call, afs_int32 aid, char *name, 
+static afs_int32 changeEntry(struct rx_call *call, afs_int32 aid, char *name,
                             afs_int32 oid, afs_int32 newid, afs_int32 *cid);
-static afs_int32 setFieldsEntry(struct rx_call *call, afs_int32 id, 
-                               afs_int32 mask, afs_int32 flags, 
-                               afs_int32 ngroups, afs_int32 nusers, 
-                               afs_int32 spare1, afs_int32 spare2, 
+static afs_int32 setFieldsEntry(struct rx_call *call, afs_int32 id,
+                               afs_int32 mask, afs_int32 flags,
+                               afs_int32 ngroups, afs_int32 nusers,
+                               afs_int32 spare1, afs_int32 spare2,
                                afs_int32 *cid);
 static afs_int32 listElements(struct rx_call *call, afs_int32 aid,
                              prlist *alist, afs_int32 *over, afs_int32 *cid);
 #if defined(SUPERGROUPS)
-static afs_int32 listSuperGroups(struct rx_call *call, afs_int32 aid, 
-                                prlist *alist, afs_int32 *over, 
+static afs_int32 listSuperGroups(struct rx_call *call, afs_int32 aid,
+                                prlist *alist, afs_int32 *over,
                                 afs_int32 *cid);
 #endif
 static afs_int32 listOwned(struct rx_call *call, afs_int32 aid, prlist *alist,
                           afs_int32 *lastP, afs_int32 *cid);
 static afs_int32 isAMemberOf(struct rx_call *call, afs_int32 uid, afs_int32 gid,
                             afs_int32 *flag, afs_int32 *cid);
-static afs_int32 addWildCards(struct ubik_trans *tt, prlist *alist, 
+static afs_int32 addWildCards(struct ubik_trans *tt, prlist *alist,
                              afs_uint32 host);
-static afs_int32 WhoIsThisWithName(struct rx_call *acall, 
-                                  struct ubik_trans *at, afs_int32 *aid, 
+static afs_int32 WhoIsThisWithName(struct rx_call *acall,
+                                  struct ubik_trans *at, afs_int32 *aid,
                                   char *aname);
 
 /* when we abort, the ubik cachedVersion will be reset, so we'll read in the
@@ -147,14 +147,14 @@ static afs_int32 WhoIsThisWithName(struct rx_call *acall,
 #define ABORT_WITH(tt,code) return(ubik_AbortTrans(tt),code)
 
 static int
-CreateOK(struct ubik_trans *ut, afs_int32 cid, afs_int32 oid, afs_int32 flag, 
+CreateOK(struct ubik_trans *ut, afs_int32 cid, afs_int32 oid, afs_int32 flag,
         int admin)
 {
-    if (restricted && !admin) 
+    if (restricted && !admin)
        return 0;
 
     if (flag & PRFOREIGN) {
-       /* Foreign users are recognized by the '@' sign and 
+       /* Foreign users are recognized by the '@' sign and
         * not by the PRFOREIGN flag.
         */
        return 0;
@@ -247,7 +247,7 @@ SPR_INewEntry(struct rx_call *call, char aname[], afs_int32 aid, afs_int32 oid)
 }
 
 static afs_int32
-iNewEntry(struct rx_call *call, char aname[], afs_int32 aid, afs_int32 oid, 
+iNewEntry(struct rx_call *call, char aname[], afs_int32 aid, afs_int32 oid,
          afs_int32 *cid)
 {
     /* used primarily for conversion - not intended to be used as usual means
@@ -305,7 +305,7 @@ iNewEntry(struct rx_call *call, char aname[], afs_int32 aid, afs_int32 oid,
 
 
 afs_int32
-SPR_NewEntry(struct rx_call *call, char aname[], afs_int32 flag, afs_int32 oid, 
+SPR_NewEntry(struct rx_call *call, char aname[], afs_int32 flag, afs_int32 oid,
             afs_int32 *aid)
 {
     afs_int32 code;
@@ -319,7 +319,7 @@ SPR_NewEntry(struct rx_call *call, char aname[], afs_int32 flag, afs_int32 oid,
 }
 
 static afs_int32
-newEntry(struct rx_call *call, char aname[], afs_int32 flag, afs_int32 oid, 
+newEntry(struct rx_call *call, char aname[], afs_int32 flag, afs_int32 oid,
         afs_int32 *aid, afs_int32 *cid)
 {
     afs_int32 code;
@@ -341,7 +341,7 @@ newEntry(struct rx_call *call, char aname[], afs_int32 flag, afs_int32 oid,
        ABORT_WITH(tt, code);
 
     /* this is for cross-cell self registration. It is not added in the
-     * SPR_INewEntry because we want self-registration to only do 
+     * SPR_INewEntry because we want self-registration to only do
      * automatic id assignment.
      */
     code = WhoIsThisWithName(call, tt, cid, cname);
@@ -417,7 +417,7 @@ whereIsIt(struct rx_call *call, afs_int32 aid, afs_int32 *apos, afs_int32 *cid)
 
 
 afs_int32
-SPR_DumpEntry(struct rx_call *call, afs_int32 apos, 
+SPR_DumpEntry(struct rx_call *call, afs_int32 apos,
              struct prdebugentry *aentry)
 {
     afs_int32 code;
@@ -430,7 +430,7 @@ SPR_DumpEntry(struct rx_call *call, afs_int32 apos,
 }
 
 static afs_int32
-dumpEntry(struct rx_call *call, afs_int32 apos, struct prdebugentry *aentry, 
+dumpEntry(struct rx_call *call, afs_int32 apos, struct prdebugentry *aentry,
          afs_int32 *cid)
 {
     afs_int32 code;
@@ -625,13 +625,13 @@ nameToID(struct rx_call *call, namelist *aname, idlist *aid)
 
        if (cell && afs_is_foreign_ticket_name(nameinst,NULL,cell,pr_realmName))
            code = NameToID(tt, aname->namelist_val[i], &aid->idlist_val[i]);
-       else 
+       else
            code = NameToID(tt, nameinst, &aid->idlist_val[i]);
 
        if (code != PRSUCCESS)
            aid->idlist_val[i] = ANONYMOUSID;
         osi_audit(PTS_NmToIdEvent, code, AUD_STR,
-                  aname->namelist_val[i], AUD_ID, aid->idlist_val[i], 
+                  aname->namelist_val[i], AUD_ID, aid->idlist_val[i],
                   AUD_END);
        ViceLog(125, ("PTS_NameToID: code %d aname %s aid %d\n", code,
                      aname->namelist_val[i], aid->idlist_val[i]));
@@ -974,7 +974,7 @@ Delete(struct rx_call *call, afs_int32 aid, afs_int32 *cid)
 }
 
 afs_int32
-SPR_UpdateEntry(struct rx_call *call, afs_int32 aid, char *name, 
+SPR_UpdateEntry(struct rx_call *call, afs_int32 aid, char *name,
                struct PrUpdateEntry *uentry)
 {
     afs_int32 code;
@@ -987,7 +987,7 @@ SPR_UpdateEntry(struct rx_call *call, afs_int32 aid, char *name,
 }
 
 afs_int32
-UpdateEntry(struct rx_call *call, afs_int32 aid, char *name, 
+UpdateEntry(struct rx_call *call, afs_int32 aid, char *name,
            struct PrUpdateEntry *uentry, afs_int32 *cid)
 {
     afs_int32 code;
@@ -1078,7 +1078,7 @@ SPR_RemoveFromGroup(struct rx_call *call, afs_int32 aid, afs_int32 gid)
 }
 
 static afs_int32
-removeFromGroup(struct rx_call *call, afs_int32 aid, afs_int32 gid, 
+removeFromGroup(struct rx_call *call, afs_int32 aid, afs_int32 gid,
                afs_int32 *cid)
 {
     afs_int32 code;
@@ -1160,7 +1160,7 @@ SPR_GetCPS(struct rx_call *call, afs_int32 aid, prlist *alist, afs_int32 *over)
 }
 
 static afs_int32
-getCPS(struct rx_call *call, afs_int32 aid, prlist *alist, afs_int32 *over, 
+getCPS(struct rx_call *call, afs_int32 aid, prlist *alist, afs_int32 *over,
        afs_int32 *cid)
 {
     afs_int32 code;
@@ -1219,7 +1219,7 @@ inCPS(prlist CPS, afs_int32 id)
 
 
 afs_int32
-SPR_GetCPS2(struct rx_call *call, afs_int32 aid, afs_int32 ahost, 
+SPR_GetCPS2(struct rx_call *call, afs_int32 aid, afs_int32 ahost,
            prlist *alist, afs_int32 *over)
 {
     afs_int32 code;
@@ -1303,7 +1303,7 @@ getCPS2(struct rx_call *call, afs_int32 aid, afs_uint32 ahost, prlist *alist,
 
 
 afs_int32
-SPR_GetHostCPS(struct rx_call *call, afs_int32 ahost, prlist *alist, 
+SPR_GetHostCPS(struct rx_call *call, afs_int32 ahost, prlist *alist,
               afs_int32 *over)
 {
     afs_int32 code;
@@ -1468,7 +1468,7 @@ SPR_ListEntry(struct rx_call *call, afs_int32 aid, struct prcheckentry *aentry)
 }
 
 static afs_int32
-listEntry(struct rx_call *call, afs_int32 aid, struct prcheckentry *aentry, 
+listEntry(struct rx_call *call, afs_int32 aid, struct prcheckentry *aentry,
          afs_int32 *cid)
 {
     afs_int32 code;
@@ -1523,7 +1523,7 @@ listEntry(struct rx_call *call, afs_int32 aid, struct prcheckentry *aentry,
 }
 
 afs_int32
-SPR_ListEntries(struct rx_call *call, afs_int32 flag, afs_int32 startindex, 
+SPR_ListEntries(struct rx_call *call, afs_int32 flag, afs_int32 startindex,
                prentries *bulkentries, afs_int32 *nextstartindex)
 {
     afs_int32 code;
@@ -1536,7 +1536,7 @@ SPR_ListEntries(struct rx_call *call, afs_int32 flag, afs_int32 startindex,
 }
 
 static afs_int32
-listEntries(struct rx_call *call, afs_int32 flag, afs_int32 startindex, 
+listEntries(struct rx_call *call, afs_int32 flag, afs_int32 startindex,
            prentries *bulkentries, afs_int32 *nextstartindex, afs_int32 *cid)
 {
     afs_int32 code;
@@ -1659,7 +1659,7 @@ put_prentries(struct prentry *tentry, prentries *bulkentries)
 }
 
 afs_int32
-SPR_ChangeEntry(struct rx_call *call, afs_int32 aid, char *name, afs_int32 oid, 
+SPR_ChangeEntry(struct rx_call *call, afs_int32 aid, char *name, afs_int32 oid,
                afs_int32 newid)
 {
     afs_int32 code;
@@ -1673,7 +1673,7 @@ SPR_ChangeEntry(struct rx_call *call, afs_int32 aid, char *name, afs_int32 oid,
 }
 
 static afs_int32
-changeEntry(struct rx_call *call, afs_int32 aid, char *name, afs_int32 oid, 
+changeEntry(struct rx_call *call, afs_int32 aid, char *name, afs_int32 oid,
            afs_int32 newid, afs_int32 *cid)
 {
     afs_int32 code;
@@ -1718,10 +1718,10 @@ changeEntry(struct rx_call *call, afs_int32 aid, char *name, afs_int32 oid,
 }
 
 afs_int32
-SPR_SetFieldsEntry(struct rx_call *call, 
-                  afs_int32 id, 
-                  afs_int32 mask, /* specify which fields to update */ 
-                  afs_int32 flags, afs_int32 ngroups, afs_int32 nusers, 
+SPR_SetFieldsEntry(struct rx_call *call,
+                  afs_int32 id,
+                  afs_int32 mask, /* specify which fields to update */
+                  afs_int32 flags, afs_int32 ngroups, afs_int32 nusers,
                   afs_int32 spare1, afs_int32 spare2)
 {
     afs_int32 code;
@@ -1736,10 +1736,10 @@ SPR_SetFieldsEntry(struct rx_call *call,
 }
 
 static afs_int32
-setFieldsEntry(struct rx_call *call, 
-              afs_int32 id, 
-              afs_int32 mask, /* specify which fields to update */ 
-              afs_int32 flags, afs_int32 ngroups, afs_int32 nusers, 
+setFieldsEntry(struct rx_call *call,
+              afs_int32 id,
+              afs_int32 mask, /* specify which fields to update */
+              afs_int32 flags, afs_int32 ngroups, afs_int32 nusers,
               afs_int32 spare1, afs_int32 spare2, afs_int32 *cid)
 {
     afs_int32 code;
@@ -1820,7 +1820,7 @@ setFieldsEntry(struct rx_call *call,
 }
 
 afs_int32
-SPR_ListElements(struct rx_call *call, afs_int32 aid, prlist *alist, 
+SPR_ListElements(struct rx_call *call, afs_int32 aid, prlist *alist,
                 afs_int32 *over)
 {
     afs_int32 code;
@@ -1833,7 +1833,7 @@ SPR_ListElements(struct rx_call *call, afs_int32 aid, prlist *alist,
 }
 
 static afs_int32
-listElements(struct rx_call *call, afs_int32 aid, prlist *alist, 
+listElements(struct rx_call *call, afs_int32 aid, prlist *alist,
             afs_int32 *over, afs_int32 *cid)
 {
     afs_int32 code;
@@ -1881,7 +1881,7 @@ listElements(struct rx_call *call, afs_int32 aid, prlist *alist,
 
 
 afs_int32
-SPR_ListSuperGroups(struct rx_call *call, afs_int32 aid, prlist *alist, 
+SPR_ListSuperGroups(struct rx_call *call, afs_int32 aid, prlist *alist,
                    afs_int32 *over)
 {
 #if defined(SUPERGROUPS)
@@ -1899,7 +1899,7 @@ SPR_ListSuperGroups(struct rx_call *call, afs_int32 aid, prlist *alist,
 
 #if defined(SUPERGROUPS)
 static afs_int32
-listSuperGroups(struct rx_call *call, afs_int32 aid, prlist *alist, 
+listSuperGroups(struct rx_call *call, afs_int32 aid, prlist *alist,
                afs_int32 *over, afs_int32 *cid)
 {
     afs_int32 code;
@@ -1947,7 +1947,7 @@ listSuperGroups(struct rx_call *call, afs_int32 aid, prlist *alist,
 
 #endif /* SUPERGROUPS */
 
-/* 
+/*
  * SPR_ListOwned
  * List the entries owned by this id.  If the id is zero,
  * return the orphans list. This will return up to PR_MAXGROUPS
@@ -1955,7 +1955,7 @@ listSuperGroups(struct rx_call *call, afs_int32 aid, prlist *alist,
  * maximum value is enforced in GetOwnedChain().
  */
 afs_int32
-SPR_ListOwned(struct rx_call *call, afs_int32 aid, prlist *alist, 
+SPR_ListOwned(struct rx_call *call, afs_int32 aid, prlist *alist,
              afs_int32 *lastP)
 {
     afs_int32 code;
@@ -1968,7 +1968,7 @@ SPR_ListOwned(struct rx_call *call, afs_int32 aid, prlist *alist,
 }
 
 afs_int32
-listOwned(struct rx_call *call, afs_int32 aid, prlist *alist, afs_int32 *lastP, 
+listOwned(struct rx_call *call, afs_int32 aid, prlist *alist, afs_int32 *lastP,
          afs_int32 *cid)
 {
     afs_int32 code;
@@ -2040,7 +2040,7 @@ listOwned(struct rx_call *call, afs_int32 aid, prlist *alist, afs_int32 *lastP,
 }
 
 afs_int32
-SPR_IsAMemberOf(struct rx_call *call, afs_int32 uid, afs_int32 gid, 
+SPR_IsAMemberOf(struct rx_call *call, afs_int32 uid, afs_int32 gid,
                afs_int32 *flag)
 {
     afs_int32 code;
@@ -2155,7 +2155,7 @@ addWildCards(struct ubik_trans *tt, prlist *alist, afs_uint32 host)
 }
 
 static afs_int32
-WhoIsThisWithName(struct rx_call *acall, struct ubik_trans *at, afs_int32 *aid, 
+WhoIsThisWithName(struct rx_call *acall, struct ubik_trans *at, afs_int32 *aid,
                  char *aname)
 {
     /* aid is set to the identity of the caller, if known, else ANONYMOUSID */
index 714b0ca6e2107a3eb589a40ce587f2ebda0305da..bc4c8d65490c41d9b6e4be7f297e180a903d21db 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -12,7 +12,7 @@
 
 /* utils.c */
 #if defined(SUPERGROUPS)
-extern afs_int32 IsAMemberOfSG(struct ubik_trans *at, afs_int32 aid, 
+extern afs_int32 IsAMemberOfSG(struct ubik_trans *at, afs_int32 aid,
                               afs_int32 gid, afs_int32 depth) ;
 #endif /* SUPERGROUPS */
 
@@ -28,72 +28,72 @@ extern void pt_hook_write(void);
 #endif
 
 extern afs_int32 NameHash(unsigned char *aname);
-extern afs_int32 pr_Write(struct ubik_trans *tt, afs_int32 afd, afs_int32 pos, 
+extern afs_int32 pr_Write(struct ubik_trans *tt, afs_int32 afd, afs_int32 pos,
                          void *buff, afs_int32 len);
-extern afs_int32 pr_Read(struct ubik_trans *tt, afs_int32 afd, afs_int32 pos, 
+extern afs_int32 pr_Read(struct ubik_trans *tt, afs_int32 afd, afs_int32 pos,
                         void *buff, afs_int32 len);
-extern int pr_WriteEntry(struct ubik_trans *tt, afs_int32 afd, afs_int32 pos, 
+extern int pr_WriteEntry(struct ubik_trans *tt, afs_int32 afd, afs_int32 pos,
                         struct prentry *tentry);
-extern int pr_ReadEntry(struct ubik_trans *tt, afs_int32 afd, afs_int32 pos, 
+extern int pr_ReadEntry(struct ubik_trans *tt, afs_int32 afd, afs_int32 pos,
                        struct prentry *tentry);
-extern int pr_WriteCoEntry(struct ubik_trans *tt, afs_int32 afd, afs_int32 pos, 
+extern int pr_WriteCoEntry(struct ubik_trans *tt, afs_int32 afd, afs_int32 pos,
                           struct contentry *tentry);
-extern int pr_ReadCoEntry(struct ubik_trans *tt, afs_int32 afd, afs_int32 pos, 
+extern int pr_ReadCoEntry(struct ubik_trans *tt, afs_int32 afd, afs_int32 pos,
                          struct contentry *tentry);
 extern afs_int32 AllocBlock(struct ubik_trans *at);
 extern afs_int32 FreeBlock(struct ubik_trans *at, afs_int32 pos);
 extern afs_int32 FindByID(struct ubik_trans *at, afs_int32 aid);
-extern afs_int32 FindByName(struct ubik_trans *at, 
+extern afs_int32 FindByName(struct ubik_trans *at,
                            char aname[PR_MAXNAMELEN], struct prentry *tentryp);
-extern afs_int32 AllocID(struct ubik_trans *at, afs_int32 flag, 
+extern afs_int32 AllocID(struct ubik_trans *at, afs_int32 flag,
                         afs_int32 *aid);
-extern afs_int32 IDToName(struct ubik_trans *at, afs_int32 aid, 
+extern afs_int32 IDToName(struct ubik_trans *at, afs_int32 aid,
                          char aname[PR_MAXNAMELEN]);
-extern afs_int32 NameToID(struct ubik_trans *at, 
+extern afs_int32 NameToID(struct ubik_trans *at,
                          char aname[PR_MAXNAMELEN], afs_int32 *aid);
 extern int IDCmp(const void *a, const void *b);
-extern afs_int32 RemoveFromIDHash(struct ubik_trans *tt, afs_int32 aid, 
+extern afs_int32 RemoveFromIDHash(struct ubik_trans *tt, afs_int32 aid,
                                  afs_int32 *loc);
-extern afs_int32 AddToIDHash(struct ubik_trans *tt, afs_int32 aid, 
+extern afs_int32 AddToIDHash(struct ubik_trans *tt, afs_int32 aid,
                             afs_int32 loc);
-extern afs_int32 RemoveFromNameHash(struct ubik_trans *tt, char *aname, 
+extern afs_int32 RemoveFromNameHash(struct ubik_trans *tt, char *aname,
                                    afs_int32 *loc);
-extern afs_int32 AddToNameHash(struct ubik_trans *tt, char *aname, 
+extern afs_int32 AddToNameHash(struct ubik_trans *tt, char *aname,
                               afs_int32 loc);
-extern afs_int32 AddToOwnerChain(struct ubik_trans *at, afs_int32 gid, 
+extern afs_int32 AddToOwnerChain(struct ubik_trans *at, afs_int32 gid,
                                 afs_int32 oid);
-extern afs_int32 RemoveFromOwnerChain(struct ubik_trans *at, afs_int32 gid, 
+extern afs_int32 RemoveFromOwnerChain(struct ubik_trans *at, afs_int32 gid,
                                      afs_int32 oid);
 extern afs_int32 AddToOrphan(struct ubik_trans *at, afs_int32 gid);
 extern afs_int32 RemoveFromOrphan(struct ubik_trans *at, afs_int32 gid);
 extern afs_int32 IsOwnerOf(struct ubik_trans *at, afs_int32 aid, afs_int32 gid);
 extern afs_int32 OwnerOf(struct ubik_trans *at, afs_int32 gid);
-extern afs_int32 IsAMemberOf(struct ubik_trans *at, afs_int32 aid, 
+extern afs_int32 IsAMemberOf(struct ubik_trans *at, afs_int32 aid,
                             afs_int32 gid);
 
 /* ptutils.c */
-extern afs_int32 AddToEntry(struct ubik_trans *tt, struct prentry *entry, 
+extern afs_int32 AddToEntry(struct ubik_trans *tt, struct prentry *entry,
                            afs_int32 loc, afs_int32 aid);
-extern int AccessOK(struct ubik_trans *ut, afs_int32 cid, 
+extern int AccessOK(struct ubik_trans *ut, afs_int32 cid,
                    struct prentry *tentry, int mem, int any);
-extern afs_int32 CreateEntry(struct ubik_trans *at, char aname[], 
-                            afs_int32 *aid, afs_int32 idflag, 
+extern afs_int32 CreateEntry(struct ubik_trans *at, char aname[],
+                            afs_int32 *aid, afs_int32 idflag,
                             afs_int32 flag, afs_int32 oid, afs_int32 creator);
-extern afs_int32 RemoveFromEntry(struct ubik_trans *at, afs_int32 aid, 
+extern afs_int32 RemoveFromEntry(struct ubik_trans *at, afs_int32 aid,
                                 afs_int32 bid);
 extern afs_int32 DeleteEntry(struct ubik_trans *at, struct prentry *tentry,
                             afs_int32 loc);
-extern afs_int32 GetList(struct ubik_trans *at, struct prentry *tentry, 
+extern afs_int32 GetList(struct ubik_trans *at, struct prentry *tentry,
                         prlist *alist, afs_int32 add);
-extern afs_int32 GetList2(struct ubik_trans *at, struct prentry *tentry, 
-                         struct prentry *tentry2, prlist *alist, 
+extern afs_int32 GetList2(struct ubik_trans *at, struct prentry *tentry,
+                         struct prentry *tentry2, prlist *alist,
                          afs_int32 add);
 extern afs_int32 GetMax(struct ubik_trans *at, afs_int32 *uid, afs_int32 *gid);
 extern afs_int32 SetMax(struct ubik_trans *at, afs_int32 id, afs_int32 flag);
-extern afs_int32 ChangeEntry(struct ubik_trans *at, afs_int32 aid, 
-                            afs_int32 cid, char *name, afs_int32 oid, 
+extern afs_int32 ChangeEntry(struct ubik_trans *at, afs_int32 aid,
+                            afs_int32 cid, char *name, afs_int32 oid,
                             afs_int32 newid);
-extern afs_int32 GetOwnedChain(struct ubik_trans *ut, afs_int32 *next, 
+extern afs_int32 GetOwnedChain(struct ubik_trans *ut, afs_int32 *next,
                               prlist *alist);
 extern afs_int32 AddToPRList(prlist *alist, int *sizeP, afs_int32 id);
 extern afs_int32 read_DbHeader(struct ubik_trans *tt);
index 01248f2d9a9bccb06a5614b5b641eb686eb36ddc..3a74c5eae1331e6e3e0ff283a13e9d010c1720b3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -288,7 +288,7 @@ CreateGroup(struct cmd_syndesc *as, void *arock)
                        id);
                return code;
            }
-           
+
             if (id == 0) {
                printf("0 isn't a valid user id; aborting\n");
                return EINVAL;
@@ -1123,8 +1123,8 @@ main(int argc, char **argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index 26deaf2e83e89fdf8ee02f9e1bf0f34c59f350f7..53925ae06e7606c18b2140f990bb48497bd6c9b6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  *                      is a member of (since the entries field is used to
  *                      list it's members). This new field is supergroups and
  *                      has two entries. If more are required, a continuation
- *                      record is formed. 
+ *                      record is formed.
  *                      There are two additional fields required, nextsg is
  *                      an address of the next continuation record for this
- *                      group, and countsg is the count for the number of 
+ *                      group, and countsg is the count for the number of
  *                      groups this group is a member of.
- *                   
+ *
  *
  *
  *      09/18/95 jjm    Add mdw's changes to afs-3.3a Changes:
@@ -225,8 +225,8 @@ main(int argc, char **argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
@@ -273,8 +273,8 @@ main(int argc, char **argv)
        alen = strlen(arg);
        if (strcmp(argv[a], "-d") == 0) {
            if ((a + 1) >= argc) {
-               fprintf(stderr, "missing argument for -d\n"); 
-               return -1; 
+               fprintf(stderr, "missing argument for -d\n");
+               return -1;
            }
            debuglevel = atoi(argv[++a]);
            LogLevel = debuglevel;
@@ -347,7 +347,7 @@ main(int argc, char **argv)
                        RX_MAX_PACKET_DATA_SIZE);
                PT_EXIT(1);
            }
-       } 
+       }
        else if (*arg == '-') {
            /* hack in help flag support */
 
@@ -485,14 +485,14 @@ main(int argc, char **argv)
 
     if (rxBind) {
        afs_int32 ccode;
-       if (AFSDIR_SERVER_NETRESTRICT_FILEPATH || 
+       if (AFSDIR_SERVER_NETRESTRICT_FILEPATH ||
            AFSDIR_SERVER_NETINFO_FILEPATH) {
            char reason[1024];
            ccode = parseNetFiles(SHostAddrs, NULL, NULL,
                                           ADDRSPERSITE, reason,
                                           AFSDIR_SERVER_NETINFO_FILEPATH,
                                           AFSDIR_SERVER_NETRESTRICT_FILEPATH);
-       } else 
+       } else
        {
            ccode = rx_getAllAddr(SHostAddrs, ADDRSPERSITE);
        }
index 4742dbb3703d9afa978c48496afdd2c5b4bf1e0a..ef6c772c5e02670aaa66c0a9b98e1c31ea99ef91 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index cb8193bb7736be3779a41b01005c65f3103ac4a0..538b6dcd5eb45263080fba4241e276bdbeaf32ff 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -207,7 +207,7 @@ pr_Initialize(IN afs_int32 secLevel, IN const char *confDir, IN char *cell)
     }
 #else /* defined(UKERNEL) */
     if (!cell) {
-        if (!tdir) 
+        if (!tdir)
             tdir = afsconf_Open(confDir);
        if (!tdir) {
            if (confDir && strcmp(confDir, ""))
@@ -373,7 +373,7 @@ pr_CreateUser(char name[PR_MAXNAMELEN], afs_int32 *id)
 
 }
 
-int 
+int
 pr_CreateGroup(char name[PR_MAXNAMELEN], char owner[PR_MAXNAMELEN], afs_int32 *id)
 {
     afs_int32 code;
index a13a638c1caa4a6a3b323bb586774cbc6c720bd3..a6ed4727d14234ad917cbdc27d8e0ca04af0f07c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
 #include "afs/ptint.h"
 
 /* ptuser.c */
-extern afs_int32 pr_Initialize(afs_int32 secLevel, const char *confDir, 
+extern afs_int32 pr_Initialize(afs_int32 secLevel, const char *confDir,
                               char *cell);
 extern int pr_End(void);
 extern int pr_CreateUser(char name[PR_MAXNAMELEN], afs_int32 *id);
-extern int pr_CreateGroup(char name[PR_MAXNAMELEN], char owner[PR_MAXNAMELEN], 
+extern int pr_CreateGroup(char name[PR_MAXNAMELEN], char owner[PR_MAXNAMELEN],
                          afs_int32 *id);
 extern int pr_Delete(char *name);
 extern int pr_DeleteByID(afs_int32 id);
@@ -34,23 +34,23 @@ extern int pr_ListMembers(char *group, namelist *lnames);
 extern int pr_ListOwned(afs_int32 oid, namelist *lnames, afs_int32 *moreP);
 extern int pr_IDListMembers(afs_int32 gid, namelist *lnames);
 extern int pr_ListEntry(afs_int32 id, struct prcheckentry *aentry);
-extern afs_int32 pr_ListEntries(int flag, afs_int32 startindex, 
-                               afs_int32 *nentries, 
-                               struct prlistentries **entries, 
+extern afs_int32 pr_ListEntries(int flag, afs_int32 startindex,
+                               afs_int32 *nentries,
+                               struct prlistentries **entries,
                                afs_int32 *nextstartindex);
-extern int pr_CheckEntryByName(char *name, afs_int32 *id, char *owner, 
+extern int pr_CheckEntryByName(char *name, afs_int32 *id, char *owner,
                               char *creator);
-extern int pr_CheckEntryById(char *name, afs_int32 id, char *owner, 
+extern int pr_CheckEntryById(char *name, afs_int32 id, char *owner,
                             char *creator);
-extern int pr_ChangeEntry(char *oldname, char *newname, afs_int32 *newid, 
+extern int pr_ChangeEntry(char *oldname, char *newname, afs_int32 *newid,
                          char *newowner);
 extern int pr_IsAMemberOf(char *uname, char *gname, afs_int32 *flag);
 extern int pr_ListMaxUserId(afs_int32 *mid);
 extern int pr_SetMaxUserId(afs_int32 mid);
 extern int pr_ListMaxGroupId(afs_int32 *mid);
 extern int pr_SetMaxGroupId(afs_int32 mid);
-extern afs_int32 pr_SetFieldsEntry(afs_int32 id, afs_int32 mask, 
-                                  afs_int32 flags, afs_int32 ngroups, 
+extern afs_int32 pr_SetFieldsEntry(afs_int32 id, afs_int32 mask,
+                                  afs_int32 flags, afs_int32 ngroups,
                                   afs_int32 nusers);
 extern int pr_ListSuperGroups(afs_int32 gid, namelist *lnames);
 extern int pr_IDListExpandedMembers(afs_int32 gid, namelist *lnames);
index ed4262aa11fe66a09d9b81a18a41e45eceab55d7..5b0895bb345362badf3e8d435ccce06ca3bf1887 100644 (file)
@@ -1,13 +1,13 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  */
 
-/* 
+/*
  *                      (5) Add functions to process supergroups:
  *                          ChangeIDEntry(), RemoveFromSGEntry(),
  *                          AddToSGEntry(), GetListSG2().
@@ -163,7 +163,7 @@ pt_mywrite(struct ubik_dbase *tdb, afs_int32 fno, void *bp, afs_int32 pos, afs_i
  *  just after ubik_ServerInit.
  */
 
-void 
+void
 pt_hook_write(void)
 {
     extern struct ubik_dbase *ubik_dbase;
@@ -405,7 +405,7 @@ CreateEntry(struct ubik_trans *at, char aname[PR_MAXNAMELEN], afs_int32 *aid, af
        }
     } else {
        /* A foreign user: <name>@<cell>. The foreign user is added to
-        * its representing group. It is 
+        * its representing group. It is
         */
        char *cellGroup;
        afs_int32 pos, n;
@@ -435,7 +435,7 @@ CreateEntry(struct ubik_trans *at, char aname[PR_MAXNAMELEN], afs_int32 *aid, af
                return PRBADARG;
            tentry.id = *aid;
        } else {
-           /* Allocate an ID special for this foreign user. It is based 
+           /* Allocate an ID special for this foreign user. It is based
             * on the representing group's id and nusers count.
             */
            tentry.id = allocNextId(at, &centry);
@@ -535,7 +535,7 @@ CreateEntry(struct ubik_trans *at, char aname[PR_MAXNAMELEN], afs_int32 *aid, af
            }
 
            /* Admins don't get charged for creating a group.
-            * If in noAuth mode, you get changed for it but you 
+            * If in noAuth mode, you get changed for it but you
             * are still allowed to create as many groups as you want.
             */
            admin = ((creator == SYSADMINID)
@@ -1906,7 +1906,7 @@ ChangeEntry(struct ubik_trans *at, afs_int32 aid, afs_int32 cid, char *name, afs
     code = pr_ReadEntry(at, 0, loc, &tentry);
     if (code)
        return PRDBFAIL;
-    if (restricted && !IsAMemberOf(at, cid, SYSADMINID)) 
+    if (restricted && !IsAMemberOf(at, cid, SYSADMINID))
        return PRPERM;
     if (tentry.owner != cid && !IsAMemberOf(at, cid, SYSADMINID)
        && !IsAMemberOf(at, cid, tentry.owner) && !pr_noAuth)
@@ -2034,7 +2034,7 @@ ChangeEntry(struct ubik_trans *at, afs_int32 aid, afs_int32 cid, char *name, afs
                return code;
        }
        /* Look through cont entries too. This needs to be broken into
-        * seperate transaction so that no one transaction becomes too 
+        * seperate transaction so that no one transaction becomes too
         * large to complete.
         */
        for (nptr = tentry.next; nptr; nptr = centry.next) {
@@ -2173,13 +2173,13 @@ allocNextId(struct ubik_trans * at, struct prentry * cellEntry)
     }
 
     cellEntry->nusers = htonl(id);
-    /* use the field nusers to keep 
+    /* use the field nusers to keep
      * the next available id in that
      * foreign cell's group. Note :
      * It would seem more appropriate
      * to use ngroup for that and nusers
      * to enforce the quota, however pts
-     * does not have an option to change 
+     * does not have an option to change
      * foreign users quota yet  */
 
     id = (id << 16) | cellid;
@@ -2195,7 +2195,7 @@ inRange(struct prentry *cellEntry, afs_int32 aid)
     /*
      * The only thing that we want to make sure here is that
      * the id is in the legal range of this group. If it is
-     * a duplicate we don't care since it will get caught 
+     * a duplicate we don't care since it will get caught
      * in a different check.
      */
 
@@ -2204,9 +2204,9 @@ inRange(struct prentry *cellEntry, afs_int32 aid)
     if (cellid != groupid)
        return 0;               /* not in range */
 
-    /* 
+    /*
      * if we got here we're ok but we need to update the nusers
-     * field in order to get the id correct the next time that 
+     * field in order to get the id correct the next time that
      * we try to allocate it automatically
      */
 
index 065b962102b4e3de2013492010c13045d3658814..958378d0036d4b925d2cd136be7e67e027e73da8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 3c9fc5c6d8249c741a28a634d54869785d047480..46e3a9e15c946e54f440669d5227ae934468754a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 7597ed8a7c517ae07521a47880aae2bbe87104bc..d0a1c9392459f0df91beab078dda87a0144113fa 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -1079,7 +1079,7 @@ osi_audit(void)
 
 #include "AFS_component_version_number.c"
 
-int 
+int
 main(int argc, char *argv[])
 {
     afs_int32 code;
index 289251c6a9571f187ed12bc6dfeaa90f2234a0ba..b8c772c0937d90588de1e8d33dbec87a7ea10c2c 100644 (file)
@@ -33,7 +33,7 @@ ubik_ServerInit(afs_uint32 myHost, short myPort, afs_uint32 serverList[],
 }
 
 int
-ubik_BeginTrans(struct ubik_dbase *dbase, afs_int32 transMode, 
+ubik_BeginTrans(struct ubik_dbase *dbase, afs_int32 transMode,
                struct ubik_trans **transPtr)
 {
     static int init = 0;
@@ -112,7 +112,7 @@ panic(char *format, ...)
     va_start(ap, format);
     vprintf(format, ap);
     va_end(ap);
-    
+
     abort();
     printf("BACK FROM ABORT\n");       /* shouldn't come back from floating pt exception */
     exit(1);                   /* never know, though */
@@ -178,7 +178,7 @@ struct rx_securityClass *ubik_sc[3];
 
 /* Other declarations */
 
-int 
+int
 afsconf_GetNoAuthFlag(struct afsconf_dir *adir)
 {
     return (1);
index c0a3646ea2e0b454a4a2ca31f82d633e9a52e48a..737c5732ce92adc6d5fd62e4df502a3aef38733d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -874,7 +874,7 @@ IsAMemberOf(struct ubik_trans *at, afs_int32 aid, afs_int32 gid)
 
 #if defined(SUPERGROUPS)
 afs_int32
-IsAMemberOfSG(struct ubik_trans *at, afs_int32 aid, afs_int32 gid, afs_int32 depth) 
+IsAMemberOfSG(struct ubik_trans *at, afs_int32 aid, afs_int32 gid, afs_int32 depth)
 {
     /* returns true if aid is a member of gid */
     struct prentry tentry;
index 6b028fec3c446aa093d91479663b5df142ddf8c5..3f1f949b7c912cca50ccc07843748a67abbf9cf2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 2a7ae4faeb59df9af86755c9ce4e9dd68d31d8da..4a42dcf8666a67de8a7520ccd25f53bb58611ceb 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -36,13 +36,13 @@ extern boolean_t lck_rw_try_lock(lck_rw_t *lck, lck_rw_type_t lck_rw_type);
  * In Digital Unix (OSF/1), we use something akin to the ancient sleep/wakeup
  * mechanism.  The condition variable itself plays no role; we just use its
  * address as a convenient unique number.
- * 
+ *
  * XXX in darwin, both mach and bsd facilities are available. Should really
  * stick to one or the other (but mach locks don't have a _try.....)
  *
  * in darwin 8.0, the bsd lock facility is no longer available, and only one
  * sleep variant is available. Still no lock_try, but we can work around that.
- * We can't pass the mutex into msleep, even if we didn't need the two mutex 
+ * We can't pass the mutex into msleep, even if we didn't need the two mutex
  * hack for lock_try emulation, since msleep won't fixup the owner variable
  * and we'll panic.
  */
index 9e7b6a68183f5bca61c687e0a15a1916cdf6a0fd..888c5407899eb2fe7d0879b68f81682f464acb71 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 09bd3bd8b941b73caae62465d1c491f3ff591c4a..63fc1fe941edc32315c2d85e626d015248dc92d6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -42,11 +42,11 @@ extern lock_t *rx_sleepLock;
  * and reacquire the mutex when it wakes up.
  */
 
-/* With 11.23, ksleep_prepare is not defined anywhere  and 
- * ksleep_one is only referenced in a comment. sleep, get_sleep_lock 
+/* With 11.23, ksleep_prepare is not defined anywhere  and
+ * ksleep_one is only referenced in a comment. sleep, get_sleep_lock
  * and wakeup are defined in driver manuals.
  * This works with 11.0, 11i, and 11.23
- * Note: wakeup wakes up all threads waiting on cv. 
+ * Note: wakeup wakes up all threads waiting on cv.
  */
 
 #define CV_WAIT(cv, lck) \
@@ -58,7 +58,7 @@ extern lock_t *rx_sleepLock;
                sleep((caddr_t)(cv), PRIBIO); \
                b_psema(lck); \
        } while(0)
-               
+
 #define CV_SIGNAL(cv)  \
        do { \
                lock_t * sleep_lock = get_sleep_lock((caddr_t)(cv)); \
index 63414a78550430c6732108088544526a23d06c14..8c7322218a633c28169f858a038d2224a73fd75c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c7bb559d5d1dcdded0aadebb6748f5fd4bf94d40..7be8c93256e80652fb46fd33828eb3c86e37091e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 6ea4faf07812764524e1bbd9d6625c1798182976..693fd249c5c1f7d2b28d0968dc5aa714eaa29926 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 721642edd886c2dbe07db782625f5352d1f1f4b7..dd429605d32d0fdc5aba8c4bf3148149009b9a75 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index dfe0c162e80c3437b9141d641fdae2a5566893b5..36dfa0a2babb4c2afcebbe2e3a582ad999a7a863 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 63aa8f45bb672d75c13e2e302679689d840d2204..acfc5c64e55814a557f5c3459ccb0d45ef8aff3e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index edb6ed15715dc3f40154a9372d1de838637af19f..60ee7ed2ba9974982fa996102add5734ad20f7eb 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 38a140b0acdcec8d474c56b46455af42e8f58ec3..05143991e78e3cc2cca1753f55228b45ed48181f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index cc84f13cd89812d71948a2b6573231a14a5be618..8f47522e221928f2489f661c36846b99977383d4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -220,7 +220,7 @@ rxi_InitPthread(void)
           == 0);
     assert(pthread_key_create(&rx_thread_id_key, NULL) == 0);
     assert(pthread_key_create(&rx_ts_info_key, NULL) == 0);
+
     rxkad_global_stats_init();
 
     MUTEX_INIT(&rx_rpc_stats, "rx_rpc_stats", MUTEX_DEFAULT, 0);
@@ -265,9 +265,9 @@ assert(pthread_once(&rx_once_init, rxi_InitPthread)==0)
  * rxi_totalMin
  */
 
-/* 
+/*
  * The rx_freePktQ_lock protects the following global variables:
- * rx_nFreePackets 
+ * rx_nFreePackets
  */
 
 /*
@@ -298,7 +298,7 @@ assert(pthread_once(&rx_once_init, rxi_InitPthread)==0)
  * are locked. To this end, the code has been modified under #ifdef
  * RX_ENABLE_LOCKS so that quota checks and reservation occur at the
  * same time. A new function, ReturnToServerPool() returns the allocation.
- * 
+ *
  * A call can be on several queue's (but only one at a time). When
  * rxi_ResetCall wants to remove the call from a queue, it has to ensure
  * that no one else is touching the queue. To this end, we store the address
@@ -315,8 +315,8 @@ void rxi_StartUnlocked(struct rxevent *event, void *call,
                        void *arg1, int istack);
 #endif
 
-/* We keep a "last conn pointer" in rxi_FindConnection. The odds are 
-** pretty good that the next packet coming in is from the same connection 
+/* We keep a "last conn pointer" in rxi_FindConnection. The odds are
+** pretty good that the next packet coming in is from the same connection
 ** as the last packet, since we're send multiple packets in a transmit window.
 */
 struct rx_connection *rxLastConn = 0;
@@ -431,9 +431,9 @@ rx_InitHost(u_int host, u_int port)
 #endif /* KERNEL */
     char *htable, *ptable;
     int tmp_status;
-    
+
     SPLVAR;
-    
+
     INIT_PTHREAD_LOCKS;
     LOCK_RX_INIT;
     if (rxinit_status == 0) {
@@ -789,7 +789,7 @@ rx_StartServer(int donateMe)
     }
 #ifdef RX_ENABLE_TSFPQ
     /* no use leaving packets around in this thread's local queue if
-     * it isn't getting donated to the server thread pool. 
+     * it isn't getting donated to the server thread pool.
      */
     rxi_FlushLocalPacketsTSFPQ();
 #endif /* RX_ENABLE_TSFPQ */
@@ -1115,7 +1115,7 @@ rx_GetConnection(struct rx_connection *conn)
 }
 
 #ifdef  AFS_GLOBAL_RXLOCK_KERNEL
-/* Wait for the transmit queue to no longer be busy. 
+/* Wait for the transmit queue to no longer be busy.
  * requires the call->lock to be held */
 static void rxi_WaitforTQBusy(struct rx_call *call) {
     while (call->flags & RX_CALL_TQ_BUSY) {
@@ -1140,7 +1140,7 @@ static void rxi_WaitforTQBusy(struct rx_call *call) {
  * 0.  Maxtime gives the maximum number of seconds this call may take,
  * after rx_NewCall returns.  After this time interval, a call to any
  * of rx_SendData, rx_ReadData, etc. will fail with RX_CALL_TIMEOUT.
- * For fine grain locking, we hold the conn_call_lock in order to 
+ * For fine grain locking, we hold the conn_call_lock in order to
  * to ensure that we don't get signalle after we found a call in an active
  * state and before we go to sleep.
  */
@@ -1162,10 +1162,10 @@ rx_NewCall(struct rx_connection *conn)
      * If so, let them go first to avoid starving them.
      * This is a fairly simple scheme, and might not be
      * a complete solution for large numbers of waiters.
-     * 
-     * makeCallWaiters keeps track of the number of 
-     * threads waiting to make calls and the 
-     * RX_CONN_MAKECALL_WAITING flag bit is used to 
+     *
+     * makeCallWaiters keeps track of the number of
+     * threads waiting to make calls and the
+     * RX_CONN_MAKECALL_WAITING flag bit is used to
      * indicate that there are indeed calls waiting.
      * The flag is set when the waiter is incremented.
      * It is only cleared when makeCallWaiters is 0.
@@ -1188,7 +1188,7 @@ rx_NewCall(struct rx_connection *conn)
        conn->makeCallWaiters--;
         if (conn->makeCallWaiters == 0)
             conn->flags &= ~RX_CONN_MAKECALL_WAITING;
-    } 
+    }
 
     /* We are now the active thread in rx_NewCall */
     conn->flags |= RX_CONN_MAKECALL_ACTIVE;
@@ -1290,7 +1290,7 @@ rx_NewCall(struct rx_connection *conn)
        call->mode = RX_MODE_ERROR;
     else
        call->mode = RX_MODE_SENDING;
-    
+
     /* remember start time for call in case we have hard dead time limit */
     call->queueTime = queueTime;
     clock_GetTime(&call->startTime);
@@ -1395,15 +1395,15 @@ rxi_SetCallNumberVector(struct rx_connection *aconn,
 
 /* Advertise a new service.  A service is named locally by a UDP port
  * number plus a 16-bit service id.  Returns (struct rx_service *) 0
- * on a failure. 
+ * on a failure.
  *
      char *serviceName;         Name for identification purposes (e.g. the
                          service name might be used for probing for
                          statistics) */
 struct rx_service *
-rx_NewServiceHost(afs_uint32 host, u_short port, u_short serviceId, 
+rx_NewServiceHost(afs_uint32 host, u_short port, u_short serviceId,
                  char *serviceName, struct rx_securityClass **securityObjects,
-                 int nSecurityObjects, 
+                 int nSecurityObjects,
                  afs_int32(*serviceProc) (struct rx_call * acall))
 {
     osi_socket socket = OSI_NULLSOCKET;
@@ -1499,15 +1499,15 @@ rx_NewServiceHost(afs_uint32 host, u_short port, u_short serviceId,
 
 /* Set configuration options for all of a service's security objects */
 
-afs_int32 
-rx_SetSecurityConfiguration(struct rx_service *service, 
+afs_int32
+rx_SetSecurityConfiguration(struct rx_service *service,
                            rx_securityConfigVariables type,
                            void *value)
 {
     int i;
     for (i = 0; i<service->nSecurityObjects; i++) {
        if (service->securityObjects[i]) {
-           RXS_SetConfiguration(service->securityObjects[i], NULL, type, 
+           RXS_SetConfiguration(service->securityObjects[i], NULL, type,
                                 value, NULL);
        }
     }
@@ -1636,21 +1636,21 @@ rx_WakeupServerProcs(void)
 /* meltdown:
  * One thing that seems to happen is that all the server threads get
  * tied up on some empty or slow call, and then a whole bunch of calls
- * arrive at once, using up the packet pool, so now there are more 
+ * arrive at once, using up the packet pool, so now there are more
  * empty calls.  The most critical resources here are server threads
  * and the free packet pool.  The "doreclaim" code seems to help in
  * general.  I think that eventually we arrive in this state: there
  * are lots of pending calls which do have all their packets present,
  * so they won't be reclaimed, are multi-packet calls, so they won't
- * be scheduled until later, and thus are tying up most of the free 
+ * be scheduled until later, and thus are tying up most of the free
  * packet pool for a very long time.
  * future options:
- * 1.  schedule multi-packet calls if all the packets are present.  
- * Probably CPU-bound operation, useful to return packets to pool. 
+ * 1.  schedule multi-packet calls if all the packets are present.
+ * Probably CPU-bound operation, useful to return packets to pool.
  * Do what if there is a full window, but the last packet isn't here?
  * 3.  preserve one thread which *only* runs "best" calls, otherwise
  * it sleeps and waits for that type of call.
- * 4.  Don't necessarily reserve a whole window for each thread.  In fact, 
+ * 4.  Don't necessarily reserve a whole window for each thread.  In fact,
  * the current dataquota business is badly broken.  The quota isn't adjusted
  * to reflect how many packets are presently queued for a running call.
  * So, when we schedule a queued call with a full window of packets queued
@@ -1698,7 +1698,7 @@ rx_GetCall(int tno, struct rx_service *cur_service, osi_socket * socketp)
             * already executing */
            /* One thread will process calls FCFS (to prevent starvation),
             * while the other threads may run ahead looking for calls which
-            * have all their input data available immediately.  This helps 
+            * have all their input data available immediately.  This helps
             * keep threads from blocking, waiting for data from the client. */
            for (queue_Scan(&rx_incomingCallQueue, tcall, ncall, rx_call)) {
                service = tcall->conn->service;
@@ -1709,9 +1709,9 @@ rx_GetCall(int tno, struct rx_service *cur_service, osi_socket * socketp)
                if (tno == rxi_fcfs_thread_num
                    || !tcall->queue_item_header.next) {
                    MUTEX_EXIT(&rx_pthread_mutex);
-                   /* If we're the fcfs thread , then  we'll just use 
-                    * this call. If we haven't been able to find an optimal 
-                    * choice, and we're at the end of the list, then use a 
+                   /* If we're the fcfs thread , then  we'll just use
+                    * this call. If we haven't been able to find an optimal
+                    * choice, and we're at the end of the list, then use a
                     * 2d choice if one has been identified.  Otherwise... */
                    call = (choice2 ? choice2 : tcall);
                    service = call->conn->service;
@@ -1874,7 +1874,7 @@ rx_GetCall(int tno, struct rx_service *cur_service, osi_socket * socketp)
         * already executing */
        /* One thread will process calls FCFS (to prevent starvation),
         * while the other threads may run ahead looking for calls which
-        * have all their input data available immediately.  This helps 
+        * have all their input data available immediately.  This helps
         * keep threads from blocking, waiting for data from the client. */
        choice2 = (struct rx_call *)0;
        for (queue_Scan(&rx_incomingCallQueue, tcall, ncall, rx_call)) {
@@ -1884,9 +1884,9 @@ rx_GetCall(int tno, struct rx_service *cur_service, osi_socket * socketp)
                if (tno == rxi_fcfs_thread_num
                    || !tcall->queue_item_header.next) {
                    MUTEX_EXIT(&rx_pthread_mutex);
-                   /* If we're the fcfs thread, then  we'll just use 
-                    * this call. If we haven't been able to find an optimal 
-                    * choice, and we're at the end of the list, then use a 
+                   /* If we're the fcfs thread, then  we'll just use
+                    * this call. If we haven't been able to find an optimal
+                    * choice, and we're at the end of the list, then use a
                     * 2d choice if one has been identified.  Otherwise... */
                    call = (choice2 ? choice2 : tcall);
                    service = call->conn->service;
@@ -1917,7 +1917,7 @@ rx_GetCall(int tno, struct rx_service *cur_service, osi_socket * socketp)
        queue_Remove(call);
        /* we can't schedule a call if there's no data!!! */
        /* send an ack if there's no data, if we're missing the
-        * first packet, or we're missing something between first 
+        * first packet, or we're missing something between first
         * and last -- there's a "hole" in the incoming data. */
        if (queue_IsEmpty(&call->rq)
            || queue_First(&call->rq, rx_packet)->header.seq != 1
@@ -2001,7 +2001,7 @@ rx_GetCall(int tno, struct rx_service *cur_service, osi_socket * socketp)
  * and will also be called if there is an error condition on the or
  * the call is complete.  Used by multi rx to build a selection
  * function which determines which of several calls is likely to be a
- * good one to read from.  
+ * good one to read from.
  * NOTE: the way this is currently implemented it is probably only a
  * good idea to (1) use it immediately after a newcall (clients only)
  * and (2) only use it once.  Other uses currently void your warranty
@@ -2046,7 +2046,7 @@ rx_EndCall(struct rx_call *call, afs_int32 rc)
        rxi_CallError(call, rc);
        /* Send an abort message to the peer if this error code has
         * only just been set.  If it was set previously, assume the
-        * peer has already been sent the error code or will request it 
+        * peer has already been sent the error code or will request it
         */
        rxi_SendCallAbort(call, (struct rx_packet *)0, 0, 0);
     }
@@ -2129,7 +2129,7 @@ rx_EndCall(struct rx_call *call, afs_int32 rc)
        rxi_FreePacket(call->currentPacket);
        call->currentPacket = (struct rx_packet *)0;
     }
-       
+
     call->nLeft = call->nFree = call->curlen = 0;
 
     /* Free any packets from the last call to ReadvProc/WritevProc */
@@ -2322,10 +2322,10 @@ rxi_NewCall(struct rx_connection *conn, int channel)
 #ifdef RXDEBUG_PACKET
         call->allNextp = rx_allCallsp;
         rx_allCallsp = call;
-        call->call_id = 
+        call->call_id =
 #endif /* RXDEBUG_PACKET */
             rx_MutexIncrement(rx_stats.nCallStructs, rx_stats_mutex);
-        
+
         MUTEX_EXIT(&rx_freeCallQueue_lock);
        MUTEX_INIT(&call->lock, "call lock", MUTEX_DEFAULT, NULL);
        MUTEX_ENTER(&call->lock);
@@ -2459,7 +2459,7 @@ rxi_Free(void *addr, size_t size)
     osi_Free(addr, size);
 }
 
-void 
+void
 rxi_SetPeerMtu(struct rx_peer *peer, afs_uint32 host, afs_uint32 port, int mtu)
 {
     struct rx_peer **peer_ptr = NULL, **peer_end = NULL;
@@ -2525,7 +2525,7 @@ rxi_SetPeerMtu(struct rx_peer *peer, afs_uint32 host, afs_uint32 port, int mtu)
 
 /* Find the peer process represented by the supplied (host,port)
  * combination.  If there is no appropriate active peer structure, a
- * new one will be allocated and initialized 
+ * new one will be allocated and initialized
  * The origPeer, if set, is a pointer to a peer structure on which the
  * refcount will be be decremented. This is used to replace the peer
  * structure hanging off a connection structure */
@@ -2892,7 +2892,7 @@ rxi_ReceivePacket(struct rx_packet *np, osi_socket socket,
            MUTEX_EXIT(&conn->conn_call_lock);
            *call->callNumber = np->header.callNumber;
 #ifdef RXDEBUG
-           if (np->header.callNumber == 0) 
+           if (np->header.callNumber == 0)
                dpf(("RecPacket call 0 %d %s: %x.%u.%u.%u.%u.%u.%u flags %d, packet %"AFS_PTR_FMT" resend %d.%.06d len %d",
                       np->header.serial, rx_packetTypes[np->header.type - 1], ntohl(conn->peer->host), ntohs(conn->peer->port),
                       np->header.serial, np->header.epoch, np->header.cid, np->header.callNumber, np->header.seq,
@@ -2908,7 +2908,7 @@ rxi_ReceivePacket(struct rx_packet *np, osi_socket socket,
             */
            if ((rx_BusyThreshold > 0) && (rx_nWaiting > rx_BusyThreshold)) {
                struct rx_packet *tp;
-               
+
                rxi_CallError(call, rx_BusyError);
                tp = rxi_SendCallAbort(call, np, 1, 0);
                MUTEX_EXIT(&call->lock);
@@ -2960,7 +2960,7 @@ rxi_ReceivePacket(struct rx_packet *np, osi_socket socket,
            rxi_ResetCall(call, 0);
            *call->callNumber = np->header.callNumber;
 #ifdef RXDEBUG
-           if (np->header.callNumber == 0) 
+           if (np->header.callNumber == 0)
                dpf(("RecPacket call 0 %d %s: %x.%u.%u.%u.%u.%u.%u flags %d, packet %"AFS_PTR_FMT" resend %d.%06d len %d",
                       np->header.serial, rx_packetTypes[np->header.type - 1], ntohl(conn->peer->host), ntohs(conn->peer->port),
                       np->header.serial, np->header.epoch, np->header.cid, np->header.callNumber, np->header.seq,
@@ -3044,7 +3044,7 @@ rxi_ReceivePacket(struct rx_packet *np, osi_socket socket,
             * traversing the tq in rxi_Start sending packets out because
             * packets may move to the freePacketQueue as result of being here!
             * So we drop these packets until we're safely out of the
-            * traversing. Really ugly! 
+            * traversing. Really ugly!
             * For fine grain RX locking, we set the acked field in the
             * packets and let rxi_Start remove them from the transmit queue.
             */
@@ -3074,7 +3074,7 @@ rxi_ReceivePacket(struct rx_packet *np, osi_socket socket,
                /* XXX I'm not sure this is exactly right, since tfirst **IS**
                 * XXX unacknowledged.  I think that this is off-by-one, but
                 * XXX I don't dare change it just yet, since it will
-                * XXX interact badly with the server-restart detection 
+                * XXX interact badly with the server-restart detection
                 * XXX code in receiveackpacket.  */
                if (ntohl(rx_GetInt32(np, FIRSTACKOFFSET)) < call->tfirst) {
                     if (rx_stats_active)
@@ -3099,7 +3099,7 @@ rxi_ReceivePacket(struct rx_packet *np, osi_socket socket,
      * so this will be quite important with very large window sizes.
      * Skew is checked against 0 here to avoid any dependence on the type of
      * inPacketSkew (which may be unsigned).  In C, -1 > (unsigned) 0 is always
-     * true! 
+     * true!
      * The inPacketSkew should be a smoothed running value, not just a maximum.  MTUXXX
      * see CalculateRoundTripTime for an example of how to keep smoothed values.
      * I think using a beta of 1/8 is probably appropriate.  93.04.21
@@ -3161,7 +3161,7 @@ rxi_ReceivePacket(struct rx_packet *np, osi_socket socket,
         * traversing the tq in rxi_Start sending packets out because
         * packets may move to the freePacketQueue as result of being
         * here! So we drop these packets until we're safely out of the
-        * traversing. Really ugly! 
+        * traversing. Really ugly!
         * For fine grain RX locking, we set the acked field in the packets
         * and let rxi_Start remove the packets from the transmit queue.
         */
@@ -3303,7 +3303,7 @@ rxi_CheckReachEvent(struct rxevent *event, void *arg1, void *arg2)
            if (!conn->checkReachEvent) {
                conn->refCount++;
                conn->checkReachEvent =
-                   rxevent_PostNow(&when, &now, rxi_CheckReachEvent, conn, 
+                   rxevent_PostNow(&when, &now, rxi_CheckReachEvent, conn,
                                    NULL);
            }
            MUTEX_EXIT(&conn->conn_data_lock);
@@ -3378,7 +3378,7 @@ rxi_ReceiveDataPacket(struct rx_call *call,
     int newPackets = 0;
     int didHardAck = 0;
     int haveLast = 0;
-    afs_uint32 seq; 
+    afs_uint32 seq;
     afs_uint32 serial=0, flags=0;
     int isFirst;
     struct rx_packet *tnp;
@@ -3634,7 +3634,7 @@ rxi_ReceiveDataPacket(struct rx_call *call,
                }
            }
 
-           /* We need to send an ack of the packet is out of sequence, 
+           /* We need to send an ack of the packet is out of sequence,
             * or if an ack was requested by the peer. */
            if (seq != prev + 1 || missing) {
                ackNeeded = RX_ACK_OUT_OF_SEQUENCE;
@@ -3840,7 +3840,7 @@ rxi_ReceiveAckPacket(struct rx_call *call, struct rx_packet *np,
     nAcks = MIN((unsigned)nbytes, (unsigned)ap->nAcks);
     first = ntohl(ap->firstPacket);
     serial = ntohl(ap->serial);
-    /* temporarily disabled -- needs to degrade over time 
+    /* temporarily disabled -- needs to degrade over time
      * skew = ntohs(ap->maxSkew); */
 
     /* Ignore ack packets received out of order */
@@ -3901,14 +3901,14 @@ rxi_ReceiveAckPacket(struct rx_call *call, struct rx_packet *np,
 
        len = _snprintf(msg, sizeof(msg),
                        "tid[%d] RACK: reason %s serial %u previous %u seq %u skew %d first %u acks %u space %u ",
-                        GetCurrentThreadId(), rx_ack_reason(ap->reason), 
+                        GetCurrentThreadId(), rx_ack_reason(ap->reason),
                         ntohl(ap->serial), ntohl(ap->previousPacket),
-                        (unsigned int)np->header.seq, (unsigned int)skew, 
+                        (unsigned int)np->header.seq, (unsigned int)skew,
                         ntohl(ap->firstPacket), ap->nAcks, ntohs(ap->bufferSpace) );
        if (nAcks) {
            int offset;
 
-           for (offset = 0; offset < nAcks && len < sizeof(msg); offset++) 
+           for (offset = 0; offset < nAcks && len < sizeof(msg); offset++)
                msg[len++] = (ap->acks[offset] == RX_ACK_TYPE_NACK ? '-' : '*');
        }
        msg[len++]='\n';
@@ -3958,7 +3958,7 @@ rxi_ReceiveAckPacket(struct rx_call *call, struct rx_packet *np,
         * packets (osi_NetSend) we drop all acks while we're traversing the tq
         * in rxi_Start sending packets out because packets may move to the
         * freePacketQueue as result of being here! So we drop these packets until
-        * we're safely out of the traversing. Really ugly! 
+        * we're safely out of the traversing. Really ugly!
         * To make it even uglier, if we're using fine grain locking, we can
         * set the ack bits in the packets and have rxi_Start remove the packets
         * when it's done transmitting.
@@ -4058,9 +4058,9 @@ rxi_ReceiveAckPacket(struct rx_call *call, struct rx_packet *np,
             backedOff = 1;
         }
 
-       /* If packet isn't yet acked, and it has been transmitted at least 
-        * once, reset retransmit time using latest timeout 
-        * ie, this should readjust the retransmit timer for all outstanding 
+       /* If packet isn't yet acked, and it has been transmitted at least
+        * once, reset retransmit time using latest timeout
+        * ie, this should readjust the retransmit timer for all outstanding
         * packets...  So we don't just retransmit when we should know better*/
 
        if (!(tp->flags & RX_PKTFLAG_ACKED) && !clock_IsZero(&tp->retryTime)) {
@@ -4094,7 +4094,7 @@ rxi_ReceiveAckPacket(struct rx_call *call, struct rx_packet *np,
     if (np->length >= rx_AckDataSize(ap->nAcks) + 2 * sizeof(afs_int32)) {
        afs_uint32 tSize;
 
-       /* If the ack packet has a "recommended" size that is less than 
+       /* If the ack packet has a "recommended" size that is less than
         * what I am using now, reduce my size to match */
        rx_packetread(np, rx_AckDataSize(ap->nAcks) + (int)sizeof(afs_int32),
                      (int)sizeof(afs_int32), &tSize);
@@ -4109,7 +4109,7 @@ rxi_ReceiveAckPacket(struct rx_call *call, struct rx_packet *np,
        tSize = rxi_AdjustMaxMTU(peer->natMTU, tSize);
 
        /* sanity check - peer might have restarted with different params.
-        * If peer says "send less", dammit, send less...  Peer should never 
+        * If peer says "send less", dammit, send less...  Peer should never
         * be unable to accept packets of the size that prior AFS versions would
         * send without asking.  */
        if (peer->maxMTU != tSize) {
@@ -4149,7 +4149,7 @@ rxi_ReceiveAckPacket(struct rx_call *call, struct rx_packet *np,
                          sizeof(afs_int32), &tSize);
            tSize = (afs_uint32) ntohl(tSize);
            /*
-            * As of AFS 3.5 we set the send window to match the receive window. 
+            * As of AFS 3.5 we set the send window to match the receive window.
             */
            if (tSize < call->twind) {
                call->twind = tSize;
@@ -4472,7 +4472,7 @@ rxi_AttachServerProc(struct rx_call *call,
            call->flags &= ~RX_CALL_WAIT_PROC;
            if (queue_IsOnQueue(call)) {
                queue_Remove(call);
-                
+
                 MUTEX_ENTER(&rx_waiting_mutex);
                 rx_nWaiting--;
                 MUTEX_EXIT(&rx_waiting_mutex);
@@ -4648,12 +4648,12 @@ rxi_ClearReceiveQueue(struct rx_call *call)
 {
     if (queue_IsNotEmpty(&call->rq)) {
         u_short count;
-        
+
         count = rxi_FreePackets(0, &call->rq);
        rx_packetReclaims += count;
 #ifdef RXDEBUG_PACKET
         call->rqc -= count;
-        if ( call->rqc != 0 ) 
+        if ( call->rqc != 0 )
             dpf(("rxi_ClearReceiveQueue call %"AFS_PTR_FMT" rqc %u != 0", call, call->rqc));
 #endif
        call->flags &= ~(RX_CALL_RECEIVE_DONE | RX_CALL_HAVE_LAST);
@@ -4892,7 +4892,7 @@ rxi_ResetCall(struct rx_call *call, int newcall)
 
     rxi_ClearReceiveQueue(call);
     /* why init the queue if you just emptied it? queue_Init(&call->rq); */
-    
+
     if (call->currentPacket) {
         call->currentPacket->flags &= ~RX_PKTFLAG_CP;
         call->currentPacket->flags |= RX_PKTFLAG_IOVQ;
@@ -4905,7 +4905,7 @@ rxi_ResetCall(struct rx_call *call, int newcall)
     call->curlen = call->nLeft = call->nFree = 0;
 
 #ifdef RXDEBUG_PACKET
-    call->iovqc -= 
+    call->iovqc -=
 #endif
         rxi_FreePackets(0, &call->iovq);
 
@@ -4959,7 +4959,7 @@ rxi_ResetCall(struct rx_call *call, int newcall)
        if (queue_IsOnQueue(call)) {
            queue_Remove(call);
            if (flags & RX_CALL_WAIT_PROC) {
-                
+
                 MUTEX_ENTER(&rx_waiting_mutex);
                 rx_nWaiting--;
                 MUTEX_EXIT(&rx_waiting_mutex);
@@ -4992,16 +4992,16 @@ rxi_ResetCall(struct rx_call *call, int newcall)
  * higher level yet (unless, of course, the sender decides to abort
  * the call altogether).  Any of p, seq, serial, pflags, or reason may
  * be set to zero without ill effect.  That is, if they are zero, they
- * will not convey any information.  
+ * will not convey any information.
  * NOW there is a trailer field, after the ack where it will safely be
- * ignored by mundanes, which indicates the maximum size packet this 
+ * ignored by mundanes, which indicates the maximum size packet this
  * host can swallow.  */
 /*
-    struct rx_packet *optionalPacket;  use to send ack (or null) 
-    int        seq;                     Sequence number of the packet we are acking 
-    int        serial;                  Serial number of the packet 
-    int        pflags;                  Flags field from packet header 
-    int        reason;                  Reason an acknowledge was prompted 
+    struct rx_packet *optionalPacket;  use to send ack (or null)
+    int        seq;                     Sequence number of the packet we are acking
+    int        serial;                  Serial number of the packet
+    int        pflags;                  Flags field from packet header
+    int        reason;                  Reason an acknowledge was prompted
 */
 
 struct rx_packet *
@@ -5113,7 +5113,7 @@ rxi_SendAck(struct rx_call *call,
     ap->previousPacket = htonl(call->rprev);   /* Previous packet received */
 
     /* No fear of running out of ack packet here because there can only be at most
-     * one window full of unacknowledged packets.  The window size must be constrained 
+     * one window full of unacknowledged packets.  The window size must be constrained
      * to be less than the maximum ack size, of course.  Also, an ack should always
      * fit into a single packet -- it should not ever be fragmented.  */
     for (offset = 0, queue_Scan(&call->rq, rqp, nxp, rx_packet)) {
@@ -5199,14 +5199,14 @@ rxi_SendAck(struct rx_call *call,
 
        len = _snprintf(msg, sizeof(msg),
                        "tid[%d] SACK: reason %s serial %u previous %u seq %u first %u acks %u space %u ",
-                        GetCurrentThreadId(), rx_ack_reason(ap->reason), 
+                        GetCurrentThreadId(), rx_ack_reason(ap->reason),
                         ntohl(ap->serial), ntohl(ap->previousPacket),
                         (unsigned int)p->header.seq, ntohl(ap->firstPacket),
                         ap->nAcks, ntohs(ap->bufferSpace) );
        if (ap->nAcks) {
            int offset;
 
-           for (offset = 0; offset < ap->nAcks && len < sizeof(msg); offset++) 
+           for (offset = 0; offset < ap->nAcks && len < sizeof(msg); offset++)
                msg[len++] = (ap->acks[offset] == RX_ACK_TYPE_NACK ? '-' : '*');
        }
        msg[len++]='\n';
@@ -5458,11 +5458,11 @@ rxi_SendXmitList(struct rx_call *call, struct rx_packet **list, int len,
 #ifdef RX_ENABLE_LOCKS
 /* Call rxi_Start, below, but with the call lock held. */
 void
-rxi_StartUnlocked(struct rxevent *event, 
+rxi_StartUnlocked(struct rxevent *event,
                  void *arg0, void *arg1, int istack)
 {
     struct rx_call *call = arg0;
-    
+
     MUTEX_ENTER(&call->lock);
     rxi_Start(event, call, arg1, istack);
     MUTEX_EXIT(&call->lock);
@@ -5475,11 +5475,11 @@ rxi_StartUnlocked(struct rxevent *event,
  * better optimized for new packets, the usual case, now that we've
  * got rid of queues of send packets. XXXXXXXXXXX */
 void
-rxi_Start(struct rxevent *event, 
+rxi_Start(struct rxevent *event,
           void *arg0, void *arg1, int istack)
 {
     struct rx_call *call = arg0;
-    
+
     struct rx_packet *p;
     struct rx_packet *nxp;     /* Next pointer for queue_Scan */
     struct rx_peer *peer = call->conn->peer;
@@ -5648,10 +5648,10 @@ rxi_Start(struct rxevent *event,
                    /* Transmit the packet if it needs to be sent. */
                    if (!clock_Lt(&now, &p->retryTime)) {
                        if (nXmitPackets == maxXmitPackets) {
-                           rxi_SendXmitList(call, xmitList, nXmitPackets, 
-                                            istack, &now, &retryTime, 
+                           rxi_SendXmitList(call, xmitList, nXmitPackets,
+                                            istack, &now, &retryTime,
                                             resending);
-                           osi_Free(xmitList, maxXmitPackets * 
+                           osi_Free(xmitList, maxXmitPackets *
                                     sizeof(struct rx_packet *));
                            goto restart;
                        }
@@ -5777,12 +5777,12 @@ rxi_Start(struct rxevent *event,
 #ifdef RX_ENABLE_LOCKS
                        CALL_HOLD(call, RX_CALL_REFCOUNT_RESEND);
                        call->resendEvent =
-                           rxevent_PostNow2(&retryTime, &usenow, 
+                           rxevent_PostNow2(&retryTime, &usenow,
                                             rxi_StartUnlocked,
                                             (void *)call, 0, istack);
 #else /* RX_ENABLE_LOCKS */
                        call->resendEvent =
-                           rxevent_PostNow2(&retryTime, &usenow, rxi_Start, 
+                           rxevent_PostNow2(&retryTime, &usenow, rxi_Start,
                                             (void *)call, 0, istack);
 #endif /* RX_ENABLE_LOCKS */
                    }
@@ -5917,7 +5917,7 @@ rxi_CheckCall(struct rx_call *call)
 #endif
 #endif
                );
-           
+
            if (ire && ire->ire_max_frag > 0)
                rxi_SetPeerMtu(NULL, conn->peer->host, 0,
                               ire->ire_max_frag);
@@ -6124,7 +6124,7 @@ rxi_KeepAliveEvent(struct rxevent *event, void *arg1, void *dummy)
     conn = call->conn;
     if ((now - call->lastSendTime) > conn->secondsUntilPing) {
        /* Don't try to send keepalives if there is unacknowledged data */
-       /* the rexmit code should be good enough, this little hack 
+       /* the rexmit code should be good enough, this little hack
         * doesn't quite work XXX */
        (void)rxi_SendAck(call, NULL, 0, RX_ACK_PING, 0);
     }
@@ -6241,7 +6241,7 @@ rxi_SendDelayedConnAbort(struct rxevent *event,
                         void *arg1, void *unused)
 {
     struct rx_connection *conn = arg1;
-    
+
     afs_int32 error;
     struct rx_packet *packet;
 
@@ -6263,11 +6263,11 @@ rxi_SendDelayedConnAbort(struct rxevent *event,
 /* This routine is called to send call abort messages
  * that have been delayed to throttle looping clients. */
 void
-rxi_SendDelayedCallAbort(struct rxevent *event, 
+rxi_SendDelayedCallAbort(struct rxevent *event,
                         void *arg1, void *dummy)
 {
     struct rx_call *call = arg1;
-    
+
     afs_int32 error;
     struct rx_packet *packet;
 
@@ -6291,11 +6291,11 @@ rxi_SendDelayedCallAbort(struct rxevent *event,
  * issues a challenge to the client, which is obtained from the
  * security object associated with the connection */
 void
-rxi_ChallengeEvent(struct rxevent *event, 
+rxi_ChallengeEvent(struct rxevent *event,
                   void *arg0, void *arg1, int tries)
 {
     struct rx_connection *conn = arg0;
-    
+
     conn->challengeEvent = NULL;
     if (RXS_CheckAuthentication(conn->securityObject, conn) != 0) {
        struct rx_packet *packet;
@@ -6453,7 +6453,7 @@ rxi_ComputeRoundTripTime(struct rx_packet *p,
     } else {
        /* I don't have a stored RTT so I start with this value.  Since I'm
         * probably just starting a call, and will be pushing more data down
-        * this, I expect congestion to increase rapidly.  So I fudge a 
+        * this, I expect congestion to increase rapidly.  So I fudge a
         * little, and I set deviance to half the rtt.  In practice,
         * deviance tends to approach something a little less than
         * half the smoothed rtt. */
@@ -6827,7 +6827,7 @@ rxi_ComputeRate(struct rx_peer *peer, struct rx_call *call,
             peer->timeout.sec, peer->timeout.usec, peer->smRtt,
             peer->packetSize));
       peer->maxWindow = minTime;
-       elide... call->twind = minTime; 
+       elide... call->twind = minTime;
     }
 */
 
@@ -6929,7 +6929,7 @@ rxi_DebugPrint(char *format, ...)
     va_end(ap);
 #else
     struct clock now;
-    
+
     va_start(ap, format);
 
     clock_GetTime(&now);
@@ -7135,20 +7135,20 @@ MakeDebugCall(osi_socket socket, afs_uint32 remoteAddr, afs_uint16 remotePort,
            tv_delta.tv_sec = tv_wake.tv_sec;
            tv_delta.tv_usec = tv_wake.tv_usec;
            gettimeofday(&tv_now, 0);
-           
+
            if (tv_delta.tv_usec < tv_now.tv_usec) {
                /* borrow */
                tv_delta.tv_usec += 1000000;
                tv_delta.tv_sec--;
            }
            tv_delta.tv_usec -= tv_now.tv_usec;
-           
+
            if (tv_delta.tv_sec < tv_now.tv_sec) {
                /* time expired */
                break;
            }
            tv_delta.tv_sec -= tv_now.tv_sec;
-           
+
 #ifdef AFS_NT40_ENV
            code = select(0, &imask, 0, 0, &tv_delta);
 #else /* AFS_NT40_ENV */
@@ -7160,7 +7160,7 @@ MakeDebugCall(osi_socket socket, afs_uint32 remoteAddr, afs_uint16 remotePort,
                code =
                    recvfrom(socket, tbuffer, sizeof(tbuffer), 0,
                             (struct sockaddr *)&faddr, &faddrLen);
-               
+
                if (code > 0) {
                    memcpy(&theader, tbuffer, sizeof(struct rx_header));
                    if (counter == ntohl(theader.callNumber))
@@ -7177,7 +7177,7 @@ MakeDebugCall(osi_socket socket, afs_uint32 remoteAddr, afs_uint16 remotePort,
        }
        waitTime <<= 1;
     }
-    
+
  success:
     code -= sizeof(struct rx_header);
     if (code > outputLength)
@@ -7458,7 +7458,7 @@ rx_GetServerPeers(osi_socket socket, afs_uint32 remoteAddr,
     return rc;
 }
 
-afs_int32 
+afs_int32
 rx_GetLocalPeers(afs_uint32 peerHost, afs_uint16 peerPort,
                struct rx_debugPeer * peerStats)
 {
@@ -7467,7 +7467,7 @@ rx_GetLocalPeers(afs_uint32 peerHost, afs_uint16 peerPort,
        afs_uint32 hashValue = PEER_HASH(peerHost, peerPort);
 
        MUTEX_ENTER(&rx_peerHashTable_lock);
-       for(tp = rx_peerHashTable[hashValue]; 
+       for(tp = rx_peerHashTable[hashValue];
              tp != NULL; tp = tp->next) {
                if (tp->host == peerHost)
                        break;
@@ -8759,8 +8759,8 @@ int rx_DumpCalls(FILE *outputFile, char *cookie)
                 "\r\n",
                 cookie, c, c->call_id, (afs_uint32)c->state, (afs_uint32)c->mode, c->conn, c->conn?c->conn->epoch:0, c->conn?c->conn->cid:0,
                 c->callNumber?*c->callNumber:0, c->conn?c->conn->flags:0, c->flags,
-                (afs_uint32)c->rqc, (afs_uint32)rqc, (afs_uint32)c->tqc, (afs_uint32)tqc, (afs_uint32)c->iovqc, (afs_uint32)iovqc, 
-                (afs_uint32)c->localStatus, (afs_uint32)c->remoteStatus, c->error, c->timeout, 
+                (afs_uint32)c->rqc, (afs_uint32)rqc, (afs_uint32)c->tqc, (afs_uint32)tqc, (afs_uint32)c->iovqc, (afs_uint32)iovqc,
+                (afs_uint32)c->localStatus, (afs_uint32)c->remoteStatus, c->error, c->timeout,
                 c->resendEvent?1:0, c->timeoutEvent?1:0, c->keepAliveEvent?1:0, c->delayedAckEvent?1:0, c->delayedAbortEvent?1:0,
                 c->abortCode, c->abortCount, c->lastSendTime, c->lastReceiveTime, c->lastSendData
 #ifdef RX_ENABLE_LOCKS
index 2961b80169770a605b128118f8331aea3dbcbe47..f751030371d158e8440937fb86246a90b3230c12 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -223,7 +223,7 @@ returned with an error code of RX_CALL_DEAD ( transient error ) */
 
 #define rx_PutConnection(conn) rx_DestroyConnection(conn)
 
-/* A connection is an authenticated communication path, allowing 
+/* A connection is an authenticated communication path, allowing
    limited multiple asynchronous conversations. */
 #ifdef KDUMP_RX_LOCK
 struct rx_connection_rx_lock {
@@ -469,8 +469,8 @@ struct rx_call {
      * The following fields are accessed while the call is unlocked.
      * These fields are used by the caller/server thread to marshall
      * and unmarshall RPC data. The only time they may be changed by
-     * other threads is when the RX_CALL_IOVEC_WAIT flag is set. 
-     * 
+     * other threads is when the RX_CALL_IOVEC_WAIT flag is set.
+     *
      * NOTE: Be sure that these fields start and end on a double
      *       word boundary. Otherwise threads that are changing
      *       adjacent fields will cause problems.
@@ -562,7 +562,7 @@ struct rx_call {
     short refCDebug[RX_CALL_REFCOUNT_MAX];
 #endif                         /* RX_REFCOUNT_CHECK */
 
-    /* 
+    /*
      * iov, iovNBytes, iovMax, and iovNext are set in rxi_ReadvProc()
      * and adjusted by rxi_FillReadVec().  iov does not own the buffers
      * it refers to.  The buffers belong to the packets stored in iovq.
@@ -685,7 +685,7 @@ struct rx_ackPacket {
 #define        RX_ACK_PING             6       /* This is a keep-alive ack */
 #define        RX_ACK_PING_RESPONSE    7       /* Ack'ing because we were pinged */
 #define        RX_ACK_DELAY            8       /* Ack generated since nothing has happened since receiving packet */
-#define RX_ACK_IDLE             9      /* Similar to RX_ACK_DELAY, but can 
+#define RX_ACK_IDLE             9      /* Similar to RX_ACK_DELAY, but can
                                         * be used to compute RTT */
 #define RX_ACK_MTU             -1       /* will be rewritten to ACK_PING */
 
@@ -754,7 +754,7 @@ struct rx_securityObjectStats {
 
 /* Configuration settings */
 
-/* Enum for storing configuration variables which can be set via the 
+/* Enum for storing configuration variables which can be set via the
  * SetConfiguration method in the rx_securityClass, below
  */
 
@@ -1167,7 +1167,7 @@ extern int rx_DumpCalls(FILE *outputFile, char *cookie);
         object--; \
         MUTEX_EXIT(&mutex); \
     } while(0)
-#endif 
+#endif
 
 #endif /* _RX_   End of rx.h */
 
index 08385f91b27496eef78f198b6457d3f5fdb3f7a0..572f64d36e46022bde1ee35621d2c56769020e8f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index bef0f92acdad96eeb373db6fa27946109defeb3f..049d002292a837c86bec64227b1d565ab25b5b2a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index acad9c201f3854f423e20f33340f0969b13aa57e..1a371e76f2c1f7be43a9b77877afd0d04550107c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -49,7 +49,7 @@ clock_Init(void)
        exit(1);
     }
     clockInitialized = 1;
-    
+
     clock_UpdateTime();
 }
 
index 887d9e991268e3e7ef5db8e0fda7db1ed10ba29a..d62420408326c7af8e407313c42cae5a08adb729 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -257,7 +257,7 @@ rx_ReleaseCachedConnection(struct rx_connection *conn)
            cacheConn->inUse--;
            /*
             * check to see if the connection is in error.
-            * If it is, mark its cache entry so it won't be 
+            * If it is, mark its cache entry so it won't be
             * given out subsequently.  If nobody is using it, delete
             * it from the cache
             */
index b0a06d4e6c5c3c815b43f4c5cc1f34253bc9cc24..f381e115261243322b9d919d987fa0b3df79f88e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -123,11 +123,11 @@ rxevent_adjTimes(struct clock *adjTime)
     int nAdjusted = 0;
     struct rxepoch *qep, *nqep;
     struct rxevent *qev, *nqev;
-    
+
     for (queue_Scan(&rxepoch_queue, qep, nqep, rxepoch)) {
        for (queue_Scan(&qep->events, qev, nqev, rxevent)) {
            if (clock_Gt(&qev->eventTime, adjTime)) {
-               clock_Sub(&qev->eventTime, adjTime); 
+               clock_Sub(&qev->eventTime, adjTime);
                nAdjusted++;
            }
        }
@@ -212,8 +212,8 @@ rxepoch_Allocate(struct clock *when)
  * units. */
 
 static struct rxevent *
-_rxevent_Post(struct clock *when, struct clock *now, 
-             void (*func) (struct rxevent *, void *, void *, int), 
+_rxevent_Post(struct clock *when, struct clock *now,
+             void (*func) (struct rxevent *, void *, void *, int),
              void *arg, void *arg1, int arg2, int newargs)
 {
     struct rxevent *ev, *evqe, *evqpr;
@@ -344,20 +344,20 @@ _rxevent_Post(struct clock *when, struct clock *now,
 }
 
 struct rxevent *
-rxevent_Post(struct clock *when, 
-            void (*func) (struct rxevent *, void *, void *), 
+rxevent_Post(struct clock *when,
+            void (*func) (struct rxevent *, void *, void *),
             void *arg, void *arg1)
 {
     struct clock now;
     clock_Zero(&now);
-    return _rxevent_Post(when, &now, 
+    return _rxevent_Post(when, &now,
                         (void (*)(struct rxevent *, void *, void *, int))func,
                         arg, arg1, 0, 0);
 }
 
 struct rxevent *
-rxevent_Post2(struct clock *when, 
-             void (*func) (struct rxevent *, void *, void *, int), 
+rxevent_Post2(struct clock *when,
+             void (*func) (struct rxevent *, void *, void *, int),
              void *arg, void *arg1, int arg2)
 {
     struct clock now;
@@ -366,18 +366,18 @@ rxevent_Post2(struct clock *when,
 }
 
 struct rxevent *
-rxevent_PostNow(struct clock *when, struct clock *now, 
-               void (*func) (struct rxevent *, void *, void *), 
+rxevent_PostNow(struct clock *when, struct clock *now,
+               void (*func) (struct rxevent *, void *, void *),
                void *arg, void *arg1)
 {
-    return _rxevent_Post(when, now, 
+    return _rxevent_Post(when, now,
                         (void (*)(struct rxevent *, void *, void *, int))func,
                         arg, arg1, 0, 0);
 }
 
 struct rxevent *
-rxevent_PostNow2(struct clock *when, struct clock *now, 
-                 void (*func) (struct rxevent *, void *, void *, int), 
+rxevent_PostNow2(struct clock *when, struct clock *now,
+                 void (*func) (struct rxevent *, void *, void *, int),
                 void *arg, void *arg1, int arg2)
 {
     return _rxevent_Post(when, now, func, arg, arg1, arg2, 1);
index cf8e6a4354eccfe672d9501f5669b5d45b047a00..1d18678bf8dd795bfe3c3ae4d48f4959b443d104 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
 #include "rx_clock.h"
 #endif /* KERNEL */
 
-/* An event is something that will happen at (or after) a specified clock 
- * time, unless cancelled prematurely.  The user routine (*func)() is called 
- * with arguments (event, arg, arg1) when the event occurs.  
- * Warnings:  
- *   (1) The user supplied routine should NOT cause process preemption.   
- *   (2) The event passed to the user is still on the event queue at that 
- *       time.  The user must not remove (event_Cancel) it explicitly, but 
- *       the user may remove or schedule any OTHER event at this time. 
+/* An event is something that will happen at (or after) a specified clock
+ * time, unless cancelled prematurely.  The user routine (*func)() is called
+ * with arguments (event, arg, arg1) when the event occurs.
+ * Warnings:
+ *   (1) The user supplied routine should NOT cause process preemption.
+ *   (2) The event passed to the user is still on the event queue at that
+ *       time.  The user must not remove (event_Cancel) it explicitly, but
+ *       the user may remove or schedule any OTHER event at this time.
  */
 
 struct rxevent {
     struct rx_queue junk;      /* Events are queued */
     struct clock eventTime;    /* When this event times out (in clock.c units) */
     union {
-       void (*oldfunc) (struct rxevent *, void *, void *); 
+       void (*oldfunc) (struct rxevent *, void *, void *);
        void (*newfunc) (struct rxevent *, void *, void *, int);
     } func;                    /* Function to call when this expires */
     void *arg;                 /* Argument to the function */
@@ -54,9 +54,9 @@ struct rxepoch {
     struct rx_queue events;    /* list of events for this epoch */
 };
 
-/* Some macros to make macros more reasonable (this allows a block to be 
- * used within a macro which does not cause if statements to screw up).   
- * That is, you can use "if (...) macro_name(); else ...;" without 
+/* Some macros to make macros more reasonable (this allows a block to be
+ * used within a macro which does not cause if statements to screw up).
+ * That is, you can use "if (...) macro_name(); else ...;" without
  * having things blow up on the semi-colon. */
 
 #ifndef BEGIN
@@ -64,9 +64,9 @@ struct rxepoch {
 #define END } while(0)
 #endif
 
-/* This routine must be called to initialize the event package.  
- * nEvents is the number of events to allocate in a batch whenever 
- * more are needed.  If this is 0, a default number (10) will be 
+/* This routine must be called to initialize the event package.
+ * nEvents is the number of events to allocate in a batch whenever
+ * more are needed.  If this is 0, a default number (10) will be
  * allocated. */
 #if 0
 extern void rxevent_Init( /* nEvents, scheduler */ );
@@ -77,15 +77,15 @@ extern void rxevent_Init( /* nEvents, scheduler */ );
 extern void exevent_NextEvent( /* when */ );
 #endif
 
-/* Arrange for the indicated event at the appointed time.  When is a 
+/* Arrange for the indicated event at the appointed time.  When is a
  * "struct clock", in the clock.c time base */
 #if 0
 extern struct rxevent *rxevent_Post( /* when, func, arg, arg1 */ );
 #endif
 
-/* Remove the indicated event from the event queue.  The event must be 
- * pending.  Also see the warning, above.  The event pointer supplied 
- * is zeroed. 
+/* Remove the indicated event from the event queue.  The event must be
+ * pending.  Also see the warning, above.  The event pointer supplied
+ * is zeroed.
  */
 #ifdef RX_ENABLE_LOCKS
 #ifdef RX_REFCOUNT_CHECK
@@ -115,10 +115,10 @@ extern struct rxevent *rxevent_Post( /* when, func, arg, arg1 */ );
        END
 #endif /* RX_ENABLE_LOCKS */
 
-/* The actions specified for each event that has reached the current clock 
- * time will be taken.  The current time returned by GetTime is used 
- * (warning:  this may be an old time if the user has not called 
- * clock_NewTime) 
+/* The actions specified for each event that has reached the current clock
+ * time will be taken.  The current time returned by GetTime is used
+ * (warning:  this may be an old time if the user has not called
+ * clock_NewTime)
  */
 #if 0
 extern int rxevent_RaiseEvents();
index ea8fa598cd00c41352ace230e64522f597a3c054..0859316886eddc4b5e6977d01687ce229e2501b5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -152,7 +152,7 @@ rxi_IsLoopbackIface(struct sockaddr_in *a, unsigned long flags)
     return 0;
 }
 
-/* this function returns the total number of interface addresses 
+/* this function returns the total number of interface addresses
 ** the buffer has to be passed in by the caller
 */
 #if defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
@@ -347,7 +347,7 @@ rx_getAllAddrMaskMtu(afs_uint32 addrBuffer[], afs_uint32 maskBuffer[],
                           a->sin_addr.s_addr));
                } else {
                    struct ifreq ifr;
-                   
+
                    addrBuffer[count] = a->sin_addr.s_addr;
                    a = (struct sockaddr_in *) info.rti_info[RTAX_NETMASK];
                    if (a)
@@ -420,9 +420,9 @@ rx_getAllAddr_internal(afs_uint32 buffer[], int maxSize, int loopbacks)
         cp += sizeof(ifr->ifr_name) + MAX(a->sin_len, sizeof(*a))
 #endif
 #endif
-       ) 
+       )
 #else
-    for (i = 0; i < len; ++i) 
+    for (i = 0; i < len; ++i)
 #endif
     {
 #if    defined(AFS_AIX41_ENV) || defined (AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
@@ -445,7 +445,7 @@ rx_getAllAddr_internal(afs_uint32 buffer[], int maxSize, int loopbacks)
                 if (rxi_IsLoopbackIface(a, ifr->ifr_flags))
                    continue;   /* skip loopback address as well. */
             } else {
-                if (ifr->ifr_flags & IFF_LOOPBACK) 
+                if (ifr->ifr_flags & IFF_LOOPBACK)
                    continue;   /* skip aliased loopbacks as well. */
            }
            if (count >= maxSize)       /* no more space */
index dd4e2cd718ce6055bad4c45c4bac054255c71e37..11128f5c1436d06d5c8f57b03ed1ab0ff2c54936 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -33,7 +33,7 @@
 #define EXT2 __declspec(dllexport)
 #else
 #define EXT
-#define EXT2 
+#define EXT2
 #endif
 
 #ifdef KERNEL
index 68c4eab69666c7c8f9630aa2e0b6757435279965..d546ab2122d3b49bb143535e7e7536d6ec99b3d5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -107,7 +107,7 @@ void  rx_SetUdpBufSize(int x);
 /*
  * Variables to control RX overload management. When the number of calls
  * waiting for a thread exceed the threshold, new calls are aborted
- * with the busy error. 
+ * with the busy error.
  */
 EXT int rx_BusyThreshold GLOBALSINIT(-1);      /* default is disabled */
 EXT int rx_BusyError GLOBALSINIT(-1);
@@ -121,7 +121,7 @@ EXT int rx_BusyError GLOBALSINIT(-1);
 #define        RX_REAP_TIME    60      /* Check for tossable connections every 60 seconds */
 #endif
 
-#define RX_FAST_ACK_RATE 1     /* as of 3.4, ask for an ack every 
+#define RX_FAST_ACK_RATE 1     /* as of 3.4, ask for an ack every
                                 * other packet. */
 
 EXT int rx_minPeerTimeout GLOBALSINIT(350); /* in milliseconds */
@@ -174,7 +174,7 @@ typedef struct rx_ts_info_t {
         struct rx_queue queue;
         int len;                /* local queue length */
         int delta;              /* number of new packets alloc'd locally since last sync w/ global queue */
-        
+
         /* FPQ stats */
         int checkin_ops;
         int checkin_xfer;
@@ -262,7 +262,7 @@ EXT void rxi_FlushLocalPacketsTSFPQ(void); /* flush all thread-local packets to
  * also set minimum values of 15 and 3.  Given the algorithms, the number of buffers allocated
  * by each call to AllocPacketBufs() will increase indefinitely without a cap on the transfer
  * glob size.  A cap of 64 is selected because that will produce an allocation of greater than
- * three times that amount which is greater than half of ncalls * maxReceiveWindow. 
+ * three times that amount which is greater than half of ncalls * maxReceiveWindow.
  * Must be called under rx_packets_mutex.
  */
 #define RX_TS_FPQ_COMPUTE_LIMITS \
@@ -275,14 +275,14 @@ EXT void rxi_FlushLocalPacketsTSFPQ(void); /* flush all thread-local packets to
         rx_TSFPQLocalMax = newmax; \
         rx_TSFPQGlobSize = newglob; \
     } while(0)
-/* record the number of packets allocated by this thread 
+/* record the number of packets allocated by this thread
  * and stored in the thread local queue */
 #define RX_TS_FPQ_LOCAL_ALLOC(rx_ts_info_p,num_alloc) \
     do { \
         (rx_ts_info_p)->_FPQ.lalloc_ops++; \
         (rx_ts_info_p)->_FPQ.lalloc_xfer += num_alloc; \
     } while (0)
-/* record the number of packets allocated by this thread 
+/* record the number of packets allocated by this thread
  * and stored in the global queue */
 #define RX_TS_FPQ_GLOBAL_ALLOC(rx_ts_info_p,num_alloc) \
     do { \
@@ -400,8 +400,8 @@ EXT void rxi_FlushLocalPacketsTSFPQ(void); /* flush all thread-local packets to
         (rx_ts_info_p)->_FPQ.checkin_xfer++; \
     } while(0)
 /* check multiple packets into the thread-specific free packet queue */
-/* num_transfer must equal length of (q); it is not a means of checking 
- * in part of (q).  passing num_transfer just saves us instructions 
+/* num_transfer must equal length of (q); it is not a means of checking
+ * in part of (q).  passing num_transfer just saves us instructions
  * since caller already knows length of (q) for other reasons */
 #define RX_TS_FPQ_QCHECKIN(rx_ts_info_p,num_transfer,q) \
     do { \
@@ -565,7 +565,7 @@ EXT int rxdebug_active;
 #define dpf(args) FSLog args
 #else
 #define dpf(args) do { if (rx_debugFile) rxi_DebugPrint args; } while (0)
-#endif 
+#endif
 #endif
 #define rx_Log_event rxevent_debugFile
 
@@ -606,7 +606,7 @@ EXT int rxi_callAbortDelay GLOBALSINIT(3000);
 #if defined(AFS_PTHREAD_ENV)
 EXT int rxi_fcfs_thread_num GLOBALSINIT(0);
 EXT pthread_key_t rx_thread_id_key;
-/* keep track of pthread numbers - protected by rx_stats_mutex, 
+/* keep track of pthread numbers - protected by rx_stats_mutex,
  * except in rx_Init() before mutex exists! */
 EXT int rxi_pthread_hinum GLOBALSINIT(0);
 #else
index f14cf271cc4baf73035807653097d74392b9f94c..bd452a7b2bdb780a13c2b47bf30e84bae492c8d1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -660,7 +660,7 @@ rxi_GetIFInfo(void)
                        addrs[i++] = ifinaddr;
                        if (!rx_IsLoopbackAddr(ifinaddr) &&
                            (maxmtu > rx_maxReceiveSize)) {
-                           rx_maxReceiveSize = 
+                           rx_maxReceiveSize =
                                MIN(RX_MAX_PACKET_SIZE, maxmtu);
                            rx_maxReceiveSize =
                                MIN(rx_maxReceiveSize, rx_maxReceiveSizeUser);
@@ -846,7 +846,7 @@ rxk_NewSocketHost(afs_uint32 ahost, short aport)
     AFS_GUNLOCK();
 #if    defined(AFS_HPUX102_ENV)
 #if     defined(AFS_HPUX110_ENV)
-    /* we need a file associated with the socket so sosend in NetSend 
+    /* we need a file associated with the socket so sosend in NetSend
      * will not fail */
     /* blocking socket */
     code = socreate(AF_INET, &newSocket, SOCK_DGRAM, 0, 0);
@@ -911,7 +911,7 @@ rxk_NewSocketHost(afs_uint32 ahost, short aport)
     freeb(bindnam);
 #else /* AFS_HPUX110_ENV */
 #if defined(AFS_DARWIN80_ENV)
-    { 
+    {
        int buflen = 50000;
        int i,code2;
        for (i=0;i<2;i++) {
@@ -1011,8 +1011,8 @@ rxk_FreeSocket(struct socket *asocket)
     if (asocket->so_fp) {
        struct file *fp = asocket->so_fp;
 #if !defined(AFS_HPUX1123_ENV)
-       /* 11.23 still has falloc, but not FPENTRYFREE ! 
-        * so for now if we shutdown, we will waist a file 
+       /* 11.23 still has falloc, but not FPENTRYFREE !
+        * so for now if we shutdown, we will waist a file
         * structure */
        FPENTRYFREE(fp);
        asocket->so_fp = NULL;
@@ -1120,7 +1120,7 @@ rxk_ReadPacket(osi_socket so, struct rx_packet *p, int *host, int *port)
     } else
        tlen = rlen;
 
-    /* add some padding to the last iovec, it's just to make sure that the 
+    /* add some padding to the last iovec, it's just to make sure that the
      * read doesn't return more data than we expect, and is done to get around
      * our problems caused by the lack of a length field in the rx header. */
     savelen = p->wirevec[p->niovecs - 1].iov_len;
@@ -1186,7 +1186,7 @@ rxk_ReadPacket(osi_socket so, struct rx_packet *p, int *host, int *port)
        return code;
 }
 
-/* rxk_Listener() 
+/* rxk_Listener()
  *
  * Listen for packets on socket. This thread is typically started after
  * rx_Init has called rxi_StartListener(), but nevertheless, ensures that
@@ -1351,7 +1351,7 @@ osi_Panic(char *msg, ...)
     vprintf(msg, ap);
     va_end(ap);
 # ifdef AFS_LINUX20_ENV
-    * ((char *) 0) = 0; 
+    * ((char *) 0) = 0;
 # else
     panic(msg);
 # endif
index bad5ad08d4043977e1de2110f17275d0ebc9f16c..904735f3fabe7d4dcecc1eab77a3802e578b7ec1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index f72a322d9dc80c195a0b3865e32e3a55bc36a6ef..d5223ac0fa478fcf8a4fce5589826250271e71fe 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 060025b29057bfa894949c0ac3d231350def7dd8..fd15de580e9ce353b3034c4a9595c9ca33001403 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 3b4fe46cd3e02fae81f751856c632691627748a6..d3feb08942e9df96ff1d38e057f3edec0911bc35 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a104ce2a37f69accc29dcaced6c8db59f6701c5c..2883849825b2fcdf36da4d01f1bb948384cbaca2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -33,7 +33,7 @@
 #include <unistd.h>
 #endif
 #ifdef AFS_NT40_ENV
-#ifndef EDQUOT 
+#ifndef EDQUOT
 #define EDQUOT WSAEDQUOT
 #endif /* EDQUOT */
 #endif /* AFS_NT40_ENV */
@@ -46,7 +46,7 @@
  */
 
 /*
- * Convert from the local (host) to the standard 
+ * Convert from the local (host) to the standard
  * (network) system error code.
  */
 int
@@ -116,9 +116,9 @@ static const char memZero;
 char *
 osi_alloc(afs_int32 x)
 {
-    /* 
+    /*
      * 0-length allocs may return NULL ptr from osi_kalloc, so we special-case
-     * things so that NULL returned iff an error occurred 
+     * things so that NULL returned iff an error occurred
      */
     if (x == 0)
        return (char *)&memZero;
index 17549031030f01bd097938e13d03c50598a44d42..30493e389e551a736781433b3039d601bbbe16e8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 9ee260f6dabf01980d4a664251683f05070c9994..56b8a8994a81fcef632e65322b3760500b8413d0 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 56e2cc78ad8c11258c72d5d0152b501219412624..2a5ccc45454863e4691abcbe14e2af3dbc184d81 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a62916bca2cfabbc266b1ba93075985a9e802bec..8334057b4521433cf4e7a1dd2e72fc15fb162ed9 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index cb95457b3a0960cc408540cafc3475b98c0ca4c6..bc7d8399d539e3c7a38ef7e40441ff7eee512b57 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1b9dbaf33a635ab75f5d9e047492cc2512decafa..af2219e5dfccf828234d2bbcf4961d256688bcf6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -122,7 +122,7 @@ static int rxi_FreeDataBufsToQueue(struct rx_packet *p,
 */
 
 /* Preconditions:
- *        all packet buffers (iov_base) are integral multiples of 
+ *        all packet buffers (iov_base) are integral multiples of
  *       the word size.
  *        offset is an integral multiple of the word size.
  */
@@ -305,7 +305,7 @@ AllocPacketBufs(int class, int num_pkts, struct rx_queue * q)
     MUTEX_ENTER(&rx_freePktQ_lock);
 
 #ifdef KERNEL
-    for (; (num_pkts > 0) && (rxi_OverQuota2(class,num_pkts)); 
+    for (; (num_pkts > 0) && (rxi_OverQuota2(class,num_pkts));
         num_pkts--, overq++);
 
     if (overq) {
@@ -345,7 +345,7 @@ AllocPacketBufs(int class, int num_pkts, struct rx_queue * q)
 #endif /* KERNEL */
 
     for (i=0, c=queue_First(&rx_freePacketQueue, rx_packet);
-        i < num_pkts; 
+        i < num_pkts;
         i++, c=queue_Next(c, rx_packet)) {
         RX_FPQ_MARK_USED(c);
     }
@@ -462,7 +462,7 @@ rxi_FreePackets(int num_pkts, struct rx_queue *q)
 #endif /* RX_ENABLE_TSFPQ */
 
 /* this one is kind of awful.
- * In rxkad, the packet has been all shortened, and everything, ready for 
+ * In rxkad, the packet has been all shortened, and everything, ready for
  * sending.  All of a sudden, we discover we need some of that space back.
  * This isn't terribly general, because it knows that the packets are only
  * rounded up to the EBS (userdata + security header).
@@ -651,7 +651,7 @@ rxi_MorePacketsTSFPQ(int apackets, int flush_global, int num_keep_local)
         RX_PACKET_IOV_INIT(p);
        p->niovecs = 2;
        RX_TS_FPQ_CHECKIN(rx_ts_info,p);
-       
+
         NETPRI;
         MUTEX_ENTER(&rx_freePktQ_lock);
 #ifdef RXDEBUG_PACKET
@@ -664,7 +664,7 @@ rxi_MorePacketsTSFPQ(int apackets, int flush_global, int num_keep_local)
     }
     rx_ts_info->_FPQ.delta += apackets;
 
-    if (flush_global && 
+    if (flush_global &&
         (num_keep_local < apackets)) {
         NETPRI;
        MUTEX_ENTER(&rx_freePktQ_lock);
@@ -707,7 +707,7 @@ rxi_MorePacketsNoLock(int apackets)
 #ifdef RX_ENABLE_TSFPQ
     RX_TS_INFO_GET(rx_ts_info);
     RX_TS_FPQ_GLOBAL_ALLOC(rx_ts_info,apackets);
-#endif /* RX_ENABLE_TSFPQ */ 
+#endif /* RX_ENABLE_TSFPQ */
 
     for (e = p + apackets; p < e; p++) {
         RX_PACKET_IOV_INIT(p);
@@ -800,9 +800,9 @@ rx_CheckPackets(void)
    In any event, we assume the former, and append the packets to the end
    of the free list.  */
 /* This explanation is bogus.  The free list doesn't remain in any kind of
-   useful order for afs_int32: the packets in use get pretty much randomly scattered 
+   useful order for afs_int32: the packets in use get pretty much randomly scattered
    across all the pages.  In order to permit unused {packets,bufs} to page out, they
-   must be stored so that packets which are adjacent in memory are adjacent in the 
+   must be stored so that packets which are adjacent in memory are adjacent in the
    free list.  An array springs rapidly to mind.
    */
 
@@ -857,7 +857,7 @@ rxi_FreePacketTSFPQ(struct rx_packet *p, int flush_global)
 }
 #endif /* RX_ENABLE_TSFPQ */
 
-/* 
+/*
  * free continuation buffers off a packet into a queue
  *
  * [IN] p      -- packet from which continuation buffers will be freed
@@ -965,7 +965,7 @@ rxi_FreeDataBufsTSFPQ(struct rx_packet *p, afs_uint32 first, int flush_global)
 
 int rxi_nBadIovecs = 0;
 
-/* rxi_RestoreDataBufs 
+/* rxi_RestoreDataBufs
  *
  * Restore the correct sizes to the iovecs. Called when reusing a packet
  * for reading off the wire.
@@ -1105,7 +1105,7 @@ rxi_FreePacket(struct rx_packet *p)
 }
 #endif /* RX_ENABLE_TSFPQ */
 
-/* rxi_AllocPacket sets up p->length so it reflects the number of 
+/* rxi_AllocPacket sets up p->length so it reflects the number of
  * bytes in the packet at this point, **not including** the header.
  * The header is absolutely necessary, besides, this is the way the
  * length field is usually used */
@@ -1166,7 +1166,7 @@ rxi_AllocPacketNoLock(int class)
 
 
     /* have to do this here because rx_FlushWrite fiddles with the iovs in
-     * order to truncate outbound packets.  In the near future, may need 
+     * order to truncate outbound packets.  In the near future, may need
      * to allocate bufs from a static pool here, and/or in AllocSendPacket
      */
     RX_PACKET_IOV_FULLINIT(p);
@@ -1224,7 +1224,7 @@ rxi_AllocPacketNoLock(int class)
 
 
     /* have to do this here because rx_FlushWrite fiddles with the iovs in
-     * order to truncate outbound packets.  In the near future, may need 
+     * order to truncate outbound packets.  In the near future, may need
      * to allocate bufs from a static pool here, and/or in AllocSendPacket
      */
     RX_PACKET_IOV_FULLINIT(p);
@@ -1261,7 +1261,7 @@ rxi_AllocPacketTSFPQ(int class, int pull_global)
     dpf(("Alloc %"AFS_PTR_FMT", class %d\n", p, class));
 
     /* have to do this here because rx_FlushWrite fiddles with the iovs in
-     * order to truncate outbound packets.  In the near future, may need 
+     * order to truncate outbound packets.  In the near future, may need
      * to allocate bufs from a static pool here, and/or in AllocSendPacket
      */
     RX_PACKET_IOV_FULLINIT(p);
@@ -1382,7 +1382,7 @@ rxi_AllocSendPacket(struct rx_call *call, int want)
 }
 
 #ifndef KERNEL
-#ifdef AFS_NT40_ENV     
+#ifdef AFS_NT40_ENV
 /* Windows does not use file descriptors. */
 #define CountFDs(amax) 0
 #else
@@ -1441,7 +1441,7 @@ rxi_ReadPacket(osi_socket socket, struct rx_packet *p, afs_uint32 * host,
     } else
        tlen = rlen;
 
-    /* Extend the last iovec for padding, it's just to make sure that the 
+    /* Extend the last iovec for padding, it's just to make sure that the
      * read doesn't return more data than we expect, and is done to get around
      * our problems caused by the lack of a length field in the rx header.
      * Use the extra buffer that follows the localdata in each packet
@@ -1475,7 +1475,7 @@ rxi_ReadPacket(osi_socket socket, struct rx_packet *p, afs_uint32 * host,
                 ntohs(from.sin_port), nbytes));
        }
        return 0;
-    } 
+    }
 #ifdef RXDEBUG
     else if ((rx_intentionallyDroppedOnReadPer100 > 0)
                && (random() % 100 < rx_intentionallyDroppedOnReadPer100)) {
@@ -1485,14 +1485,14 @@ rxi_ReadPacket(osi_socket socket, struct rx_packet *p, afs_uint32 * host,
        *port = from.sin_port;
 
        dpf(("Dropped %d %s: %x.%u.%u.%u.%u.%u.%u flags %d len %d",
-             p->header.serial, rx_packetTypes[p->header.type - 1], ntohl(*host), ntohs(*port), p->header.serial, 
-             p->header.epoch, p->header.cid, p->header.callNumber, p->header.seq, p->header.flags, 
+             p->header.serial, rx_packetTypes[p->header.type - 1], ntohl(*host), ntohs(*port), p->header.serial,
+             p->header.epoch, p->header.cid, p->header.callNumber, p->header.seq, p->header.flags,
              p->length));
 #ifdef RX_TRIMDATABUFS
        rxi_TrimDataBufs(p, 1);
 #endif
        return 0;
-    } 
+    }
 #endif
     else {
        /* Extract packet header. */
@@ -1506,7 +1506,7 @@ rxi_ReadPacket(osi_socket socket, struct rx_packet *p, afs_uint32 * host,
                 rx_MutexIncrement(rx_stats.packetsRead[p->header.type - 1], rx_stats_mutex);
            /*
             * Try to look up this peer structure.  If it doesn't exist,
-            * don't create a new one - 
+            * don't create a new one -
             * we don't keep count of the bytes sent/received if a peer
             * structure doesn't already exist.
             *
@@ -1530,7 +1530,7 @@ rxi_ReadPacket(osi_socket socket, struct rx_packet *p, afs_uint32 * host,
 #ifdef RX_TRIMDATABUFS
        /* Free any empty packet buffers at the end of this packet */
        rxi_TrimDataBufs(p, 1);
-#endif 
+#endif
        return 1;
     }
 }
@@ -1657,8 +1657,8 @@ cpytoc(mblk_t * mp, int off, int len, char *cp)
 }
 
 /* MTUXXX Supposed to skip <off> bytes and copy <len> bytes,
- * but it doesn't really.  
- * This sucks, anyway, do it like m_cpy.... below 
+ * but it doesn't really.
+ * This sucks, anyway, do it like m_cpy.... below
  */
 static int
 cpytoiovec(mblk_t * mp, int off, int len, struct iovec *iovs,
@@ -1795,7 +1795,7 @@ rxi_ReceiveDebugPacket(struct rx_packet *ap, osi_socket asocket,
     }
 
     rx_packetread(ap, 0, sizeof(struct rx_debugIn), (char *)&tin);
-    /* all done with packet, now set length to the truth, so we can 
+    /* all done with packet, now set length to the truth, so we can
      * reuse this packet */
     rx_computelen(ap, ap->length);
 
@@ -1866,7 +1866,7 @@ rxi_ReceiveDebugPacket(struct rx_packet *ap, osi_socket asocket,
 #endif
 #endif
                MUTEX_ENTER(&rx_connHashTable_lock);
-               /* We might be slightly out of step since we are not 
+               /* We might be slightly out of step since we are not
                 * locking each call, but this is only debugging output.
                 */
                for (tc = rx_connHashTable[i]; tc; tc = tc->next) {
@@ -2228,7 +2228,7 @@ rxi_SendPacket(struct rx_call *call, struct rx_connection *conn,
        }
     }
     MUTEX_EXIT(&conn->conn_data_lock);
-    /* This is so we can adjust retransmit time-outs better in the face of 
+    /* This is so we can adjust retransmit time-outs better in the face of
      * rapidly changing round-trip times.  RTO estimation is not a la Karn.
      */
     if (p->firstSerial == 0) {
@@ -2246,7 +2246,7 @@ rxi_SendPacket(struct rx_call *call, struct rx_connection *conn,
 #endif
 
     /* Get network byte order header */
-    rxi_EncodePacketHeader(p); /* XXX in the event of rexmit, etc, don't need to 
+    rxi_EncodePacketHeader(p); /* XXX in the event of rexmit, etc, don't need to
                                 * touch ALL the fields */
 
     /* Send the packet out on the same socket that related packets are being
@@ -2294,11 +2294,11 @@ rxi_SendPacket(struct rx_call *call, struct rx_connection *conn,
            clock_Addmsec(&(p->retryTime),
                          10 + (((afs_uint32) p->backoff) << 8));
            /* Some systems are nice and tell us right away that we cannot
-            * reach this recipient by returning an error code. 
+            * reach this recipient by returning an error code.
             * So, when this happens let's "down" the host NOW so
             * we don't sit around waiting for this host to timeout later.
             */
-           if (call && 
+           if (call &&
 #ifdef AFS_NT40_ENV
                (code == -1 && WSAGetLastError() == WSAEHOSTUNREACH) || (code == -WSAEHOSTUNREACH)
 #elif defined(AFS_LINUX20_ENV)
@@ -2445,7 +2445,7 @@ rxi_SendPacketList(struct rx_call *call, struct rx_connection *conn,
        /* Pre-increment, to guarantee no zero serial number; a zero
         * serial number means the packet was never sent. */
        p->header.serial = ++serial;
-       /* This is so we can adjust retransmit time-outs better in the face of 
+       /* This is so we can adjust retransmit time-outs better in the face of
         * rapidly changing round-trip times.  RTO estimation is not a la Karn.
         */
        if (p->firstSerial == 0) {
@@ -2463,7 +2463,7 @@ rxi_SendPacketList(struct rx_call *call, struct rx_connection *conn,
 #endif
 
        /* Get network byte order header */
-       rxi_EncodePacketHeader(p);      /* XXX in the event of rexmit, etc, don't need to 
+       rxi_EncodePacketHeader(p);      /* XXX in the event of rexmit, etc, don't need to
                                         * touch ALL the fields */
     }
 
@@ -2505,11 +2505,11 @@ rxi_SendPacketList(struct rx_call *call, struct rx_connection *conn,
                              10 + (((afs_uint32) p->backoff) << 8));
            }
            /* Some systems are nice and tell us right away that we cannot
-            * reach this recipient by returning an error code. 
+            * reach this recipient by returning an error code.
             * So, when this happens let's "down" the host NOW so
             * we don't sit around waiting for this host to timeout later.
             */
-           if (call && 
+           if (call &&
 #ifdef AFS_NT40_ENV
                (code == -1 && WSAGetLastError() == WSAEHOSTUNREACH) || (code == -WSAEHOSTUNREACH)
 #elif defined(AFS_LINUX20_ENV)
@@ -2799,7 +2799,7 @@ rxi_AdjustDgramPackets(int frags, int mtu)
 }
 
 #ifndef KERNEL
-/* 
+/*
  * This function can be used by the Windows Cache Manager
  * to dump the list of all rx packets so that we can determine
  * where the packet leakage is.
@@ -2827,10 +2827,10 @@ int rx_DumpPackets(FILE *outputFile, char *cookie)
 
     for (p = rx_mallocedP; p; p = p->allNextp) {
         RXDPRINTF(RXDPRINTOUT, "%s - packet=0x%p, id=%u, firstSent=%u.%08u, timeSent=%u.%08u, retryTime=%u.%08u, firstSerial=%u, niovecs=%u, flags=0x%x, backoff=%u, length=%u  header: epoch=%u, cid=%u, callNum=%u, seq=%u, serial=%u, type=%u, flags=0x%x, userStatus=%u, securityIndex=%u, serviceId=%u\r\n",
-                cookie, p, p->packetId, p->firstSent.sec, p->firstSent.usec, p->timeSent.sec, p->timeSent.usec, p->retryTime.sec, p->retryTime.usec, 
+                cookie, p, p->packetId, p->firstSent.sec, p->firstSent.usec, p->timeSent.sec, p->timeSent.usec, p->retryTime.sec, p->retryTime.usec,
                 p->firstSerial, p->niovecs, (afs_uint32)p->flags, (afs_uint32)p->backoff, (afs_uint32)p->length,
                 p->header.epoch, p->header.cid, p->header.callNumber, p->header.seq, p->header.serial,
-                (afs_uint32)p->header.type, (afs_uint32)p->header.flags, (afs_uint32)p->header.userStatus, 
+                (afs_uint32)p->header.type, (afs_uint32)p->header.flags, (afs_uint32)p->header.userStatus,
                 (afs_uint32)p->header.securityIndex, (afs_uint32)p->header.serviceId);
 #ifdef AFS_NT40_ENV
         WriteFile(outputFile, output, (DWORD)strlen(output), &zilch, NULL);
index 5f151d82ffd0c89e0dd66a00f3ce7bfe3b04575f..afc6e2403651791139b6e7d3d32ca07b6e43819f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -9,7 +9,7 @@
 
 #ifndef _RX_PACKET_
 #define _RX_PACKET_
-#if defined(AFS_NT40_ENV) 
+#if defined(AFS_NT40_ENV)
 #include "rx_xmit_nt.h"
 #endif
 #ifndef AFS_NT40_ENV
@@ -18,8 +18,8 @@
 /* this file includes the macros and decls which depend on packet
  * format, and related packet manipulation macros.  Note that code
  * which runs at NETPRI should not sleep, or AIX will panic */
-/* There are some assumptions that various code makes -- I'll try to 
- * express them all here: 
+/* There are some assumptions that various code makes -- I'll try to
+ * express them all here:
  * 1.  rx_ReceiveAckPacket assumes that it can get an entire ack
  * contiguous in the first iovec.  As a result, the iovec buffers must
  * be >= sizeof (struct rx_ackpacket)
@@ -31,7 +31,7 @@
  */
 
 
-#if defined(AFS_NT40_ENV) 
+#if defined(AFS_NT40_ENV)
 #ifndef MIN
 #define MIN(a,b)  ((a)<(b)?(a):(b))
 #endif
@@ -52,8 +52,8 @@
 #define        _RX_IPUDP_SIZE          (RX_IP_SIZE + UDP_HDR_SIZE)
 
 /* REMOTE_PACKET_SIZE is currently the same as local.  This is because REMOTE
- * is defined much too generally for my tastes, and includes the case of 
- * multiple class C nets connected with a router within one campus or MAN. 
+ * is defined much too generally for my tastes, and includes the case of
+ * multiple class C nets connected with a router within one campus or MAN.
  * I don't want to make local performance suffer just because of some
  * out-dated protocol that used to be in use on the NSFANET that's
  * practically unused anymore.  Any modern IP implementation will be
  * size will be larger than that. */
 
 #ifdef notdef
-/*  some sample MTUs 
-           4352   what FDDI(RFC1188) uses... Larger? 
-           4096   VJ's recommendation for FDDI 
-          17914   what IBM 16MB TR  uses   
-           8166   IEEE 802.4 
+/*  some sample MTUs
+           4352   what FDDI(RFC1188) uses... Larger?
+           4096   VJ's recommendation for FDDI
+          17914   what IBM 16MB TR  uses
+           8166   IEEE 802.4
            4464   IEEE 802.5 MAX
-           2002   IEEE 802.5 Recommended 
-          1500   what Ethernet uses 
+           2002   IEEE 802.5 Recommended
+          1500   what Ethernet uses
           1492   what 802.3 uses ( 8 bytes for 802.2 SAP )
           9180   Classical IP over ATM (RFC2225)
 */
@@ -231,8 +231,8 @@ struct rx_jumboHeader {
 #define RX_JUMBOBUFFERSIZE 1412
 #define RX_JUMBOHEADERSIZE 4
 /*
- * RX_FIRSTBUFFERSIZE must be larger than the largest ack packet, 
- * the largest possible challenge or response packet. 
+ * RX_FIRSTBUFFERSIZE must be larger than the largest ack packet,
+ * the largest possible challenge or response packet.
  * Both Firstbuffersize and cbuffersize must be integral multiples of 8,
  * so the security header and trailer stuff works for rxkad_crypt.  yuck.
  */
@@ -268,7 +268,7 @@ struct rx_packet {
      * The Linux port uses this knowledge as well in osi_NetSend.
      *
      * The extradata field is padding in case the recvmsg implementation
-     * writes beyond the end of the final iovec buffer.  We do not know 
+     * writes beyond the end of the final iovec buffer.  We do not know
      * what platforms had this problem so we are reluctant to remove it.
      * the extradata must be adjacent to localdata.
      * See rxk_ReadPacket and rxi_ReadPacket.
index 2f35bc62756ca713d821212d9f00a28907efd85a..3a1dad2ef6bd7be81e8881479d42f718bb3bf7ec 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -57,7 +57,7 @@ extern struct rx_service *rx_NewService(u_short port, u_short serviceId,
                                        afs_int32(*serviceProc) (struct
                                                                 rx_call *
                                                                 acall));
-extern struct rx_service *rx_NewServiceHost(afs_uint32 host, u_short port, 
+extern struct rx_service *rx_NewServiceHost(afs_uint32 host, u_short port,
                                            u_short serviceId,
                                            char *serviceName,
                                            struct rx_securityClass
@@ -155,7 +155,7 @@ extern struct rx_packet *rxi_SendAck(struct rx_call *call, struct rx_packet
 extern void rxi_StartUnlocked(struct rxevent *event,
                              void *call, /* struct rx_call */
                              void *arg1, int istack);
-extern void rxi_Start(struct rxevent *event, 
+extern void rxi_Start(struct rxevent *event,
                      void *call, /* struct rx_call */
                      void *arg1, int istack);
 extern void rxi_Send(struct rx_call *call,
@@ -166,7 +166,7 @@ extern int rxi_CheckCall(struct rx_call *call, int haveCTLock);
 extern int rxi_CheckCall(struct rx_call *call);
 #endif /* RX_ENABLE_LOCKS */
 extern void rxi_KeepAliveEvent(struct rxevent *event,
-                              void *call /* struct rx_call *call */, 
+                              void *call /* struct rx_call *call */,
                               void *dummy);
 extern void rxi_GrowMTUEvent(struct rxevent *event,
                             void *call /* struct rx_call *call */,
@@ -191,7 +191,7 @@ extern void rxi_ChallengeOn(struct rx_connection *conn);
 extern void rxi_ComputeRoundTripTime(struct rx_packet *p,
                                     struct clock *sentp,
                                     struct rx_peer *peer);
-extern void rxi_ReapConnections(struct rxevent *unused, void *unused1, 
+extern void rxi_ReapConnections(struct rxevent *unused, void *unused1,
                                void *unused2);
 extern int rxs_Release(struct rx_securityClass *aobj);
 #ifndef KERNEL
@@ -324,16 +324,16 @@ extern struct rxevent *rxevent_Post(struct clock *when,
 /* this func seems to be called with tons of different style routines, need to look
 at another time. */
 #else
-extern struct rxevent *rxevent_Post(struct clock *when, 
+extern struct rxevent *rxevent_Post(struct clock *when,
                                    void (*func) (struct rxevent *, void *, void *),
                                    void *arg, void *arg1);
-extern struct rxevent *rxevent_Post2(struct clock *when, 
+extern struct rxevent *rxevent_Post2(struct clock *when,
                                    void (*func) (struct rxevent *, void *, void *, int),
                                    void *arg, void *arg1, int arg2);
 extern struct rxevent *rxevent_PostNow(struct clock *when, struct clock *now,
                                       void (*func) (struct rxevent *, void *, void *), void *arg, void *arg1);
 extern struct rxevent *rxevent_PostNow2(struct clock *when, struct clock *now,
-                                       void (*func) (struct rxevent *, void *, void *, int), void *arg, 
+                                       void (*func) (struct rxevent *, void *, void *, int), void *arg,
                                        void *arg1, int arg2);
 #endif
 extern void shutdown_rxevent(void);
@@ -351,7 +351,7 @@ extern int rxevent_RaiseEvents(struct clock *next);
 extern void rxi_setaddr(afs_uint32 x);
 extern afs_uint32 rxi_getaddr(void);
 extern int rx_getAllAddr(afs_uint32 * buffer, int maxSize);
-extern int rx_getAllAddrMaskMtu(afs_uint32 addrBuffer[], 
+extern int rx_getAllAddrMaskMtu(afs_uint32 addrBuffer[],
                                 afs_uint32 maskBuffer[],
                                 afs_uint32 mtuBuffer[],
                                 int maxSize);
index 4efa7f46b7036ac441fa0fbec6f32a57fe903752..c4e176484246ac7baf77473fb476c5edae14d0a4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -168,8 +168,8 @@ event_handler(void *argp)
        error = CV_TIMEDWAIT(&rx_event_handler_cond, &event_handler_mutex, &rx_pthread_next_event_time);
         if (error == 0) {
            rx_pthread_n_event_woken++;
-        } 
-#ifdef AFS_NT40_ENV        
+        }
+#ifdef AFS_NT40_ENV
         else if (error == ETIMEDOUT) {
            rx_pthread_n_event_expired++;
        } else {
@@ -287,7 +287,7 @@ rx_ServerProc(void * dummy)
     /* threadID is used for making decisions in GetCall.  Get it by bumping
      * number of threads handling incoming calls */
     /* Unique thread ID: used for scheduling purposes *and* as index into
-     * the host hold table (fileserver). 
+     * the host hold table (fileserver).
      * The previously used rxi_availProcs is unsuitable as it
      * will already go up and down as packets arrive while the server
      * threads are still initialising! The recently introduced
@@ -324,7 +324,7 @@ rx_ServerProc(void * dummy)
  * listener processes (one for each socket); these are started by GetUdpSocket.
  *
  * The event handling process *is* started here (the old listener used
- * to also handle events). The listener threads can't actually start 
+ * to also handle events). The listener threads can't actually start
  * listening until rxi_StartListener is called because most of R may not
  * be initialized when rxi_Listen is called.
  */
index a50cbf097e749f964d002597e4fadb8393527222..71928481bfa69903c991181b0d653d9b3ade0789 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 0befd0c6ef3c19f964e041d4c4e8ae9b91864de1..e11411c648565c366c9f23a7a6e94d58e89028d5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -69,7 +69,7 @@ for (n=0, queue_Scan(&myqueue, qe, nqe, myelement), n++) {}
     ((((q2->a->b=q1)->a->b=q2->b)->a=q1->a, q1->a=q2->a), queue_Init(q2))
 
 /* This one removes part of queue (*q1) and attaches it to queue (*q2).
- * If (a,b) is (next,prev) then the subchain is prepended to (*q2), 
+ * If (a,b) is (next,prev) then the subchain is prepended to (*q2),
  * otherwise the subchain is appended to (*q2).
  * If (c,d) is (prev,next) then the subchain is the elements in (*q1) before (i),
  * otherwise the subchain is the elements in (*q1) after (i).
index 28009be3114fe366a3f03fecfaf86f82b2d0a798..7da4ca67c10751e3b1b7f9d5e88e9e30cc7d9e54 100644 (file)
@@ -1,7 +1,7 @@
  /*
   * Copyright 2000, International Business Machines Corporation and others.
   * All Rights Reserved.
-  * 
+  *
   * This software has been released under the terms of the IBM Public
   * License.  For details, see the LICENSE file in the top-level source
   * directory or online at http://www.openafs.org/dl/license10.html
@@ -26,7 +26,7 @@
 #include "h/types.h"
 #include "h/time.h"
 #include "h/stat.h"
-#if defined(AFS_AIX_ENV) || defined(AFS_AUX_ENV) || defined(AFS_SUN5_ENV) 
+#if defined(AFS_AIX_ENV) || defined(AFS_AUX_ENV) || defined(AFS_SUN5_ENV)
 #include "h/systm.h"
 #endif
 #ifdef AFS_OSF_ENV
@@ -149,8 +149,8 @@ rxi_ReadProc(struct rx_call *call, char *buf,
                        if ((error =
                             RXS_CheckPacket(conn->securityObject, call,
                                             rp))) {
-                           /* Used to merely shut down the call, but now we 
-                            * shut down the whole connection since this may 
+                           /* Used to merely shut down the call, but now we
+                            * shut down the whole connection since this may
                             * indicate an attempt to hijack it */
 
                            MUTEX_EXIT(&call->lock);
@@ -167,7 +167,7 @@ rxi_ReadProc(struct rx_call *call, char *buf,
                        cp = call->currentPacket = rp;
                        call->currentPacket->flags |= RX_PKTFLAG_CP;
                        call->curvec = 1;       /* 0th vec is always header */
-                       /* begin at the beginning [ more or less ], continue 
+                       /* begin at the beginning [ more or less ], continue
                         * on until the end, then stop. */
                        call->curpos =
                            (char *)cp->wirevec[1].iov_base +
@@ -220,7 +220,7 @@ rxi_ReadProc(struct rx_call *call, char *buf,
                    }
                }
 
-                /* 
+                /*
                  * If we reach this point either we have no packets in the
                  * receive queue or the next packet in the queue is not the
                  * one we are looking for.  There is nothing else for us to
@@ -440,8 +440,8 @@ rxi_FillReadVec(struct rx_call *call, afs_uint32 serial)
                     * data + the header. */
                    if ((error =
                         RXS_CheckPacket(conn->securityObject, call, rp))) {
-                       /* Used to merely shut down the call, but now we 
-                        * shut down the whole connection since this may 
+                       /* Used to merely shut down the call, but now we
+                        * shut down the whole connection since this may
                         * indicate an attempt to hijack it */
 
                        MUTEX_EXIT(&call->lock);
@@ -459,7 +459,7 @@ rxi_FillReadVec(struct rx_call *call, afs_uint32 serial)
                    call->currentPacket->flags |= RX_PKTFLAG_CP;
                    call->curvec = 1;   /* 0th vec is always header */
                    cur_iov = &curp->wirevec[1];
-                   /* begin at the beginning [ more or less ], continue 
+                   /* begin at the beginning [ more or less ], continue
                     * on until the end, then stop. */
                    call->curpos =
                        (char *)curp->wirevec[1].iov_base +
@@ -703,8 +703,8 @@ rxi_WriteProc(struct rx_call *call, char *buf,
        if (call->nFree == 0) {
            if (!call->error && cp) {
                 /* Clear the current packet now so that if
-                 * we are forced to wait and drop the lock 
-                 * the packet we are planning on using 
+                 * we are forced to wait and drop the lock
+                 * the packet we are planning on using
                  * cannot be freed.
                  */
                 cp->flags &= ~RX_PKTFLAG_CP;
@@ -727,7 +727,7 @@ rxi_WriteProc(struct rx_call *call, char *buf,
                }
 #endif /* AFS_GLOBAL_RXLOCK_KERNEL */
                clock_NewTime();        /* Bogus:  need new time package */
-               /* The 0, below, specifies that it is not the last packet: 
+               /* The 0, below, specifies that it is not the last packet:
                 * there will be others. PrepareSendPacket may
                 * alter the packet length by up to
                 * conn->securityMaxTrailerSize */
@@ -775,7 +775,7 @@ rxi_WriteProc(struct rx_call *call, char *buf,
                call->currentPacket = cp;
                call->nFree = cp->length;
                call->curvec = 1;       /* 0th vec is always header */
-               /* begin at the beginning [ more or less ], continue 
+               /* begin at the beginning [ more or less ], continue
                 * on until the end, then stop. */
                call->curpos =
                    (char *)cp->wirevec[1].iov_base +
@@ -1143,7 +1143,7 @@ rxi_WritevProc(struct rx_call *call, struct iovec *iov, int nio, int nbytes)
     do {
        if (call->nFree == 0 && cp) {
            clock_NewTime();    /* Bogus:  need new time package */
-           /* The 0, below, specifies that it is not the last packet: 
+           /* The 0, below, specifies that it is not the last packet:
             * there will be others. PrepareSendPacket may
             * alter the packet length by up to
             * conn->securityMaxTrailerSize */
@@ -1220,7 +1220,7 @@ rxi_WritevProc(struct rx_call *call, struct iovec *iov, int nio, int nbytes)
 
     /* Move the packets from the temporary queue onto the transmit queue.
      * We may end up with more than call->twind packets on the queue. */
-    
+
     for (queue_Scan(&tmpq, p, np, rx_packet))
     {
         p->flags |= RX_PKTFLAG_TQ;
@@ -1329,7 +1329,7 @@ rxi_FlushWrite(struct rx_call *call)
 
        if (cp) {
            /* cp->length is only supposed to be the user's data */
-           /* cp->length was already set to (then-current) 
+           /* cp->length was already set to (then-current)
             * MaxUserDataSize or less. */
            cp->flags &= ~RX_PKTFLAG_CP;
            cp->length -= call->nFree;
index 8c2d2cba93b84f568616b5e5a7cc71b5d1069edd..973f795a1ef999854aa51a69f0e1a5e4d724529f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 39dc5177c8eee947fff1468852616e0f64108996..c2e244216dbccfd2ca53c12a88c954bcc276f080 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 3faf0cc0cd56d47cb8ff3cb35decbffd91a7b35d..e2dc85afefbfc6760ab71ea2cdfd3dca440602f6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -33,7 +33,7 @@
 # include <unistd.h>
 #endif
 # include <fcntl.h>
-#if !defined(AFS_AIX_ENV) && !defined(AFS_NT40_ENV) 
+#if !defined(AFS_AIX_ENV) && !defined(AFS_NT40_ENV)
 # include <sys/syscall.h>
 #endif
 #include <afs/afs_args.h>
@@ -94,7 +94,7 @@ afs_kmutex_t rx_if_mutex;
  * Make a socket for receiving/sending IP packets.  Set it into non-blocking
  * and large buffering modes.  If port isn't specified, the kernel will pick
  * one.  Returns the socket (>= 0) on success.  Returns OSI_NULLSOCKET on
- * failure. Port must be in network byte order.        
+ * failure. Port must be in network byte order.
  */
 osi_socket
 rxi_GetHostUDPSocket(u_int ahost, u_short port)
@@ -112,7 +112,7 @@ rxi_GetHostUDPSocket(u_int ahost, u_short port)
 #endif
 #endif
 
-#if !defined(AFS_NT40_ENV) 
+#if !defined(AFS_NT40_ENV)
     if (ntohs(port) >= IPPORT_RESERVED && ntohs(port) < IPPORT_USERRESERVED) {
 /*     (osi_Msg "%s*WARNING* port number %d is not a reserved port number.  Use port numbers above %d\n", name, port, IPPORT_USERRESERVED);
 */ ;
@@ -154,9 +154,9 @@ rxi_GetHostUDPSocket(u_int ahost, u_short port)
        (osi_Msg "%sbind failed\n", name);
        goto error;
     }
-#if !defined(AFS_NT40_ENV) 
+#if !defined(AFS_NT40_ENV)
     /*
-     * Set close-on-exec on rx socket 
+     * Set close-on-exec on rx socket
      */
     fcntl(socketFd, F_SETFD, 1);
 #endif
@@ -181,7 +181,7 @@ rxi_GetHostUDPSocket(u_int ahost, u_short port)
                 len2 /= 2;
         }
 
-        /* but do not let it get smaller than 32K */ 
+        /* but do not let it get smaller than 32K */
         if (len2 < len1)
             len2 = len1;
 
@@ -267,9 +267,9 @@ static const char memZero;
 void *
 osi_Alloc(afs_int32 x)
 {
-    /* 
+    /*
      * 0-length allocs may return NULL ptr from malloc, so we special-case
-     * things so that NULL returned iff an error occurred 
+     * things so that NULL returned iff an error occurred
      */
     if (x == 0)
        return (void *)&memZero;
@@ -296,7 +296,7 @@ static int myNetFlags[ADDRSPERSITE];
 static u_int rxi_numNetAddrs;
 static int Inited = 0;
 
-#if defined(AFS_NT40_ENV) 
+#if defined(AFS_NT40_ENV)
 int
 rxi_getaddr(void)
 {
@@ -306,15 +306,15 @@ rxi_getaddr(void)
     /* we don't want to use the loopback adapter which is first */
     /* this is a bad bad hack */
     if (rxi_numNetAddrs > 1)
-       return htonl(rxi_NetAddrs[1]);  
+       return htonl(rxi_NetAddrs[1]);
     else if (rxi_numNetAddrs > 0)
        return htonl(rxi_NetAddrs[0]);
     else
        return 0;
 }
 
-/* 
-** return number of addresses 
+/*
+** return number of addresses
 ** and the addresses themselves in the buffer
 ** maxSize - max number of interfaces to return.
 */
@@ -347,7 +347,7 @@ rx_getAllAddrMaskMtu(afs_uint32 addrBuffer[], afs_uint32 maskBuffer[],
     /* The IP address list can change so we must query for it */
     rx_GetIFInfo();
 
-    for (count = 0; 
+    for (count = 0;
          offset < rxi_numNetAddrs && maxSize > 0;
          count++, offset++, maxSize--) {
        addrBuffer[count] = htonl(rxi_NetAddrs[offset]);
@@ -360,7 +360,7 @@ rx_getAllAddrMaskMtu(afs_uint32 addrBuffer[], afs_uint32 maskBuffer[],
 
 #ifdef AFS_NT40_ENV
 extern int rxinit_status;
-void 
+void
 rxi_InitMorePackets(void) {
     int npackets, ncbufs;
 
@@ -444,7 +444,7 @@ fudge_netmask(afs_uint32 addr)
 
 
 
-#if !defined(AFS_AIX_ENV) && !defined(AFS_NT40_ENV) && !defined(AFS_LINUX20_ENV) 
+#if !defined(AFS_AIX_ENV) && !defined(AFS_NT40_ENV) && !defined(AFS_LINUX20_ENV)
 int
 rxi_syscall(afs_uint32 a3, afs_uint32 a4, void *a5)
 {
@@ -564,7 +564,7 @@ rx_GetIFInfo(void)
            if (ifr->ifr_flags & IFF_LOOPBACK)
                continue;
 #endif
-           /* fprintf(stderr, "if %s flags=%x\n", 
+           /* fprintf(stderr, "if %s flags=%x\n",
             * ifr->ifr_name, ifr->ifr_flags); */
        } else {                /*
                                 * fputs(stderr, "ioctl error IFFLAGS\n");
@@ -577,8 +577,8 @@ rx_GetIFInfo(void)
        rxi_syscallp = rxi_syscall;
 #endif
 
-       /* If I refer to kernel extensions that aren't loaded on AIX, the 
-        * program refuses to load and run, so I simply can't include the 
+       /* If I refer to kernel extensions that aren't loaded on AIX, the
+        * program refuses to load and run, so I simply can't include the
         * following code.  Fortunately, AIX is the one operating system in
         * which the subsequent ioctl works reliably. */
        if (rxi_syscallp) {
@@ -598,7 +598,7 @@ rx_GetIFInfo(void)
            } else
                myNetMasks[rxi_numNetAddrs] =
                    ntohl(myNetMasks[rxi_numNetAddrs]);
-           /* fprintf(stderr, "if %s mask=0x%x\n", 
+           /* fprintf(stderr, "if %s mask=0x%x\n",
             * ifr->ifr_name, myNetMasks[rxi_numNetAddrs]); */
        }
 
@@ -608,7 +608,7 @@ rx_GetIFInfo(void)
            res = ioctl(s, SIOCGIFMTU, ifr);
            if ((res == 0) && (ifr->ifr_metric > 128)) {        /* sanity check */
                myNetMTUs[rxi_numNetAddrs] = ifr->ifr_metric;
-               /* fprintf(stderr, "if %s mtu=%d\n", 
+               /* fprintf(stderr, "if %s mtu=%d\n",
                 * ifr->ifr_name, ifr->ifr_metric); */
            } else {
                /* fputs(stderr, "ioctl error IFMTU\n");
@@ -625,7 +625,7 @@ rx_GetIFInfo(void)
            if ((res == 0)) {
                a = (struct sockaddr_in *)&ifr->ifr_addr;
                myNetMasks[rxi_numNetAddrs] = ntohl(a->sin_addr.s_addr);
-               /* fprintf(stderr, "if %s subnetmask=0x%x\n", 
+               /* fprintf(stderr, "if %s subnetmask=0x%x\n",
                 * ifr->ifr_name, myNetMasks[rxi_numNetAddrs]); */
            } else {
                /* fputs(stderr, "ioctl error IFMASK\n");
@@ -707,7 +707,7 @@ rxi_InitPeerParams(struct rx_peer *pp)
     pp->ifMTU = 0;
     pp->timeout.sec = 2;
     pp->rateFlag = 2;          /* start timing after two full packets */
-    /* I don't initialize these, because I presume they are bzero'd... 
+    /* I don't initialize these, because I presume they are bzero'd...
      * pp->burstSize pp->burst pp->burstWait.sec pp->burstWait.usec
      * pp->timeout.usec */
 
@@ -776,7 +776,7 @@ rx_SetNoJumbo(void)
     rxi_nSendFrags = rxi_nRecvFrags = 1;
 }
 
-/* Override max MTU.  If rx_SetNoJumbo is called, it must be 
+/* Override max MTU.  If rx_SetNoJumbo is called, it must be
    called before calling rx_SetMaxMTU since SetNoJumbo clobbers rx_maxReceiveSize */
 void
 rx_SetMaxMTU(int mtu)
@@ -823,13 +823,13 @@ rxi_HandleSocketError(int socket)
         goto out;
     ret=1;
     err =(struct sock_extended_err *) CMSG_DATA(cmsg);
-    
+
     if (err->ee_errno == EMSGSIZE && err->ee_info >= 68) {
        rxi_SetPeerMtu(NULL, addr.sin_addr.s_addr, addr.sin_port,
                        err->ee_info - RX_IPUDP_SIZE);
     }
     /* other DEST_UNREACH's and TIME_EXCEEDED should be dealt with too */
-    
+
 out:
 #endif
     return ret;
index 83bd604a925b706a1fd2f2d62129ab7e8bc5e13b..8b2b9862d94fd0bb99f23d64d368d6633e3969e2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ba1e8b0c0bbe23d0bf6ca0551abe12978b2b3ea9..f88bdea071d1c5716197b9376606006def2c5d8c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -63,10 +63,10 @@ INT
 #include <errno.h>
 
 
-/* 
+/*
  * WSASendMsg is only supported on Vista and above
  * Neither function is part of the public WinSock API
- * and therefore the function pointers must be 
+ * and therefore the function pointers must be
  * obtained via WSAIoctl()
  */
 static LPFN_WSARECVMSG pWSARecvMsg = NULL;
@@ -83,19 +83,19 @@ rxi_xmit_init(osi_socket s)
     rc = WSAIoctl( s, SIO_GET_EXTENSION_FUNCTION_POINTER,
                    &WSARecvMsg_GUID, sizeof(WSARecvMsg_GUID),
                    &pWSARecvMsg, sizeof(pWSARecvMsg),
-                   &NumberOfBytes, NULL, NULL); 
+                   &NumberOfBytes, NULL, NULL);
 
     rc = WSAIoctl( s, SIO_GET_EXTENSION_FUNCTION_POINTER,
                    &WSASendMsg_GUID, sizeof(WSASendMsg_GUID),
                    &pWSASendMsg, sizeof(pWSASendMsg),
-                   &NumberOfBytes, NULL, NULL); 
+                   &NumberOfBytes, NULL, NULL);
 
     /* Turn on UDP PORT_UNREACHABLE messages */
     dwIn = 1;
-    rc = WSAIoctl( s, SIO_UDP_CONNRESET, 
+    rc = WSAIoctl( s, SIO_UDP_CONNRESET,
                    &dwIn, sizeof(dwIn),
                    &dwOut, sizeof(dwOut),
-                   &NumberOfBytes, NULL, NULL); 
+                   &NumberOfBytes, NULL, NULL);
 
     /* Turn on UDP CIRCULAR QUEUEING messages */
     dwIn = 1;
@@ -124,7 +124,7 @@ recvmsg(osi_socket socket, struct msghdr *msgP, int flags)
         wsaMsg.dwFlags = flags;
 
         code = pWSARecvMsg(socket, &wsaMsg, &dwBytes, NULL, NULL);
-        if (code == 0) { 
+        if (code == 0) {
             /* success - return the number of bytes read */
             code = (int)dwBytes;
         } else {
@@ -199,7 +199,7 @@ sendmsg(osi_socket socket, struct msghdr *msgP, int flags)
         wsaMsg.dwFlags = 0;
 
         code = pWSASendMsg(socket, &wsaMsg, flags, &dwBytes, NULL, NULL);
-        if (code == 0) { 
+        if (code == 0) {
             /* success - return the number of bytes read */
             code = (int)dwBytes;
         } else {
index ef5552d9554908d712dbba5b7dfdd164845dc107..94074fe971471df07c50e13f187730a062a01ee0 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index cabd331bf3f7947d593e4f849f037617389aab3b..de00160e3cd50f52d86204abfb423f8eb4a268ce 100644 (file)
@@ -2,23 +2,23 @@
  * Copyright (c) 2000 - 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution
  *    at such time that OpenAFS documentation is written.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -34,7 +34,7 @@
 
 #include <afsconfig.h>
 
-/* 
+/*
 nn * We are using getopt since we want it to be possible to link to
  * transarc libs.
  */
index a0b6696e4e15f60b3b589fdc701eb06fdb409cea..637ff8ad4caa944de26df5836e2241bcd94e2b64 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -68,7 +68,7 @@ typedef struct {
 #define FATAL( y ) {fprintf(stderr, y); exit(1);}
 
 /* for vary/conf array for testing pusrposes we will assume a
-high index of at least 5, so IDL_FIX_ARRAY_SIZE should never be 
+high index of at least 5, so IDL_FIX_ARRAY_SIZE should never be
 smaller than MIN_HIGH */
 #define MIN_HIGH 2
 
index e05293e3ccff16cd9f367339b64d50caaba4c291..057f7c28144060490f581029257d709e76a02619 100644 (file)
@@ -5,23 +5,23 @@
  * may copy or modify Sun RPC without charge, but are not authorized
  * to license or distribute it to anyone else except as part of a product or
  * program developed by the user.
- * 
+ *
  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
- * 
+ *
  * Sun RPC is provided with no support and without any obligation on the
  * part of Sun Microsystems, Inc. to assist in its use, correction,
  * modification or enhancement.
- * 
+ *
  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  * OR ANY PART THEREOF.
- * 
+ *
  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  * or profits or other special, indirect and consequential damages, even if
  * Sun has been advised of the possibility of such damages.
- * 
+ *
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * Mountain View, California  94043
@@ -567,8 +567,8 @@ xdr_string(XDR * xdrs, char **cpp, u_int maxsize)
     return (FALSE);
 }
 
-/* 
- * Wrapper for xdr_string that can be called directly from 
+/*
+ * Wrapper for xdr_string that can be called directly from
  * routines like clnt_call
  */
 #ifndef        KERNEL
index babffe7fa747777ae96401f33b32401e91abdf48..0ad3e34bbd914ca4ba8286a54479ec5d0b1dbfea 100644 (file)
@@ -5,23 +5,23 @@
  * may copy or modify Sun RPC without charge, but are not authorized
  * to license or distribute it to anyone else except as part of a product or
  * program developed by the user.
- * 
+ *
  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
- * 
+ *
  * Sun RPC is provided with no support and without any obligation on the
  * part of Sun Microsystems, Inc. to assist in its use, correction,
  * modification or enhancement.
- * 
+ *
  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  * OR ANY PART THEREOF.
- * 
+ *
  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  * or profits or other special, indirect and consequential damages, even if
  * Sun has been advised of the possibility of such damages.
- * 
+ *
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * Mountain View, California  94043
@@ -176,7 +176,7 @@ enum xdr_op {
  * bool_t      (*xdrproc_t)(XDR *, caddr_t *);
  */
 
-/* We need a different prototype for i386 Linux kernel code, because it 
+/* We need a different prototype for i386 Linux kernel code, because it
  * uses a register (rather than stack) based calling convention. The
  * normal va_args prototype results in the arguments being placed on the
  * stack, where they aren't accessible to the 'real' function.
index ee05347e16cee936381e52bd54f3ce7ebff901d3..f32c71dd0f4eda624213a08e22342a691f1b39ae 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 0008b869cdbac21b9e8c644c833a8fb229e1ab01..b295958ad84385a467d66a11e439ba760e6b1349 100644 (file)
@@ -5,23 +5,23 @@
  * may copy or modify Sun RPC without charge, but are not authorized
  * to license or distribute it to anyone else except as part of a product or
  * program developed by the user.
- * 
+ *
  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
- * 
+ *
  * Sun RPC is provided with no support and without any obligation on the
  * part of Sun Microsystems, Inc. to assist in its use, correction,
  * modification or enhancement.
- * 
+ *
  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  * OR ANY PART THEREOF.
- * 
+ *
  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  * or profits or other special, indirect and consequential damages, even if
  * Sun has been advised of the possibility of such damages.
- * 
+ *
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * Mountain View, California  94043
@@ -70,7 +70,7 @@
  * elsize is the size (in bytes) of each element, and elproc is the
  * xdr procedure to call to handle each element of the array.
  */
-/* 
+/*
        caddr_t *addrp;         * array pointer *
        u_int *sizep;           * number of elements *
        u_int maxsize;          * max numberof elements *
index 40d0d0cc05ea77bb4458e574fcb019ab0ac1ed29..28db315084f4292fb4a15a5c73815b16aee972eb 100644 (file)
@@ -5,23 +5,23 @@
  * may copy or modify Sun RPC without charge, but are not authorized
  * to license or distribute it to anyone else except as part of a product or
  * program developed by the user.
- * 
+ *
  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
- * 
+ *
  * Sun RPC is provided with no support and without any obligation on the
  * part of Sun Microsystems, Inc. to assist in its use, correction,
  * modification or enhancement.
- * 
+ *
  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  * OR ANY PART THEREOF.
- * 
+ *
  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  * or profits or other special, indirect and consequential damages, even if
  * Sun has been advised of the possibility of such damages.
- * 
+ *
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * Mountain View, California  94043
index b7395d06495985c79e6d38ba16be246a056aa525..d5820f7b0a418c21171d5d833b498d094c64ed10 100644 (file)
@@ -5,23 +5,23 @@
  * may copy or modify Sun RPC without charge, but are not authorized
  * to license or distribute it to anyone else except as part of a product or
  * program developed by the user.
- * 
+ *
  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
- * 
+ *
  * Sun RPC is provided with no support and without any obligation on the
  * part of Sun Microsystems, Inc. to assist in its use, correction,
  * modification or enhancement.
- * 
+ *
  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  * OR ANY PART THEREOF.
- * 
+ *
  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  * or profits or other special, indirect and consequential damages, even if
  * Sun has been advised of the possibility of such damages.
- * 
+ *
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * Mountain View, California  94043
index b0541bf1947b02d8c8bb59557fd064c76ba1aedf..82c5648c85840887243f7248a88b0d1feebd0510 100644 (file)
@@ -5,23 +5,23 @@
  * may copy or modify Sun RPC without charge, but are not authorized
  * to license or distribute it to anyone else except as part of a product or
  * program developed by the user.
- * 
+ *
  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
- * 
+ *
  * Sun RPC is provided with no support and without any obligation on the
  * part of Sun Microsystems, Inc. to assist in its use, correction,
  * modification or enhancement.
- * 
+ *
  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  * OR ANY PART THEREOF.
- * 
+ *
  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  * or profits or other special, indirect and consequential damages, even if
  * Sun has been advised of the possibility of such damages.
- * 
+ *
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * Mountain View, California  94043
index 18ea3db67867a1eb0c04f5c92c16ad0f41180ebe..0dd5daa0cdada639ea7315ee0eccf5d0e0678d24 100644 (file)
@@ -5,23 +5,23 @@
  * may copy or modify Sun RPC without charge, but are not authorized
  * to license or distribute it to anyone else except as part of a product or
  * program developed by the user.
- * 
+ *
  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
- * 
+ *
  * Sun RPC is provided with no support and without any obligation on the
  * part of Sun Microsystems, Inc. to assist in its use, correction,
  * modification or enhancement.
- * 
+ *
  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  * OR ANY PART THEREOF.
- * 
+ *
  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  * or profits or other special, indirect and consequential damages, even if
  * Sun has been advised of the possibility of such damages.
- * 
+ *
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * Mountain View, California  94043
@@ -101,7 +101,7 @@ static struct xdr_ops xdrmem_ops = {
 
 /*
  * The procedure xdrmem_create initializes a stream descriptor for a
- * memory buffer.  
+ * memory buffer.
  */
 void
 xdrmem_create(XDR * xdrs, caddr_t addr, u_int size, enum xdr_op op)
index c577527c4cd284046cfc88e9f6f86f786f53599d..cd0355021ead3e7092d142219e3a7acda842466d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -88,7 +88,7 @@ extern bool_t xdrrec_endofrecord(XDR * xdrs, bool_t sendnow);
 
 /* xdr_refernce.c */
 
-extern bool_t xdr_reference(XDR *xdrs, caddr_t *pp, u_int size, 
+extern bool_t xdr_reference(XDR *xdrs, caddr_t *pp, u_int size,
                            xdrproc_t proc);
 
 /* xdr_stdio.c */
index ddec33359b3f8e62e3c4a3a1d1f5c848876c6d0a..abeb44d6c960e8afcc6f2db4b61df9a7b8bc30b4 100644 (file)
@@ -4,23 +4,23 @@
  * may copy or modify Sun RPC without charge, but are not authorized
  * to license or distribute it to anyone else except as part of a product or
  * program developed by the user.
- * 
+ *
  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
- * 
+ *
  * Sun RPC is provided with no support and without any obligation on the
  * part of Sun Microsystems, Inc. to assist in its use, correction,
  * modification or enhancement.
- * 
+ *
  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  * OR ANY PART THEREOF.
- * 
+ *
  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  * or profits or other special, indirect and consequential damages, even if
  * Sun has been advised of the possibility of such damages.
- * 
+ *
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * Mountain View, California  94043
@@ -39,7 +39,7 @@
  * by n bytes of data, where n is contained in the header.  The header
  * is represented as a htonl(afs_uint32).  Thegh order bit encodes
  * whether or not the fragment is the last fragment of the record
- * (1 => fragment is last, 0 => more fragments to follow. 
+ * (1 => fragment is last, 0 => more fragments to follow.
  * The other 31 bits encode the byte length of the fragment.
  */
 
@@ -175,8 +175,8 @@ xdrrec_create(XDR * xdrs, u_int sendsize, u_int recvsize,
     RECSTREAM *rstrm = (RECSTREAM *) osi_alloc(sizeof(RECSTREAM));
 
     if (rstrm == NULL) {
-       /* 
-        *  This is bad.  Should rework xdrrec_create to 
+       /*
+        *  This is bad.  Should rework xdrrec_create to
         *  return a handle, and in this case return NULL
         */
        return;
@@ -423,7 +423,7 @@ xdrrec_skiprecord(XDR * xdrs)
 
 /*
  * Look ahead fuction.
- * Returns TRUE iff there is no more input in the buffer 
+ * Returns TRUE iff there is no more input in the buffer
  * after consuming the rest of the current record.
  */
 bool_t
index 2e74691b05b55ac932abdcbe98eb0e2b079d3135..9b8a3860412fa44e1468a0b0c1a9fb5467e83c25 100644 (file)
@@ -5,23 +5,23 @@
  * may copy or modify Sun RPC without charge, but are not authorized
  * to license or distribute it to anyone else except as part of a product or
  * program developed by the user.
- * 
+ *
  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
- * 
+ *
  * Sun RPC is provided with no support and without any obligation on the
  * part of Sun Microsystems, Inc. to assist in its use, correction,
  * modification or enhancement.
- * 
+ *
  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  * OR ANY PART THEREOF.
- * 
+ *
  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  * or profits or other special, indirect and consequential damages, even if
  * Sun has been advised of the possibility of such damages.
- * 
+ *
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * Mountain View, California  94043
@@ -57,7 +57,7 @@
  * proc is the routine to handle the referenced structure.
  */
 bool_t
-xdr_reference(XDR *xdrs, 
+xdr_reference(XDR *xdrs,
              caddr_t *pp, /* the pointer to work on */
              u_int size, /* size of the object pointed to */
              xdrproc_t proc)  /* xdr routine to handle the object */
index e9e6642ec0a3a170ba2fcc2129fd457d2dce1d15..353f5a908c84bd8ea57a8ca08ac4f1ac93669805 100644 (file)
@@ -1,14 +1,14 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  */
 
 /*
- * xdr_rx.c.  XDR using RX. 
+ * xdr_rx.c.  XDR using RX.
  */
 
 #include <afsconfig.h>
@@ -174,7 +174,7 @@ xdrrx_getint32(XDR *axdrs, afs_int32 * lp)
     char *saddr = (char *)&l;
     saddr -= STACK_TO_PIN;
     /*
-     * Hack of hacks: Aix3.2 only guarantees that the next 2K of stack in pinned. Under 
+     * Hack of hacks: Aix3.2 only guarantees that the next 2K of stack in pinned. Under
      * splnet (disables interrupts), which is set throughout rx, we can't swap in stack
      * pages if we need so we panic. Since sometimes, under splnet, we'll use more than
      * 2K stack we could try to bring the next few stack pages in here before we call the rx
@@ -213,7 +213,7 @@ xdrrx_putint32(XDR *axdrs, afs_int32 * lp)
     char *saddr = (char *)&code;
     saddr -= STACK_TO_PIN;
     /*
-     * Hack of hacks: Aix3.2 only guarantees that the next 2K of stack in pinned. Under 
+     * Hack of hacks: Aix3.2 only guarantees that the next 2K of stack in pinned. Under
      * splnet (disables interrupts), which is set throughout rx, we can't swap in stack
      * pages if we need so we panic. Since sometimes, under splnet, we'll use more than
      * 2K stack we could try to bring the next few stack pages in here before we call the rx
@@ -244,7 +244,7 @@ xdrrx_getbytes(XDR *axdrs, caddr_t addr, u_int len)
     char *saddr = (char *)&code;
     saddr -= STACK_TO_PIN;
     /*
-     * Hack of hacks: Aix3.2 only guarantees that the next 2K of stack in pinned. Under 
+     * Hack of hacks: Aix3.2 only guarantees that the next 2K of stack in pinned. Under
      * splnet (disables interrupts), which is set throughout rx, we can't swap in stack
      * pages if we need so we panic. Since sometimes, under splnet, we'll use more than
      * 2K stack we could try to bring the next few stack pages in here before we call the rx
@@ -276,7 +276,7 @@ xdrrx_putbytes(XDR *axdrs, caddr_t addr, u_int len)
     char *saddr = (char *)&code;
     saddr -= STACK_TO_PIN;
     /*
-     * Hack of hacks: Aix3.2 only guarantees that the next 2K of stack in pinned. Under 
+     * Hack of hacks: Aix3.2 only guarantees that the next 2K of stack in pinned. Under
      * splnet (disables interrupts), which is set throughout rx, we can't swap in stack
      * pages if we need so we panic. Since sometimes, under splnet, we'll use more than
      * 2K stack we could try to bring the next few stack pages in here before we call the rx
index ee941e7e754629d483e1e5faaf4a6d322eaed5b6..bca90862e9b26029c935380b7067428235a318fd 100644 (file)
@@ -5,23 +5,23 @@
  * may copy or modify Sun RPC without charge, but are not authorized
  * to license or distribute it to anyone else except as part of a product or
  * program developed by the user.
- * 
+ *
  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
- * 
+ *
  * Sun RPC is provided with no support and without any obligation on the
  * part of Sun Microsystems, Inc. to assist in its use, correction,
  * modification or enhancement.
- * 
+ *
  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  * OR ANY PART THEREOF.
- * 
+ *
  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  * or profits or other special, indirect and consequential damages, even if
  * Sun has been advised of the possibility of such damages.
- * 
+ *
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * Mountain View, California  94043
index aef5567df66f5e7360dc309c39ae9e9a670a5208..322e4b152fb703fd008f60123deb0fd38dd059f8 100644 (file)
@@ -36,9 +36,9 @@
  *  }
  *
  * > objpp: Pointer to the pointer to the object.
- * > obj_size: size of the object.   
+ * > obj_size: size of the object.
  * > xdr_obj: routine to XDR an object.
- *    
+ *
  */
 bool_t
 xdr_pointer(XDR * xdrs, char **objpp, u_int obj_size,
index 49ba390fd84b64a12056afcd2e37412ad5c1d4ed..c3ed6f4323b40cc4a6ea648e31d62ad9bb98515f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -255,7 +255,7 @@ MainCommand(struct cmd_syndesc *as, void *arock)
 
     if (withPackets)
         printf("Free packets: %d/%d, packet reclaims: %d, calls: %d, used FDs: %d\n",
-               tstats.nFreePackets, tstats.nPackets, tstats.packetReclaims, 
+               tstats.nFreePackets, tstats.nPackets, tstats.packetReclaims,
                tstats.callsExecuted, tstats.usedFDs);
     else
         printf("Free packets: %d, packet reclaims: %d, calls: %d, used FDs: %d\n",
@@ -559,7 +559,7 @@ MainCommand(struct cmd_syndesc *as, void *arock)
            /* now display the peer */
            hostAddr.s_addr = tpeer.host;
            afs_inet_ntoa_r(hostAddr.s_addr, hoststr);
-           printf("Peer at host %s, port %hu\n", hoststr, 
+           printf("Peer at host %s, port %hu\n", hoststr,
                   ntohs(tpeer.port));
            printf("\tifMTU %hu\tnatMTU %hu\tmaxMTU %hu\n", tpeer.ifMTU,
                   tpeer.natMTU, tpeer.maxMTU);
index f1895efff8444b5a50d51ae4bb9cc38ed59beb55..a20bb08d545fcb18976acb345837b2b8c2c318e3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index bc9bbd32782057ad0c1a75dab9fcba4f51520aef..30b9e6e9962aab459d8445669e13a6d6fc07275a 100644 (file)
@@ -6,23 +6,23 @@
  * may copy or modify Sun RPC without charge, but are not authorized
  * to license or distribute it to anyone else except as part of a product or
  * program developed by the user.
- * 
+ *
  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
- * 
+ *
  * Sun RPC is provided with no support and without any obligation on the
  * part of Sun Microsystems, Inc. to assist in its use, correction,
  * modification or enhancement.
- * 
+ *
  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  * OR ANY PART THEREOF.
- * 
+ *
  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  * or profits or other special, indirect and consequential damages, even if
  * Sun has been advised of the possibility of such damages.
- * 
+ *
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * Mountain View, California  94043
index 0a24e232724693d57bc0a4d115e039ac0fe68542..8698eb0da8fb4bb68d578c6882a0675c7755afb3 100644 (file)
@@ -6,31 +6,31 @@
  * may copy or modify Sun RPC without charge, but are not authorized
  * to license or distribute it to anyone else except as part of a product or
  * program developed by the user.
- * 
+ *
  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
- * 
+ *
  * Sun RPC is provided with no support and without any obligation on the
  * part of Sun Microsystems, Inc. to assist in its use, correction,
  * modification or enhancement.
- * 
+ *
  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  * OR ANY PART THEREOF.
- * 
+ *
  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  * or profits or other special, indirect and consequential damages, even if
  * Sun has been advised of the possibility of such damages.
- * 
+ *
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
 
 /*
- * rpc_cout.c, XDR routine outputter for the RPC protocol compiler 
- * Copyright (C) 1987, Sun Microsystems, Inc. 
+ * rpc_cout.c, XDR routine outputter for the RPC protocol compiler
+ * Copyright (C) 1987, Sun Microsystems, Inc.
  */
 #include <afsconfig.h>
 #include <afs/param.h>
@@ -69,7 +69,7 @@ static void print_rxifsizeof(char *prefix, char *type);
 
 
 /*
- * Emit the C-routine for the given definition 
+ * Emit the C-routine for the given definition
  */
 void
 emit(definition * def)
index 2effaf7a2b0dd86f6391530ff9c2356304791e98..435dec2464c1ca22ca1e06601a7f2e22da948586 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 751fdbba6c0b354e818d3ad82a1abbac59b60048..50d8c1ef58754407948f25896377b4adc3e59dd9 100644 (file)
@@ -6,31 +6,31 @@
  * may copy or modify Sun RPC without charge, but are not authorized
  * to license or distribute it to anyone else except as part of a product or
  * program developed by the user.
- * 
+ *
  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
- * 
+ *
  * Sun RPC is provided with no support and without any obligation on the
  * part of Sun Microsystems, Inc. to assist in its use, correction,
  * modification or enhancement.
- * 
+ *
  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  * OR ANY PART THEREOF.
- * 
+ *
  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  * or profits or other special, indirect and consequential damages, even if
  * Sun has been advised of the possibility of such damages.
- * 
+ *
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
 
 /*
- * rpc_hout.c, Header file outputter for the RPC protocol compiler 
- * Copyright (C) 1987, Sun Microsystems, Inc. 
+ * rpc_hout.c, Header file outputter for the RPC protocol compiler
+ * Copyright (C) 1987, Sun Microsystems, Inc.
  */
 #include <afsconfig.h>
 #include <afs/param.h>
@@ -67,7 +67,7 @@ static void pdeclaration(char *name, declaration * dec, int tab);
 static int undefined2(char *type, char *stop);
 
 /*
- * Print the C-version of an xdr definition 
+ * Print the C-version of an xdr definition
  */
 void
 print_datadef(definition * def)
@@ -270,7 +270,7 @@ psprocdef(definition * defp)
                (1 << DEF_INPARAM) | (1 << DEF_INOUTPARAM));
        psproc1(defp, 1, "int", "End",
                (1 << DEF_OUTPARAM) | (1 << DEF_INOUTPARAM));
-    } 
+    }
     if (!(!multi_flag && split_flag))
         psproc1(defp, 0, "int", "", 0xFFFFFFFF);
 
index 37d2a8aae523ebc322395443e0501394cfae54dc..c16f36db64bbdeff4d38a324d9c4b637e29e2774 100644 (file)
@@ -6,31 +6,31 @@
  * may copy or modify Sun RPC without charge, but are not authorized
  * to license or distribute it to anyone else except as part of a product or
  * program developed by the user.
- * 
+ *
  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
- * 
+ *
  * Sun RPC is provided with no support and without any obligation on the
  * part of Sun Microsystems, Inc. to assist in its use, correction,
  * modification or enhancement.
- * 
+ *
  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  * OR ANY PART THEREOF.
- * 
+ *
  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  * or profits or other special, indirect and consequential damages, even if
  * Sun has been advised of the possibility of such damages.
- * 
+ *
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
 
 /*
- * rpc_main.c, Top level of the RPC protocol compiler. 
- * Copyright (C) 1987, Sun Microsystems, Inc. 
+ * rpc_main.c, Top level of the RPC protocol compiler.
+ * Copyright (C) 1987, Sun Microsystems, Inc.
  */
 
 #include <afsconfig.h>
@@ -154,11 +154,11 @@ main(int argc, char *argv[])
     if (!CPP)
        CPP = "cl /EP /C /nologo";
 #endif /* AFS_NT40_ENV */
-    
+
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
@@ -234,7 +234,7 @@ main(int argc, char *argv[])
 }
 
 /*
- * add extension to filename 
+ * add extension to filename
  */
 static char *
 extendfile(char *file, char *ext)
@@ -262,7 +262,7 @@ extendfile(char *file, char *ext)
 }
 
 /*
- * Open output file with given extension 
+ * Open output file with given extension
  */
 static void
 open_output(char *infile, char *outfile)
@@ -285,7 +285,7 @@ open_output(char *infile, char *outfile)
 }
 
 /*
- * Open input file with given define for C-preprocessor 
+ * Open input file with given define for C-preprocessor
  */
 static void
 open_input(char *infile, char *define)
@@ -617,7 +617,7 @@ l_output(char *infile, char *define, int extend, char *outfile)
 }
 
 /*
- * Perform registrations for service output 
+ * Perform registrations for service output
  */
 static void
 do_registers(int argc, char *argv[])
@@ -782,7 +782,7 @@ uppercase(char *str)
 }
 
 /*
- * Parse command line arguments 
+ * Parse command line arguments
  */
 static int
 parseargs(int argc, char *argv[], struct commandline *cmd)
index 750122aca348df0114d012e1c460546d1cfd71f3..5ebd08efc2cb7ff5e9902daa0459d7dba42ceeaf 100644 (file)
@@ -6,30 +6,30 @@
  * may copy or modify Sun RPC without charge, but are not authorized
  * to license or distribute it to anyone else except as part of a product or
  * program developed by the user.
- * 
+ *
  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
- * 
+ *
  * Sun RPC is provided with no support and without any obligation on the
  * part of Sun Microsystems, Inc. to assist in its use, correction,
  * modification or enhancement.
- * 
+ *
  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  * OR ANY PART THEREOF.
- * 
+ *
  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  * or profits or other special, indirect and consequential damages, even if
  * Sun has been advised of the possibility of such damages.
- * 
+ *
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
 
 /*
- * rpc_parse.c, Parser for the RPC protocol compiler 
+ * rpc_parse.c, Parser for the RPC protocol compiler
  * Copyright (C) 1987 Sun Microsystems, Inc.
  */
 #include <afsconfig.h>
@@ -1149,7 +1149,7 @@ cs_ProcName_setup(definition * defp, char *procheader, int split_flag)
                                plist->pl.param_name);
                    }
                } else {
-                   f_print(fout, ", %s", plist->pl.param_name);    
+                   f_print(fout, ", %s", plist->pl.param_name);
                    plist->pl.param_flag &= ~PROCESSED_PARAM;
                }
            }
@@ -1930,7 +1930,7 @@ ucs_ProcTail_setup(definition * defp, int split_flag)
     f_print(fout, "\t\tif ((pass == 0) && (aclient->states[_ucount] & CFLastFailed)) {\n");
     f_print(fout, "\t\t\tcontinue;       /* this guy's down */\n");
     f_print(fout, "\t\t}\n");
-    
+
     f_print(fout, "\t\trcode = %s%s%s(tc\n", prefix, PackagePrefix[PackageIndex], defp->pc.proc_name);
     for (plist = defp->pc.plists; plist; plist = plist->next) {
        if (plist->component_kind == DEF_PARAM) {
index 81977e9a32101d0c647eab8bc5bb0b6353700ec4..7adb6f2d603e8e0c60f3a762bace6a190bde20b5 100644 (file)
@@ -6,31 +6,31 @@
  * may copy or modify Sun RPC without charge, but are not authorized
  * to license or distribute it to anyone else except as part of a product or
  * program developed by the user.
- * 
+ *
  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
- * 
+ *
  * Sun RPC is provided with no support and without any obligation on the
  * part of Sun Microsystems, Inc. to assist in its use, correction,
  * modification or enhancement.
- * 
+ *
  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  * OR ANY PART THEREOF.
- * 
+ *
  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  * or profits or other special, indirect and consequential damages, even if
  * Sun has been advised of the possibility of such damages.
- * 
+ *
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
 
 /*
- * rpc_parse.h, Definitions for the RPCL parser 
- * Copyright (C) 1987, Sun Microsystems, Inc. 
+ * rpc_parse.h, Definitions for the RPCL parser
+ * Copyright (C) 1987, Sun Microsystems, Inc.
  */
 
 enum defkind {
index 68be4c909f4d5babfbe908bfd9d4dd123670378f..5526d709d02e3fef1ef082d74f09ee190dae03f4 100644 (file)
@@ -6,31 +6,31 @@
  * may copy or modify Sun RPC without charge, but are not authorized
  * to license or distribute it to anyone else except as part of a product or
  * program developed by the user.
- * 
+ *
  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
- * 
+ *
  * Sun RPC is provided with no support and without any obligation on the
  * part of Sun Microsystems, Inc. to assist in its use, correction,
  * modification or enhancement.
- * 
+ *
  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  * OR ANY PART THEREOF.
- * 
+ *
  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  * or profits or other special, indirect and consequential damages, even if
  * Sun has been advised of the possibility of such damages.
- * 
+ *
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
 
 /*
- * rpc_scan.c, Scanner for the RPC protocol compiler 
- * Copyright (C) 1987, Sun Microsystems, Inc. 
+ * rpc_scan.c, Scanner for the RPC protocol compiler
+ * Copyright (C) 1987, Sun Microsystems, Inc.
  */
 
 /* Portions Copyright (c) 2003 Apple Computer, Inc. */
@@ -68,7 +68,7 @@ static void deverbatim(void);
 
 
 /*
- * scan expecting 1 given token 
+ * scan expecting 1 given token
  */
 void
 scan(tok_kind expect, token * tokp)
@@ -80,7 +80,7 @@ scan(tok_kind expect, token * tokp)
 }
 
 /*
- * scan expecting 2 given tokens 
+ * scan expecting 2 given tokens
  */
 void
 scan2(tok_kind expect1, tok_kind expect2, token * tokp)
@@ -92,7 +92,7 @@ scan2(tok_kind expect1, tok_kind expect2, token * tokp)
 }
 
 /*
- * scan expecting 3 given token 
+ * scan expecting 3 given token
  */
 void
 scan3(tok_kind expect1, tok_kind expect2, tok_kind expect3, token * tokp)
@@ -120,7 +120,7 @@ scan4(tok_kind expect1, tok_kind expect2, tok_kind expect3, tok_kind expect4,
 }
 
 /*
- * scan expecting a constant, possibly symbolic 
+ * scan expecting a constant, possibly symbolic
  */
 void
 scan_num(token * tokp)
@@ -136,7 +136,7 @@ scan_num(token * tokp)
 
 
 /*
- * Peek at the next token 
+ * Peek at the next token
  */
 void
 peek(token * tokp)
@@ -147,7 +147,7 @@ peek(token * tokp)
 
 
 /*
- * Peek at the next token and scan it if it matches what you expect 
+ * Peek at the next token and scan it if it matches what you expect
  */
 int
 peekscan(tok_kind expect, token * tokp)
@@ -163,7 +163,7 @@ peekscan(tok_kind expect, token * tokp)
 
 
 /*
- * Get the next token, printing out any directive that are encountered. 
+ * Get the next token, printing out any directive that are encountered.
  */
 void
 get_token(token * tokp)
@@ -233,7 +233,7 @@ get_token(token * tokp)
     }
 
     /*
-     * 'where' is not whitespace, comment or directive Must be a token! 
+     * 'where' is not whitespace, comment or directive Must be a token!
      */
     switch (*where) {
     case ':':
index fca7ca29002fb17cf0093d382c85c32f6a4bc9fe..fbcc352f200d6f1039b36b7b7cbd0a5c36f21f91 100644 (file)
@@ -6,35 +6,35 @@
  * may copy or modify Sun RPC without charge, but are not authorized
  * to license or distribute it to anyone else except as part of a product or
  * program developed by the user.
- * 
+ *
  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
- * 
+ *
  * Sun RPC is provided with no support and without any obligation on the
  * part of Sun Microsystems, Inc. to assist in its use, correction,
  * modification or enhancement.
- * 
+ *
  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  * OR ANY PART THEREOF.
- * 
+ *
  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  * or profits or other special, indirect and consequential damages, even if
  * Sun has been advised of the possibility of such damages.
- * 
+ *
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
 
 /*
- * rpc_scan.h, Definitions for the RPCL scanner 
- * Copyright (C) 1987, Sun Microsystems, Inc. 
+ * rpc_scan.h, Definitions for the RPCL scanner
+ * Copyright (C) 1987, Sun Microsystems, Inc.
  */
 
 /*
- * kinds of tokens 
+ * kinds of tokens
  */
 enum tok_kind {
     TOK_IDENT,
@@ -92,7 +92,7 @@ enum tok_kind {
 typedef enum tok_kind tok_kind;
 
 /*
- * a token 
+ * a token
  */
 struct token {
     tok_kind kind;
index 7df23a853c45eb4d87530a0bd7f000c77931b618..42eaf39a522561c6affafc123f05393224b978de 100644 (file)
@@ -6,23 +6,23 @@
  * may copy or modify Sun RPC without charge, but are not authorized
  * to license or distribute it to anyone else except as part of a product or
  * program developed by the user.
- * 
+ *
  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
- * 
+ *
  * Sun RPC is provided with no support and without any obligation on the
  * part of Sun Microsystems, Inc. to assist in its use, correction,
  * modification or enhancement.
- * 
+ *
  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  * OR ANY PART THEREOF.
- * 
+ *
  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  * or profits or other special, indirect and consequential damages, even if
  * Sun has been advised of the possibility of such damages.
- * 
+ *
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * Mountain View, California  94043
@@ -30,7 +30,7 @@
 
 /*
  * rpc_svcout.c, Server-skeleton outputter for the RPC protocol compiler
- * Copyright (C) 1987, Sun Microsytsems, Inc. 
+ * Copyright (C) 1987, Sun Microsytsems, Inc.
  */
 #include <afsconfig.h>
 #include <afs/param.h>
@@ -55,7 +55,7 @@ static void printif(char *proc, char *transp, char *prefix, char *arg);
 
 
 /*
- * write most of the service, that is, everything but the registrations. 
+ * write most of the service, that is, everything but the registrations.
  */
 void
 write_most(void)
@@ -93,7 +93,7 @@ write_most(void)
 
 
 /*
- * write a registration for the given transport 
+ * write a registration for the given transport
  */
 void
 write_register(char *transp)
@@ -136,7 +136,7 @@ write_register(char *transp)
 
 
 /*
- * write the rest of the service 
+ * write the rest of the service
  */
 void
 write_rest(void)
index 5ff86f12fb4a727da97432d48def452f81481d33..2d5c1a1c1d47ae2f4c2bef3b4e9feb173dac029f 100644 (file)
@@ -6,31 +6,31 @@
  * may copy or modify Sun RPC without charge, but are not authorized
  * to license or distribute it to anyone else except as part of a product or
  * program developed by the user.
- * 
+ *
  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
- * 
+ *
  * Sun RPC is provided with no support and without any obligation on the
  * part of Sun Microsystems, Inc. to assist in its use, correction,
  * modification or enhancement.
- * 
+ *
  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  * OR ANY PART THEREOF.
- * 
+ *
  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  * or profits or other special, indirect and consequential damages, even if
  * Sun has been advised of the possibility of such damages.
- * 
+ *
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
 
 /*
- * rpc_util.c, Utility routines for the RPC protocol compiler 
- * Copyright (C) 1987, Sun Microsystems, Inc. 
+ * rpc_util.c, Utility routines for the RPC protocol compiler
+ * Copyright (C) 1987, Sun Microsystems, Inc.
  */
 #include <afsconfig.h>
 #include <afs/param.h>
@@ -74,7 +74,7 @@ static void printwhere(void);
 
 
 /*
- * Reinitialize the world 
+ * Reinitialize the world
  */
 void
 reinitialize(void)
@@ -95,7 +95,7 @@ reinitialize(void)
 }
 
 /*
- * string equality 
+ * string equality
  */
 int
 streq(char *a, char *b)
@@ -104,7 +104,7 @@ streq(char *a, char *b)
 }
 
 /*
- * find a value in a list 
+ * find a value in a list
  */
 char *
 findval(list * lst, char *val, int (*cmp) (definition * def, char *type))
@@ -118,7 +118,7 @@ findval(list * lst, char *val, int (*cmp) (definition * def, char *type))
 }
 
 /*
- * store a value in a list 
+ * store a value in a list
  */
 void
 storeval(list ** lstp, char *val)
@@ -254,7 +254,7 @@ pvname(char *pname, char *vnum)
 
 
 /*
- * print a useful (?) error message, and then die 
+ * print a useful (?) error message, and then die
  */
 void
 error(char *msg)
@@ -267,7 +267,7 @@ error(char *msg)
 
 /*
  * Something went wrong, unlink any files that we may have created and then
- * die. 
+ * die.
  */
 void
 crash(void)
@@ -296,7 +296,7 @@ record_open(char *file)
 static char expectbuf[100];
 
 /*
- * error, token encountered was not the expected one 
+ * error, token encountered was not the expected one
  */
 void
 expected1(tok_kind exp1)
@@ -306,7 +306,7 @@ expected1(tok_kind exp1)
 }
 
 /*
- * error, token encountered was not one of two expected ones 
+ * error, token encountered was not one of two expected ones
  */
 void
 expected2(tok_kind exp1, tok_kind exp2)
@@ -317,7 +317,7 @@ expected2(tok_kind exp1, tok_kind exp2)
 }
 
 /*
- * error, token encountered was not one of 3 expected ones 
+ * error, token encountered was not one of 3 expected ones
  */
 void
 expected3(tok_kind exp1, tok_kind exp2, tok_kind exp3)
index 46731a61d17275379755079944ae2fbdc8c3efc1..342c45abd3234be286692b5aafc2c43eee7dc6aa 100644 (file)
@@ -6,31 +6,31 @@
  * may copy or modify Sun RPC without charge, but are not authorized
  * to license or distribute it to anyone else except as part of a product or
  * program developed by the user.
- * 
+ *
  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
- * 
+ *
  * Sun RPC is provided with no support and without any obligation on the
  * part of Sun Microsystems, Inc. to assist in its use, correction,
  * modification or enhancement.
- * 
+ *
  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  * OR ANY PART THEREOF.
- * 
+ *
  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  * or profits or other special, indirect and consequential damages, even if
  * Sun has been advised of the possibility of such damages.
- * 
+ *
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
 
 /*
- * rpc_util.h, Useful definitions for the RPC protocol compiler 
- * Copyright (C) 1987, Sun Microsystems, Inc. 
+ * rpc_util.h, Useful definitions for the RPC protocol compiler
+ * Copyright (C) 1987, Sun Microsystems, Inc.
  */
 
 #include "rxgen_consts.h"
index 8731a5f4182abd4751eab0c52695e2f3fe5b34ab..62f95ca9f294d86e7601b023db9c26e63558034b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 36162161c5161a41c861db687dc9456b78818746..37fce4b0f2c384973080d984401bc3da5016e00c 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index de694bde472f2c4ded63fa22f2d0c2a0a98e8058..6d005e0d89e0870552983f066505777c45b29325 100644 (file)
@@ -1,34 +1,34 @@
 /*
  * Copyright (c) 1997 - 2000 Kungliga Tekniska Högskolan
- * (Royal Institute of Technology, Stockholm, Sweden). 
- * All rights reserved. 
+ * (Royal Institute of Technology, Stockholm, Sweden).
+ * All rights reserved.
  *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions 
- * are met: 
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
  *
- * 1. Redistributions of source code must retain the above copyright 
- *    notice, this list of conditions and the following disclaimer. 
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
  *
- * 2. Redistributions in binary form must reproduce the above copyright 
- *    notice, this list of conditions and the following disclaimer in the 
- *    documentation and/or other materials provided with the distribution. 
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
  *
- * 3. Neither the name of the Institute nor the names of its contributors 
- *    may be used to endorse or promote products derived from this software 
- *    without specific prior written permission. 
+ * 3. Neither the name of the Institute nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
  *
- * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 
- * SUCH DAMAGE. 
+ * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
  */
 
 /* RCSID("$Heimdal: crc.c,v 1.9 2000/08/03 01:45:14 assar Exp $"); */
index cf570a7d9e6826c39af5b9439e8cec4547e69e0e..4f78e0d69e6d172d840a66a03a71738f03b49712 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -101,7 +101,7 @@ rxkad_EncryptPacket(const struct rx_connection * conn,
     ADD_RXKAD_STATS(bytesEncrypted[rxkad_TypeIndex(tp->type)],len);
     /*
      * afs_int32 cksum;
-     * cksum = htonl(0);                
+     * cksum = htonl(0);
      * * Future option to add cksum here, but for now we just put 0
      */
     rx_PutInt32(packet, 1 * sizeof(afs_int32), 0);
index b80e08078973cc632e13e5552873cb69b5c0af88..823b1e914a30712cdbd2a86e456c311e6c8f7ffd 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2000, 2002 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 6b2f88b13f045d6ba66b18971ce5ab7544c69c95..baa785fc93e45f341881f743de4ad733fdf680db 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -24,7 +24,7 @@
 #ifdef KERNEL
 #ifndef UKERNEL
 #include "afs/stds.h"
-#if defined(AFS_AIX_ENV) || defined(AFS_AUX_ENV) || defined(AFS_SUN5_ENV) 
+#if defined(AFS_AIX_ENV) || defined(AFS_AUX_ENV) || defined(AFS_SUN5_ENV)
 #include "h/systm.h"
 #endif
 #include "h/types.h"
index 5d018088110722b841fa5f0c95a6dc22cf40d8ce..0354887fb058ab3c7ba3b6f3ec1ad906b3726a6c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 481dc27918fd51fc4258ce4c03d3be47d656e577..695d61e309f58eb2fc828abe4100112a841aa745 100644 (file)
@@ -1,18 +1,18 @@
 /*
  * Copyright (c) 1999 Kungliga Tekniska Högskolan
- * (Royal Institute of Technology, Stockholm, Sweden). 
- * All rights reserved. 
+ * (Royal Institute of Technology, Stockholm, Sweden).
+ * All rights reserved.
  *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions 
- * are met: 
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
  *
- * 1. Redistributions of source code must retain the above copyright 
- *    notice, this list of conditions and the following disclaimer. 
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
  *
- * 2. Redistributions in binary form must reproduce the above copyright 
- *    notice, this list of conditions and the following disclaimer in the 
- *    documentation and/or other materials provided with the distribution. 
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
  *
  * 3. Neither the name of KTH nor the names of its contributors may be
  *    used to endorse or promote products derived from this software without
index 7f9b13b415684ad14c6715854b4a0db7951a01b4..d6f62f6dd9e07674baa1863066c89781bd720646 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index fd574fb65b62944575755c7bcba74fa6a356b379..4a0e6e273e26422439bb7ae906528365429dc1f9 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 7e19358df04e5994a777c9f23d2591ccc57c196c..ec2ca633d1b95824b3bd377c535a2dc0e3236915 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 8e3452283abdbb04292cee6cb72e5b8fba87894b..50ae7477ed2f62d9fa2c2b43b755c148f38cd1a7 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 5fed30a3cc5c4f723582bac26bef00220d1f17a7..cfaea8464c5ec0936b7f961a271413265c2982ca 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 5707b7c3f281622707afb5348ff5d57a1a64ab65..a26c603ffc502e985c66f9dacef7e4ec838ccfcd 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c57b0616fe090b6c145392baa7944bdf90c278d4..6895b5a2e7dc2e50815e525d00377829902ded02 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -22,8 +22,8 @@
 #define MAXKTCREALMLEN       64        /* should be 256 */
 #define KTC_TIME_UNCERTAINTY (15*60)   /* max skew bet. machines' clocks */
 
-#define MAXRANDOMNAMELEN 16    /* length of random generated 
-                                * usernames used by afslog for high 
+#define MAXRANDOMNAMELEN 16    /* length of random generated
+                                * usernames used by afslog for high
                                 * security must be < MAXKTCNAMELEN && < MAXSMBNAMELEN */
 #define MAXSMBNAMELEN    256   /* max length of an SMB name */
 
index 150efd7fb6c2f40e4e50798fd0ebf4c068b7a21f..a5c410a9151150a1d93094c0dee1b5da432b50f5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 15f62b84da665faaa695fe5cbf28331b230d80a8..11c4d60b7e5ffa19d4bdf9623e11b9e8eaad15b8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -27,7 +27,7 @@
 #ifndef UKERNEL
 #include "afs/stds.h"
 #include "afs/afs_osi.h"
-#if defined(AFS_AIX_ENV) || defined(AFS_AUX_ENV) || defined(AFS_SUN5_ENV) 
+#if defined(AFS_AIX_ENV) || defined(AFS_AUX_ENV) || defined(AFS_SUN5_ENV)
 #include "h/systm.h"
 #endif
 #if defined(AFS_DARWIN_ENV) || defined(AFS_OBSD_ENV)
@@ -82,7 +82,7 @@ pthread_mutex_t rxkad_global_stats_lock;
 pthread_key_t rxkad_stats_key;
 #else /* AFS_PTHREAD_ENV */
 #if defined(KERNEL) && !defined(UKERNEL)
-struct rxkad_stats rxkad_stats = { { 0 } }; 
+struct rxkad_stats rxkad_stats = { { 0 } };
 #else
 /* Move delaration of this to des/key_sched.c */
 #endif
@@ -112,7 +112,7 @@ void rxkad_global_stats_init(void) {
     memset(&rxkad_global_stats, 0, sizeof(rxkad_global_stats));
 }
 
-rxkad_stats_t * 
+rxkad_stats_t *
 rxkad_thr_stats_init(void) {
     rxkad_stats_t * rxkad_stats;
     rxkad_stats = (rxkad_stats_t *)malloc(sizeof(rxkad_stats_t));
@@ -259,7 +259,7 @@ rxkad_SetLevel(struct rx_connection *conn, rxkad_level level)
        rx_SetSecurityMaxTrailerSize(conn, 4);
     } else if (level == rxkad_crypt) {
        rx_SetSecurityHeaderSize(conn, 8);
-       rx_SetSecurityMaxTrailerSize(conn, 8);  /* XXX was 7, but why screw with 
+       rx_SetSecurityMaxTrailerSize(conn, 8);  /* XXX was 7, but why screw with
                                                 * unaligned accesses? */
     }
 }
@@ -489,7 +489,7 @@ rxkad_CheckPacket(struct rx_securityClass *aobj, struct rx_call *acall,
        return RXKADSEALEDINCON;
     nlen = word & 0xffff;      /* get real user data length */
 
-    /* The sealed length should be no larger than the initial length, since the  
+    /* The sealed length should be no larger than the initial length, since the
      * reverse (round-up) occurs in ...PreparePacket */
     if (nlen > len)
        return RXKADDATALEN;
index 819959673aada58d1c6cf9a700a361d9757d0b3a..b089cdfe9fcaf1999d9bd5d7c1c64c42e7a879b1 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 2000, International Business Machines Corporation and others.
 # All Rights Reserved.
-# 
+#
 # This software has been released under the terms of the IBM Public
 # License.  For details, see the LICENSE file in the top-level source
 # directory or online at http://www.openafs.org/dl/license10.html
index 36b8938aaa6cb3887c8335dcdacca6ffb04c3f0a..1bd30a1bbacd150529b1785f6ac6ebf9efc56c45 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -94,7 +94,7 @@ extern struct rx_securityClass *rxkad_NewServerSecurityObject(rxkad_level
                                                              int (*get_key)
 
 
-                                                              
+
                                                              (void
                                                               *get_key_rock,
                                                               int kvno,
@@ -104,7 +104,7 @@ extern struct rx_securityClass *rxkad_NewServerSecurityObject(rxkad_level
                                                              int (*user_ok)
 
 
-                                                              
+
                                                              (char *name,
                                                               char
                                                               *instance,
@@ -127,7 +127,7 @@ extern afs_int32 rxkad_GetServerInfo(struct rx_connection *aconn,
                                     char *instance, char *cell,
                                     afs_int32 * kvno);
 extern afs_int32 rxkad_SetConfiguration(struct rx_securityClass *aobj,
-                                        struct rx_connection *aconn, 
+                                        struct rx_connection *aconn,
                                         rx_securityConfigVariables atype,
                                         void * avalue, void **aresult);
 
index 5b3e503bca67e4d653c2b4f80804135e4637e257..7ba99fb05f3e87606a2035ab35525a935dd9d8a5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -17,7 +17,7 @@
 
 #include <afs/stds.h>
 #include <sys/types.h>
-#if (defined(AFS_AIX_ENV) && defined(KERNEL) && !defined(UKERNEL)) || defined(AFS_AUX_ENV) || defined(AFS_SUN5_ENV) 
+#if (defined(AFS_AIX_ENV) && defined(KERNEL) && !defined(UKERNEL)) || defined(AFS_AUX_ENV) || defined(AFS_SUN5_ENV)
 #include <sys/systm.h>
 #endif
 #include <time.h>
@@ -43,7 +43,7 @@
  * Currently only used by the AFS/DFS protocol translator to recognize
  * Kerberos V5 tickets. The actual code to do that is provided externally.
  */
-afs_int32(*rxkad_AlternateTicketDecoder) (afs_int32, char *, afs_int32, 
+afs_int32(*rxkad_AlternateTicketDecoder) (afs_int32, char *, afs_int32,
                                          char *, char *, char *,
                                          struct ktc_encryptionKey *,
                                          afs_int32 *, afs_uint32 *,
@@ -336,7 +336,7 @@ rxkad_CheckResponse(struct rx_securityClass *aobj,
        code =
            tkt_DecodeTicket5(tix, tlen, tsp->get_key, tsp->get_key_rock,
                              kvno, client.name, client.instance, client.cell,
-                             &sessionkey, &host, &start, &end, 
+                             &sessionkey, &host, &start, &end,
                              tsp->flags & RXS_CONFIG_FLAGS_DISABLE_DOTCHECK);
        if (code)
            return code;
@@ -359,7 +359,7 @@ rxkad_CheckResponse(struct rx_securityClass *aobj,
            return code;
     }
     code = tkt_CheckTimes(start, end, time(0));
-    if (code == 0) 
+    if (code == 0)
        return RXKADNOAUTH;
     else if (code == -1)
        return RXKADEXPIRED;
@@ -465,18 +465,18 @@ rxkad_GetServerInfo(struct rx_connection * aconn, rxkad_level * level,
 
 /* Set security object configuration variables */
 afs_int32 rxkad_SetConfiguration(struct rx_securityClass *aobj,
-                                 struct rx_connection *aconn, 
+                                 struct rx_connection *aconn,
                                  rx_securityConfigVariables atype,
                                         void * avalue, void **currentValue)
 {
-    struct rxkad_sprivate *private = 
+    struct rxkad_sprivate *private =
     (struct rxkad_sprivate *) aobj->privateData;
 
     switch (atype) {
     case RXS_CONFIG_FLAGS:
         if (currentValue) {
             *((afs_uint32 *)currentValue) = private->flags;
-        } else { 
+        } else {
             private->flags = (intptr_t)avalue;
         }
         break;
index 427f634c459c8c338910202a9ddf0a567097e2a3..93ad6d3a2eb40218af187eb1cdc147ea02792aed 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -10,7 +10,7 @@
 /*
  * Revision 1.2  88/11/18  15:13:00
  * remove spurious rcsid dcl
- * 
+ *
  * Revision 1.1  88/11/18  10:43:25
  * Initial revision
  *  */
index 712e599e2e1de69b7104c86e89ef11b3476eeb3f..914566094af8219269a2d84a12463efa5e199a20 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index eda627766860489165ea8b66c93a58b483a84c15..eca6614cab7b184701863258177de1c533e4f850 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a98fec26f35218568b958b8cfdbc1fd9eb7e8618..0218cf83efbe3cc702e40d56f8f9ee9a1b2c7b22 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 607a94f1fff2ca7d4e86b544520a314ef8220d75..36a17379b6aa0551a60e0e83195c77ef0d397fa2 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995, 1996, 1997, 2002 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -38,7 +38,7 @@
  *   require a specific license from the United States Government.
  *   It is the responsibility of any person or organization contemplating
  *   export to obtain such a license before exporting.
- * 
+ *
  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
  * distribute this software and its documentation for any purpose and
  * without fee is hereby granted, provided that the above copyright
@@ -218,7 +218,7 @@ tkt_DecodeTicket5(char *ticket, afs_int32 ticket_len,
            goto cleanup;
     }
 
-    /* If kvno is null, it's probably not included because it was kvno==0 
+    /* If kvno is null, it's probably not included because it was kvno==0
      * in the ticket */
     if (t5.enc_part.kvno == NULL) {
        v5_serv_kvno = 0;
@@ -303,7 +303,7 @@ tkt_DecodeTicket5(char *ticket, afs_int32 ticket_len,
     }
 
     if (!disableCheckdot) {
-        /* 
+        /*
          * If the first part of the name_string contains a dot, punt since
          * then we can't see the diffrence between the kerberos 5
          * principals foo.root and foo/root later in the fileserver.
index 60aa22767744672f3eac1ced902c71ca1b95a987..fe8ab6b195c402fc645887212aba71d499a3d2c0 100644 (file)
@@ -3437,7 +3437,7 @@ copy_TicketFlags(const TicketFlags * from, TicketFlags * to)
     return 0;
 }
 
-unsigned 
+unsigned
 TicketFlags2int(TicketFlags f)
 {
     unsigned r = 0;
@@ -3474,7 +3474,7 @@ TicketFlags2int(TicketFlags f)
     return r;
 }
 
-TicketFlags 
+TicketFlags
 int2TicketFlags(unsigned n)
 {
     TicketFlags flags;
index 4d3801fb22bf24ef4c79d4718e76a20e268dbba7..7f96f423feb4941abdf50115751f6a2dbc4c8623 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 3b1b373980d5d888ef1f71c5394d3ac178d781bb..f438d79de30cd58f7cb7297795ded81f4ba68b9f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a1e35a204bff3db566c3e614d33ebc5ca8bc879f..85fced53043d1dfe98bb00aa853b899e9d70f5fe 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -220,7 +220,7 @@ static const char *scout_underline[] =
  *     Void.
  *
  * Environment:
- *     Actions depend on scout_gtx_initialized.  
+ *     Actions depend on scout_gtx_initialized.
  *
  * Side Effects:
  *     This routine will always exit Scout.
@@ -461,7 +461,7 @@ scout_initDiskLightObjects(struct mini_line *a_line, struct gwin *a_win)
  *------------------------------------------------------------------------*/
 
 int
-mini_justify(char *a_srcbuff, char *a_dstbuff, int a_dstwidth, 
+mini_justify(char *a_srcbuff, char *a_dstbuff, int a_dstwidth,
             int a_justification, int a_rightTrunc,
             int a_isLabeledDisk)
 {                              /*mini_justify */
@@ -1024,8 +1024,8 @@ scout_RemoveInactiveDisk(struct mini_line *a_srvline, int a_used_idx)
  *------------------------------------------------------------------------*/
 
 static int
-mini_PrintDiskStats(struct mini_line *a_srvline, 
-                   struct ProbeViceStatistics *a_stats, 
+mini_PrintDiskStats(struct mini_line *a_srvline,
+                   struct ProbeViceStatistics *a_stats,
                    int a_probeOK, int a_width_changed,
                    int a_fix_line_num, int a_delta_line_num)
 {                              /*mini_PrintDiskStats */
@@ -1508,7 +1508,7 @@ FS_Handler(void)
  *------------------------------------------------------------------------*/
 
 static int
-init_mini_line(struct sockaddr_in *a_skt, int a_lineNum, 
+init_mini_line(struct sockaddr_in *a_skt, int a_lineNum,
               struct mini_line *a_line, char *a_srvname)
 {                              /*init_mini_line */
 
@@ -2364,8 +2364,8 @@ main(int argc, char **argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index 2ccee4add5a9d025631049598008c1036eb19122..0cb62eb0dc7a4887ac79b57efcf976b86415bf24 100644 (file)
@@ -119,7 +119,7 @@ rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
        return (-1);
     }
     *ahost = hp->h_name;
-    /* was: syslog(LOG_ERR, "rcmd: host=%s, rport=%d, luser=%s,ruser=%s,cmd=%s,fd2p=%s\n", *ahost,rport,locuser,remuser,cmd,fd2p) 
+    /* was: syslog(LOG_ERR, "rcmd: host=%s, rport=%d, luser=%s,ruser=%s,cmd=%s,fd2p=%s\n", *ahost,rport,locuser,remuser,cmd,fd2p)
      * but that trashes hp... */
     sigprocmask(SIG_BLOCK, &sigBlock, &oldset);
     for (;;) {
index d0917ff500c1c23948da77fb6b3a88020da8f56f..32b8bdd6ba6d8feda51770edf98436dd8189e220 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 49fa6f29cb07f721bed67fa5f680d1044c81a669..aa19267db7a5ee179781fbfd8cc7857eef6873f5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 32be2e6a75e71328174f649a70e6d15c6968b744..f947f2f37520c23f7daa5a071b4119db7fc4c353 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -388,7 +388,7 @@ iops_debug_t *iops_debug[MAX_I + 1];
 #define IOPS_DEBUG_MALLOC_STEP 64
 
 /* check_iops
- * Returns 1 if first time we've seen this file/line. 
+ * Returns 1 if first time we've seen this file/line.
  * Puts file/line in array so we only print the first time we encounter
  * this entry.
  */
index dd51cbbfb1d61b0eff4294b2605ce83c6d18f797..6956716afad6c96b04d9224f5587b1e375923178 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -46,7 +46,7 @@ extern FILE *inode_debug_log;
 
 /* Glue layer. */
 #ifdef AFS_LINUX20_ENV
-int proc_afs_syscall(long syscall, long param1, long param2, long param3, 
+int proc_afs_syscall(long syscall, long param1, long param2, long param3,
                     long param4, int *rval);
 #endif
 
index 9d472f6f0fd9fb642c847f7d217c1bc36e4204cd..b495112ce48d519ef8c117dd01af0791e66e9d0d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -9,7 +9,7 @@
 
 /*
 This utility is used to increase the ref count on inodes moved to
-lost+found by the non-AFS fsck. The program needs to be run once 
+lost+found by the non-AFS fsck. The program needs to be run once
 for every volume located on the partition that was fsck'ed.
 Procedure:
      cc -o fixit fixit.c
index fea5a2f2ca297e3348ef4bd6bd4cf228ca26fb72..c17e2a88bb22d54ae4c39f59b10e4c101c28c533 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -26,7 +26,7 @@
 #include "afssyscalls.h"
 
 #ifdef AFS_LINUX20_ENV
-int proc_afs_syscall(long syscall, long param1, long param2, long param3, 
+int proc_afs_syscall(long syscall, long param1, long param2, long param3,
                     long param4, int *rval) {
   struct afsprocdata syscall_data;
   int fd = open(PROC_SYSCALL_FNAME, O_RDWR);
@@ -50,7 +50,7 @@ int proc_afs_syscall(long syscall, long param1, long param2, long param3,
 #endif
 
 #if defined(AFS_DARWIN80_ENV)
-int ioctl_afs_syscall(long syscall, long param1, long param2, long param3, 
+int ioctl_afs_syscall(long syscall, long param1, long param2, long param3,
                      long param4, long param5, long param6, int *rval) {
     struct afssysargs syscall_data;
     void *ioctldata;
index 3b184842d481c4be37826672d37d866e0ec25f66..455c1612e1ee8a45e16c1d5a27f74c963a473ddd 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 35205806084b3bc98ea2768541b5c635a2321c33..48c6b79feefd4f5fb49fae3bceaec04ba7e1ebb8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 11ebea4a7ef322acdb5e0534dcf3198eb848402e..38006d087191b3a7d097277bfa0357e34c62e880 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ba00a3c23f971ff6ba8a70d48c86daa4508ae187..ce943677ce2369909783e8c4dd5780ecc2d01fb1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 413310ee8720d1e7a03797dccccc9d390acbfcd7..c9dc29d54191318e27ef462b9c347d25cb2233ee 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 2f54f9fd4ca338d4a261bc17b9b2eb244f9cf35a..5180c250ed72b2e45732b6c58fb038201e2467fd 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 3188b5086affaa876c9c9c7dcb75bcdebfc04ec0..0aaa1b6397aa8b95ecde6b385c9afad7adec1408 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 73efae3445bbb6a6abf7508a32b5dc1e6e2ef432..20a515ec1e109be74a4fc4d8f8a053c28f656a23 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -48,8 +48,8 @@ main(int argc, char *argv[])
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index 818b8c0f24428b5e5889be9a76294c55c9ef374d..60f0fa5a65086721c88366fd301da22a175daee0 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -60,11 +60,11 @@ lpioctl(char *path, int cmd, void *cmarg, int follow)
 #endif
 
 #if defined(AFS_LINUX20_ENV)
-    rval = proc_afs_syscall(AFSCALL_PIOCTL, (long)path, cmd, (long)cmarg, 
+    rval = proc_afs_syscall(AFSCALL_PIOCTL, (long)path, cmd, (long)cmarg,
                            follow, &errcode);
 
     if(rval)
-       errcode = syscall(AFS_SYSCALL, AFSCALL_PIOCTL, path, cmd, cmarg, 
+       errcode = syscall(AFS_SYSCALL, AFSCALL_PIOCTL, path, cmd, cmarg,
                          follow);
 #elif defined(AFS_DARWIN80_ENV)
     rval = ioctl_afs_syscall(AFSCALL_PIOCTL, (long)path, cmd, (long)cmarg,
index d13bf43e8802886f4a2a652aeea7bef6303e67db..5b064d2fe472cb2c1daf0da2790058f6fd0f7233 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -126,7 +126,7 @@ IoctlDebug(void)
     if ( !init ) {
         HKEY hk;
 
-        if (RegOpenKey (HKEY_LOCAL_MACHINE, 
+        if (RegOpenKey (HKEY_LOCAL_MACHINE,
                          TEXT("Software\\OpenAFS\\Client"), &hk) == 0)
         {
             DWORD dwSize = sizeof(BOOL);
@@ -150,7 +150,7 @@ DisableServiceManagerCheck(void)
     if ( !init ) {
         HKEY hk;
 
-        if (RegOpenKey (HKEY_LOCAL_MACHINE, 
+        if (RegOpenKey (HKEY_LOCAL_MACHINE,
                          TEXT("Software\\OpenAFS\\Client"), &hk) == 0)
         {
             DWORD dwSize = sizeof(BOOL);
@@ -165,61 +165,61 @@ DisableServiceManagerCheck(void)
     return smcheck;
 }
 
-static DWORD 
+static DWORD
 GetServiceStatus(
-    LPSTR lpszMachineName, 
+    LPSTR lpszMachineName,
     LPSTR lpszServiceName,
-    DWORD *lpdwCurrentState) 
-{ 
-    DWORD           hr               = NOERROR; 
-    SC_HANDLE       schSCManager     = NULL; 
-    SC_HANDLE       schService       = NULL; 
-    DWORD           fdwDesiredAccess = 0; 
-    SERVICE_STATUS  ssServiceStatus  = {0}; 
-    BOOL            fRet             = FALSE; 
-
-    *lpdwCurrentState = 0; 
-    fdwDesiredAccess = GENERIC_READ; 
-    schSCManager = OpenSCManager(lpszMachineName,  
+    DWORD *lpdwCurrentState)
+{
+    DWORD           hr               = NOERROR;
+    SC_HANDLE       schSCManager     = NULL;
+    SC_HANDLE       schService       = NULL;
+    DWORD           fdwDesiredAccess = 0;
+    SERVICE_STATUS  ssServiceStatus  = {0};
+    BOOL            fRet             = FALSE;
+
+    *lpdwCurrentState = 0;
+
+    fdwDesiredAccess = GENERIC_READ;
+
+    schSCManager = OpenSCManager(lpszMachineName,
                                  NULL,
-                                 fdwDesiredAccess); 
-    if(schSCManager == NULL) 
-    { 
+                                 fdwDesiredAccess);
+
+    if(schSCManager == NULL)
+    {
         hr = GetLastError();
-        goto cleanup; 
-    } 
+        goto cleanup;
+    }
+
     schService = OpenService(schSCManager,
                              lpszServiceName,
-                             fdwDesiredAccess); 
-    if(schService == NULL) 
-    { 
+                             fdwDesiredAccess);
+
+    if(schService == NULL)
+    {
         hr = GetLastError();
-        goto cleanup; 
-    } 
+        goto cleanup;
+    }
+
     fRet = QueryServiceStatus(schService,
-                              &ssServiceStatus); 
-    if(fRet == FALSE) 
-    { 
-        hr = GetLastError(); 
-        goto cleanup; 
-    } 
-    *lpdwCurrentState = ssServiceStatus.dwCurrentState; 
-cleanup: 
-    CloseServiceHandle(schService); 
-    CloseServiceHandle(schSCManager); 
-    return(hr); 
-} 
+                              &ssServiceStatus);
+
+    if(fRet == FALSE)
+    {
+        hr = GetLastError();
+        goto cleanup;
+    }
+
+    *lpdwCurrentState = ssServiceStatus.dwCurrentState;
+
+cleanup:
+
+    CloseServiceHandle(schService);
+    CloseServiceHandle(schSCManager);
+
+    return(hr);
+}
 
 // krb5 functions
 DECL_FUNC_PTR(krb5_cc_default_name);
@@ -425,7 +425,7 @@ DriveSubstitution(char *drivestr, char *subststr, size_t substlen)
                 subststr[2] = '\0';
                 return TRUE;
             }
-        } else 
+        } else
         if ( device[0] == '\\' &&
              device[1] == '?' &&
              device[2] == '?' &&
@@ -445,7 +445,7 @@ DriveSubstitution(char *drivestr, char *subststr, size_t substlen)
     return FALSE;
 }
 
-// 
+//
 // drivestr - is "<drive-letter>:"
 //
 static BOOL
@@ -468,7 +468,7 @@ DriveIsMappedToAFS(char *drivestr, char *NetbiosName)
     if ( DriveSubstitution(drivestr, subststr, MAX_PATH) )
     {
         if (subststr[0] == '\\' &&
-            subststr[1] == '\\') 
+            subststr[1] == '\\')
         {
             if (_strnicmp( &subststr[2], NetbiosName, strlen(NetbiosName)) == 0)
                 return TRUE;
@@ -535,7 +535,7 @@ DriveIsMappedToAFS(char *drivestr, char *NetbiosName)
             break;
     }
     while (dwResultEnum != ERROR_NO_MORE_ITEMS);
-    
+
     //
     // Call the GlobalFree function to free the memory.
     //
@@ -557,8 +557,8 @@ DriveIsGlobalAutoMapped(char *drivestr)
     char szSubMount[260];
     DWORD dwType;
 
-    dwResult = RegOpenKeyEx(HKEY_LOCAL_MACHINE, 
-                            AFSREG_CLT_SVC_PARAM_SUBKEY "\\GlobalAutoMapper", 
+    dwResult = RegOpenKeyEx(HKEY_LOCAL_MACHINE,
+                            AFSREG_CLT_SVC_PARAM_SUBKEY "\\GlobalAutoMapper",
                             0, KEY_QUERY_VALUE, &hKey);
     if (dwResult != ERROR_SUCCESS)
         return FALSE;
@@ -620,16 +620,16 @@ GetIoctlHandle(char *fileNamep, HANDLE * handlep)
                 if (DriveIsMappedToAFS(tbuffer, netbiosName) ||
                     DriveIsGlobalAutoMapped(tbuffer))
                     strcpy(&tbuffer[2], SMB_IOCTL_FILENAME);
-                else 
+                else
                     return -1;
                 break;
             default:
                 if (DriveIsGlobalAutoMapped(tbuffer))
                     strcpy(&tbuffer[2], SMB_IOCTL_FILENAME);
-                else 
+                else
                     return -1;
             }
-        } else if (fileNamep[0] == fileNamep[1] && 
+        } else if (fileNamep[0] == fileNamep[1] &&
                   (fileNamep[0] == '\\' || fileNamep[0] == '/'))
         {
             int count = 0, i = 0;
@@ -661,17 +661,17 @@ GetIoctlHandle(char *fileNamep, HANDLE * handlep)
                     if (DriveIsMappedToAFS(tbuffer, netbiosName) ||
                         DriveIsGlobalAutoMapped(tbuffer))
                         strcpy(&tbuffer[2], SMB_IOCTL_FILENAME);
-                    else 
+                    else
                         return -1;
                     break;
                 default:
                     if (DriveIsGlobalAutoMapped(tbuffer))
                         strcpy(&tbuffer[2], SMB_IOCTL_FILENAME);
-                    else 
+                    else
                         return -1;
                 }
             } else if (curdir[0] == curdir[1] &&
-                       (curdir[0] == '\\' || curdir[0] == '/')) 
+                       (curdir[0] == '\\' || curdir[0] == '/'))
             {
                 int count = 0, i = 0;
 
@@ -713,7 +713,7 @@ GetIoctlHandle(char *fileNamep, HANDLE * handlep)
         gle = GetLastError();
         if (gle && ioctlDebug ) {
             char buf[4096];
-            
+
             saveerrno = errno;
             if ( FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM,
                                NULL,
@@ -738,7 +738,7 @@ GetIoctlHandle(char *fileNamep, HANDLE * handlep)
 
         lana_GetNetbiosName(szClient, LANA_NETBIOS_NAME_FULL);
 
-        if (RegOpenKey (HKEY_CURRENT_USER, 
+        if (RegOpenKey (HKEY_CURRENT_USER,
                          TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer"), &hk) == 0)
         {
             DWORD dwType = REG_SZ;
@@ -1131,7 +1131,7 @@ fs_GetFullPath(char *pathp, char *outPathp, long outSize)
        pathHasDrive = 0;
     }
 
-    if ( firstp[0] == '\\' && firstp[1] == '\\' || 
+    if ( firstp[0] == '\\' && firstp[1] == '\\' ||
         firstp[0] == '/' && firstp[1] == '/') {
         /* UNC path - strip off the server and sharename */
         int i, count;
@@ -1211,7 +1211,7 @@ fs_GetFullPath(char *pathp, char *outPathp, long outSize)
     /* if there is a non-null name after the drive, append it */
     if (*firstp != 0) {
         int len = (int)strlen(outPathp);
-        if (outPathp[len-1] != '\\' && outPathp[len-1] != '/') 
+        if (outPathp[len-1] != '\\' && outPathp[len-1] != '/')
             strcat(outPathp, "\\");
         strcat(outPathp, firstp);
     }
index 2bbb074d65fec30f874c77edfeeea1f71f2ec3ef..401c92778b1db8990b217b4ec6f25ec416f6a206 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 18058d5b654b3abc85462a48dab7678f9735f1b1..af9c4c59f80e036827defbe70aece4c4104c9ab6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -38,10 +38,10 @@ SetPag(     IN      clientcred *cred,
                afs_int32 *errornumber) = 1;
 
 Pioctl(        IN      clientcred *cred,
-               string path<MAXPATHLEN>, 
-               afs_int32 cmd, 
-               afs_int32 follow, 
-               rmtbulk *InData, 
+               string path<MAXPATHLEN>,
+               afs_int32 cmd,
+               afs_int32 follow,
+               rmtbulk *InData,
        INOUT   rmtbulk *OutData,
        OUT     afs_int32 *errornumber) = 2;
 
index 5e1a6509310bd75bdb0d4e4e4c5a8eb7e66a6b68..bac6f7ea59216d4f1cefb1e7fd4ceebce105b1a8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -30,7 +30,7 @@
 #include <sys/stat.h>
 #include <stdio.h>
 #include <string.h>
-#include <stdlib.h>    
+#include <stdlib.h>
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
@@ -50,7 +50,7 @@ static afs_int32 SetClientCreds(struct clientcred *creds, afs_uint32 * groups);
 int afs_get_pag_from_groups(afs_uint32 g0, afs_uint32 g1);
 void afs_get_groups_from_pag(afs_uint32 pag, afs_uint32 * g0p, afs_uint32 * g1p);
 
-/* Picks up the name of the remote afs client host where the rmtsys 
+/* Picks up the name of the remote afs client host where the rmtsys
  * daemon resides. Since the clients may be diskless and/or readonly
  * ones we felt it's better to rely on an shell environment
  * (AFSSERVER) for the host name first. If that is not set, the
@@ -162,7 +162,7 @@ setpag(void)
     clientcred creds;
     afs_int32 errorcode, errornumber, newpag, ngroups, j;
     afs_uint32 groups[NGROUPS_MAX];
-    
+
     if (!(conn = rx_connection(&errorcode, "setpag"))) {
        /* Remote call can't be performed for some reason.
         * Try the local 'setpag' system call ... */
@@ -242,7 +242,7 @@ pioctl(char *path, afs_int32 cmd, struct ViceIoctl *data, afs_int32 follow)
     inparam_conversion(cmd, InData.rmtbulk_val, 0);
 
     OutData.rmtbulk_len = MAXBUFFERLEN * sizeof(*OutData.rmtbulk_val);
-    OutData.rmtbulk_val = malloc(OutData.rmtbulk_len); 
+    OutData.rmtbulk_val = malloc(OutData.rmtbulk_len);
     if (!OutData.rmtbulk_val) {
        free(inbuffer);
        return -1;
index 8806fab5163b6f0e03e2774ed3be2a9e60262cc3..5f37d59e93d80e47c9f1cb6e16ab25db577278d1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -45,8 +45,8 @@ main(int argc, char *argv[])
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index 87815270cc66fa54b8b41987ffa89b21b48212fe..df350d21b7a4a92b0051b722eb973f47a64565af 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index addc9af8af1b06a459427e47c53e78ef6f8bdda7..9cc9d332bd247ef81455e2b229bc0111e1c19973 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -60,9 +60,9 @@ rmtsysd(void)
     struct rx_securityClass *(securityObjects[N_SECURITY_OBJECTS]);
     struct rx_service *service;
 
-    /* 
+    /*
      * Ignore SIGHUP signal since apparently is sent to the processes that
-     * start up from /etc/rc for some systems like hpux and aix3.1... 
+     * start up from /etc/rc for some systems like hpux and aix3.1...
      */
     signal(SIGHUP, SIG_IGN);
 
@@ -89,7 +89,7 @@ rmtsysd(void)
  * here we also get back the new pag value; we need this so that the caller
  * can add it to its group list via setgroups() */
 afs_int32
-SRMTSYS_SetPag(struct rx_call *call, clientcred *creds, afs_int32 *newpag, 
+SRMTSYS_SetPag(struct rx_call *call, clientcred *creds, afs_int32 *newpag,
               afs_int32 *errornumber)
 {
     afs_uint32 blob[PIOCTL_HEADER];
@@ -117,8 +117,8 @@ SRMTSYS_SetPag(struct rx_call *call, clientcred *creds, afs_int32 *newpag,
 
 /* Implements the remote pioctl(2) call */
 afs_int32
-SRMTSYS_Pioctl(struct rx_call *call, clientcred *creds, char *path, 
-              afs_int32 cmd, afs_int32 follow, rmtbulk *InData, 
+SRMTSYS_Pioctl(struct rx_call *call, clientcred *creds, char *path,
+              afs_int32 cmd, afs_int32 follow, rmtbulk *InData,
               rmtbulk *OutData, afs_int32 *errornumber)
 {
     afs_int32 error;
@@ -162,7 +162,7 @@ void
 rmt_Quit(char *msg, ...)
 {
     va_list ap;
-    
+
     va_start(ap, msg);
     vfprintf(stderr, msg, ap);
     va_end(ap);
index 6d9a326a01463b14b6cc10f0ddf92197e5c8a559..169dafa9836625753c972fd8edd75775b927bcd4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -20,7 +20,7 @@
 #include <afs/sys_prototypes.h>
 #include <unistd.h>
 #include <stdio.h>
-#if !defined(AFS_AIX_ENV) && !defined(AFS_NT40_ENV) 
+#if !defined(AFS_AIX_ENV) && !defined(AFS_NT40_ENV)
 # include <sys/syscall.h>
 #endif
 #include "afssyscalls.h"
@@ -51,9 +51,9 @@ lsetpag(void)
 
 #ifdef AFS_LINUX20_ENV
     int rval;
-    
+
     rval = proc_afs_syscall(AFSCALL_SETPAG,0,0,0,0,&errcode);
-    
+
     if(rval)
       errcode = syscall(AFS_SYSCALL, AFSCALL_SETPAG);
 #elif defined(AFS_DARWIN80_ENV)
@@ -61,7 +61,7 @@ lsetpag(void)
 #else
     errcode = syscall(AFS_SYSCALL, AFSCALL_SETPAG);
 #endif
-    
+
     return (errcode);
 }
 
index 5ddcc476bd19709b6e64b97520d89472c0d18b33..cb62c77c7cb61cb89650827525bf56c9e22f269e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -23,7 +23,7 @@ extern int lpioctl(char *, int, void *, int);
 
 /* rmtsysc.c */
 struct ViceIoctl;
-extern int pioctl(char *path, afs_int32 cmd, struct ViceIoctl *data, 
+extern int pioctl(char *path, afs_int32 cmd, struct ViceIoctl *data,
                  afs_int32 follow);
 #ifdef AFS_DUX40_ENV
 extern int afs_setpag(void);
index 980d1853d29f5557485142e083ea2e1be9c894dd..33661d0f03a96447d7a041b82466c6c936acff9b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -52,7 +52,7 @@ typedef int afs_inode_params_t[4];    /* Use to pass param[4] to kernel. */
 #define AFS_XFS_NAME_VERS  AFS_XFS_NAME_VERS2
 #define AFS_INODE_DIR_NAME ".afsinodes."
 
-/* Unfortunately, to get all this in 39 bytes requires proper packing. 
+/* Unfortunately, to get all this in 39 bytes requires proper packing.
  * So, the version number is at an offset instead of first.
  */
 typedef struct {
index 4933c00b077ff678e27acdd47080600d8c855e37..71cde8ee913caa095749fa5a6ea427047c0fc856 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
index 122c968b993ce82ae89e802421b0f56702728ece..88b6a22cf1879c0b858724d72c1b4e3acc148785 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
index 98f1a49c8443ecfa47855c6401a8da38eaf59490..8bc7f1024f6c92369f4f9d14bee6df6484f3e2ba 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
index 402fa1330bd91ff4473878bfee53898982cc60fa..f726ae9a3f59442c0a589e1a14250ddd5c2851b1 100644 (file)
@@ -2,24 +2,24 @@
  * COPYRIGHT NOTICE
  * Copyright (c) 1997 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
  * software, derivative works or modified versions, and any portions
  * thereof, and that both notices appear in supporting documentation.
- * 
+ *
  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
- * 
+ *
  * Carnegie Mellon requests users of this software to return to
- * 
+ *
  *  Software Distribution Coordinator  or  Software_Distribution@CS.CMU.EDU
  *  School of Computer Science
  *  Carnegie Mellon University
  *  Pittsburgh PA 15213-3890
- * 
+ *
  * any improvements or extensions that they make and grant Carnegie Mellon
  * the rights to redistribute these changes.
  */
index 8d401e4c9c36252d5824349b4d9a71f3409a0c79..e824acd62b844d2be08b61a87132b559087409e8 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 2921d1f06c0903a1df68b492079c5ced9d592fd3..613c34f15522de49b4091a6c3b1ad46b55658973 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index fc3c21e08b8ead7dd8dd3f69b7b7f42c513b0609..6112100e9e19c982c4f46856d2eddb73e9932776 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index e42cfffc92b4b25a44c12c3e58a3bfb5c1d516ef..68cd6e41556ddb9f79d1ef1a8428551ae2ad13af 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
index 46d69d0d594218889febccce7790f7ad3347db56..b18d7c205da1daf23608d66e271af5a33913c183 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 956c78b1109506e454daed6b4643168923500ed2..3566315d19aa91b71da23457a5b0a459f6b4c3ad 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995, 1996, 1997, 1998, 1999 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 30e69b744015d3eae739abe6fae1a75a5b876f82..96281c0ada791e00e2f7d8ba50772b43653ed48e 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995, 1996, 1997, 1998, 1999 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 3923d459bdfe984c3f4e766a35d0c9d718e6c5fe..bc1352d33d99a1c80a4e159624d3e98a620b569e 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995, 1996, 1997, 1998, 1999 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 1625b02bd776e5480369338e04977f3745b9795a..1e383a5b5a5a9f6c95e7873fc0f0df2bfc9fd475 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index d6089a8d627718c45cf7ddb2fcd0fa111dac91d6..2efcd0e45be057fc6e5a9b2a9c277d5ac54e4784 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995, 1996, 1997, 1998, 1999 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 7db1e460465ed9a71898d69537fe0d998671faab..d2f11b4cace71f956fea88b099d7147a81b258ac 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998, 2001, 2004 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
@@ -66,7 +66,7 @@ static afs_dir_page page;
 
 /* Hash function used in AFS directories.  */
 static int namehash(char *name, int buckets, int seed)
-{   
+{
   int hval = seed, tval;
 
   while (*name) hval = (hval * 173) + *name++;
@@ -297,7 +297,7 @@ afs_uint32 Dir_AddEntry(struct dir_state *ds, char *name,
 afs_uint32 Dir_Finalize(struct dir_state *ds)
 {
   int pages = ds->pageno + 1;
-  
+
   if (ds->pageno < 128) ds->dh->allomap[ds->pageno] = ds->used;
   ds->dh->pagehdr.pgcount = htons(pages);
   return 0;
@@ -346,7 +346,7 @@ afs_uint32 Dir_Free(struct dir_state *ds)
  * consists of a 32-bit number containing the size, immediately followed
  * by the data itself.  The interesting structures and constants are
  * defined in <afs/dir.h>
- * 
+ *
  * A directory consists of one or more 'pages', each of which is 2K
  * (AFS_PAGESIZE).  Each page contains EPP (currently 64) 'entries', each
  * of which is 32 bytes.  The first page begins with a DirHeader, which
index 7186bd4e8dd3cbf7340c3b67fde8069359495224..d657f35eb954789247f091f44f9be6c42fa0fd91 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
index 74d49de35d9be7fd6ef4d6f950ea43758ac7ffeb..a6b6d1bfb860829ebcd5f51af579ac93c355be6c 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998, 2001 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
index ba1c4ddd2003ceca8431825ae1bc63e6aa752325..a0ebe39d343f8e162d91d11255cae9cd08d2c410 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998, 2001, 2003 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
index 22c38c39745f19e0e71dbd4ac8b2c0d5be26d9d8..e15e4c1429a4be67f50adcaf75069b54f97ed453 100644 (file)
@@ -1,24 +1,24 @@
 # COPYRIGHT NOTICE
 # Copyright (c) 1997 Carnegie Mellon University
 # All Rights Reserved.
-# 
+#
 # Permission to use, copy, modify and distribute this software and its
 # documentation is hereby granted, provided that both the copyright
 # notice and this permission notice appear in all copies of the
 # software, derivative works or modified versions, and any portions
 # thereof, and that both notices appear in supporting documentation.
-# 
+#
 # CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
 # CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
 # ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
-# 
+#
 # Carnegie Mellon requests users of this software to return to
-# 
+#
 #  Software Distribution Coordinator  or  Software_Distribution@CS.CMU.EDU
 #  School of Computer Science
 #  Carnegie Mellon University
 #  Pittsburgh PA 15213-3890
-# 
+#
 # any improvements or extensions that they make and grant Carnegie Mellon
 # the rights to redistribute these changes.
 
index 7d4c1deb32a78728baa49ded4450958fb177fca9..79c48cff6be86c79e6933269ef0efb98726044d7 100644 (file)
@@ -49,7 +49,7 @@
  *
  * The DUMPEND section consists of one part: the DUMPENDMAGIC magic
  * number (32 bits).
- * 
+ *
  * Notes:
  *
  * The tagged elements are all ASCII letters, as opposed to the section
@@ -1855,7 +1855,7 @@ DumpAllResidencies(FILE * f, struct vnodeData *vdata,
 /*
  * Given a directory vnode and a filename, return the vnode corresponding
  * to the file in that directory.
- * 
+ *
  * We now handle pathnames with directories in them.
  */
 
index 00a9da7595921aa3fa725d0613ff5578081ac09a..c52b783872e66e5958191984ffa16fe66436935e 100644 (file)
@@ -1,23 +1,23 @@
 /*
- * Copyright (c) 1995, 1996, 1997 Kungliga Tekniska Högskolan 
- * (Royal Institute of Technology, Stockholm, Sweden).  
+ * Copyright (c) 1995, 1996, 1997 Kungliga Tekniska Högskolan
+ * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 51bcaf97d1496ed4a37aa310f2bf64e9d6924fe2..f0d352906de6ef6de37918ffc43fab2752ff8045 100644 (file)
@@ -1,23 +1,23 @@
 /*
- * Copyright (c) 1995, 1996, 1997 Kungliga Tekniska Högskolan 
- * (Royal Institute of Technology, Stockholm, Sweden).  
+ * Copyright (c) 1995, 1996, 1997 Kungliga Tekniska Högskolan
+ * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 14ea0517513e6d8928a9952fd46dc8223c73653e..e14305bbb9af06153c7d1ec0c81fbb4fde498ab4 100644 (file)
@@ -1,23 +1,23 @@
 /*
- * Copyright (c) 1995, 1996, 1997 Kungliga Tekniska Högskolan 
- * (Royal Institute of Technology, Stockholm, Sweden).  
+ * Copyright (c) 1995, 1996, 1997 Kungliga Tekniska Högskolan
+ * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index bb2005a324433b8b8cf3cd2877a4e1fd250273a2..7e9cd6fc27c86397d629e28f4ac1d91a4db954fe 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index a84850ab385ba9bc46e51ffe78bd57e622d17626..1abbe0bf304777b5464f044b6705a97ee07e3912 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 0f58c9750428da6b8cd125a60b4cf89120535cbd..dc7d0838b34b10a29eedd772959469bc473237b0 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 2000 - 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 1a068c04f68761056e3963d2742a40f831568e4e..3c24928e05d671a3e17794886db4ae4dfc874f00 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1998 - 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -59,7 +59,7 @@
 enum { PIOCTL_MAXSIZE = 2000 };
 
 /*
- * fs_getfid, the the `fid' that `path' points on. 
+ * fs_getfid, the the `fid' that `path' points on.
  */
 
 int
index 86137eaebbb22f0d21ea92c40e327599f425165b..e1dffd1b1e134818e03b6d7c45de137434519025 100644 (file)
@@ -4,7 +4,7 @@
  *     File:   fsx.c
  *     Author: Avadis Tevanian, Jr.
  *
- *     File system exerciser. 
+ *     File system exerciser.
  *
  *     Rewritten 8/98 by Conrad Minshall.
  */
index 6e1fde856a267884408570294988d573e40fae72..03865fba9355b27d37fdc367dfbc10dedb5dbcad 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1999 - 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 04dd47f9a9e539d8be0bbfafa44a140a749dd924..68703d397769c8f60e3fa771c386ff41b04d9806 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1999 - 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index e7450536730c14a15eac669b345e15785ab2b4a5..ac162cb8893d56f4d219845c30622997f57eeefc 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1999 - 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 83daa74579e5965060c187e1b2d872d7a84cce4e..1a44b2268c7fc53539bb0a4497729ba129eeea3d 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1999 - 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 94eb09cbc5730a9c347c70ccae4b6669bbf9d036..de3396be4c69d11507e1b74a369521dc83e328f2 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
index 8735b7cd9dcb95384bd2f02290c825d6eda7354f..bc56bfe5a927c9278c33ef0dc5c3f8edd3a7d7c6 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
index 81c6fd398c1125246006af98f8f6b7a1ba86e2d2..276767ab23670d14043cb84c2c983e67fc5ee13a 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
index 62c0c50dbde86e2e08b3d59107255d24e75df0c5..344c2abfd624a4570fefd3e2124d3c0aff51bbf6 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 1fdcb78972b232ad96fe4266a53988e33788358e..5ec8d245c715b643fae6c86e2dff8f77ca0403b2 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 2000 - 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 104aaf2953f9d41119d2084a1272f4683930093c..5135de2e8c81412d9891f532a12bb13060757346 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index e19c2ec94bc9612fff09978cfd344671ed10b69f..bcff95a03f47c5372650a4c050eb534d745de68f 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 1c356350f30c620082d492fc5c68a45a1136a365..04b215fc1a06127b4d64cbea02c8586287a58c00 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995, 1996, 1997, 1998, 1999 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 891a2b95976f6cee641dc6b867e591943243f802..6f53b85cdba68e6ccd256429b6503278f04d9814 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995, 1996, 1997, 1998, 1999 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index bf5c27d91111c7912cfeaba06316d986c3c12393..f4671afab57e0d9a616905f464360e8d29378598 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995, 1996, 1997, 1998, 1999 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 2a0d89681d76e22850a54d077c8310225f66155e..37eaab285a811113d1326fd25f117ca2c58606d3 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 39bf04e43932cee2fecc9ddae0a047874cf23b55..4c6dcf449be69947b0c4010ac4c8ae77afa70192 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1999 - 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 3be79006ff7e9352a833d4d99aa2d88f189dbc87..ce56fa2375f0da391aa3005474213d29e5a2e5a1 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1999 - 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 3cf3a2270a117bbe7e895f9d72d39b91018de062..39c7258c1abbf4fddd5dc7666e3228ef41361fd3 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 153e7f89632ef79f7b3ffc09b4c06ba6324937b6..7e78163a80cda78f7f6c37a0aa5f6759372eb97d 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index d292192fb7c95a2fafd4aaff7302c1a6ccad6e74..94d11a1e689173d35c0bef94a698f4fe53f9880f 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 0d875022feaff1d5d585dff0fb7cca09ab4b42a9..8c01b43b47b366d095c9bc94f41aeee5e33c7870 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 5cc7416947a26d87bf00a81112879916a8e7f972..b91e0168dc8ca3e97633c97dc6e04ade2731f436 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 27abf8798c19f52f8e745f92ac7b630a7be83fd8..bbb48e8466306065d050efe18f8d608cb1c59fa9 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
index 718060fe601c9300bd8cb65d538b6e17cf451b44..67e8a2cd47cd99e626d8781ab6c6a7783c6b1e74 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
index 81edde3d4bffa587d5f2179310c257f888a8fb72..f259ee5e74819552e8dc7cd9e2a8389cf35c188f 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
index 10d7c56a6db807aa1b9981e56232fac3ca7ba70a..9b95368e315f549baad8d11814985ecd57eef041 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
index 7b4c7bfe9725dd15ea0e4df7513a35873773cdaa..0057df87bb784476f54bdce6a2a7ebb4dd76ff52 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
@@ -152,7 +152,7 @@ dirent_cb(afs_vnode * v, afs_dir_entry * de, XFILE * X, void *refcon)
 
 
 /* Prescan the vnodes in a dump file, collecting information that will
- * be useful in generating and following pathnames.  
+ * be useful in generating and following pathnames.
  */
 afs_uint32
 Path_PreScan(XFILE * X, path_hashinfo * phi, int full)
index cf66e8c2ae8a3c39ca9f298f2096cf46eccc4048..d2c512e4234b4d0ba59fd4d8b82cdb97887df70b 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index f346f3269b644b4f6caf65b920f4b02681a9fc8e..80e5dbd60551eacc19a2b434753e9f6dbff30933 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
index 5302afdf0d8c0349499b1d7c477d9d111b6de92e..9faef246c09ceee8ba53923b485c05d3489038b2 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 4381681bf54f41d82ed4f392ce6ae76d38169efe..11482cd12e00baf11c25974205362fba61f4bbe2 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 07d91405b4261b1248557e74d2056a3fb624c2b7..73710833aafed11ea76f0b2604383c28c8221423 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 7566bafc19a0ceb479525ef83e2439b584a7568e..5a9801123c2e9a8a1d661a15d3136139b2229626 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index d9c73ee2b47c688ea285ab09c287c456f396d485..ad12e6cf6014b462b6d6b133b2a638ea5b0fbb1f 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 2000 - 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 0df5edc802351bf189343568f5aaba72be8d618d..185f3c4b1d13bb69d67cb9d5a00572aac0abf668 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 42284829443c16b294c4820fcbdf468e0374a8c1..83b177d1a3eb1bb14e96d7741a1ddbc8fa09c3fe 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 210f727a47b8ca4ba8ef1b6c7a4fabcecee336a2..e4d80d5228b6c159d0072fca6a95801a290de425 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
index 5d0d760a9ef4ea3e9cb2c53c0eea1eaa0e4d547b..2496f60febb8691f07ecf5a839ce421653b8be4e 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index f5ce2641992698724c07e4fc655cf46c0475b5cb..73edbc3b80875fb83a97bb354c3f4dc63f3f3a15 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995-2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index b1d8db165d556ca3c2b962d2cb7230925701dec8..ecdd2c210fea1c4492ddcf5677c937e966928189 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
index 04e5596910ff365a4debf76c94975ca6204f67b1..b8e4ef32e7aa0109a4e5fb60fe1d05116b1f7bc3 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
index bf72c50170a1aca145fd2f4a8ff85f3285f05c18..936f54e105f10200af60ac321242388fe995fcde 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index ce1bd85971959c83bf92d1b5804aa7bcaafb0371..90e14dbe12072ad0a954aac8e021f4c22de3439a 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 9726510e9e3146835f235638dcadb23ae0694b06..b3a2a6946c17256213bbb59f7a4c268836662a40 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1999 - 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index e5fc6353af29037a0004d62a970126b4a09600d3..0518964ae1cab35c73b529ae10d2b45545af046c 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 1606f3a439ef7728f7363a7d83f5a470b1f6f553..0718cc4dfadb58e0d2672b40906362ec23c9c92a 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 76f012bf39984a24fbb649b5659e3af142f11063..245664e3add854b0ebf50b97dfce746afb9d28de 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 90be89c911b2b17119f36e078fe88be95d39f1bd..a4ff7d6930daf507acd2a6cc7cb6a0b1f2de4c31 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index b55df558031ac99ee657523e1b5ce777059ea5ce..89574c89bbe990f20b112aeb49c1ac5f31eab452 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index c39a378455b698a44907a5737cd9dabc0096fb0d..f6c1b8fd900515eaf221ee02d169013fc4378fdb 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 885b1a7e48e93ed5804e45003332e615e3dde04d..badf07e0193cd57a445265aa9bff2e72440daf2f 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
index 8de93e0ad040d6ce48aea4f0180bab593b888a7e..4103f2f981396174a42b5b2744f16937be2e1541 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index be2135ee9a832393e54617076d62b14ca5da6ccc..f1024875993b11b613c6769252876c1fd5b08e84 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 099a0639dee4e15f49bcfc03418907ea6c206c51..baebd767851ef549811e6ba68446f419153db7c4 100644 (file)
@@ -1,23 +1,23 @@
 /*
- * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan 
- * (Royal Institute of Technology, Stockholm, Sweden).  
+ * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan
+ * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 68c9b5d4c314a802b3b19e2b6d9cd9fbd7e77c2f..682874577f4598c8c7e3c27a75197697aa9d8d9a 100644 (file)
@@ -1,23 +1,23 @@
 /*
- * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan 
- * (Royal Institute of Technology, Stockholm, Sweden).  
+ * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan
+ * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 37744e542e86bb1459691400e5e22d61d9dbe21c..2511f96dfd864d72d67fc1d59a085b5c125ae6fd 100644 (file)
@@ -1,23 +1,23 @@
 /*
- * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan 
- * (Royal Institute of Technology, Stockholm, Sweden).  
+ * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan
+ * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 0d839576b3f83585c5e64d7b7b48f73a96e836c2..c2447b4e6d85cc643df10a0cd942d1fffe7351c1 100644 (file)
@@ -1,23 +1,23 @@
 /*
- * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan 
- * (Royal Institute of Technology, Stockholm, Sweden).  
+ * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan
+ * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 5611293fedd681d747c2393579dc3f4e6e04151c..fb601bd6912838b732a52db03c3f93613e9465b5 100644 (file)
@@ -1,23 +1,23 @@
 /*
- * Copyright (c) 1995, 1996, 1997 Kungliga Tekniska Högskolan 
- * (Royal Institute of Technology, Stockholm, Sweden).  
+ * Copyright (c) 1995, 1996, 1997 Kungliga Tekniska Högskolan
+ * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 30d13e2ab496e0944cbe3ec50907dcc920159454..84385fdcf0b8b5f3afb8fb5da9dee28bf7c3ec21 100644 (file)
@@ -1,23 +1,23 @@
 /*
- * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan 
- * (Royal Institute of Technology, Stockholm, Sweden).  
+ * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan
+ * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 8d9ddfa4addb164a2e8bd969bd5a6c9b1cbe66dd..e015407f18006aca779597ce12f8cbbf5dbc8ce7 100644 (file)
@@ -1,23 +1,23 @@
 /*
- * Copyright (c) 1995, 1996, 1997 Kungliga Tekniska Högskolan 
- * (Royal Institute of Technology, Stockholm, Sweden).  
+ * Copyright (c) 1995, 1996, 1997 Kungliga Tekniska Högskolan
+ * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 6f92480ac58d290317d74457abd44534b8684f26..3b95c5db0a59be4e8c7ed707f86362e14f2da66f 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 53305b4bcf1f5d7908bae90ce1f81a55268a9a0d..66df2e955b2251158b80e7bfa2907a9f4a4d7fb3 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 2000 - 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 70a9342cfd0063312532de8ead09531e869d224d..7e9215ae74e19d0fbfbc4e329114ff3a1b9dca09 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 07bbcf06eb46d058b58af740b7c91e4ef44d428d..2815f79421c7a6bd587ac8e494e8c2f466169e1b 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 1fe725556518cc0956ea0cc2765fa7eba25796d8..138d420fcb4eb81b265aed97bfc5812295ec4fc5 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 3d5432972b503a165186a47a91540849b315e73d..75419383404fd0fd135060b2a3036c9b1953d0b7 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 1995 - 2000 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 54c7b077567ca3fff8ecaff4b8c3e6e638c1bb31..e7dab34ff90109b7b8aa18cf763da89130e30a12 100644 (file)
@@ -2,22 +2,22 @@
  * Copyright (c) 2001 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 03cca8fd10a46259f742ddb4b8d61a2e3c8561c1..76c71d7008133f1eaa1ce1864b549dfb6e85c1e4 100644 (file)
@@ -3,7 +3,7 @@
 #
 # Copyright (c) 1998 Carnegie Mellon University
 # All Rights Reserved.
-# 
+#
 # Permission to use, copy, modify and distribute this software and its
 # documentation is hereby granted, provided that both the copyright
 # notice and this permission notice appear in all copies of the
index 5769bbdf4af57ef1cc77051cc6fe1542f94cb6d1..719d3a2dcf3b0e82932796371be296567996bdea 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
index 70d87c1bdefe443f2bfc5fafda1ad6d8587dcf7f..6c5c9aa9a218b289afce3cf38cbf86d824b4c726 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
@@ -110,24 +110,24 @@ wsp(XFILE * X, int count)
  *
  *   - Actually obeys the length limit, which (unfortunately) many
  *     implementations of snprintf do not.
- *  
+ *
  *   - Supports all the standard format specifiers for integers
  *     (d, i, o, u, x, X), floating-point values (f, e, E, g, G),
  *     and strings and characters (c, s, %), plus a few unusual
  *     but useful ones described below.
- *  
+ *
  *   - Supports all the standard flags (-, 0, +, space, #).  These
  *     flags are ignored if used when they are not appropriate.
- *  
+ *
  *   - Supports the standard size modifiers for short (h), long (h),
  *     and double (L) arguments.  These modifiers are ignored if used
  *     when they are not appropriate.
- *  
+ *
  *   - Supports minimum field width and precision, where appropriate,
  *     including the use of '*' to specify a value given as an argument
  *     instead of in the format string.  There is a maximum precision
  *     of 100 digits.
- *  
+ *
  *   - At present, the 'p' specifier for printing pointers is not
  *     implemented, because it is inherently non-portable and thus
  *     can be implemented correctly only by the compiler's run-time
@@ -135,25 +135,25 @@ wsp(XFILE * X, int count)
  *
  *   - Floating-point specifier (%e, %f, %g) are implemented by
  *     calling the standard sprintf, and thus may be unsafe.
- *  
+ *
  *   - The '%...$' notation is used primarily when the format string
  *     is specified by the user, who knows but cannot change the order
  *     of the arguments.  Such usage is inherently dangerous and
  *     insecure; thus, it is not supported.
- *  
+ *
  * The custom format specifier '%I' is supported.  This specifier
  * takes as its argument an unsigned long integer containing an
  * IPv4 address in network byte order.  The address is rendered
  * either as a hostname or as a dotted quad, as follows:
- *  
+ *
  *   - If precision is nonzero or unspecified, a hostname lookup
  *     is attempted; if it is successful, the hostname is printed.
  *     If the hostname lookup fails, the address is printed in
  *     dotted-quad notation.
- *  
+ *
  *   - If precision is explicitly specified as 0, then the hostname
  *     lookup is skipped, and dotted-quad notation is always used.
- *  
+ *
  *   - If a hostname is to be printed:
  *     + The precision controls the maximum number of characters
  *       printed, as with %s.
@@ -163,7 +163,7 @@ wsp(XFILE * X, int count)
  *       will be forced to upper case before printing.  If both
  *       '#' and '+' are given, the '+' flag will be ignored.
  *     + The '0' and ' ' flags have no effect.
- *  
+ *
  *   - If a dotted quad is to be printed:
  *     + The precision has no effect; dotted quads are always
  *       7 to 12 characters in length, depending on the value
index d38322d9248e2f35fe3101a208f30d4337db02d0..f043849377f9598a5c0fdd8f061138b7c8344707 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
index 97c23bf7537c7413360f8b9afa209ca592611e98..e74eef417489d7b556327ab9b2e87662f266a6a0 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
index 5f76aa777cca23f408c05ccc6a18b4502344c983..08898fb2bf48c267702df3674f1e77dd8f33e0ed 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
index 68d3595442234923b0bdf3154fcb24748e103ece..83d3b7eeda51f1bcf89966b50ded93cc0715f1a0 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1998 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
index 5d5a4a7716dc5d1dbb2e12c360d19518a3885b7e..1f2e48be5aefdfd46b8b100ba4522604341ad629 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2006, Sine Nomine Associates and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -265,7 +265,7 @@ do_salvop(struct state * state, afs_int32 command, SYNC_response * res)
        hdr = (SALVSYNC_response_hdr *) res->payload.buf;
     }
 
-    fprintf(stderr, "calling SALVSYNC_SalvageVolume with command code %d (%s)\n", 
+    fprintf(stderr, "calling SALVSYNC_SalvageVolume with command code %d (%s)\n",
            command, command_code_to_string(command));
 
     code = SALVSYNC_SalvageVolume(state->sop->volume,
@@ -284,9 +284,9 @@ do_salvop(struct state * state, afs_int32 command, SYNC_response * res)
     }
 
     fprintf(stderr, "SALVSYNC_SalvageVolume returned %d (%s)\n", code, response_code_to_string(code));
-    fprintf(stderr, "protocol response code was %d (%s)\n", 
+    fprintf(stderr, "protocol response code was %d (%s)\n",
            res->hdr.response, response_code_to_string(res->hdr.response));
-    fprintf(stderr, "protocol reason code was %d (%s)\n", 
+    fprintf(stderr, "protocol reason code was %d (%s)\n",
            res->hdr.reason, reason_code_to_string(res->hdr.reason));
 
     printf("state = {\n");
index 58fa888345f93b4c5ecd38dcc15703884b4feb3d..c6e984ef7012827904fcaed3fc55045dd2dbada4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -34,7 +34,7 @@ afs_initialize(struct secmethod_table *meths)
 {
     /*
      * Initialize kauth package here so we don't have to call it
-     * each time we call the authenticate routine.      
+     * each time we call the authenticate routine.
      */
     ka_Init(0);
     memset(meths, 0, sizeof(struct secmethod_table));
index 3541b17254d6d6495b45d1e8294c06c22f7b3d80..c6acd3491aecb0bb5687071ad1d590e210f1fbbb 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index cdbff335ed834ef0cd2aee42b99cafe71f48d789..7dc54457f939248727bba202acc2377cc6960c20 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -34,7 +34,7 @@ afs_initialize(struct secmethod_table *meths)
 {
     /*
      * Initialize kauth package here so we don't have to call it
-     * each time we call the authenticate routine.      
+     * each time we call the authenticate routine.
      */
     ka_Init(0);
     memset(meths, 0, sizeof(struct secmethod_table));
index 9c1e919fc503735f9fa16f7935576a12cf062075..a3f3b8a186726eb0a1fab98295b7a35389fbe551 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -113,10 +113,10 @@ char *afs_realm_of_cell(krb5_context context, struct afsconf_cell *cellconfig, i
     static char krbrlm[REALM_SZ+1];
     char **hrealms = 0;
     krb5_error_code retval;
-    
+
     if (!cellconfig)
         return 0;
-    
+
     if (fallback) {
         char * p;
         p = strchr(cellconfig->hostName[0], '.');
@@ -125,16 +125,16 @@ char *afs_realm_of_cell(krb5_context context, struct afsconf_cell *cellconfig, i
         else
             strcpy(krbrlm, cellconfig->name);
         for (p=krbrlm; *p; p++) {
-            if (islower(*p)) 
+            if (islower(*p))
                 *p = toupper(*p);
         }
     } else {
         if (retval = krb5_get_host_realm(context,
                                          cellconfig->hostName[0], &hrealms))
-            return 0; 
+            return 0;
         if(!hrealms[0]) return 0;
         strcpy(krbrlm, hrealms[0]);
-       
+
         if (hrealms) krb5_free_host_realm(context, hrealms);
     }
     return krbrlm;
@@ -148,13 +148,13 @@ aklog_authenticate(char *userName, char *response, int *reenter, char **message)
     int code, unixauthneeded, password_expires = -1;
     int status;
     krb5_context context;
-    
+
     krb5_init_context(&context);
     *reenter = 0;
     *message = (char *)0;
-    
+
     status = auth_to_cell(context, userName, NULL, NULL);
-    
+
     if (status) {
        char *str = afs_error_message(status);
        *message = (char *)malloc(1024);
@@ -170,30 +170,30 @@ aklog_authenticate(char *userName, char *response, int *reenter, char **message)
                    str);
        return AUTH_FAILURE; /* NOTFOUND? */
     }
-    
+
 #if 0
     /*
      * Local hack - if the person has a file in their home
      * directory called ".xlog", read that for a list of
      * extra cells to authenticate to
      */
-    
+
     if ((pwd = getpwuid(getuid())) != NULL) {
        struct stat sbuf;
        FILE *f;
        char fcell[100], xlog_path[512];
-       
+
        strcpy(xlog_path, pwd->pw_dir);
        strcat(xlog_path, "/.xlog");
-       
+
        if ((stat(xlog_path, &sbuf) == 0) &&
            ((f = fopen(xlog_path, "r")) != NULL)) {
-           
+
            while (fgets(fcell, 100, f) != NULL) {
                int auth_status;
-               
+
                fcell[strlen(fcell) - 1] = '\0';
-               
+
                auth_status = auth_to_cell(context, userName, fcell, NULL);
                if (status == AKLOG_SUCCESS)
                    status = auth_status;
@@ -206,7 +206,7 @@ aklog_authenticate(char *userName, char *response, int *reenter, char **message)
     return AUTH_SUCCESS;
 }
 
-static krb5_error_code get_credv5(krb5_context context, char *user,  
+static krb5_error_code get_credv5(krb5_context context, char *user,
                                  char *name, char *inst, char *realm,
                                  krb5_creds **creds)
 {
@@ -214,7 +214,7 @@ static krb5_error_code get_credv5(krb5_context context, char *user,
     krb5_error_code r;
     static krb5_principal client_principal = 0;
     char *str;
-    
+
     memset(&increds, 0, sizeof(increds));
     /* instance may be ptr to a null string. Pass null then */
     if ((r = krb5_build_principal(context, &increds.server,
@@ -229,18 +229,18 @@ static krb5_error_code get_credv5(krb5_context context, char *user,
         syslog(LOG_AUTH|LOG_ERR, "LAM aklog: krb5_cc_default returns %d", r);
         return r;
     }
-    r = krb5_cc_get_principal(context, _krb425_ccache, &client_principal); 
+    r = krb5_cc_get_principal(context, _krb425_ccache, &client_principal);
     if (r) {
        syslog(LOG_AUTH|LOG_ERR, "LAM aklog: krb5_cc_get_principal returns %d", r);
        return r;
-    } 
+    }
     increds.client = client_principal;
     increds.times.endtime = 0;
     /* Ask for DES since that is what V4 understands */
     get_creds_enctype((&increds)) = ENCTYPE_DES_CBC_CRC;
-    
+
     r = krb5_get_credentials(context, 0, _krb425_ccache, &increds, creds);
-    
+
     return r;
 }
 
@@ -249,17 +249,17 @@ static int get_user_realm(krb5_context context, char *realm)
 {
     static krb5_principal client_principal = 0;
     int i;
-    
+
     if (!_krb425_ccache)
         krb5_cc_default(context, &_krb425_ccache);
     if (!client_principal)
         krb5_cc_get_principal(context, _krb425_ccache, &client_principal);
-    
+
     i = realm_len(context, client_principal);
     if (i > REALM_SZ-1) i = REALM_SZ-1;
     strncpy(realm,realm_data(context, client_principal), i);
     realm[i] = 0;
-    
+
     return 0;
 }
 
@@ -294,34 +294,34 @@ static int get_cellconfig(char *cell, struct afsconf_cell *cellconfig, char *loc
 {
     int status = 0;
     struct afsconf_dir *configdir;
-    
+
     memset(local_cell, 0, sizeof(local_cell));
     memset(cellconfig, 0, sizeof(*cellconfig));
-    
+
     if (!(configdir = afsconf_Open(AFSDIR_CLIENT_ETC_DIRPATH))) {
        return AFSCONF_NODB;
     }
-    
+
     if (afsconf_GetLocalCell(configdir, local_cell, MAXCELLCHARS)) {
        return AFSCONF_FAILURE;
     }
-    
+
     if ((cell == NULL) || (cell[0] == 0))
        cell = local_cell;
-    
+
     linkedcell[0] = '\0';
     if (afsconf_GetCellInfo(configdir, cell, NULL, cellconfig)) {
        status = AFSCONF_NOTFOUND;
     }
-    if (cellconfig->linkedCell) 
+    if (cellconfig->linkedCell)
        strncpy(linkedcell,cellconfig->linkedCell,MAXCELLCHARS);
-    
+
     (void) afsconf_Close(configdir);
-    
+
     return(status);
 }
 
-/* 
+/*
  * Log to a cell.  If the cell has already been logged to, return without
  * doing anything.  Otherwise, log to it and mark that it has been logged
  * to.
@@ -331,7 +331,7 @@ static int auth_to_cell(krb5_context context, char *user, char *cell, char *real
     int status = 0;
     char username[BUFSIZ];     /* To hold client username structure */
     afs_int32 viceId;          /* AFS uid of user */
-    
+
     char name[ANAME_SZ];       /* Name of afs key */
     char primary_instance[INST_SZ];    /* Instance of afs key */
     char secondary_instance[INST_SZ];  /* Backup instance to try */
@@ -348,7 +348,7 @@ static int auth_to_cell(krb5_context context, char *user, char *cell, char *real
     struct ktc_token atoken, btoken;
     int afssetpag = 0, uid = -1;
     struct passwd *pwd;
-    
+
     memset(name, 0, sizeof(name));
     memset(primary_instance, 0, sizeof(primary_instance));
     memset(secondary_instance, 0, sizeof(secondary_instance));
@@ -359,38 +359,38 @@ static int auth_to_cell(krb5_context context, char *user, char *cell, char *real
        strncpy(confname, AFSDIR_CLIENT_ETC_DIRPATH, sizeof(confname));
        confname[sizeof(confname) - 2] = '\0';
     }
-    
+
     /* NULL or empty cell returns information on local cell */
     if ((status = get_cellconfig(cell, &ak_cellconfig,
                                 local_cell, linkedcell))) {
         syslog(LOG_AUTH|LOG_ERR, "LAM aklog: get_cellconfig returns %d", status);
        return(status);
     }
-    
+
     strncpy(cell_to_use, ak_cellconfig.name, MAXCELLCHARS);
     cell_to_use[MAXCELLCHARS] = 0;
-    
+
     /*
      * Find out which realm we're supposed to authenticate to.  If one
      * is not included, use the kerberos realm found in the credentials
      * cache.
      */
-    
+
     if (realm && realm[0]) {
        strcpy(realm_of_cell, realm);
     }
     else {
        char *afs_realm = afs_realm_of_cell(context, &ak_cellconfig, FALSE);
-       
+
        if (!afs_realm) {
             syslog(LOG_AUTH|LOG_ERR, "LAM aklog: afs_realm_of_cell returns %d", status);
            return AFSCONF_FAILURE;
        }
-       
+
        strcpy(realm_of_cell, afs_realm);
     }
-    
-    /* We use the afs.<cellname> convention here... 
+
+    /* We use the afs.<cellname> convention here...
      *
      * Doug Engert's original code had principals of the form:
      *
@@ -408,9 +408,9 @@ static int auth_to_cell(krb5_context context, char *user, char *cell, char *real
      * try the second one.  You can select which one you prefer with
      * a configure option.
      */
-    
+
     strcpy(name, AFSKEY);
-    
+
     if (1 || strcasecmp(cell_to_use, realm_of_cell) != 0) {
        strncpy(primary_instance, cell_to_use, sizeof(primary_instance));
        primary_instance[sizeof(primary_instance)-1] = '\0';
@@ -425,12 +425,12 @@ static int auth_to_cell(krb5_context context, char *user, char *cell, char *real
                sizeof(secondary_instance));
        secondary_instance[sizeof(secondary_instance)-1] = '\0';
     }
-    
-    /* 
+
+    /*
      * Extract the session key from the ticket file and hand-frob an
      * afs style authenticator.
      */
-    
+
     /*
      * Try to obtain AFS tickets.  Because there are two valid service
      * names, we will try both, but trying the more specific first.
@@ -438,61 +438,61 @@ static int auth_to_cell(krb5_context context, char *user, char *cell, char *real
      * afs/<cell>@<realm> i.e. allow for single name with "."
      *         afs@<realm>
      */
-    
+
     status = get_credv5(context, user, name, primary_instance, realm_of_cell,
                        &v5cred);
-    
-    if ((status == KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN || 
+
+    if ((status == KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN ||
         status == KRB5KRB_ERR_GENERIC) && !realm_of_cell[0]) {
        char *afs_realm = afs_realm_of_cell(context, &ak_cellconfig, TRUE);
-       
+
        if (!afs_realm) {
             syslog(LOG_AUTH|LOG_ERR, "LAM aklog: afs_realm_of_cell returns %d", status);
            return AFSCONF_FAILURE;
        }
-       
+
        strcpy(realm_of_cell, afs_realm);
-       
+
        if (strcasecmp(cell_to_use, realm_of_cell) == 0) {
            try_secondary = 1;
            secondary_instance[0] = '\0';
        }
-       
-       status = get_credv5(context, user, name, primary_instance, 
+
+       status = get_credv5(context, user, name, primary_instance,
                            realm_of_cell, &v5cred);
     }
-    if (status == KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN || 
+    if (status == KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN ||
        status == KRB5KRB_ERR_GENERIC) {
        if (try_secondary)
            status = get_credv5(context, user, name, secondary_instance,
                                realm_of_cell, &v5cred);
     }
-    
+
     if (status) {
         syslog(LOG_AUTH|LOG_ERR, "LAM aklog: get_credv5 returns %d", status);
        return status;
     }
-    
+
     strncpy(aserver.name, AFSKEY, MAXKTCNAMELEN - 1);
     strncpy(aserver.instance, AFSINST, MAXKTCNAMELEN - 1);
     strncpy(aserver.cell, cell_to_use, MAXKTCREALMLEN - 1);
-    
+
     /*
      * The default is to use rxkad2b, which means we put in a full
      * V5 ticket.  If the user specifies -524, we talk to the
      * 524 ticket converter.
      */
-    
+
     {
        char *p;
        int len;
-       
+
        len = min(get_princ_len(context, v5cred->client, 0),
                  second_comp(context, v5cred->client) ?
                  MAXKTCNAMELEN - 2 : MAXKTCNAMELEN - 1);
        strncpy(username, get_princ_str(context, v5cred->client, 0), len);
        username[len] = '\0';
-       
+
        if (second_comp(context, v5cred->client)) {
            strcat(username, ".");
            p = username + strlen(username);
@@ -501,7 +501,7 @@ static int auth_to_cell(krb5_context context, char *user, char *cell, char *real
            strncpy(p, get_princ_str(context, v5cred->client, 1), len);
            p[len] = '\0';
        }
-       
+
        memset(&atoken, 0, sizeof(atoken));
        atoken.kvno = RXKAD_TKT_TYPE_KERBEROS_V5;
        atoken.startTime = v5cred->times.starttime;;
@@ -511,7 +511,7 @@ static int auth_to_cell(krb5_context context, char *user, char *cell, char *real
        atoken.ticketLen = v5cred->ticket.length;
        memcpy(atoken.ticket, v5cred->ticket.data, atoken.ticketLen);
     }
-    
+
     if ((status = get_user_realm(context, realm_of_user))) {
         syslog(LOG_AUTH|LOG_ERR, "LAM aklog: get_user_realm returns %d", status);
        return KRB5_REALM_UNKNOWN;
@@ -520,7 +520,7 @@ static int auth_to_cell(krb5_context context, char *user, char *cell, char *real
        strcat(username, "@");
        strcat(username, realm_of_user);
     }
-    
+
     strcpy(lastcell, aserver.cell);
 
     /*
@@ -540,20 +540,20 @@ static int auth_to_cell(krb5_context context, char *user, char *cell, char *real
     if ((status == 0) && (viceId != ANONYMOUSID))
        sprintf (username, "AFS ID %d", (int) viceId);
 #else
-    /* 
-     * This actually only works assuming that your uid and pts space match 
+    /*
+     * This actually only works assuming that your uid and pts space match
      * and probably this works only for the local cell anyway.
      */
-    
+
     if ((uid = getuid()) == 0) {
        if ((pwd = getpwnam(user)) == NULL) {
            syslog(LOG_AUTH|LOG_ERR, "LAM aklog: getpwnam %s failed", user);
            return AUTH_FAILURE;
        }
     }
-    
+
     /* Don't do first-time registration. Handle only the simple case */
-    if ((status == 0) && (viceId != ANONYMOUSID)) 
+    if ((status == 0) && (viceId != ANONYMOUSID))
        sprintf (username, "AFS ID %d", ((uid==0)?(int)pwd->pw_uid:(int)uid));
 #endif
 
@@ -564,10 +564,10 @@ static int auth_to_cell(krb5_context context, char *user, char *cell, char *real
     strncpy(aclient.name, username, MAXKTCNAMELEN - 1);
     strcpy(aclient.instance, "");
     strncpy(aclient.cell, realm_of_user, MAXKTCREALMLEN - 1);
-    
+
 #ifndef AFS_AIX51_ENV
-    /* on AIX 4.1.4 with AFS 3.4a+ if a write is not done before 
-     * this routine, it will not add the token. It is not clear what 
+    /* on AIX 4.1.4 with AFS 3.4a+ if a write is not done before
+     * this routine, it will not add the token. It is not clear what
      * is going on here! So we will do the following operation.
      * On AIX 5 this kills our parent. So we won't.
      */
@@ -578,7 +578,7 @@ static int auth_to_cell(krb5_context context, char *user, char *cell, char *real
        struct sigaction newAction, origAction;
        pid_t cid, pcid;
        int wstatus;
-       
+
        sigemptyset(&newAction.sa_mask);
        newAction.sa_handler = SIG_DFL;
        newAction.sa_flags = 0;
@@ -602,9 +602,9 @@ static int auth_to_cell(krb5_context context, char *user, char *cell, char *real
            } while ((pcid == -1) && (errno == EINTR));
            if ((pcid == cid) && WIFEXITED(wstatus))
                status = WEXITSTATUS(wstatus);
-           else 
+           else
                status = -1;
-       } 
+       }
        syslog(LOG_AUTH|LOG_DEBUG, "LAM aklog: collected child status %d", status);
        sigaction(SIGCHLD, &origAction, NULL);
     } else {
@@ -621,7 +621,7 @@ int
 aklog_initialize(struct secmethod_table *meths)
 {
     memset(meths, 0, sizeof(struct secmethod_table));
-    syslog(LOG_AUTH|LOG_DEBUG, "LAM aklog loaded: uid %d pag %d", getuid(), getpagvalue("afs"));    
+    syslog(LOG_AUTH|LOG_DEBUG, "LAM aklog loaded: uid %d pag %d", getuid(), getpagvalue("afs"));
     /*
      * Initialize the exported interface routines.
      * Aside from method_authenticate, these are just no-ops.
@@ -631,7 +631,7 @@ aklog_initialize(struct secmethod_table *meths)
     meths->method_passwdexpired = aklog_passwdexpired;
     meths->method_passwdrestrictions = aklog_passwdrestrictions;
     meths->method_getpasswd = aklog_getpasswd;
-    
+
     return (0);
 }
 #endif /* AFS_AIX51_ENV */
index b0013b5e583c2ba2407bb1eaaf11e5974e3c510f..8772f93a0e6edd2e07aa87c222e00da4c3ee9e4b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 80907a354b7de3f23cc74166da4d0180790f6595..8e3826acaa17344b3e15bcffb478e823d2360d59 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
 #ifndef _AFS_TSM41_AIX_AUTH_PROTOTYPES_H
 #define _AFS_TSM41_AIX_AUTH_PROTOTYPES_H
 
-extern int afs_authenticate(char *userName, 
-                           char *response, 
-                           int *reenter, 
+extern int afs_authenticate(char *userName,
+                           char *response,
+                           int *reenter,
                            char **message);
-extern int afs_chpass(char *userName, char *oldPasswd, 
+extern int afs_chpass(char *userName, char *oldPasswd,
                      char *newPasswd, char **message);
 extern int afs_passwdexpired(char *userName, char **message);
-extern int afs_passwdrestrictions(char *userName, char *newPasswd, 
+extern int afs_passwdrestrictions(char *userName, char *newPasswd,
                                  char *oldPasswd, char ** message);
 extern char * afs_getpasswd(char * userName);
 extern void aix_ktc_setup_ticket_file(char * userName);
index 686cface96e29ae3256460afb439ae03a32dc0d3..a4cc1d465b490b16560c32c2c4ecef29e8842e06 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 22b2683040498fe9c8fb9ad68792a2b85254ac26..bbfc0c0446a4e8a88eb5fb06acc73cdb8651a78a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -40,7 +40,7 @@ aix_ktc_setup_ticket_file(char * userName)
     setpwent();                        /* open the pwd database */
     pwd = getpwnam(userName);
     if (pwd) {
-       if (chown(ktc_tkt_string_uid(pwd->pw_uid), 
+       if (chown(ktc_tkt_string_uid(pwd->pw_uid),
                  pwd->pw_uid, pwd->pw_gid) < 0) {
            perror("chown: ");
        }
index b330ce4b9aa6d2a81992baa7a5c727944ec3a8e4..654f472e936e8d85fadcd9a011c824fc301e7473 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2006, Sine Nomine Associates and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -151,7 +151,7 @@ fs_stateFileOpen(struct fs_dump_state *state)
 
 /*
  * demand attach fs
- * save all fileserver state 
+ * save all fileserver state
  */
 int
 fs_stateSave(void)
@@ -160,7 +160,7 @@ fs_stateSave(void)
     struct fs_dump_state state;
 
     /* save and restore need to be atomic wrt other host package operations */
-    H_LOCK; 
+    H_LOCK;
 
     ViceLog(0, ("fs_stateSave: commencing fileserver state dump\n"));
 
@@ -236,7 +236,7 @@ fs_stateSave(void)
 
     if (fs_stateCommitDump(&state)) {
        ViceLog(0, ("fs_stateSave: error: dump commit failed\n"));
-       ret = 1; 
+       ret = 1;
        goto done;
     }
 
@@ -364,8 +364,8 @@ fs_stateCreateDump(struct fs_dump_state * state)
        renamefile(state->fn, savedump);
     }
 
-    if (((fd = afs_open(state->fn, 
-                       O_RDWR | O_CREAT | O_TRUNC, 
+    if (((fd = afs_open(state->fn,
+                       O_RDWR | O_CREAT | O_TRUNC,
                        S_IRUSR | S_IWUSR)) == -1) ||
        (afs_fstat(fd, &status) == -1)) {
        ViceLog(0, ("fs_stateCreateDump: failed to create state dump file '%s'\n",
@@ -451,7 +451,7 @@ fs_stateCommitDump(struct fs_dump_state * state)
     }
 #endif
 
-    /* ensure that all pending data I/Os for the state file have been committed 
+    /* ensure that all pending data I/Os for the state file have been committed
      * _before_ we make the metadata I/Os */
     if (fs_stateSync(state)) {
        ViceLog(0, ("fs_stateCommitDump: failed to sync changes to disk\n"));
@@ -463,8 +463,8 @@ fs_stateCommitDump(struct fs_dump_state * state)
     /* XXX madvise may not exist on all platforms, so
      * we may need to add some ifdefs at some point... */
     {
-       madvise((((char *)state->mmap.map) + sizeof(struct fs_state_header)), 
-               state->mmap.size - sizeof(struct fs_state_header), 
+       madvise((((char *)state->mmap.map) + sizeof(struct fs_state_header)),
+               state->mmap.size - sizeof(struct fs_state_header),
                MADV_DONTNEED);
     }
 #endif
@@ -570,7 +570,7 @@ fs_stateWrite(struct fs_dump_state * state,
            goto done;
        }
     }
-           
+
     memcpy(state->mmap.cursor, buf, len);
     fs_stateIncCursor(state, len);
 #else
@@ -820,11 +820,11 @@ fs_stateMapFile(struct fs_dump_state * state)
        return 1;
     }
 
-    state->mmap.map = afs_mmap(NULL, 
-                              state->file_len, 
-                              flags, 
+    state->mmap.map = afs_mmap(NULL,
+                              state->file_len,
+                              flags,
                               MAP_SHARED,
-                              state->fd, 
+                              state->fd,
                               0);
 
     if (state->mmap.map == MAP_FAILED) {
@@ -1049,14 +1049,14 @@ fs_stateCheckHeader(struct fs_state_header * hdr)
      * uncomment the following code.  uncommenting this code is _strongly discouraged_ because
      * we already make use of the version stamps in the various dump headers to deal with
      * data structure version incompatabilities.
-    else if (strncmp(hdr->server_version_string, cml_version_number, 
+    else if (strncmp(hdr->server_version_string, cml_version_number,
                     sizeof(hdr->server_version_string)) != 0) {
        ViceLog(0, ("fs_stateCheckHeader: dump from different server version\n"));
        ret = 1;
     }
     */
 
-    else if (strncmp(hdr->server_version_string, cml_version_number, 
+    else if (strncmp(hdr->server_version_string, cml_version_number,
                     sizeof(hdr->server_version_string)) != 0) {
        ViceLog(0, ("fs_stateCheckHeader: dump from different server version ; attempting state reload anyway\n"));
     }
index 74b57d14a97949cfddb67a18282365c463c2d400..b213518bb230026f681d423e7c6fe72c3830d54d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2006, Sine Nomine Associates and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -212,8 +212,8 @@ struct idx_map_entry_t {
 
 /* verification process sanity check constants
  *
- * make them fairly large so we don't get 
- * false positives 
+ * make them fairly large so we don't get
+ * false positives
  */
 #define FS_STATE_H_MAX_UUID_HASH_CHAIN_LEN    100000     /* max elements in a host uuid-hash chain */
 #define FS_STATE_H_MAX_ADDR_HASH_CHAIN_LEN    2000000    /* max elements in a host ipv4-hash chain */
index 11928d8307eee586b8653a4f20556e5361b4540f..77f39d8dc6835672723dbbf4c2e628d0c70af9c1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2006, Sine Nomine Associates and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -272,7 +272,7 @@ openFile(char * path)
 {
     int ret = 0;
     struct afs_stat status;
-    
+
     dump_fd = afs_open(path, O_RDWR);
     if (dump_fd == -1) {
        fprintf(stderr, "dump file '%s' failed to open\n", path);
@@ -571,7 +571,7 @@ prompt(void)
            tok = strtok(NULL, " \t");
            if (!tok || strcasecmp(tok, "by")) {
                tok = NULL;
-               fprintf(stderr, "find syntax error 1 (%s)\n", 
+               fprintf(stderr, "find syntax error 1 (%s)\n",
                        (tok) ? tok : "nil");
                continue;
            }
@@ -1095,7 +1095,7 @@ dump_next_he(void)
        fprintf(stderr, "no more HEs\n");
        return;
     }
-    
+
     dump_he(he_cursor.idx+1);
 }
 
@@ -1111,7 +1111,7 @@ dump_next_fe(void)
        fprintf(stderr, "no more FEs\n");
        return;
     }
-    
+
     dump_fe(fe_cursor.idx+1);
 }
 
@@ -1127,7 +1127,7 @@ dump_next_cb(void)
        fprintf(stderr, "no more CBs\n");
        return;
     }
-    
+
     dump_cb(cb_cursor.idx+1);
 }
 
@@ -1138,7 +1138,7 @@ dump_prev_he(void)
        fprintf(stderr, "no more HEs\n");
        return;
     }
-    
+
     dump_he(he_cursor.idx-1);
 }
 
@@ -1149,7 +1149,7 @@ dump_prev_fe(void)
        fprintf(stderr, "no more FEs\n");
        return;
     }
-    
+
     dump_fe(fe_cursor.idx-1);
 }
 
@@ -1160,7 +1160,7 @@ dump_prev_cb(void)
        fprintf(stderr, "no more CBs\n");
        return;
     }
-    
+
     dump_cb(cb_cursor.idx-1);
 }
 
@@ -1176,7 +1176,7 @@ dump_first_fe(void)
        fprintf(stderr, "no FEs present\n");
        return;
     }
-    
+
     dump_fe(0);
 }
 
@@ -1192,7 +1192,7 @@ dump_first_he(void)
        fprintf(stderr, "no HEs present\n");
        return;
     }
-    
+
     dump_he(0);
 }
 
@@ -1208,7 +1208,7 @@ dump_first_cb(void)
        fprintf(stderr, "no CBs present\n");
        return;
     }
-    
+
     dump_cb(0);
 }
 
@@ -1224,7 +1224,7 @@ dump_last_he(void)
        fprintf(stderr, "no HEs present\n");
        return;
     }
-    
+
     dump_he(hdrs.h_hdr.records-1);
 }
 
@@ -1240,7 +1240,7 @@ dump_last_fe(void)
        fprintf(stderr, "no FEs present\n");
        return;
     }
-    
+
     dump_fe(hdrs.cb_hdr.nFEs-1);
 }
 
@@ -1492,7 +1492,7 @@ get_h_hdr(void)
        fprintf(stderr, "hi offset bits set in h_offset; can't get host_state_header\n");
        return 1;
     }
-    if ((lo >= map_len) || 
+    if ((lo >= map_len) ||
        ((lo + sizeof(struct host_state_header)) > map_len) ||
        (lo + sizeof(struct host_state_header) < lo)) {
        fprintf(stderr, "h_offset puts host_state_header beyond end of memory map\n");
@@ -1526,7 +1526,7 @@ get_cb_hdr(void)
        fprintf(stderr, "hi offset bits set in cb_offset; can't get callback_state_header\n");
        return 1;
     }
-    if ((lo >= map_len) || 
+    if ((lo >= map_len) ||
        ((lo + sizeof(struct callback_state_header)) > map_len) ||
        (lo + sizeof(struct callback_state_header) < lo)) {
        fprintf(stderr, "cb_offset puts callback_state_header beyond end of memory map\n");
@@ -1579,7 +1579,7 @@ get_cb_timeout_hdr(void)
        fprintf(stderr, "hi offset bits set in timeout_offset; can't get callback_state_timeout_header\n");
        return 1;
     }
-    if ((lo >= map_len) || 
+    if ((lo >= map_len) ||
        ((lo + sizeof(struct callback_state_timeout_header)) > map_len) ||
        (lo + sizeof(struct callback_state_timeout_header) < lo)) {
        fprintf(stderr, "timeout_offset puts callback_state_timeout_header beyond end of memory map\n");
@@ -1630,7 +1630,7 @@ get_cb_fehash_hdr(void)
        fprintf(stderr, "hi offset bits set in fehash_offset; can't get callback_state_fehash_header\n");
        return 1;
     }
-    if ((lo >= map_len) || 
+    if ((lo >= map_len) ||
        ((lo + sizeof(struct callback_state_fehash_header)) > map_len) ||
        (lo + sizeof(struct callback_state_fehash_header) < lo)) {
        fprintf(stderr, "timeout_offset puts callback_state_fehash_header beyond end of memory map\n");
@@ -1821,7 +1821,7 @@ get_fe_hdr(void)
            return 1;
         }
     }
-    
+
     memcpy(&fe_cursor.hdr, fe_cursor.cursor, sizeof(struct callback_state_entry_header));
     fe_cursor.hdr_valid = 1;
     return 0;
index 8a5492f8d9fc0881a0c94490d76049b297a29f35..1d3ee6dfb91179e1afa975deb688958149b81dde 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -80,7 +80,7 @@ static int updateUbikNetworkAddress(afs_uint32 ubik_host[UBIK_MAX_INTERFACE_ADDR
  * not to vote for someone else.  This parameter (BIG seconds) is not actually passed in
  * the interface (perhaps it should be?) but is instead a compile time constant that both
  * sides know about.
+
  * The beacon and vote modules work intimately together; the vote module decides how long
  * it should promise the beacon module its vote, and the beacon module takes all of these
  * votes and decides for how long it is the synchronization site.
@@ -177,8 +177,8 @@ ubeacon_InitServerList(afs_uint32 ame, afs_uint32 aservers[])
  * \param ame "address of me"
  * \param aservers list of other servers
  *
- * called only at initialization to set up the list of servers to 
- * contact for votes.  Just creates the server structure.  
+ * called only at initialization to set up the list of servers to
+ * contact for votes.  Just creates the server structure.
  *
  * The "magic" host is the one with the lowest internet address.  It is
  * magic because its vote counts epsilon more than the others.  This acts
@@ -188,10 +188,10 @@ ubeacon_InitServerList(afs_uint32 ame, afs_uint32 aservers[])
  * site system, we'd be out of business.
  *
  * \note There are two connections in every server structure, one for
- * vote calls (which must always go through quickly) and one for database 
- * operations, which are subject to waiting for locks.  If we used only 
- * one, the votes would sometimes get held up behind database operations, 
- * and the sync site guarantees would timeout even though the host would be 
+ * vote calls (which must always go through quickly) and one for database
+ * operations, which are subject to waiting for locks.  If we used only
+ * one, the votes would sometimes get held up behind database operations,
+ * and the sync site guarantees would timeout even though the host would be
  * up for communication.
  *
  * \see ubeacon_InitServerList(), ubeacon_InitServerListByInfo()
@@ -307,7 +307,7 @@ ubeacon_InitServerListCommon(afs_uint32 ame, struct afsconf_cell *info,
        return code;
 
 /* Shoud we set some defaults for RX??
-    r_retryInterval = 2;       
+    r_retryInterval = 2;
     r_nRetries = (RPCTIMEOUT/r_retryInterval);
 */
     if (info) {
@@ -331,9 +331,9 @@ ubeacon_InitServerListCommon(afs_uint32 ame, struct afsconf_cell *info,
     return 0;
 }
 
-/*! 
+/*!
  * \brief main lwp loop for code that sends out beacons.
- * 
+ *
  * This code only runs while we're sync site or we want to be the sync site.
  * It runs in its very own light-weight process.
  */
@@ -391,7 +391,7 @@ ubeacon_Interact(void *dummy)
            }
        }
        servers[i] = (struct ubik_server *)0;   /* end of list */
-       /* note that we assume in the vote module that we'll always get at least BIGTIME 
+       /* note that we assume in the vote module that we'll always get at least BIGTIME
         * seconds of vote from anyone who votes for us, which means we can conservatively
         * assume we'll be fine until SMALLTIME seconds after we start collecting votes */
        /* this next is essentially an expansion of rgen's ServBeacon routine */
@@ -503,15 +503,15 @@ ubeacon_Interact(void *dummy)
  * \brief Verify that a given IP addresses does actually exist on this machine.
  *
  * \param ame      the pointer to my IP address specified in the
- *                 CellServDB file. 
- * \param aservers an array containing IP 
- *                 addresses of remote ubik servers. The array is 
+ *                 CellServDB file.
+ * \param aservers an array containing IP
+ *                 addresses of remote ubik servers. The array is
  *                 terminated by a zero address.
  *
  * Algorithm     : Verify that my IP addresses \p ame does actually exist
- *                 on this machine.  If any of my IP addresses are there 
- *                 in the remote server list \p aserver, remove them from 
- *                 this list.  Update global variable \p ubik_host[] with 
+ *                 on this machine.  If any of my IP addresses are there
+ *                 in the remote server list \p aserver, remove them from
+ *                 this list.  Update global variable \p ubik_host[] with
  *                 my IP addresses.
  *
  * \return 0 on success, non-zero on failure
@@ -535,7 +535,7 @@ verifyInterfaceAddress(afs_uint32 *ame, struct afsconf_cell *info,
     if (AFSDIR_SERVER_NETRESTRICT_FILEPATH || AFSDIR_SERVER_NETINFO_FILEPATH) {
        /*
         * Find addresses we are supposed to register as per the netrestrict file
-        * if it exists, else just register all the addresses we find on this 
+        * if it exists, else just register all the addresses we find on this
         * host as returned by rx_getAllAddr (in NBO)
         */
        char reason[1024];
@@ -597,7 +597,7 @@ verifyInterfaceAddress(afs_uint32 *ame, struct afsconf_cell *info,
     }
 
     /* if any of my addresses are there in serverList, then
-     ** use that as my primary addresses : the higher level 
+     ** use that as my primary addresses : the higher level
      ** application screwed up in dealing with multihomed concepts
      */
     for (j = 0, found = 0; j < count; j++) {
@@ -618,8 +618,8 @@ verifyInterfaceAddress(afs_uint32 *ame, struct afsconf_cell *info,
        ubik_print("Using %s as my primary address\n", afs_inet_ntoa_r(*ame, hoststr));
 
     if (!info) {
-       /* get rid of servers which were purged because all 
-        ** those interface addresses are myself 
+       /* get rid of servers which were purged because all
+        ** those interface addresses are myself
         */
        for (start = 0, end = totalServers - 1; (start < end); start++, end--) {
            /* find the first zero entry from the beginning */
@@ -638,8 +638,8 @@ verifyInterfaceAddress(afs_uint32 *ame, struct afsconf_cell *info,
        }
     }
 
-    /* update all my addresses in ubik_host in such a way 
-     ** that ubik_host[0] has the primary address 
+    /* update all my addresses in ubik_host in such a way
+     ** that ubik_host[0] has the primary address
      */
     ubik_host[0] = *ame;
     for (j = 0, i = 1; j < count; j++)
@@ -650,12 +650,12 @@ verifyInterfaceAddress(afs_uint32 *ame, struct afsconf_cell *info,
 }
 
 
-/*! 
+/*!
  * \brief Exchange IP address information with remote servers.
  *
  * \param ubik_host an array containing all my IP addresses.
  *
- * Algorithm     : Do an RPC to all remote ubik servers infroming them 
+ * Algorithm     : Do an RPC to all remote ubik servers infroming them
  *                 about my IP addresses. Get their IP addresses and
  *                 update my linked list of ubik servers \p ubik_servers
  *
index bda3cc9304aaef6452af01badd9479940d8e9e98..9a9da8f88539fe2668b80aae05fd6cf29402814e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -558,7 +558,7 @@ DRelease(char *ap, int flag)
 
 /*!
  * \brief Flush all modified buffers, leaves dirty bits set (they're cleared
- * by DSync()).  
+ * by DSync()).
  *
  * \note Note interaction with DSync(): you call this thing first,
  * writing the buffers to the disk.  Then you call DSync() to sync all the
@@ -844,7 +844,7 @@ udisk_commit(struct ubik_trans *atrans)
            dbase->version = newversion;
 
            /* Ignore the error here. If the call fails, the site is
-            * marked down and when we detect it is up again, we will 
+            * marked down and when we detect it is up again, we will
             * send the entire database to it.
             */
            ContactQuorum_DISK_SetVersion( atrans, 1 /*CStampVersion */ ,
@@ -865,7 +865,7 @@ udisk_commit(struct ubik_trans *atrans)
        }
 
        /* If we fail anytime after this, then panic and let the
-        * recovery replay the log. 
+        * recovery replay the log.
         */
        code = DFlush(dbase);   /* write dirty pages to respective files */
        if (code)
@@ -909,9 +909,9 @@ udisk_abort(struct ubik_trans *atrans)
        return UTWOENDS;
 
     /* Check if we are the write trans before logging abort, lest we
-     * abort a good write trans in progress. 
-     * We don't really care if the LOGABORT gets to the log because we 
-     * truncate the log next. If the truncate fails, we panic; for 
+     * abort a good write trans in progress.
+     * We don't really care if the LOGABORT gets to the log because we
+     * truncate the log next. If the truncate fails, we panic; for
      * otherwise, the log entries remain. On restart, replay of the log
      * will do nothing because the abort is there or no LogEnd opcode.
      */
index accc834ca08ef84c4b4bc8224933c417921bccaf..6c609e5b827d6a5801351b74a76f4593816896bd 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -44,7 +44,7 @@
  * as it requires ulock_getLock to be called with await = 0. And ulock_SetLock
  * isn't even used in this code base. Since NT doesn't have a native
  * #EAGAIN, we are replacing all instances of #EWOULDBLOCK with #EAGAIN.
- * 
+ *
  */
 
 #define WouldReadBlock(lock)\
@@ -106,9 +106,9 @@ ulock_getLock(struct ubik_trans *atrans, int atype, int await)
      * * locktype.  Before doing that, set TRSETLOCK,
      * * to tell udisk_end that another thread (us) is waiting.
      * #else
-     * * locktype. This field also tells us if the thread is 
+     * * locktype. This field also tells us if the thread is
      * * waiting for a lock: It will be equal to LOCKWAIT.
-     * #endif 
+     * #endif
      */
 #if defined(UBIK_PAUSE)
     if (atrans->flags & TRSETLOCK) {
index 32cf859c2457535c8f37f0e79133eb8a105fb914..d0f65c7aae6cd675ceb15e7198c6ec86e5542cf8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -88,7 +88,7 @@ uphys_open(struct ubik_dbase *adbase, afs_int32 afid)
     }
 
     /* not found, open it and try to enter in cache */
-    afs_snprintf(pbuffer, sizeof(pbuffer), "%s.DB%s%d", adbase->pathName, 
+    afs_snprintf(pbuffer, sizeof(pbuffer), "%s.DB%s%d", adbase->pathName,
                 (afid<0)?"SYS":"", (afid<0)?-afid:afid);
     fd = open(pbuffer, O_CREAT | O_RDWR, 0600);
     if (fd < 0) {
@@ -118,7 +118,7 @@ uphys_open(struct ubik_dbase *adbase, afs_int32 afid)
     }
     if (bestfd) {              /* found a usable slot */
        tfd = bestfd;
-       if (tfd->fd >= 0) 
+       if (tfd->fd >= 0)
            close(tfd->fd);
        tfd->fd = fd;
        tfd->refCount = 1;      /* us */
index 74cf0b9ad68d3edfaeaf558a98754adb29a3ba21..5992a9a04e1287aaf4fed21878baf82e5c474eb5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  */
 
 /*!
- * if this flag is set, then ubik will use only the primary address 
- * (the address specified in the CellServDB) to contact other 
- * ubik servers. Ubik recovery will not try opening connections 
- * to the alternate interface addresses. 
+ * if this flag is set, then ubik will use only the primary address
+ * (the address specified in the CellServDB) to contact other
+ * ubik servers. Ubik recovery will not try opening connections
+ * to the alternate interface addresses.
  */
 int ubikPrimaryAddrOnly;
 
@@ -86,7 +86,7 @@ urecovery_ResetState(void)
  * routine called when a non-sync site server goes down; restarts recovery
  * process to send missing server the new db when it comes back up.
  *
- * \note This routine should not do anything with variables used by non-sync site servers. 
+ * \note This routine should not do anything with variables used by non-sync site servers.
  */
 int
 urecovery_LostServer(void)
@@ -483,7 +483,7 @@ urecovery_Interact(void *dummy)
 
        /* Every 30 seconds, check all the down servers and mark them
         * as up if they respond. When a server comes up or found to
-        * not be current, then re-find the the best database and 
+        * not be current, then re-find the the best database and
         * propogate it.
         */
        if ((now = FT_ApproxTime()) > 30 + lastProbeTime) {
@@ -511,7 +511,7 @@ urecovery_Interact(void *dummy)
        }
        urecovery_state |= UBIK_RECSYNCSITE;
 
-       /* If a server has just come up or if we have not found the 
+       /* If a server has just come up or if we have not found the
         * most current database, then go find the most current db.
         */
        if (!(urecovery_state & UBIK_RECFOUNDDB)) {
@@ -659,7 +659,7 @@ urecovery_Interact(void *dummy)
            code = close(fd);
            if (code)
                goto FetchEndCall;
-#endif     
+#endif
            code = EndDISK_GetFile(rxcall, &tversion);
          FetchEndCall:
            tcode = rx_EndCall(rxcall, code);
@@ -681,7 +681,7 @@ urecovery_Interact(void *dummy)
                    code = rename(tbuffer, pbuffer);
                afs_snprintf(pbuffer, sizeof(pbuffer), "%s.DB%s%d.TMP", ubik_dbase->pathName, (file<0)?"SYS":"", (file<0)?-file:file);
 #endif
-               if (!code) 
+               if (!code)
                    code = rename(pbuffer, tbuffer);
                if (!code) {
                    (*ubik_dbase->open) (ubik_dbase, 0);
@@ -701,7 +701,7 @@ urecovery_Interact(void *dummy)
            if (code) {
 #ifndef OLD_URECOVERY
                unlink(pbuffer);
-               /* 
+               /*
                 * We will effectively invalidate the old data forever now.
                 * Unclear if we *should* but we do.
                 */
@@ -859,8 +859,8 @@ urecovery_Interact(void *dummy)
 }
 
 /*!
- * \brief send a Probe to all the network address of this server 
- * 
+ * \brief send a Probe to all the network address of this server
+ *
  * \return 0 if success, else return 1
  */
 int
index 810399ba8924b684ab2227c8a99e1e18c23a7995..3654b7742241897a406474f746762d9c4833c1e9 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -211,9 +211,9 @@ SDISK_Abort(struct rx_call *rxcall, struct ubik_tid *atid)
 
 /* apos and alen are not used */
 afs_int32
-SDISK_Lock(struct rx_call *rxcall, struct ubik_tid *atid, 
+SDISK_Lock(struct rx_call *rxcall, struct ubik_tid *atid,
           afs_int32 afile, afs_int32 apos, afs_int32 alen, afs_int32 atype)
-{      
+{
     afs_int32 code;
     struct ubik_dbase *dbase;
     struct ubik_trans *ubik_thisTrans;
@@ -259,7 +259,7 @@ SDISK_Lock(struct rx_call *rxcall, struct ubik_tid *atid,
  * \brief Write a vector of data
  */
 afs_int32
-SDISK_WriteV(struct rx_call *rxcall, struct ubik_tid *atid, 
+SDISK_WriteV(struct rx_call *rxcall, struct ubik_tid *atid,
             iovec_wrt *io_vector, iovec_buf *io_buffer)
 {
     afs_int32 code, i, offset;
@@ -308,7 +308,7 @@ SDISK_WriteV(struct rx_call *rxcall, struct ubik_tid *atid,
 }
 
 afs_int32
-SDISK_Write(struct rx_call *rxcall, struct ubik_tid *atid, 
+SDISK_Write(struct rx_call *rxcall, struct ubik_tid *atid,
            afs_int32 afile, afs_int32 apos, bulkdata *adata)
 {
     afs_int32 code;
@@ -340,7 +340,7 @@ SDISK_Write(struct rx_call *rxcall, struct ubik_tid *atid,
 }
 
 afs_int32
-SDISK_Truncate(struct rx_call *rxcall, struct ubik_tid *atid, 
+SDISK_Truncate(struct rx_call *rxcall, struct ubik_tid *atid,
               afs_int32 afile, afs_int32 alen)
 {
     afs_int32 code;
@@ -370,7 +370,7 @@ SDISK_Truncate(struct rx_call *rxcall, struct ubik_tid *atid,
 }
 
 afs_int32
-SDISK_GetVersion(struct rx_call *rxcall, 
+SDISK_GetVersion(struct rx_call *rxcall,
                 struct ubik_version *aversion)
 {
     afs_int32 code;
@@ -407,7 +407,7 @@ SDISK_GetVersion(struct rx_call *rxcall,
 }
 
 afs_int32
-SDISK_GetFile(struct rx_call *rxcall, afs_int32 file, 
+SDISK_GetFile(struct rx_call *rxcall, afs_int32 file,
              struct ubik_version *version)
 {
     afs_int32 code;
@@ -422,7 +422,7 @@ SDISK_GetFile(struct rx_call *rxcall, afs_int32 file,
        return code;
     }
 /* temporarily disabled because it causes problems for migration tool.  Hey, it's just
- * a sanity check, anyway. 
+ * a sanity check, anyway.
     if (ubeacon_AmSyncSite()) {
       return UDEADLOCK;
     }
@@ -466,7 +466,7 @@ SDISK_GetFile(struct rx_call *rxcall, afs_int32 file,
 }
 
 afs_int32
-SDISK_SendFile(struct rx_call *rxcall, afs_int32 file, 
+SDISK_SendFile(struct rx_call *rxcall, afs_int32 file,
               afs_int32 length, struct ubik_version *avers)
 {
     afs_int32 code;
@@ -580,7 +580,7 @@ SDISK_SendFile(struct rx_call *rxcall, afs_int32 file,
     code = close(fd);
     if (code)
        goto failed;
-#endif     
+#endif
 
     /* sync data first, then write label and resync (resync done by setlabel call).
      * This way, good label is only on good database. */
@@ -595,7 +595,7 @@ SDISK_SendFile(struct rx_call *rxcall, afs_int32 file,
        code = rename(tbuffer, pbuffer);
     afs_snprintf(pbuffer, sizeof(pbuffer), "%s.DB%s%d.TMP", ubik_dbase->pathName, (file<0)?"SYS":"", (file<0)?-file:file);
 #endif
-    if (!code) 
+    if (!code)
        code = rename(pbuffer, tbuffer);
     if (!code) {
        (*ubik_dbase->open) (ubik_dbase, 0);
@@ -649,8 +649,8 @@ SDISK_Probe(struct rx_call *rxcall)
  * \return zero on success, else 1.
  */
 afs_int32
-SDISK_UpdateInterfaceAddr(struct rx_call *rxcall, 
-                         UbikInterfaceAddr *inAddr, 
+SDISK_UpdateInterfaceAddr(struct rx_call *rxcall,
+                         UbikInterfaceAddr *inAddr,
                          UbikInterfaceAddr *outAddr)
 {
     struct ubik_server *ts, *tmp;
@@ -731,8 +731,8 @@ printServerInfo(void)
 }
 
 afs_int32
-SDISK_SetVersion(struct rx_call *rxcall, struct ubik_tid *atid, 
-                struct ubik_version *oldversionp, 
+SDISK_SetVersion(struct rx_call *rxcall, struct ubik_tid *atid,
+                struct ubik_version *oldversionp,
                 struct ubik_version *newversionp)
 {
     afs_int32 code = 0;
index 438ad699375c08c3e8624d1d70ff7f8501d4d1a5..fd8caa6c77a376213baa5bec4f17c075e8325ee1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -41,7 +41,7 @@
  * \file
  * This system is organized in a hierarchical set of related modules.  Modules
  * at one level can only call modules at the same level or below.
- * 
+ *
  * At the bottom level (0) we have R, RFTP, LWP and IOMGR, i.e. the basic
  * operating system primitives.
  *
  * \li DISK--The module responsible for representing atomic transactions
  * on the local disk.  It maintains a new-value only log.
  * \li LOCK--The module responsible for locking byte ranges in the database file.
- *     
+ *
  * At the next level (2) we have
- *  
+ *
  * \li RECOVERY--The module responsible for ensuring that all members of a quorum
  * have the same up-to-date database after a new synchronization site is
  * elected.  This module runs only on the synchronization site.
- *     
+ *
  * At the next level (3) we have
  *
  * \li REMOTE--The module responsible for interpreting requests from the sync
@@ -93,17 +93,17 @@ struct rx_securityClass *ubik_sc[3];
 
 #define        CStampVersion       1   /* meaning set ts->version */
 
-/*! 
+/*!
  * \brief Perform an operation at a quorum, handling error conditions.
  * \return 0 if all worked and a quorum was contacted successfully
  * \return otherwise mark failing server as down and return #UERROR
  *
  * \note If any server misses an update, we must wait #BIGTIME seconds before
- * allowing the transaction to commit, to ensure that the missing and 
- * possibly still functioning server times out and stops handing out old 
- * data.  This is done in the commit code, where we wait for a server marked 
- * down to have stayed down for #BIGTIME seconds before we allow a transaction 
- * to commit.  A server that fails but comes back up won't give out old data 
+ * allowing the transaction to commit, to ensure that the missing and
+ * possibly still functioning server times out and stops handing out old
+ * data.  This is done in the commit code, where we wait for a server marked
+ * down to have stayed down for #BIGTIME seconds before we allow a transaction
+ * to commit.  A server that fails but comes back up won't give out old data
  * because it is sent the sync count along with the beacon message that
  * marks it as \b really up (\p beaconSinceDown).
  */
@@ -330,7 +330,7 @@ ContactQuorum_DISK_WriteV(struct ubik_trans *atrans, int aflags,
 }
 
 afs_int32
-ContactQuorum_DISK_SetVersion(struct ubik_trans *atrans, int aflags, 
+ContactQuorum_DISK_SetVersion(struct ubik_trans *atrans, int aflags,
                              ubik_version *OldVersion,
                              ubik_version *NewVersion)
 {
@@ -346,7 +346,7 @@ ContactQuorum_DISK_SetVersion(struct ubik_trans *atrans, int aflags,
            ts->currentDB = 0;  /* db is no longer current; we just missed an update */
            continue;           /* not up-to-date, don't bother */
        }
-       code = DISK_SetVersion(ts->disk_rxcid, &atrans->tid, OldVersion, 
+       code = DISK_SetVersion(ts->disk_rxcid, &atrans->tid, OldVersion,
                               NewVersion);
        if (code) {             /* failure */
            rcode = code;
@@ -369,12 +369,12 @@ ContactQuorum_DISK_SetVersion(struct ubik_trans *atrans, int aflags,
        return rcode;
 }
 
-/*! 
+/*!
  * \brief This routine initializes the ubik system for a set of servers.
  * \return 0 for success, or an error code on failure.
  * \param serverList set of servers specified; nServers gives the number of entries in this array.
- * \param pathName provides an initial prefix used for naming storage files used by this system.  
- * \param dbase the returned structure representing this instance of an ubik; it is passed to various calls below.  
+ * \param pathName provides an initial prefix used for naming storage files used by this system.
+ * \param dbase the returned structure representing this instance of an ubik; it is passed to various calls below.
  *
  * \todo This routine should perhaps be generalized to a low-level disk interface providing read, write, file enumeration and sync operations.
  *
@@ -462,7 +462,7 @@ ubik_ServerInitCommon(afs_uint32 myHost, short myPort,
            ubik_sc[secIndex] = secClass;
        }
     }
-    /* for backwards compat this should keep working as it does now 
+    /* for backwards compat this should keep working as it does now
        and not host bind */
 #if 0
     /* This really needs to be up above, where I have put it.  It works
@@ -496,7 +496,7 @@ ubik_ServerInitCommon(afs_uint32 myHost, short myPort,
     rx_SetMinProcs(tservice, 2);
     rx_SetMaxProcs(tservice, 3);
 
-    /* start an rx_ServerProc to handle incoming RPC's in particular the 
+    /* start an rx_ServerProc to handle incoming RPC's in particular the
      * UpdateInterfaceAddr RPC that occurs in ubeacon_InitServerList. This avoids
      * the "steplock" problem in ubik initialization. Defect 11037.
      */
@@ -555,7 +555,7 @@ ubik_ServerInitCommon(afs_uint32 myHost, short myPort,
            (void *)urecovery_Interact, NULL) == 0);
 
     return 0;  /* is this correct?  - klm */
-#else  
+#else
     code = LWP_CreateProcess(urecovery_Interact, 16384 /*8192 */ ,
                             LWP_MAX_PRIORITY - 1, (void *)0, "recovery",
                             &junk);
@@ -599,10 +599,10 @@ ubik_ServerInit(afs_uint32 myHost, short myPort, afs_uint32 serverList[],
  * \brief This routine begins a read or write transaction on the transaction
  * identified by transPtr, in the dbase named by dbase.
  *
- * An open mode of ubik_READTRANS identifies this as a read transaction, 
+ * An open mode of ubik_READTRANS identifies this as a read transaction,
  * while a mode of ubik_WRITETRANS identifies this as a write transaction.
- * transPtr is set to the returned transaction control block. 
- * The readAny flag is set to 0 or 1 by the wrapper functions ubik_BeginTrans() or 
+ * transPtr is set to the returned transaction control block.
+ * The readAny flag is set to 0 or 1 by the wrapper functions ubik_BeginTrans() or
  * ubik_BeginTransReadAny() below.
  *
  * \note We can only begin transaction when we have an up-to-date database.
@@ -624,7 +624,7 @@ BeginTrans(struct ubik_dbase *dbase, afs_int32 transMode,
 #if defined(UBIK_PAUSE)
     /* if we're polling the slave sites, wait until the returns
      *  are all in.  Otherwise, the urecovery_CheckTid call may
-     *  glitch us. 
+     *  glitch us.
      */
     if (transMode == UBIK_WRITETRANS)
        for (count = 75; dbase->flags & DBVOTING; --count) {
@@ -929,7 +929,7 @@ ubik_EndTrans(struct ubik_trans *transPtr)
 
 /*!
  * \brief This routine reads length bytes into buffer from the current position in the database.
- * 
+ *
  * The file pointer is updated appropriately (by adding the number of bytes actually transferred), and the length actually transferred is stored in the long integer pointed to by length.  A short read returns zero for an error code.
  *
  * \note *length is an INOUT parameter: at the start it represents the size of the buffer, and when done, it contains the number of bytes actually transferred.
@@ -958,7 +958,7 @@ ubik_Read(struct ubik_trans *transPtr, void *buffer,
 }
 
 /*!
- * \brief This routine will flush the io data in the iovec structures. 
+ * \brief This routine will flush the io data in the iovec structures.
  *
  * It first flushes to the local disk and then uses ContactQuorum to write it
  * to the other servers.
@@ -1252,11 +1252,11 @@ ubik_GetVersion(struct ubik_trans *atrans,
 }
 
 /*!
- * \brief Facility to simplify database caching.  
+ * \brief Facility to simplify database caching.
  * \return zero if last trans was done on the local server and was successful.
  * \return -1 means bad (NULL) argument.
- * 
- * If return value is non-zero and the caller is a server caching part of the 
+ *
+ * If return value is non-zero and the caller is a server caching part of the
  * Ubik database, it should invalidate that cache.
  */
 static int
@@ -1335,7 +1335,7 @@ ubik_CheckCache(struct ubik_trans *atrans, ubik_updatecache_func cbf, void *rock
 }
 
 /*!
- * "Who said anything about panicking?" snapped Arthur. 
+ * "Who said anything about panicking?" snapped Arthur.
  * "This is still just the culture shock. You wait till I've settled down
  * into the situation and found my bearings. \em Then I'll start panicking!"
  * --Authur Dent
index 951e4190c8bb1679f53ddfb29e94d12d41e0b61e..939501f381f2a368fbac83d92cc169156c05615e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -157,7 +157,7 @@ struct ubik_stat {
 /*!
  * \brief representation of a ubik database.
  *
- * Contains info on low-level disk access routines 
+ * Contains info on low-level disk access routines
  * for use by disk transaction module.
  */
 struct ubik_dbase {
@@ -271,7 +271,7 @@ extern void *ubik_CheckRXSecurityRock;
 
 /*!
  * \name timer constants
- * time constant for replication algorithms: the R time period is 20 seconds.  Both 
+ * time constant for replication algorithms: the R time period is 20 seconds.  Both
  * #SMALLTIME and #BIGTIME must be larger than #RPCTIMEOUT+max(#RPCTIMEOUT, #POLLTIME),
  * so that timeouts do not prevent us from getting through to our servers in time.
  *
@@ -369,7 +369,7 @@ extern int uphys_getlabel(struct ubik_dbase *adbase, afs_int32 afile,
 extern int uphys_setlabel(struct ubik_dbase *adbase, afs_int32 afile,
                          struct ubik_version *aversion);
 extern int uphys_sync(struct ubik_dbase *adbase, afs_int32 afile);
-extern void uphys_invalidate(struct ubik_dbase *adbase, 
+extern void uphys_invalidate(struct ubik_dbase *adbase,
                             afs_int32 afid);
 
 /*! \name recovery.c */
@@ -386,19 +386,19 @@ extern int DoProbe(struct ubik_server *server);
 
 /*! \name ubik.c */
 extern afs_int32 ContactQuorum_NoArguments(afs_int32 (*proc)
-                                                      (struct rx_connection *, 
+                                                      (struct rx_connection *,
                                                        ubik_tid *),
                                           struct ubik_trans *atrans,
                                           int aflags);
 
 extern afs_int32 ContactQuorum_DISK_Lock(struct ubik_trans *atrans,
                                         int aflags,
-                                        afs_int32 file, afs_int32 position, 
+                                        afs_int32 file, afs_int32 position,
                                         afs_int32 length, afs_int32 type);
 
 extern afs_int32 ContactQuorum_DISK_Write(struct ubik_trans *atrans,
-                                         int aflags, 
-                                         afs_int32 file, afs_int32 position, 
+                                         int aflags,
+                                         afs_int32 file, afs_int32 position,
                                          bulkdata *data);
 
 extern afs_int32 ContactQuorum_DISK_Truncate(struct ubik_trans *atrans,
@@ -407,18 +407,18 @@ extern afs_int32 ContactQuorum_DISK_Truncate(struct ubik_trans *atrans,
 
 extern afs_int32 ContactQuorum_DISK_WriteV(struct ubik_trans *atrans,
                                           int aflags,
-                                          iovec_wrt * io_vector, 
+                                          iovec_wrt * io_vector,
                                           iovec_buf *io_buffer);
 
-extern afs_int32 ContactQuorum_DISK_SetVersion(struct ubik_trans *atrans, 
+extern afs_int32 ContactQuorum_DISK_SetVersion(struct ubik_trans *atrans,
                                               int aflags,
                                               ubik_version *OldVersion,
                                               ubik_version *NewVersion);
-                                              
+
 extern void panic(char *format, ...)
     AFS_ATTRIBUTE_FORMAT(__printf__, 1, 2);
 
-extern afs_uint32 ubikGetPrimaryInterfaceAddr(afs_uint32 addr); 
+extern afs_uint32 ubikGetPrimaryInterfaceAddr(afs_uint32 addr);
 /*\}*/
 
 /*! \name beacon.c */
@@ -435,13 +435,13 @@ extern void *ubeacon_Interact(void *);
 /*! \name disk.c */
 extern void udisk_Debug(struct ubik_debug *aparm);
 extern int udisk_Invalidate(struct ubik_dbase *adbase, afs_int32 afid);
-extern int udisk_read(struct ubik_trans *atrans, afs_int32 afile, 
+extern int udisk_read(struct ubik_trans *atrans, afs_int32 afile,
                      void *abuffer, afs_int32 apos, afs_int32 alen);
-extern int udisk_truncate(struct ubik_trans *atrans, afs_int32 afile, 
+extern int udisk_truncate(struct ubik_trans *atrans, afs_int32 afile,
                          afs_int32 alength);
-extern int udisk_write(struct ubik_trans *atrans, afs_int32 afile, 
+extern int udisk_write(struct ubik_trans *atrans, afs_int32 afile,
                       void *abuffer, afs_int32 apos, afs_int32 alen);
-extern int udisk_begin(struct ubik_dbase *adbase, int atype, 
+extern int udisk_begin(struct ubik_dbase *adbase, int atype,
                       struct ubik_trans **atrans);
 extern int udisk_commit(struct ubik_trans *atrans);
 extern int udisk_abort(struct ubik_trans *atrans);
@@ -493,21 +493,21 @@ extern int ubik_BeginTrans(struct ubik_dbase *dbase,
 extern int ubik_BeginTransReadAny(struct ubik_dbase *dbase,
                                  afs_int32 transMode,
                                  struct ubik_trans **transPtr);
-extern int ubik_AbortTrans(struct ubik_trans *transPtr);             
+extern int ubik_AbortTrans(struct ubik_trans *transPtr);
 
 extern int ubik_EndTrans(struct ubik_trans *transPtr);
 extern int ubik_Read(struct ubik_trans *transPtr, void *buffer,
                     afs_int32 length);
 extern int ubik_Flush(struct ubik_trans *transPtr);
 extern int ubik_Write(struct ubik_trans *transPtr, void *buffer,
-                     afs_int32 length);                        
+                     afs_int32 length);
 extern int ubik_Seek(struct ubik_trans *transPtr, afs_int32 fileid,
                     afs_int32 position);
 extern int ubik_Tell(struct ubik_trans *transPtr, afs_int32 * fileid,
                     afs_int32 * position);
-extern int ubik_Truncate(struct ubik_trans *transPtr, 
+extern int ubik_Truncate(struct ubik_trans *transPtr,
                         afs_int32 length);
-extern int ubik_SetLock(struct ubik_trans *atrans, afs_int32 apos, 
+extern int ubik_SetLock(struct ubik_trans *atrans, afs_int32 apos,
                        afs_int32 alen, int atype);
 extern int ubik_WaitVersion(struct ubik_dbase *adatabase,
                            struct ubik_version *aversion);
@@ -552,11 +552,11 @@ extern afs_int32 ugen_ClientInit(int noAuthFlag, const char *confDir,
                                 char *cellName, afs_int32 sauth,
                                 struct ubik_client **uclientp,
                                 int (*secproc) (struct rx_securityClass *sc,
-                                                afs_int32 scIndex), 
-                                char *funcName, 
-                                afs_int32 gen_rxkad_level, 
-                                afs_int32 maxservers, char *serviceid, 
-                                afs_int32 deadtime, afs_uint32 server, 
+                                                afs_int32 scIndex),
+                                char *funcName,
+                                afs_int32 gen_rxkad_level,
+                                afs_int32 maxservers, char *serviceid,
+                                afs_int32 deadtime, afs_uint32 server,
                                 afs_uint32 port, afs_int32 usrvid);
 
 #endif /* UBIK_H */
index 1d8c392c09d649a9976c9710f516463470167232..0d6e202e40d37e9100bce930e8624cc7622e40cb 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -40,19 +40,19 @@ struct ubik_debug {
     afs_int32 syncTime;                        /* time of above */
     struct ubik_version syncVersion;   /* sync site's claimed db version */
     struct ubik_tid syncTid;           /* sync site's claimed tid */
-    
+
     /* variables from beacon module */
     afs_int32 amSyncSite;              /* do I think I'm the sync site */
     afs_int32 syncSiteUntil;           /* when does my sync site mandate expire? */
     afs_int32 nServers;                        /* number of servers participating in vote */
-    
+
     /* variables from disk module */
     afs_int32 lockedPages;             /* count of read-locked pages */
     afs_int32 writeLockedPages;                /* count of write-locked pages */
     struct ubik_version localVersion;
     afs_int32 activeWrite;             /* is there an active write transaction with this as sync site */
     afs_int32 tidCounter;                      /* tid counter field from dbase, or 0 if no write trans. */
-    
+
     /* variables from the lock module */
     afs_int32 anyReadLocks;            /* are any read locks held on the current trans, if any */
     afs_int32 anyWriteLocks;           /* are any write locks held on the current trans, if any */
@@ -67,7 +67,7 @@ struct ubik_debug {
     /* variables from the ubik module */
     afs_int32 epochTime;               /* time this server started */
                /* all network interface addresses of host in host order*/
-    afs_int32 interfaceAddr[UBIK_MAX_INTERFACE_ADDR];  
+    afs_int32 interfaceAddr[UBIK_MAX_INTERFACE_ADDR];
 };
 
 /* data from the per-server structure */
@@ -97,19 +97,19 @@ struct ubik_debug_old {
     afs_int32 syncTime;                        /* time of above */
     struct ubik_version syncVersion;   /* sync site's claimed db version */
     struct ubik_tid syncTid;           /* sync site's claimed tid */
-    
+
     /* variables from beacon module */
     afs_int32 amSyncSite;              /* do I think I'm the sync site */
     afs_int32 syncSiteUntil;           /* when does my sync site mandate expire? */
     afs_int32 nServers;                        /* number of servers participating in vote */
-    
+
     /* variables from disk module */
     afs_int32 lockedPages;             /* count of read-locked pages */
     afs_int32 writeLockedPages;                /* count of write-locked pages */
     struct ubik_version localVersion;
     afs_int32 activeWrite;             /* is there an active write transaction with this as sync site */
     afs_int32 tidCounter;                      /* tid counter field from dbase, or 0 if no write trans. */
-    
+
     /* variables from the lock module */
     afs_int32 anyReadLocks;            /* are any read locks held on the current trans, if any */
     afs_int32 anyWriteLocks;           /* are any write locks held on the current trans, if any */
@@ -172,20 +172,20 @@ statindex 11
 
 /* Vote package interface calls */
 Beacon         (IN afs_int32 state,
-               afs_int32 voteStart, 
-               ubik_version *Version, 
+               afs_int32 voteStart,
+               ubik_version *Version,
                ubik_tid *tid) multi = VOTE_BEACON;
 
 DebugOld       (OUT ubik_debug_old *db) = VOTE_DEBUG_OLD;
 
-SDebugOld      (IN afs_int32 which, 
+SDebugOld      (IN afs_int32 which,
                OUT ubik_sdebug_old *db) = VOTE_SDEBUG_OLD;
 
 GetSyncSite    (IN afs_int32 *site) = VOTE_GETSYNCSITE;
 
 Debug          (OUT ubik_debug *db) = VOTE_DEBUG;
 
-SDebug         (IN afs_int32 which, 
+SDebug         (IN afs_int32 which,
                OUT ubik_sdebug *db) = VOTE_SDEBUG;
 
 XDebug          (OUT ubik_debug *db,
@@ -222,15 +222,15 @@ Begin             (IN ubik_tid *tid) = DISK_BEGIN;
 
 Commit         (IN ubik_tid *tid) = DISK_COMMIT;
 
-Lock           (IN ubik_tid *tid, 
-               afs_int32 file, 
-               afs_int32 position, 
-               afs_int32 length, 
+Lock           (IN ubik_tid *tid,
+               afs_int32 file,
+               afs_int32 position,
+               afs_int32 length,
                afs_int32 type) = DISK_LOCK;
 
-Write          (IN ubik_tid *tid, 
-               afs_int32 file, 
-               afs_int32 position, 
+Write          (IN ubik_tid *tid,
+               afs_int32 file,
+               afs_int32 position,
                bulkdata *data) = DISK_WRITE;
 
 GetVersion     (OUT ubik_version *Version) = DISK_GETVERSION;
@@ -241,12 +241,12 @@ GetFile           (IN afs_int32 file,
 SendFile       (IN afs_int32 file,
                afs_int32 length,
                ubik_version *Version) split = DISK_SENDFILE    ;
-               
+
 Abort          (IN ubik_tid *tid) = DISK_ABORT;
 
 ReleaseLocks   (IN ubik_tid *tid) = DISK_RELEASELOCKS;
 
-Truncate       (IN ubik_tid *tid, 
+Truncate       (IN ubik_tid *tid,
                afs_int32 file,
                afs_int32 length) = DISK_TRUNCATE;
 
@@ -259,6 +259,6 @@ WriteV              (IN ubik_tid *tid,
 UpdateInterfaceAddr(IN  UbikInterfaceAddr* inAddr,
                    OUT UbikInterfaceAddr* outAddr) multi = DISK_INTERFACEADDR;
 
-SetVersion      (IN ubik_tid     *tid, 
+SetVersion      (IN ubik_tid     *tid,
                  IN ubik_version *OldVersion,
                  IN ubik_version *NewVersion) = DISK_SETVERSION;
index eb3191b12868f23ee16976d5ea16af4738a8bab9..f649a2039f38231e37850c6200a108e6a0c5a83d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -112,12 +112,12 @@ afs_random_once(void)
 #endif
 
 #if !defined(UKERNEL)
-/*! 
+/*!
  * \brief use time and pid to try to get some initial randomness.
  */
 #define        ranstage(x)     (x)= (afs_uint32) (3141592621U*((afs_uint32)x)+1)
 
-/*! 
+/*!
  * \brief Random number generator and constants from KnuthV2 2d ed, p170
  *
  * Rules: \n
@@ -128,15 +128,15 @@ afs_random_once(void)
  * c is more or less immaterial.  1 or a is suggested. \n
  *
  * NB:  LOW ORDER BITS are not very random.  To get small random numbers,
- *      treat result as <1, with implied binary point, and multiply by 
+ *      treat result as <1, with implied binary point, and multiply by
  *      desired modulus.
  *
  * NB:  Has to be unsigned, since shifts on signed quantities may preserve
  *      the sign bit.
- * 
+ *
  * In this case, m == 2^32, the mod operation is implicit. a == pi, which
  * is used because it has some interesting characteristics (lacks any
- * interesting bit-patterns).   
+ * interesting bit-patterns).
  */
 unsigned int
 afs_random(void)
@@ -171,10 +171,10 @@ afs_random(void)
 /*!
  * \brief Returns int 0..14 using the high bits of a pseudo-random number instead of
  * the low bits, as the low bits are "less random" than the high ones...
- * 
+ *
  * \todo Slight roundoff error exists, an excercise for the reader.
  *
- * Need to multiply by something with lots of ones in it, so multiply by 
+ * Need to multiply by something with lots of ones in it, so multiply by
  * 8 or 16 is right out.
  */
 static unsigned int
@@ -266,7 +266,7 @@ ubik_ClientInit(struct rx_connection **serverconns,
     return 0;
 }
 
-/*! 
+/*!
  * \brief Destroy an ubik connection.
  *
  * It calls rx to destroy the component rx connections, then frees the ubik
@@ -417,15 +417,15 @@ try_GetSyncSite(struct ubik_client *aclient, afs_int32 apos)
 #define NEED_LOCK 1
 #define NO_LOCK 0
 
-/*! 
+/*!
  * \brief Create an internal version of ubik_CallIter that takes an additional
  * parameter - to indicate whether the ubik client handle has already
  * been locked.
  */
 static afs_int32
-CallIter(int (*aproc) (), struct ubik_client *aclient, 
-        afs_int32 aflags, int *apos, long p1, long p2, long p3, long p4, 
-        long p5, long p6, long p7, long p8, long p9, long p10, long p11, 
+CallIter(int (*aproc) (), struct ubik_client *aclient,
+        afs_int32 aflags, int *apos, long p1, long p2, long p3, long p4,
+        long p5, long p6, long p7, long p8, long p9, long p10, long p11,
         long p12, long p13, long p14, long p15, long p16, int needlock)
 {
     afs_int32 code;
@@ -506,15 +506,15 @@ ubik_CallIter(int (*aproc) (), struct ubik_client *aclient,
                    p8, p9, p10, p11, p12, p13, p14, p15, p16, NEED_LOCK);
 }
 
-/*! 
+/*!
  * \brief Call this instead of stub and we'll guarantee to find a host that's up.
  *
  * \todo In the future, we should also put in a protocol to find the sync site.
  */
 afs_int32
-ubik_Call_New(int (*aproc) (), struct ubik_client *aclient, 
-             afs_int32 aflags, long p1, long p2, long p3, long p4, long p5, 
-             long p6, long p7, long p8, long p9, long p10, long p11, 
+ubik_Call_New(int (*aproc) (), struct ubik_client *aclient,
+             afs_int32 aflags, long p1, long p2, long p3, long p4, long p5,
+             long p6, long p7, long p8, long p9, long p10, long p11,
              long p12, long p13, long p14, long p15, long p16)
 {
     afs_int32 code, rcode;
index 81ccb97d9a03c617635fe3e4ecbc5d33e54afc71..250199bdcdddd7ee96079d8e7a12a6b759358d4c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index d384654554658bc055bac4df83760d281876516f..f92bd64c76565c1448a347a7c857d72bad1a8917 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -201,7 +201,7 @@ CommandProc(struct cmd_syndesc *as, void *arock)
        newtime = now - diff;
        times = ctime(&newtime);
        times[24] = 0;
-       printf("Last vote started %d secs ago (at %s)\n", 
+       printf("Last vote started %d secs ago (at %s)\n",
               afs_cast_time_t(diff), times);
     }
 
@@ -308,7 +308,7 @@ CommandProc(struct cmd_syndesc *as, void *arock)
                newtime = now - diff;
                times = ctime(&newtime);
                times[24] = 0;
-               printf("    last vote rcvd %d secs ago (at %s),\n", 
+               printf("    last vote rcvd %d secs ago (at %s),\n",
                       afs_cast_time_t(diff),
                       times);
            }
@@ -341,8 +341,8 @@ main(int argc, char **argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index 0daa4adefd61e615f349e89b25d904418085a2af..ef73aca2580d294ab36149065c0d4825ac98f4f7 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 2000, International Business Machines Corporation and others.
 # All Rights Reserved.
-# 
+#
 # This software has been released under the terms of the IBM Public
 # License.  For details, see the LICENSE file in the top-level source
 # directory or online at http://www.openafs.org/dl/license10.html
index 56bcaf33f72dadfd7396ae70af64772b5ea59067..41a63f5d9cc2422f00ccc61265a3175b674468ba 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -46,9 +46,9 @@
  */
 afs_int32
 ugen_ClientInit(int noAuthFlag, const char *confDir, char *cellName, afs_int32 sauth,
-              struct ubik_client **uclientp, 
+              struct ubik_client **uclientp,
               int (*secproc) (struct rx_securityClass *, afs_int32),
-              char *funcName, afs_int32 gen_rxkad_level, 
+              char *funcName, afs_int32 gen_rxkad_level,
               afs_int32 maxservers, char *serviceid, afs_int32 deadtime,
               afs_uint32 server, afs_uint32 port, afs_int32 usrvid)
 {
index 897149504be2203316c72907eb0e77c5026387f1..0662c2d427359151d9d6c3637bf57876d46c14ff 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -125,7 +125,7 @@ main(int argc, char **argv)
                temp = 0;
                code = ubik_SAMPLE_Inc(cstruct, 0);
                if (code != 0) {
-                   printf("SAMPLE_Inc #1 failed with code %ld\n", 
+                   printf("SAMPLE_Inc #1 failed with code %ld\n",
                           afs_printable_int32_ld(code));
                } else {
                    printf("SAMPLE_Inc #1 succeeded, incremented integer\n");
@@ -143,7 +143,7 @@ main(int argc, char **argv)
                temp = 0;
                code = ubik_SAMPLE_Inc(cstruct, 0);
                if (code != 0)
-                   printf("SAMPLE_Inc #2 failed with code %ld\n", 
+                   printf("SAMPLE_Inc #2 failed with code %ld\n",
                           afs_printable_int32_ld(code));
                else
                    printf("SAMPLE_Inc #2 succeeded, incremented integer\n");
index a94540e7c88ca9561c3f191849e3325ad20cbb99..1c3d8738402ca40a0cf923f3680cce50e167bbfa 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ba16fb10e0b676f4cf4026ea3784d19c50a36342..cd08fc5464921806d73fce3f820b60b6fbd90d2c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -341,6 +341,6 @@ main(int argc, char **argv)
     rx_SetMaxProcs(tservice, 3);
 
     rx_StartServer(1);         /* Why waste this idle process?? */
-    
+
     return 0;
 }
index 2d525c3ea9393b04556258ac5dc4cd5d63f4c480..13af88532740fd0c67fa92f56dd6e47592e91c89 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -61,7 +61,7 @@
  * be the sync site.  Thus, any time that the sync site has not heard from a
  * majority of the servers in the last #SMALLTIME seconds, it voluntarily
  * relinquishes its role as sync site.
- * 
+ *
  * While attempting to nominate a new sync site, certain rules apply.  First,
  * a server can not reply "ok" (return 1 from ServBeacon) to two different
  * hosts in less than #BIGTIME seconds; this allows a server that has heard
@@ -236,7 +236,7 @@ SVOTE_Beacon(struct rx_call * rxcall, afs_int32 astate,
      * lowestHost after BIGTIME seconds to limit the damage if this host
      * actually crashes.  Finally, we also count in this computation: don't
      * pick someone else if we're even better!
-     * 
+     *
      * Note that the test below must be <=, not <, so that we keep refreshing
      * lowestTime.  Otherwise it will look like we haven't heard from
      * lowestHost in a while and another host could slip in.  */
@@ -427,7 +427,7 @@ SVOTE_Debug(struct rx_call * rxcall, struct ubik_debug * aparm)
 
     ulock_Debug(aparm);
 
-    /* Get the recovery state. The label of the database may not have 
+    /* Get the recovery state. The label of the database may not have
      * been written yet but set the flag so udebug behavior remains.
      * Defect 9477.
      */
@@ -510,7 +510,7 @@ SVOTE_DebugOld(struct rx_call * rxcall,
 
     ulock_Debug((ubik_debug *)aparm);
 
-    /* Get the recovery state. The label of the database may not have 
+    /* Get the recovery state. The label of the database may not have
      * been written yet but set the flag so udebug behavior remains.
      * Defect 9477.
      */
index 30af0b2e21116da808fdc1bfff535a8e5cc25b26..904f9adbb4de5a389a3ac9d03a65c3640f4cdbed 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -126,8 +126,8 @@ main(int argc, char **argv)
     struct filestr *dirname, *ModFiles, *okhostfiles;
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
@@ -320,13 +320,13 @@ main(int argc, char **argv)
                if (verbose >= 3)
                    printf("    checking %s\n", filename);
                if (!IsCompatible(filename, time, length)) {
-                   /* if the file info has changed , record all the 
+                   /* if the file info has changed , record all the
                     *changed files in the ModFiles array*/
                    if (verbose >= 2)
                        printf("  getting %s\n", filename);
                    AddToList(&ModFiles, filename);
 
-                   /* now get the file from the server. The received 
+                   /* now get the file from the server. The received
                     * file is created under the name filename.NEW */
                    errcode =
                        GetFileFromUpServer(conn, filename, uid, gid, mode,
@@ -404,7 +404,7 @@ main(int argc, char **argv)
 /* returns 1 if the file is upto date else returns 0*/
 /*check the dir case more carefully */
 int
-IsCompatible(char *filename, afs_int32 time, afs_int32 length) 
+IsCompatible(char *filename, afs_int32 time, afs_int32 length)
 {
     struct stat status;
     afs_int32 error;
@@ -631,12 +631,12 @@ RenameNewFiles(struct filestr *modFiles)
 
 
 /* GetFileFromUpServer() - Makes the FetchFile() call and gets the
- * file from the upserver. 
+ * file from the upserver.
  * Return Values:
  *   0 -  Alls well
  *   -1 - Serious error. Quit right away.
- *   1  - Error, but keep trying for the other files 
- * 
+ *   1  - Error, but keep trying for the other files
+ *
  * The file obtained is written to the localized version of the filename.NEW
  * and the uid, gid, file mode, access and modification times will be set to
  * the passed in values.
index 2606d52ce14c5b3cda7c6fdb88657c61cc937b74..44dafb6b7392e46d2a809eab14a4b108c17f44f1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index eccf5ea9452425d17a67e1691f4221bed6940e96..4e6ab76d48f8638139a9148be5ff9741563058fa 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -191,8 +191,8 @@ main(int argc, char *argv[])
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
@@ -278,18 +278,18 @@ main(int argc, char *argv[])
 
     if (rxBind) {
        afs_int32 ccode;
-        if (AFSDIR_SERVER_NETRESTRICT_FILEPATH || 
+        if (AFSDIR_SERVER_NETRESTRICT_FILEPATH ||
             AFSDIR_SERVER_NETINFO_FILEPATH) {
             char reason[1024];
             ccode = parseNetFiles(SHostAddrs, NULL, NULL,
                                            ADDRSPERSITE, reason,
                                            AFSDIR_SERVER_NETINFO_FILEPATH,
                                            AFSDIR_SERVER_NETRESTRICT_FILEPATH);
-        } else 
+        } else
        {
             ccode = rx_getAllAddr(SHostAddrs, ADDRSPERSITE);
         }
-        if (ccode == 1) 
+        if (ccode == 1)
             host = SHostAddrs[0];
     }
 
@@ -442,7 +442,7 @@ update_SendFile(int fd, struct rx_call *call, struct stat *status)
     return error;
 }
 
-/* Enumerate dir (name) and write dir entry info into temp file. 
+/* Enumerate dir (name) and write dir entry info into temp file.
  */
 int
 update_SendDirInfo(char *name,         /* Name of dir to enumerate */
@@ -526,9 +526,9 @@ update_SendDirInfo(char *name,              /* Name of dir to enumerate */
 /* AddObject() - Adds the object to the list of exported objects after
  *     converting to a local path.
  *
- * expPath : points to allocated storage in which the exportable path is 
+ * expPath : points to allocated storage in which the exportable path is
  *           passed back.
- * dir     : dir name passed in for export 
+ * dir     : dir name passed in for export
  *
  */
 static int
index 0872633441fdd330bffe98d62eb4d5de0e276c38..97c78fd1a1083572933779c72346c825c57cca9e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 39ca22aca9f51cc8a9aa7c39aabcd6ea0d6ff471..315e04e645cceda485f6ab896946f0fdef8b17dc 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index dfd416956b650668dc3d8e26ea0d1ba3635e76f0..485f4a8719d997e72f3a6d192119b84f3718d80a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 742cda1571ce0d12e4a2fe265f0777ecfc2b9641..a4092a40e4d2fcc1dbbf3c976263aa8ac0d1608d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -390,10 +390,10 @@ usd_FileOpen(const char *path, int flags, int mode, usd_handle_t * usdP)
 
        /* If we're trying to obtain a write lock on a real disk, then the
         * aggregate must not be attached by the kernel.  If so, unlock it
-        * and fail. 
+        * and fail.
         * WARNING: The code to check for the above has been removed when this
         * file was ported from DFS src. It should be put back if
-        * this library is used to access hard disks 
+        * this library is used to access hard disks
         */
     }
 
index c5b2216b4e0c90d99637b43a985ae29cd661d626..b672d04ccdfd71670cb2c6af998187e5f1b902a4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -403,8 +403,8 @@ usd_DeviceClose(usd_handle_t usd)
 
 /*
  * usd_DeviceOpen() -- open WinNT device (or regular file)
- * 
- * PARAMETERS -- 
+ *
+ * PARAMETERS --
  *     oflag -- Various combinations of USD_OPEN_XXX defined in usd.h.
  *     pmode -- ignored; file's security descriptor set to default on create.
  *     usdP -- if NULL device is immediately closed after being opened.
@@ -433,7 +433,7 @@ usd_DeviceOpen(const char *path, int oflag, int pmode, usd_handle_t * usdP)
        attr = 0;
 
     /* should we always set:
-     *     FILE_FLAG_NO_BUFFERING? 
+     *     FILE_FLAG_NO_BUFFERING?
      *     FILE_FLAG_RANDOM_ACCESS?
      */
 
@@ -495,10 +495,10 @@ usd_DeviceOpen(const char *path, int oflag, int pmode, usd_handle_t * usdP)
 
     /* If we're trying to obtain a write lock on a real disk, then the
      * aggregate must not be attached by the kernel.  If so, unlock it
-     * and fail. 
+     * and fail.
      * WARNING: The code to check for the above has been removed when this
      * file was ported from DFS src. It should be put back if
-     * this library is used to access hard disks 
+     * this library is used to access hard disks
      */
 
     if (code == 0 && usdP)
index e04715d4ca082a48a6c635a96ac589c62d13b05b..b1bfee0fa1f4c1066a8826a79cc4aea73994a1c8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -1795,8 +1795,8 @@ main(int argc, char *argv[])
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index cfe0cfcb719ab7678222360ea03e196a3f33bce1..9ed9aebe4dff2b65b1c83be3830c7c29d0590084 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -232,7 +232,7 @@ FindList(struct AclEntry *a_alist, char *a_name)
  *------------------------------------------------------------------------*/
 
 static void
-ChangeList(struct Acl *a_al, afs_int32 a_plus, char *a_name, 
+ChangeList(struct Acl *a_al, afs_int32 a_plus, char *a_name,
           afs_int32 a_rights)
 {                              /*ChangeList */
 
index eb747646fc2d496ac41f95e1ec202e40428faf94..e49c04cd73ad8f0b3d310bbefdf27ebdfb082761 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -17,7 +17,7 @@
 /*
  * ------------------------ Exported functions  -----------------------
  */
-extern afs_int32 uss_acl_SetAccess(char *a_access, int a_clear, 
+extern afs_int32 uss_acl_SetAccess(char *a_access, int a_clear,
                                           int a_negative);
     /*
      * Summary:
index 7737756e35738458ce456b42af23fb8471e277e5..afaab191d46db56748401c2581b7311d910c0f16 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -194,7 +194,7 @@ uss_common_Reset(void)
  *------------------------------------------------------------------------*/
 
 char *
-uss_common_FieldCp(char *a_to, char *a_from, char a_separator, 
+uss_common_FieldCp(char *a_to, char *a_from, char a_separator,
                   int a_maxChars, int *a_overflowP)
 {                              /*uss_common_FieldCp */
 
index df496ed459d31b2ab32c98855cd007194c97b25f..ceda7c901175773117f80fb594abfa6bc42a0923 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 0fb58543aa4c698bf8243e12c49ee950d20a462d..2030a928c807e101850c17e68bed0cd98fb6654b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -101,7 +101,7 @@ InAFS(char *a_path)
  *     char *a_path         : Pathname to ancestorize.
  *     char *a_parentBuff   : Ptr to parent buffer to use.
  *     char **a_componentPP : Ptr to the final component.
- *     
+ *
  *
  * Returns:
  *     Ptr to the buffer containing the parent dir name.
@@ -335,7 +335,7 @@ uss_fs_GetVolStat(char *a_mountpoint, char *a_volStatBuff,
  *------------------------------------------------------------------------*/
 
 afs_int32
-uss_fs_SetVolStat(char *a_mountpoint, char *a_volStatBuff, 
+uss_fs_SetVolStat(char *a_mountpoint, char *a_volStatBuff,
                  afs_int32 a_volStatBuffBytes)
 {                              /*uss_fs_SetVolStat */
 #ifdef USS_FS_DB
@@ -548,7 +548,7 @@ struct tokenInfo {
 };
 
 /*
- * Build a list of tokens, delete the bad ones (the ones to remove from the 
+ * Build a list of tokens, delete the bad ones (the ones to remove from the
  * permissions list,) destroy all tokens, and then re-register the good ones.
  * Ugly, but it works.
  */
index 9fe29ca301b791df9bbce7733303c7947cf47b22..7639628d0cdf95c3c5bcebe243d1b9009e8dc46c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -31,7 +31,7 @@ extern char *uss_fs_OutBuff;  /*Cache Manager output buff */
 /*
  * ------------------------ Exported functions  -----------------------
  */
-extern afs_int32 uss_fs_GetACL(char *a_dirPath, char *a_aclBuff, 
+extern afs_int32 uss_fs_GetACL(char *a_dirPath, char *a_aclBuff,
                                       afs_int32 a_aclBuffBytes);
     /*
      * Summary:
@@ -48,7 +48,7 @@ extern afs_int32 uss_fs_GetACL(char *a_dirPath, char *a_aclBuff,
      *    -1 otherwise, with errno set to the error.
      */
 
-extern afs_int32 uss_fs_SetACL(char *a_dirPath, char *a_aclBuff, 
+extern afs_int32 uss_fs_SetACL(char *a_dirPath, char *a_aclBuff,
                               afs_int32 a_aclBuffBytes);
     /*
      * Summary:
@@ -113,7 +113,7 @@ extern afs_int32 uss_fs_CkBackups(void);
      *    -1 otherwise, with errno set to the error.
      */
 
-extern afs_int32 uss_fs_MkMountPoint(char *a_volname, char *a_cellname, 
+extern afs_int32 uss_fs_MkMountPoint(char *a_volname, char *a_cellname,
                                     afs_int32 a_rw, char *a_mountpoint);
     /*
      * Summary: *NEW*
index 1165640dd5c18364ee07f7478d789f973e62b8ee..1bf4f1e88acde75ecd2d8345a4788ce411d1c9a5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -374,7 +374,7 @@ uss_kauth_AddUser(char *a_user, char *a_passwd)
     ka_StringToKey(a_passwd, uss_Cell, &ktc_key);
 
     memcpy(&key, &ktc_key, sizeof(key)); /* XXX - we could just cast */
-    
+
     if (!uss_DryRun) {
        if (uss_verbose)
            fprintf(stderr, "Adding user '%s' to the Authentication DB\n",
@@ -385,7 +385,7 @@ uss_kauth_AddUser(char *a_user, char *a_passwd)
                "%s: KAM_CreateUser: user='%s', CreatorInstance='%s', %d bytes\n",
                rn, a_user, CreatorInstance, strlen(CreatorInstance));
 #endif /* USS_KAUTH_DB_INSTANCE */
-       code = ubik_KAM_CreateUser(uconn_kauthP, 0, a_user, 
+       code = ubik_KAM_CreateUser(uconn_kauthP, 0, a_user,
                                   UserInstance,        /*set by CheckUsername() */
                                   key);
        if (code) {
@@ -537,7 +537,7 @@ uss_kauth_CheckUserName(void)
     /*
      * Use the AuthServer's own routine to decide if the parsed user name
      * is legal.  Specifically, it can't have any weird characters or
-     * embedded instance or cell names. 
+     * embedded instance or cell names.
      */
     code = ka_ParseLoginName(uss_User, UserPrincipal, UserInstance, UserCell);
     if (strlen(UserInstance) > 0) {
@@ -585,7 +585,7 @@ uss_kauth_CheckUserName(void)
  */
 
 afs_int32
-uss_kauth_SetFields(char *username, char *expirestring, char *reuse, 
+uss_kauth_SetFields(char *username, char *expirestring, char *reuse,
                    char *failures, char *lockout)
 {
 #ifdef USS_KAUTH_DB
index e6e660ad980c173dd39e93865d2aa4c60be9934e..dd5dd91a1447b1f9e20fe7b0c736d3731fce8121 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 9d6ebf4712cbfef7c18df0a110646089dbc59f4d..225fee9466d0d743ddf177b1c3bd8aa7d0a822d6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -33,7 +33,7 @@
 
 #include <string.h>
 #include <stdarg.h>
-    
+
 #include <afs/kautils.h> /*MAXKTCREALMLEN*/
 #undef USS_PROCS_DB
 #undef USS_PROCS_DB_INSTANCE
@@ -277,7 +277,7 @@ uss_procs_CpFile(char *a_path, char *a_mode, char *a_owner, char *a_proto)
  *------------------------------------------------------------------------*/
 
 afs_int32
-uss_procs_EchoToFile(char *a_path, char *a_mode, char *a_owner, 
+uss_procs_EchoToFile(char *a_path, char *a_mode, char *a_owner,
                     char *a_content)
 {                              /*uss_procs_EchoToFile */
 
@@ -493,7 +493,7 @@ uss_procs_GetOwner(char *a_ownerStr)
  * static Copy
  *
  * Description:
- *      Copies the "from" file to the "to" file and sets the mode. 
+ *      Copies the "from" file to the "to" file and sets the mode.
  *
  * Arguments:
  *     a_from : File to copy from.
@@ -691,7 +691,7 @@ uss_procs_PickADir(char *path, char *cp)
        cd[1] = '\0';
     }
 
-    /* 
+    /*
      * We now have the current dir (cd).  Search all of the given
      * subdirs (by G in template), count the number of entries in
      * each and pick the minimum.
@@ -855,7 +855,7 @@ void
 uss_procs_PrintErr(int a_lineNum, char *a_fmt, ... )
 {                              /*uss_procs_PrintErr */
     va_list ap;
-    
+
     va_start(ap, a_fmt);
     uss_syntax_err++;
     fprintf(stderr, "%s: Template file, line %d: ", uss_whoami, a_lineNum);
index 82ca78fd2bddc78c2cbb0d7bba7f760243c33e51..08fd0b1141d4431ec7e5d92afce495ff2551a385 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -32,7 +32,7 @@
 /*
  * ------------------------ Exported functions  -----------------------
  */
-extern afs_int32 uss_procs_BuildDir(char *a_path, char *a_mode, 
+extern afs_int32 uss_procs_BuildDir(char *a_path, char *a_mode,
                                    char *a_owner, char *a_access);
     /*
      * Summary:
@@ -50,7 +50,7 @@ extern afs_int32 uss_procs_BuildDir(char *a_path, char *a_mode,
      *    Other error code if problem occurred in lower-level call.
      */
 
-extern afs_int32 uss_procs_CpFile(char *a_path, char *a_mode, 
+extern afs_int32 uss_procs_CpFile(char *a_path, char *a_mode,
                                  char *a_owner, char *a_proto);
     /*
      * Summary:
@@ -68,7 +68,7 @@ extern afs_int32 uss_procs_CpFile(char *a_path, char *a_mode,
      *    Other error code if problem occurred in lower-level call.
      */
 
-extern afs_int32 uss_procs_EchoToFile(char *a_path, char *a_mode, 
+extern afs_int32 uss_procs_EchoToFile(char *a_path, char *a_mode,
                                      char *a_owner, char *a_content);
     /*
      * Summary:
@@ -100,7 +100,7 @@ extern afs_int32 uss_procs_Exec(char *a_command);
      *    Other error code if problem occurred in lower-level call.
      */
 
-extern afs_int32 uss_procs_SetLink(char *a_path1, char *a_path2, 
+extern afs_int32 uss_procs_SetLink(char *a_path1, char *a_path2,
                                   char a_type);
     /*
      * Summary:
index 9084a625de77ceb5ebab18fc8326186a6bee2270..31b0d3dc51cdb33d483640f1fbebb7533f372831 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index b088df24fd0e6c2bac5c67769b261ddfba3a3ca3..5a235605c4e08c9a24428e0c55faacab4408fbe5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 0f71ebc7377685f3a24e89690f92211380be1374..83b0f707b3edb8c6fd6ebb34bbe6b008798aee6a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -42,9 +42,9 @@ extern afs_int32 uss_vol_GetPartitionID(char *a_name);
      *    Numeric partition name, or -1 on failure.
      */
 
-extern afs_int32 uss_vol_CreateVol(char *a_volname, char *a_server, 
-                                  char *a_partition, char *a_quota, 
-                                  char *a_mpoint, char *a_owner, 
+extern afs_int32 uss_vol_CreateVol(char *a_volname, char *a_server,
+                                  char *a_partition, char *a_quota,
+                                  char *a_mpoint, char *a_owner,
                                   char *a_acl);
     /*
      * Summary:
@@ -66,8 +66,8 @@ extern afs_int32 uss_vol_CreateVol(char *a_volname, char *a_server,
      *    Other error code if problem occurred in lower-level call.
      */
 
-extern afs_int32 uss_vol_DeleteVol(char *a_volName, afs_int32 a_volID, 
-                                  char *a_servName, afs_int32 a_servID, 
+extern afs_int32 uss_vol_DeleteVol(char *a_volName, afs_int32 a_volID,
+                                  char *a_servName, afs_int32 a_servID,
                                   char *a_partName, afs_int32 a_partID);
     /*
      * Summary:
index 6b41f278359e3d1c12748baf5b5eb231b469f4dc..9d58031a86595cc90958e3612774efa151c39fb2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1f4952efef3f7e8bcbe8e082a2c744ae8b36ccf8..617ee94c8398561edf1076f6df4fafc9598d83c2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index de3c8213fc581e03ab2b8288189fc9d6991a889c..18d7a1afd7b5bf999cd26d4dbd013080d13367a6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -360,7 +360,7 @@ afs_lhash_search(afs_lhash * lh, unsigned key, const void *data)
             * This optimization is both easy to understand
             * and cheap to execute, so we go ahead and do
             * it.
-            * 
+            *
             */
 
            if (previous) {
index b8035752a2cab95d3b90c09b62585cbf368810b5..a1f19451a70b33d53e81f7deea07fd5b66b9a5aa 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 18b7b72b8f696eea2ce892c9edaf9b8b3b115899..401d730be58cddb00d0db5054ea5a9b848325ce5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c1f986376d78112b1d2bf89dced50d04a7e9ae1c..17fbde0c9117d5163f6d688926c48615287e3575 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 236865984476172bd7ead0066e27f16992ce24d8..56c78932ff91bc3997df00db8ead12d556c93895 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index dcb7fd8830180752f83153c5bcc19383ca4f1226..51f01c63d05280f47b4d183ced7b2d442050cae1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 70b85d86b963810f5c294904297104a5930229b6..b69809d516ab7ba139ff283ab5e8f93f090c8223 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 5e483ea67f6c675471894226bb813206c85352de..d9ceb6326cfa78c6f46281afb154993d9c30ca76 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index c9e038fd1fd466600c4519031276d957b9908644..dbcae071ea7118c5bb80e15f4fcdb73ca1093d7e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -82,11 +82,11 @@ stoupper(char *s)
 }
 
 /* strcompose - concatenate strings passed to it.
- * Input: 
+ * Input:
  *   buf: storage for the composed string. Any data in it will be lost.
  *   len: length of the buffer.
  *   ...: variable number of string arguments. The last argument must be
- *        NULL. 
+ *        NULL.
  * Returns buf or NULL if the buffer was not sufficiently large.
  */
 char *
index b7c606ed208dc82c47f72ad3eb8979f9ec5ae4c8..b080993b24d6018058a9c5eac9b578d8e14d3d06 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index e388c02ff05e73c06bbb627f6cbe861155e2416b..abb1406e3927ca053d55c9fd6820a16ca3f0240c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -89,7 +89,7 @@ initAFSDirPath(void)
 }
 
 
-/* initDirPathArray() -- Initializes the afs dir paths for the 
+/* initDirPathArray() -- Initializes the afs dir paths for the
  *     server and client installations.
  *
  *     For NT these are determined dynamically; for Unix they are static.
@@ -421,7 +421,7 @@ initDirPathArray(void)
 
 /* getDirPath - returns a const char pointer to the requested string
  * from the internal path array.
- * string_id - index into the path array 
+ * string_id - index into the path array
  */
 const char *
 getDirPath(afsdir_id_t string_id)
@@ -477,7 +477,7 @@ static void
 LocalizePathHead(const char **path, const char **relativeTo)
 {
      struct canonmapping *map;
+
      if (**path == '/') {
         for (map = CanonicalTranslations; map->local != NULL; map++) {
             int canonlength = strlen(map->canonical);
index 1d49d8155a29cebe6838ec0639e642c53525614d..e4d37a2106e863d5a3f77362a7df0f9508d03391 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -275,7 +275,7 @@ typedef enum afsdir_id {
     AFSDIR_PATHSTRING_MAX
 } afsdir_id_t;
 
-/* getDirPath() returns a pointer to a string from an internal array of path strings 
+/* getDirPath() returns a pointer to a string from an internal array of path strings
  */
 const char *getDirPath(afsdir_id_t string_id);
 
index de7062667587db6f9ea246d04f892d3a87177f4e..c64429a59123a3acc223911d099af7cbf3a884d9 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 92dafdfaef7e3a373b24a5904d48ae2c03e9cd48..9f8b692c704c27e8c3dc13705feb6fe18769b76c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -61,7 +61,7 @@ extern int nterr_nt2unix(long ntErr, int defaultErr);
 #define EHOSTUNREACH            WSAEHOSTUNREACH
 #ifdef ENOTEMPTY
 #undef ENOTEMPTY
-#endif 
+#endif
 #define ENOTEMPTY               WSAENOTEMPTY
 #define EPROCLIM                WSAEPROCLIM
 #define EUSERS                  WSAEUSERS
@@ -69,8 +69,8 @@ extern int nterr_nt2unix(long ntErr, int defaultErr);
 #define ESTALE                  WSAESTALE
 #define EREMOTE                 WSAEREMOTE
 
-/* 
- * New codes 
+/*
+ * New codes
  * Highest known value is WSA_QOS_RESERVED_PETYPE (WSABASEERR + 1031)
  */
 #define AFS_NT_ERRNO_BASE  WSABASEERR + 1100
index bc16dd6eb4efd95e3c3bef32210b46ed3bf12f7c..25f06e604427961742d6a8b58606dd51217a9799 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -31,7 +31,7 @@
 
 #define VSALVAGE       101     /* Volume needs salvage */
 #define VNOVNODE       102     /* Bad vnode number quoted */
-#define VNOVOL         103     /* Volume not attached, doesn't exist, 
+#define VNOVOL         103     /* Volume not attached, doesn't exist,
                                 * not created or not online */
 #define VVOLEXISTS     104     /* Volume already exists */
 #define VNOSERVICE     105     /* Volume is not in service (i.e. it's
                                 * propagated to the application level */
 #define VMOVED         111     /* Volume has moved to another server; do a VGetVolumeInfo
                                 * to THIS server to find out where */
-#define VIO            112     /* Vnode temporarily unaccessible, but not known 
+#define VIO            112     /* Vnode temporarily unaccessible, but not known
                                 * to be permanently bad. */
 #define VSALVAGING      113     /* Volume is being salvaged (demand attach fs) */
 #define VRESTRICTED     120    /* Volume is restricted from using one or more
                                 * of the given residencies; do a
                                 * vos examine to find out the current
                                 * restrictions. */
-#define VRESTARTING    -100    /* server is restarting, otherwise similar to 
+#define VRESTARTING    -100    /* server is restarting, otherwise similar to
                                 * VBUSY above.  This is negative so that old
                                 * cache managers treat it as "server is down" */
index b4bac78cea1a98fc327d8d61be33def406649178..329d8f3c9ca34e2e4a0b42f14dfe8c7d67e8ddcc 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -60,7 +60,7 @@ renamefile(const char *oldname, const char *newname)
 
 
 /*
- * FilepathNormalizeEx() -- normalize file path; i.e., use only forward (or only 
+ * FilepathNormalizeEx() -- normalize file path; i.e., use only forward (or only
  *     backward) slashes, remove multiple and trailing slashes.
  */
 void
index 8398e2c77a259afd48693f491a88e5344e2aef6c..029104e308656cc5070c78e4b97a962880d14ad4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 22aaf11d4b22e1effe1e3fc2c69c5747e5a5aaf9..ebed8e968167643996303745635ccfaff32b3829 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -19,7 +19,7 @@
 #include "afsutil.h"
 
 /* This version of base64 gets it right and starts converting from the low
- * bits to the high bits. 
+ * bits to the high bits.
  */
 /* This table needs to be in lexical order to efficiently map back from
  * characters to the numerical value.
index cb289e37967711d038c627988c59d1d7ae4804c0..d89cdf0517f4183e4aef95a6ee8d97320d6a54df 100644 (file)
@@ -81,7 +81,7 @@ getfsent(void)
     else
        fstabent.fs_type = FSTAB_RW;
     fstabent.fs_vfstype = mntent->f_fstypename;
-    
+
     mntent++;
     mntcnt--;
     return &fstabent;
index 61962250cb4ff2ce245e969e8e021ec9e2854dc1..d77a1e17af2cc423f731bed4ddb9ad0a0746ad82 100644 (file)
@@ -17,9 +17,9 @@
  * krb_get_lrealm takes a pointer to a string, and a number, n.  It fills
  * in the string, r, with the name of the nth realm specified on the
  * first line of the kerberos config file (KRB_CONF, defined in "krb.h").
- * It returns 0 (KSUCCESS) on success, and KFAILURE on failure. 
+ * It returns 0 (KSUCCESS) on success, and KFAILURE on failure.
  *
- * On the kerberos version if the config file does not exist, and if n=1, a 
+ * On the kerberos version if the config file does not exist, and if n=1, a
  * successful return will occur with r = KRB_REALM (also defined in "krb.h").
  *
  */
@@ -113,7 +113,7 @@ afs_krb_exclusion(char * name)
     return exclude;
 }
 
-int 
+int
 afs_is_foreign_ticket_name(char *tname, char *tinst, char * tcell, char *localrealm)
 {
     int foreign = 0;
@@ -151,7 +151,7 @@ afs_is_foreign_ticket_name(char *tname, char *tinst, char * tcell, char *localre
            }
        }
 
-       /* If yes, then make sure that the name is not present in 
+       /* If yes, then make sure that the name is not present in
         * an exclusion list */
        if (lrealm_match) {
            if (tinst && tinst[0])
index e743e2a243f7b18013816f4c929765ef845138e7..f1da7477edda4f815d38e926f5d5208a5568f3d6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -126,10 +126,10 @@ hostutil_GetNameByINet(afs_uint32 addr)
     return tbuffer;
 }
 
-/* the parameter is a pointer to a buffer containing a string of 
-** bytes of the form 
+/* the parameter is a pointer to a buffer containing a string of
+** bytes of the form
 ** w.x.y.z     # machineName
-** returns the network interface in network byte order 
+** returns the network interface in network byte order
 */
 afs_uint32
 extractAddr(char *line, int maxSize)
index e540c9ec09ca46795132443e11a36d124fa45ebd..50b308c9b0e43bc23d05d9adf7e6281a3ba2a32c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 952ce888a45b5f09991bbec8b57d341ad06af995..a129327508a6dc558e2b4cdf26f59519837324cc 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 67b9e299e8e005015c0bf37fc80ea19d8fa20626..5ade0a77cee539e9130e7437b7022b4066bba3d6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1a2467811f729a23708a8b717139618a37f965bd..1f9470b7613ff1227479dce293050ac7fc168532 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -272,7 +272,7 @@ RelDatetoString(struct ktime_date *datePtr)
 }
 
 /* Add_RelDate_to_Time
- *     Returns current time with a relative time added. Note that the 
+ *     Returns current time with a relative time added. Note that the
  *     computation adds in most significant fields first, i.e. year, month
  *     day etc. Addition of least significant fields would produce different
  *     results (depending on the data).
index 926150a1eaefd67596abe097bf8b5d58df16ad39..ad68aa7c1f47932eb5d6aa6c3583270185c9d023 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -383,8 +383,8 @@ ktime_next(struct ktime * aktime, afs_int32 afrom)
     if (tmask & KTIME_NOW)
        return 0;
 
-    /* Use probe to fill in members of *tsp. Add 23 hours each iteration until 
-     * time_next is correct. Only add 23 hrs to avoid skipping spring 
+    /* Use probe to fill in members of *tsp. Add 23 hours each iteration until
+     * time_next is correct. Only add 23 hrs to avoid skipping spring
      * daylight savings time day */
     for (probe = start;; probe += (23 * 3600)) {
        tsp = localtime(&probe);        /* find out what UTC time "probe" is */
index 726a7e8f155ad0fcd882066979cd39311e5c0b93..15e44fd0be41610a7499b5916d7fca292c78d5ec 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 821f65816597a8c532ac0d1ecb5751bd5942b973..f8ee720482337a6c5d174d3010fad7e64fe95844 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 41e47736fde3d9072222b820634b8b52f7e593b5..129949d736392615623a585012a12f6714720e68 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -30,7 +30,7 @@
 #else
 #ifdef AFS_NT40_ENV
 #include <winsock2.h>
-#else 
+#else
 #ifdef __FreeBSD__
 #include <sys/types.h>
 #endif
@@ -54,9 +54,9 @@
 int ParseNetInfoFile_int(afs_uint32 *, afs_uint32 *, afs_uint32 *,
                          int, char reason[], const char *,
                          int);
-/* 
- * The line parameter is a pointer to a buffer containing a string of 
- * bytes of the form 
+/*
+ * The line parameter is a pointer to a buffer containing a string of
+ * bytes of the form
 ** w.x.y.z     # machineName
  * returns the network interface IP Address in NBO
  */
@@ -107,7 +107,7 @@ extract_Addr(char *line, int maxSize)
 /* parseNetRestrictFile()
  * Get a list of IP addresses for this host removing any address found
  * in the config file (fileName parameter): /usr/vice/etc/NetRestrict
- * for clients and /usr/afs/local/NetRestrict for servers.  
+ * for clients and /usr/afs/local/NetRestrict for servers.
  *
  * Returns the number of valid addresses in outAddrs[] and count in
  * nAddrs.  Returns 0 on success; or 1 if the config file was not
@@ -131,7 +131,7 @@ extract_Addr(char *line, int maxSize)
 int
 parseNetRestrictFile_int(afs_uint32 outAddrs[], afs_uint32 * mask,
                         afs_uint32 * mtu, afs_uint32 maxAddrs,
-                        afs_uint32 * nAddrs, char reason[], 
+                        afs_uint32 * nAddrs, char reason[],
                         const char *fileName, const char *fileName_ni)
 {
     FILE *fp;
@@ -160,8 +160,8 @@ parseNetRestrictFile_int(afs_uint32 outAddrs[], afs_uint32 * mask,
        return -1;
     }
     i = 0;
-    if ((neaddrs < MAXIPADDRS) && fileName_ni) 
-       i = ParseNetInfoFile_int(&(eAddrs[neaddrs]), &(eMask[neaddrs]), 
+    if ((neaddrs < MAXIPADDRS) && fileName_ni)
+       i = ParseNetInfoFile_int(&(eAddrs[neaddrs]), &(eMask[neaddrs]),
                                 &(eMtu[neaddrs]), MAXIPADDRS-neaddrs, reason,
                                 fileName_ni, 1);
 
@@ -232,7 +232,7 @@ parseNetRestrictFile_int(afs_uint32 outAddrs[], afs_uint32 * mask,
 int
 parseNetRestrictFile(afs_uint32 outAddrs[], afs_uint32 * mask,
                         afs_uint32 * mtu, afs_uint32 maxAddrs,
-                        afs_uint32 * nAddrs, char reason[], 
+                        afs_uint32 * nAddrs, char reason[],
                         const char *fileName)
 {
     return parseNetRestrictFile_int(outAddrs, mask, mtu, maxAddrs, nAddrs, reason, fileName, NULL);
@@ -241,14 +241,14 @@ parseNetRestrictFile(afs_uint32 outAddrs[], afs_uint32 * mask,
 /*
  * this function reads in stuff from InterfaceAddr file in
  * /usr/vice/etc ( if it exists ) and verifies the addresses
- * specified. 
- * 'final' contains all those addresses that are found to 
+ * specified.
+ * 'final' contains all those addresses that are found to
  * be valid. This function returns the number of valid
  * interface addresses. Pulled out from afsd.c
  */
 int
 ParseNetInfoFile_int(afs_uint32 * final, afs_uint32 * mask, afs_uint32 * mtu,
-                    int max, char reason[], const char *fileName, 
+                    int max, char reason[], const char *fileName,
                     int fakeonly)
 {
 
@@ -341,7 +341,7 @@ ParseNetInfoFile_int(afs_uint32 * final, afs_uint32 * mask, afs_uint32 * mtu,
                    "afs:Too many interfaces. The current kernel configuration supports a maximum of %d interfaces\n",
                    max);
        } else if (fake) {
-           if (!fake) 
+           if (!fake)
                fprintf(stderr, "Client (2) also has address %s\n", line);
            final[count] = addr;
            mask[count] = 0xffffffff;
index 702a10e1a2a4daae0c3d31dbf56aad7778321372..075edade2cbc9c32a1e67cdb4b12ddb2025f89c6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 18bbee527c8238801ec8004fd48ea61f8c7d7181..5a739cf9630ceac26ca93088512e28ab9bdbd69e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 46c77699bca0c184643b73e08b8840bc5081f808..d60b5198a74ccaa463f4805959935500e92151de 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 33900f7e8880242494e8124e68d2c47eafd891f6..ba80cb412bffbc6e927b1dc04981c26c6caec491 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1c9beeae6addca3f35278325b7a204e0bf0969d6..19d6891bf195bfae3f4e0248cb47d5231d999fa8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 65acee0b16005e2e6da63af3981487c4d045368b..f8932d2d0a56da2c1de4d3c02d85cd5ef13dfaf2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 0f9abe4d88392621dff683b7bdc822cd341059b4..bfc09cf1c47e3c4cb9df0f4b387bd6953a0b2935 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1fed495616c4b3d8b5e1fce8fafbb2a5e2ea044c..3cd36df4eeba35a3a096eeb469c76f898df59123 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  *     re_exec(s)
  *             char *s;
  *      ... returns 1 if the string s matches the last compiled regular
- *                    expression, 
+ *                    expression,
  *                  0 if the string s failed to match the last compiled
  *                    regular expression, and
- *                 -1 if the compiled regular expression was invalid 
+ *                 -1 if the compiled regular expression was invalid
  *                    (indicating an internal error).
  *
  * The strings passed to both re_comp and re_exec may have trailing or
@@ -50,7 +50,7 @@
  *         matches that character.
  *     4.  A nonempty string s bracketed [s] (or [^s]) matches any
  *         character in (or not in) s. In s, \ has no special meaning,
- *         and ] may only appear as the first letter. A substring 
+ *         and ] may only appear as the first letter. A substring
  *         a-b, with a and b in ascending ASCII order, stands for
  *         the inclusive range of ASCII characters.
  *     5.  A regular expression of form 1-4 followed by * matches a
@@ -248,7 +248,7 @@ backref(int i, char *lp)
     return (0);
 }
 
-/* 
+/*
  * try to match the next thing in the dfa
  */
 static int
index 7cd4cb94064957968c82293e5627dfeda2898b94..d302faaa3e8f4f38edda0f358345c62c068c16a3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -273,7 +273,7 @@ extern int RemoteMaybe();
  * Vice 1 Response:
  *             0: file identifier assigned (for subsequent
  *                messages dealing with open files).
- *             1: pathname of the local, cached file.  
+ *             1: pathname of the local, cached file.
  *             im_error
  * Note:       the returned filename is not created, truncated(?),
  *             or otherwise fiddled with by the kernel.  It must
@@ -439,7 +439,7 @@ extern int RemoteMaybe();
 
 
 /* The following error codes are set by Venus when a pathname argument supplied
- * by the kernel resolves to an absolute pathname outside of the name space 
+ * by the kernel resolves to an absolute pathname outside of the name space
  * of this venus.  The resolved absolute pathname is returned in argument 0.
  * The kernel is expected to retry the system call with this new information.
  * The kernel never passes this error on to the original issuer of the system
index 2d6304cbb6d1c9276fabb347552077d4cb9d5bf8..82e93f08d30b843523cd2c2d78c286225b185485 100644 (file)
@@ -5,7 +5,7 @@
 #include <des/stats.h>
 
 #ifndef AFS_PTHREAD_ENV
-struct rxkad_stats rxkad_stats = { { 0 } }; 
+struct rxkad_stats rxkad_stats = { { 0 } };
 #else
 rxkad_stats_t rxkad_stats = { { 0 } };
 #endif
index 14220b1ed71d01c17be8ee9e164293a33d90e528..127cd943e21f386db382cf0340d0c93d987f08b2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 601b5f52f6e6a168db21c266c8e9d10871d12ca5..c1098252b3f4f3eb91612668acae299ca9f9aead 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 6a60b5f8cd42a41e4794f04054f83c885ac4773c..1fd7c9a5a92f55121c089089fd7e6b4c3b191695 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -105,7 +105,7 @@ WriteLogBuffer(char *buf, afs_uint32 len)
 }
 
 int
-LogThreadNum(void) 
+LogThreadNum(void)
 {
   return (*threadNumProgram) ();
 }
@@ -216,7 +216,7 @@ SetDebug_Signal(int signo)
        LogLevel *= 5;
 
 #if defined(AFS_PTHREAD_ENV)
-        if (LogLevel > 1 && threadNumProgram != NULL && 
+        if (LogLevel > 1 && threadNumProgram != NULL &&
             threadIdLogs == 0) {
             threadIdLogs = 1;
         }
@@ -309,7 +309,7 @@ OpenLog(const char *fileName)
         time_t t;
        struct stat buf;
        FT_GetTimeOfDay(&Start, 0);
-        t = Start.tv_sec;      
+        t = Start.tv_sec;
        TimeFields = localtime(&t);
        if (fileName) {
            if (strncmp(fileName, (char *)&ourName, strlen(fileName)))
index 09be431834af91018d3a48e47373a32f6c2bafed..5b0b2ad11c6a59842d83cb070312237844a68820 100644 (file)
 #include <sys/socket.h>
 #endif
 
-/* This is an enhanced version of the *printf functionality shipped 
+/* This is an enhanced version of the *printf functionality shipped
  * with Heimdal.  In addition to the standard Unix formatting types
  * this version also supports Microsoft's I32 and I64 type modifiers
- * and the OpenAFS I type which is used to generate output from 
- * network byte order IPv4 addresses (either dotted notation or 
+ * and the OpenAFS I type which is used to generate output from
+ * network byte order IPv4 addresses (either dotted notation or
  * hostname lookups.  Implementation details follow:
  *
  *   - Actually obeys the length limit, which (unfortunately) many
  *     implementations of snprintf do not.
- *  
+ *
  *   - Supports all the standard format specifiers for integers
  *     (d, i, o, u, x, X), floating-point values (f, e, E, g, G),
  *     and strings and characters (c, s, %), plus a few unusual
  *     but useful ones described below.
  *
- *   - The Microsoft integral size modifiers I32 and I64 are 
+ *   - The Microsoft integral size modifiers I32 and I64 are
  *     supported.  I32 is equivalent to 'l'.
  *     I64 is equivalent to 'll'.
- *  
+ *
  *   - Supports all the standard flags (-, 0, +, space, #).  These
  *     flags are ignored if used when they are not appropriate.
- *  
+ *
  *   - Supports the standard size modifiers for short (h), long (h),
  *     and double (L) arguments.  These modifiers are ignored if used
  *     when they are not appropriate.
- *  
+ *
  *   - Supports minimum field width and precision, where appropriate,
  *     including the use of '*' to specify a value given as an argument
  *     instead of in the format string.  There is a maximum precision
  *     of 100 digits.
- *  
+ *
  *   - The 'p' specifier for printing pointers is implemented using
  *     compile time knowledge.  (AFS_64BITUSERPOINTER_ENV)
  *
  *   - Floating-point specifier (%e, %f, %g) are implemented by
  *     calling the standard sprintf, and thus may be unsafe.
- *  
+ *
  *   - The '%...$' notation is used primarily when the format string
  *     is specified by the user, who knows but cannot change the order
  *     of the arguments.  Such usage is inherently dangerous and
  *   - Passing in a format and an NULL buffer is supported.  This
  *     will compute the size of the buffer required by the format
  *     and the provided input parameters.
- *  
+ *
  * The custom format specifier '%I' is supported.  This specifier
  * takes as its argument an unsigned long integer containing an
  * IPv4 address in network byte order.  The address is rendered
  * either as a hostname or as a dotted quad, as follows:
- *  
+ *
  *   - If precision is nonzero or unspecified, a hostname lookup
  *     is attempted; if it is successful, the hostname is printed.
  *     If the hostname lookup fails, the address is printed in
  *     dotted-quad notation.
- *  
+ *
  *   - If precision is explicitly specified as 0, then the hostname
  *     lookup is skipped, and dotted-quad notation is always used.
- *  
+ *
  *   - If a hostname is to be printed:
  *     + The precision controls the maximum number of characters
  *       printed, as with %s.
  *       will be forced to upper case before printing.  If both
  *       '#' and '+' are given, the '+' flag will be ignored.
  *     + The '0' and ' ' flags have no effect.
- *  
+ *
  *   - If a dotted quad is to be printed:
  *     + The precision has no effect; dotted quads are always
  *       7 to 12 characters in length, depending on the value
  * A test program exists in src/util/tests/snprintf_tests.c.
  */
 
-#define MAXPREC 100 
+#define MAXPREC 100
 
 enum format_flags {
     minus_flag     =  1,
@@ -287,7 +287,7 @@ append_number(struct snprintf_state *state,
            no such wording for %x. This would mean that %#.o would
            output "0", but %#.x "". This does not make sense, and is
            also not what other printf implementations are doing. */
-       
+
        if(prec <= nlen && nstr[nstart] != '0' && nstr[nstart] != '\0')
            prec = nlen + 1;
     }
@@ -305,13 +305,13 @@ append_number(struct snprintf_state *state,
            width -= prec;
        else
            width -= nlen;
-       
+
        if(use_alternative(flags, num, base))
            width -= 2;
-       
+
        if(signchar != '\0')
            width--;
-       
+
        /* pad to width */
        len += pad(state, width, ' ');
     }
@@ -333,12 +333,12 @@ append_number(struct snprintf_state *state,
     } else
        /* pad to prec with zeros */
        len += pad(state, prec - nlen, '0');
-       
+
     while(nstr[nstart] != '\0') {
        (*state->append_char)(state, nstr[nstart++]);
        ++len;
     }
-       
+
     if(flags & minus_flag)
        len += pad(state, width - len, ' ');
 
@@ -405,7 +405,7 @@ append_char(struct snprintf_state *state,
     return 0;
 }
 
-#define MAXPREC 100 
+#define MAXPREC 100
 static int
 append_float(struct snprintf_state *state,
              char type,
@@ -417,7 +417,7 @@ append_float(struct snprintf_state *state,
     int len = 0;
     char fbuf[20], xbuf[MAXPREC + 21];
 
-    sprintf(fbuf, "%%%s%s.*L%c", 
+    sprintf(fbuf, "%%%s%s.*L%c",
             (flags & plus_flag) ? "+" : ((flags & space_flag) ? " " : ((flags & minus_flag) ? "-" : "")),
             (flags & alternate_flag) ? "#" : "", type);
     if (prec == -1)
@@ -459,7 +459,7 @@ append_address(struct snprintf_state *state,
         len = (int)strlen(x);
         if (prec != -1 && prec < len)
             width = prec;
-        else 
+        else
             width = len;
         if (flags & alternate_flag) {
             for (y = x; *y; y++)
@@ -483,11 +483,11 @@ append_address(struct snprintf_state *state,
         }
         /* typecast to whatever '%u' is! */
         sprintf(xbuf, x, (unsigned int)((arg & 0xff000000) >> 24),
-                         (unsigned int)((arg & 0x00ff0000) >> 16), 
+                         (unsigned int)((arg & 0x00ff0000) >> 16),
                          (unsigned int)((arg & 0x0000ff00) >> 8),
                          (unsigned int)(arg & 0x000000ff));
         len = append_string(state, (unsigned char *)xbuf, 0, -1, 0);
-    }        
+    }
 
     return len;
 }
@@ -657,7 +657,7 @@ xyzprintf (struct snprintf_state *state, const char *char_format, va_list ap)
                     long_long_flag = 1;
                 else if (sizeof(void *) == sizeof(afs_uint32))
                     long_flag = 1;
-                else 
+                else
                     long_flag = 1;
             }
 
index 56a0948c705cddbc8911830e192cab2305d61744..af600ff4d395a8bab54dddc57cfb4dbccd9e8ce9 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2006, Sine Nomine Associates and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 95ae146b2aa5d7713cf5e9b3ba341c5e0ab72a06..e53994ddb2ae44b0ae1184798d539dede8a167ab 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 9cd10e36a2e689810a782ac3be4158fe47ac31c0..f56834234c5d06fd02543103f1b8d0b4f86be90d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  * Copyright (c) 2002 Kungliga Tekniska Högskolan
  * (Royal Institute of Technology, Stockholm, Sweden).
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- * 
+ *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  * 3. Neither the name of the Institute nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 99dd54f7b8929966983258006190cb96f2b514ae..7e3db079d487762b44c99ac6578b38a649c6283b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index f676166309d8315fe5b8929931b7706b5f46339b..db022c9146ceb5ad305e096535f085c089c4d858 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 8a9d67230cd4aa4766900ac157d4926c26efc017..b2ea61466a044ee3e4225580176c33547f82e317 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -20,7 +20,7 @@
 
 /* afs_wsInit - LWP version
  * Initialize the winsock 2 environment.
- * 
+ *
  * Returns 0 on success, -1 on error.
  */
 int
index a64cde7e147d97cbbd954f962eacc8a1a5307611..b4967e77714c25fdb407e81445f130d8e006d71f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index aa134db66ad5df8cf5d4b4516fe04593cbc6dee6..dcc861d857b40de01b0b87eee58d2b36babf53e1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -133,7 +133,7 @@ PrintInterfaces(struct rx_connection *aconn)
     if (caps.Capabilities_val) {
         printf("Capabilities:\n");
         if (caps.Capabilities_val[0] & CAPABILITY_ERRORTRANS) {
-            printf("Error Translation\n");  
+            printf("Error Translation\n");
         }
         printf("\n");
     }
@@ -515,7 +515,7 @@ PrintCellServDBEntry(struct rx_connection *aconn, afs_int32 cellnum)
 }
 
 static void
-PrintCellServDB(struct rx_connection *aconn) 
+PrintCellServDB(struct rx_connection *aconn)
 {
     afs_int32 index;
 
@@ -602,8 +602,8 @@ main(int argc, char **argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
@@ -628,19 +628,19 @@ main(int argc, char **argv)
     cmd_AddParm(ts, "-servers", CMD_SINGLE, CMD_REQUIRED, "server machine");
     cmd_AddParm(ts, "-port", CMD_SINGLE, CMD_OPTIONAL, "IP port");
     cmd_AddParm(ts, "-long", CMD_FLAG, CMD_OPTIONAL, "print all info");
-    cmd_AddParm(ts, "-refcounts", CMD_FLAG, CMD_OPTIONAL, 
+    cmd_AddParm(ts, "-refcounts", CMD_FLAG, CMD_OPTIONAL,
                  "print only cache entries with positive reference counts");
-    cmd_AddParm(ts, "-callbacks", CMD_FLAG, CMD_OPTIONAL, 
+    cmd_AddParm(ts, "-callbacks", CMD_FLAG, CMD_OPTIONAL,
                  "print only cache entries with callbacks");
-    cmd_AddParm(ts, "-ctime", CMD_FLAG, CMD_OPTIONAL, 
+    cmd_AddParm(ts, "-ctime", CMD_FLAG, CMD_OPTIONAL,
                 "print human readable expiration time");
 
-    
+
     cmd_AddParm(ts, "-addrs", CMD_FLAG, CMD_OPTIONAL,
                "print only host interfaces");
     cmd_AddParm(ts, "-cache", CMD_FLAG, CMD_OPTIONAL,
                "print only cache configuration");
-    cmd_AddParm(ts, "-cellservdb", CMD_FLAG, CMD_OPTIONAL, 
+    cmd_AddParm(ts, "-cellservdb", CMD_FLAG, CMD_OPTIONAL,
                 "print only cellservdb info");
 
     cmd_Dispatch(argc, argv);
index 2a4c9a464d4bdd4ff579304a6a293bfd7315c7c7..4e291cbdd527f3de009ddf92c4efa635a585e1cf 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -97,13 +97,13 @@ char **argv; {
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
     struct sigaction nsa;
-    
+
     sigemptyset(&nsa.sa_mask);
     nsa.sa_handler = SIG_DFL;
     nsa.sa_flags = SA_FULLDUMP;
index 0a11d4228dd398daf695dab188889f4f144d8b58..3c4f2b94e91f5b9d3ae06c63aa4f0b273ca859dc 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -1297,11 +1297,11 @@ FlushVolumeCmd(struct cmd_syndesc *as, void *arock)
     return error;
 }
 
-/* 
+/*
  * The Windows version of UuidCmd displays the UUID.
  * When the UNIX version is updated to do the same
  * be sure to replace the CMD_REQUIRED flag with
- * CMD_OPTIONAL in the cmd_AddParam(-generate) call 
+ * CMD_OPTIONAL in the cmd_AddParam(-generate) call
  */
 static int
 UuidCmd(struct cmd_syndesc *as, void *arock)
@@ -1311,7 +1311,7 @@ UuidCmd(struct cmd_syndesc *as, void *arock)
 
     blob.in_size = 0;
     blob.out_size = 0;
-    
+
     if (as->parms[0].items) {
         if (geteuid()) {
             fprintf (stderr, "Permission denied: requires root access.\n");
@@ -1340,25 +1340,25 @@ UuidCmd(struct cmd_syndesc *as, void *arock)
  * With a threshold of 0, the cache is always bypassed.  With a threshold of -1,
  * cache bypass is disabled.
  */
+
 static int
 BypassThresholdCmd(struct cmd_syndesc *as, void *arock)
 {
     afs_int32 code;
     struct ViceIoctl blob;
     afs_int32 threshold_i, threshold_o;
-    char *tp;  
-    
+    char *tp;
+
     /* if new threshold supplied, then set and confirm, else,
      * get current threshold and print
      */
-        
+
     if(as->parms[0].items) {
        int digit, ix, len;
-                               
+
        tp = as->parms[0].items->data;
        len = strlen(tp);
-       digit = 1; 
+       digit = 1;
        for(ix = 0; ix < len; ++ix) {
            if(!isdigit(tp[0])) {
                digit = 0;
@@ -1370,7 +1370,7 @@ BypassThresholdCmd(struct cmd_syndesc *as, void *arock)
            return EINVAL;
        }
        threshold_i = atoi(tp);
-       if(ix > 9 && threshold_i < 2147483647) 
+       if(ix > 9 && threshold_i < 2147483647)
            threshold_i = 2147483647;
        blob.in = (char *) &threshold_i;
        blob.in_size = sizeof(threshold_i);
@@ -1385,7 +1385,7 @@ BypassThresholdCmd(struct cmd_syndesc *as, void *arock)
     if (code) {
        Die(errno, NULL);
        return 1;
-    } else {           
+    } else {
        printf("Cache bypass threshold %d", threshold_o);
        if(threshold_o ==  -1)
            printf(" (disabled)");
@@ -2131,7 +2131,7 @@ PreCacheCmd(struct cmd_syndesc *as, void *arock)
     afs_int32 code;
     struct ViceIoctl blob;
     afs_int32 temp;
-    
+
     if (!as->parms[0].items && !as->parms[1].items) {
        fprintf(stderr, "%s: syntax error in precache cmd.\n", pn);
        return 1;
@@ -2153,7 +2153,7 @@ PreCacheCmd(struct cmd_syndesc *as, void *arock)
        Die(errno, NULL);
        return 1;
     }
-    
+
     printf("New precache size set.\n");
     return 0;
 }
@@ -2251,26 +2251,26 @@ GetCacheParmsCmd(struct cmd_syndesc *as, void *arock)
            percentFiles, filesUsed, parms[2]);
     if (flags == 2){
        printf("        afs_cacheFiles: %10d\n", parms[2]);
-       printf("        IFFree:         %10d\n", parms[3]); 
-       printf("        IFEverUsed:     %10d\n", parms[4]); 
-       printf("        IFDataMod:      %10d\n", parms[5]); 
+       printf("        IFFree:         %10d\n", parms[3]);
+       printf("        IFEverUsed:     %10d\n", parms[4]);
+       printf("        IFDataMod:      %10d\n", parms[5]);
        printf("        IFDirtyPages:   %10d\n", parms[6]);
-       printf("        IFAnyPages:     %10d\n", parms[7]); 
+       printf("        IFAnyPages:     %10d\n", parms[7]);
        printf("        IFDiscarded:    %10d\n", parms[8]);
        printf("        DCentries:  %10d\n", parms[9]);
-       printf("          0k-   4K: %10d\n", parms[10]); 
-       printf("          4k-  16k: %10d\n", parms[11]); 
-       printf("         16k-  64k: %10d\n", parms[12]); 
-       printf("         64k- 256k: %10d\n", parms[13]); 
-       printf("        256k-   1M: %10d\n", parms[14]); 
-       printf("              >=1M: %10d\n", parms[15]); 
+       printf("          0k-   4K: %10d\n", parms[10]);
+       printf("          4k-  16k: %10d\n", parms[11]);
+       printf("         16k-  64k: %10d\n", parms[12]);
+       printf("         64k- 256k: %10d\n", parms[13]);
+       printf("        256k-   1M: %10d\n", parms[14]);
+       printf("              >=1M: %10d\n", parms[15]);
     }
 
     if (percentBlocks > 90)
        printf("[cache size usage over 90%%, consider increasing cache size]\n");
     if (percentFiles > 90)
        printf("[cache file usage over 90%%, consider increasing '-files' argument to afsd]\n");
-        
+
     return 0;
 }
 
@@ -2363,7 +2363,7 @@ CallBackRxConnCmd(struct cmd_syndesc *as, void *arock)
     afs_int32 hostAddr;
     struct hostent *thp;
     int setp;
-    
+
     ti = as->parms[0].items;
     setp = 1;
     if (ti) {
@@ -2377,13 +2377,13 @@ CallBackRxConnCmd(struct cmd_syndesc *as, void *arock)
         hostAddr = 0;   /* means don't set host */
        setp = 0;       /* aren't setting host */
     }
-    
+
     /* now do operation */
     blob.in_size = sizeof(afs_int32);
     blob.out_size = sizeof(afs_int32);
     blob.in = (char *) &hostAddr;
     blob.out = (char *) &hostAddr;
-    
+
     code = pioctl(0, VIOC_CBADDR, &blob, 1);
     if (code < 0) {
        Die(errno, 0);
@@ -2400,7 +2400,7 @@ NukeNFSCredsCmd(struct cmd_syndesc *as, void *arock)
     struct cmd_item *ti;
     afs_int32 hostAddr;
     struct hostent *thp;
-    
+
     ti = as->parms[0].items;
     thp = hostutil_GetHostByName(ti->data);
     if (!thp) {
@@ -2408,13 +2408,13 @@ NukeNFSCredsCmd(struct cmd_syndesc *as, void *arock)
        return 1;
     }
     else memcpy(&hostAddr, thp->h_addr, sizeof(afs_int32));
-    
+
     /* now do operation */
     blob.in_size = sizeof(afs_int32);
     blob.out_size = sizeof(afs_int32);
     blob.in = (char *) &hostAddr;
     blob.out = (char *) &hostAddr;
-    
+
     code = pioctl(0, VIOC_NFS_NUKE_CREDS, &blob, 1);
     if (code < 0) {
        Die(errno, 0);
@@ -2998,7 +2998,7 @@ VLDBInit(int noAuthFlag, struct afsconf_cell *info)
     afs_int32 code;
 
     code = ugen_ClientInit(noAuthFlag, (char *) AFSDIR_CLIENT_ETC_DIRPATH,
-                          info->name, 0, &uclient, 
+                          info->name, 0, &uclient,
                            NULL, pn, rxkad_clear,
                            VLDB_MAXSERVERS, AFSCONF_VLDBSERVICE, 50,
                            0, 0, USER_SERVICE_ID);
@@ -4253,11 +4253,11 @@ GetFidCmd(struct cmd_syndesc *as, void *arock)
     struct cmd_item *ti;
     for (ti = as->parms[0].items; ti; ti = ti->next) {
       struct VenusFid vfid;
-      
+
       blob.out_size = sizeof(struct VenusFid);
       blob.out = (char *) &vfid;
       blob.in_size = 0;
-      
+
       if (0 == pioctl(ti->data, VIOCGETFID, &blob, 1)) {
        printf("File %s (%u.%u.%u) contained in volume %u\n",
               ti->data, vfid.Fid.Volume, vfid.Fid.Vnode, vfid.Fid.Unique,
index 3286047953f5a0701a9850975512fe56459d384f..b677431c400c8b327ba7dd411dc04f93aafd1e56 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -17,7 +17,7 @@
 #include <stdio.h>
 #include <sys/types.h>
 #include <unistd.h>
-#if !defined(AFS_SUN3_ENV) && !defined(sys_vax_ul43) 
+#if !defined(AFS_SUN3_ENV) && !defined(sys_vax_ul43)
 #include <time.h>
 /*#ifdef       AFS_AIX_ENV*/
 #include <sys/time.h>
@@ -548,7 +548,7 @@ DisplayRecord(FILE *outFilep, afs_int32 *alp, afs_int32 rsize)
  */
 
 void
-dce1_error_inq_text(afs_uint32 status_to_convert, 
+dce1_error_inq_text(afs_uint32 status_to_convert,
                   char *error_text, int *status)
 {
     unsigned short facility_code;
@@ -1114,7 +1114,7 @@ icl_TailKernel(FILE *outFilep, char *logname, afs_int32 waitTime)
 
 #if !defined(AFS_SGI_ENV)
 int
-afs_syscall(long call, long parm0, long parm1, long parm2, long parm3, 
+afs_syscall(long call, long parm0, long parm1, long parm2, long parm3,
            long parm4, long parm5, long parm6)
 {
     int code, rval;
@@ -1184,7 +1184,7 @@ icl_Init(void)
 }
 
 int
-icl_CreateSet(char *name, struct afs_icl_log *baseLogp, 
+icl_CreateSet(char *name, struct afs_icl_log *baseLogp,
              struct afs_icl_log *fatalLogp, struct afs_icl_set **outSetpp)
 {
     return icl_CreateSetWithFlags(name, baseLogp, fatalLogp, /*flags */ 0,
@@ -1198,8 +1198,8 @@ icl_CreateSet(char *name, struct afs_icl_log *baseLogp,
  * those references will be released.
  */
 int
-icl_CreateSetWithFlags(char *name, struct afs_icl_log *baseLogp, 
-                      struct afs_icl_log *fatalLogp, afs_uint32 flags, 
+icl_CreateSetWithFlags(char *name, struct afs_icl_log *baseLogp,
+                      struct afs_icl_log *fatalLogp, afs_uint32 flags,
                       struct afs_icl_set **outSetpp)
 {
     struct afs_icl_set *setp;
@@ -1389,7 +1389,7 @@ icl_ZeroSet(struct afs_icl_set *setp)
 }
 
 int
-icl_EnumerateSets(int (*aproc) (char *, void *, struct afs_icl_set *), 
+icl_EnumerateSets(int (*aproc) (char *, void *, struct afs_icl_set *),
                  void *arock)
 {
     struct afs_icl_set *tp, *np;
@@ -1468,7 +1468,7 @@ icl_SetSetStat(struct afs_icl_set *setp, int op)
        break;
 
     case ICL_OP_SS_FREE:       /* deassert design for log */
-       /* 
+       /*
         * if we are already in this state, do nothing; otherwise
         * deassert desire for log
         */
index 0ef2b9b066c282b2bce9d15aa55e2aa00d9a4077..3395ef70e5355df19c31b84b5347c7fedb3b21a7 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 2c5a9533562c99b11f0189bf2545cc4adc175b87..a7afff4ea52ea1f5e0e2cdfc794fb9bc71c89d0d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -16,7 +16,7 @@
 #include <stdlib.h>            /* for malloc() */
 
 #include <afs/cmd.h>
-    
+
 #if !defined(AFS_DARWIN_ENV) && !defined(AFS_FBSD_ENV)
 /* Here be hacks. */
 #ifdef AFS_LINUX24_ENV
@@ -148,7 +148,7 @@ struct ncp_sb_info {
  * kseg_to_phys()
  * is_kseg_va()
  * is_seg1_va()
- * 
+ *
  * when _KERNEL is defined, and expressions otherwise.  Since need
  * to define _KERNEL, we redefine these kernel functions as macros
  * for the expressions that we would have gotten if _KERNEL had not
@@ -832,7 +832,7 @@ cmdproc(struct cmd_syndesc *as, void *arock)
 {
     afs_int32 code = 0;
 
-#if !defined(AFS_DARWIN_ENV) && !defined(AFS_FBSD_ENV) 
+#if !defined(AFS_DARWIN_ENV) && !defined(AFS_FBSD_ENV)
     if (as->parms[0].items) {  /* -kobj */
        obj = as->parms[0].items->data;
     }
@@ -2347,8 +2347,8 @@ kread(int kmem, off_t loc, void *buf, KDUMP_SIZE_T len)
        perror("lseek");
        exit(1);
     }
-    if (loc == 0) 
-       printf("WARNING: Read failed: loc=0\n"); 
+    if (loc == 0)
+       printf("WARNING: Read failed: loc=0\n");
     else
        if ((i = read(kmem, buf, len)) != len) {
            printf("WARNING: Read failed: ");
@@ -2473,7 +2473,7 @@ opencore(char *core)
 
 
 void
-print_exporter(int kmem, struct afs_exporter *exporter, 
+print_exporter(int kmem, struct afs_exporter *exporter,
               struct afs_exporter *ptr, int pnt)
 {
     if (pnt) {
@@ -2488,7 +2488,7 @@ print_exporter(int kmem, struct afs_exporter *exporter,
 
 
 void
-print_nfsclient(int kmem, struct nfsclientpag *ep, 
+print_nfsclient(int kmem, struct nfsclientpag *ep,
                struct nfsclientpag *ptr, int pnt)
 {
     char sysname[100];
@@ -2524,7 +2524,7 @@ pmutex(char *sp, kmutex_t *mp)
 #endif
 
 void
-print_unixuser(int kmem, struct unixuser *uep, 
+print_unixuser(int kmem, struct unixuser *uep,
               struct unixuser *ptr, int pnt)
 {
     Sum_userstp += uep->stLen;
@@ -2576,7 +2576,7 @@ print_cell(int kmem, struct cell *clep, struct cell *ptr, int pnt)
 
 
 void
-print_server(int kmem, struct server *sep, struct server *ptr, int conns, 
+print_server(int kmem, struct server *sep, struct server *ptr, int conns,
             int pnt)
 {
     struct srvAddr sa, *sap = &sa, *sap1;
@@ -2643,7 +2643,7 @@ print_server(int kmem, struct server *sep, struct server *ptr, int conns,
 
 
 void
-print_conns(int kmem, struct srvAddr *srv, struct afs_conn *conns, int Con, 
+print_conns(int kmem, struct srvAddr *srv, struct afs_conn *conns, int Con,
            int pnt)
 {
     struct afs_conn *cep, ce, *centry = &ce;
index 06764f587d88f5bc5324149d79e8267196a335c0..7d845b325fd32c697c0f7ce6d4c3d11cee65222a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 8601542db05400f9b2c5fba628d0be1ef5ffcf82..a3433e66cf0c6a2f29f81c3cef367bfcd69ebf69 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -132,8 +132,8 @@ main(int argc, char **argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index 8663a19c86344f4c4a5287f73697ae2eba6e5039..eee164857597eac0b5427817639777ff1ba25688 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -92,8 +92,8 @@ main(int argc, char *argv[])
 {
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
@@ -360,7 +360,7 @@ Copy(char *file1, char *file2, short recursive, int level)
            if (s1.st_size != s2.st_size) {
                fprintf(stderr,
                        "WARNING: New file %s is %u bytes long; should be %u\n",
-                       file2, (unsigned int) s2.st_size, 
+                       file2, (unsigned int) s2.st_size,
                        (unsigned int) s1.st_size);
            }
        }
index 4d7d81d6076eaa3ece801236b80a202b3a2d0fc5..925f76bcea932b35afe0b8c7a8474a1541ed65b1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -87,8 +87,8 @@ main(argc, argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index 1b268364d00c6c4ff2d19ea5ff19e99b0c57d8fe..1f6efd694b81582c167c1db3698a11f633baef83 100644 (file)
@@ -123,8 +123,8 @@ descend(parentino, inumber)
     if (statemap[inumber] != DSTATE)
        errexit("BAD INODE %d TO DESCEND", statemap[inumber]);
 #if defined(ACLS) && defined(AFS_HPUX_ENV)
-    /* 
-     * keep any continuation inode information 
+    /*
+     * keep any continuation inode information
      */
     if (statemap[inumber] & HASCINODE)
        statemap[inumber] = HASCINODE | DFOUND;
@@ -138,8 +138,8 @@ descend(parentino, inumber)
        direrror(inumber, "ZERO LENGTH DIRECTORY");
        if (reply("REMOVE") == 1)
 #if defined(ACLS) && defined(AFS_HPUX_ENV)
-           /* 
-            * keep any continuation inode information 
+           /*
+            * keep any continuation inode information
             */
            if (statemap[inumber] & HASCINODE)
                statemap[inumber] = HASCINODE | DCLEAR;
index 0c2a9d7a1c4b440d8130e74033cb7950d5ef4587..eee574e734c4d292fe90419a7f7526e4de8785fd 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ffac32e3ab70c82f97a2a30fe3f01a6c1618408b..710ee1b6882966288b2b7189ba0402bc7a35d498 100644 (file)
@@ -149,14 +149,14 @@ struct inodesc {
 
 /*
  * Linked list of duplicate blocks.
- * 
+ *
  * The list is composed of two parts. The first part of the
  * list (from duplist through the node pointed to by muldup)
- * contains a single copy of each duplicate block that has been 
+ * contains a single copy of each duplicate block that has been
  * found. The second part of the list (from muldup to the end)
  * contains duplicate blocks that have been found more than once.
  * To check if a block has been found as a duplicate it is only
- * necessary to search from duplist through muldup. To find the 
+ * necessary to search from duplist through muldup. To find the
  * total number of times that a block has been found as a duplicate
  * the entire list must be searched for occurences of the block
  * in question. The following diagram shows a sample list where
@@ -233,7 +233,7 @@ int isconvert;                      /* converting */
 
 #ifdef VICE
 int nViceFiles;                        /* number of vice files seen */
-#if    defined(AFS_SUN_ENV) 
+#if    defined(AFS_SUN_ENV)
 int iscorrupt;                 /* known to be corrupt/inconsistent */
 #endif
 #ifdef AFS_SUN_ENV
index 30c60dc8304290919592fba8a39d6b6b478a75c8..da5e12b42477ed9c518167f8e6560b6f402a2232 100644 (file)
@@ -394,8 +394,8 @@ clri(idesc, type, flag)
            n_files--;
 
        /*
-        * If there is a CI associated with this inode, we must 
-        * clear it as well.  
+        * If there is a CI associated with this inode, we must
+        * clear it as well.
         */
        if (statemap[idesc->id_number] & HASCINODE) {
            if (!(dp->di_contin < ROOTINO || dp->di_contin > maxino))
@@ -515,7 +515,7 @@ blkerror(ino, type, blk)
 #endif /* VICE */
     case FSTATE:
 #if defined(ACLS) && defined(AFS_HPUX_ENV)
-       /* 
+       /*
         *  Keep the continuation inode info
         */
        if (statemap[ino] & HASCINODE)
@@ -529,7 +529,7 @@ blkerror(ino, type, blk)
 
     case DSTATE:
 #if defined(ACLS) && defined(AFS_HPUX_ENV)
-       /* 
+       /*
         *  Keep the continuation inode info
         */
        if (statemap[ino] & HASCINODE)
index 665eed4c963e08fde7006e3b7c8ebbdb0bdb41a4..304aaea8a2fec0aad28c75875aa154d7464e48b6 100644 (file)
@@ -149,10 +149,10 @@ int mnt_passno = 0;
 #include "AFS_component_version_number.c"
 
 #ifdef AFS_HPUX_ENV
-int ge_danger = 0;             /* on when fsck is not able to fix the dirty file 
+int ge_danger = 0;             /* on when fsck is not able to fix the dirty file
                                 * system within single run. Problems like dup table
                                 * overflow, maxdup is exceeding MAXDUP.. etc. could
-                                * potentailly prevent fsck from doing a complete 
+                                * potentailly prevent fsck from doing a complete
                                 * repair. This is found in a GE hotsite. */
 #endif
 
@@ -637,7 +637,7 @@ checkfilesys(filesys, parname)
     isconvert = 0;
 #endif
 #ifdef AFS_HPUX_ENV
-    ge_danger = 0;             /* set to 1 by any table overflow or more 
+    ge_danger = 0;             /* set to 1 by any table overflow or more
                                 * dup/bad blocks than expected */
 
     fixed = 1;                 /* set to 0 by any 'no' reply */
@@ -824,7 +824,7 @@ checkfilesys(filesys, parname)
                    sblock.fs_clean = FS_CLEAN;
                /*
                 *  Fix fs_clean if there were no 'no' replies.
-                *  This is done for both the s300 and s800.  The s800 root will be 
+                *  This is done for both the s300 and s800.  The s800 root will be
                 *  guaranteed clean as of 7.0.
                 */
                if (fixed && (sblock.fs_clean != FS_OK)) {
@@ -1158,7 +1158,7 @@ check_sanity(filename)
     /*
      * We mount the ufs root file system read-only first.  After fsck
      * runs, we remount the root as read-write.  Therefore, we no longer
-     * check for different values for fs_state between the root file 
+     * check for different values for fs_state between the root file
      * system and the rest of file systems.
      */
     if (!((sblock.fs_state + (time_t) sblock.fs_time == FSOKAY)
@@ -1234,7 +1234,7 @@ check_sanity(filename)
     /*
      * We mount the ufs root file system read-only first.  After fsck
      * runs, we remount the root as read-write.  Therefore, we no longer
-     * check for different values for fs_state between the root file 
+     * check for different values for fs_state between the root file
      * system and the rest of file systems.
      */
     if (!((sblock.fs_clean == FS_CLEAN || sblock.fs_clean == FS_OK))) {
@@ -1260,9 +1260,9 @@ numbers(yp)
 }
 #endif
 
-/* Convert a raw device name into a block device name. 
+/* Convert a raw device name into a block device name.
  * If the block device is not found, return the raw device name.
- * For HP and SUN, the returned value is not changed. For other 
+ * For HP and SUN, the returned value is not changed. For other
  * platforms it is changed (I see no rhyme or reason -jpm).
  */
 char *
@@ -1297,7 +1297,7 @@ unrawname(rawdev)
     return (rawdev);
 }
 
-/* Convert a block device name into a raw device name. 
+/* Convert a block device name into a raw device name.
  * If the block device is not found, return null
  */
 char *
index 7615cd71a742d79bc547d26620c6daa0246147f3..b044d5a039c949caf6ea3e18c46f56fc1da6f3b7 100644 (file)
@@ -140,9 +140,9 @@ pass1()
            }
            lastino = inumber;
 #if defined(ACLS) && defined(AFS_HPUX_ENV)
-           /* 
-            * Don't check blocks and sizes of  
-            * continuation inodes 
+           /*
+            * Don't check blocks and sizes of
+            * continuation inodes
             */
            if (CONT) {
                statemap[inumber] = CSTATE;
@@ -255,9 +255,9 @@ pass1()
 #endif /* AFS_OSF_ENV */
                for (j = ndb; j < NDADDR; j++) {
 #if defined(AFS_HPUX_ENV) && (defined(DUX) || defined(CNODE_DEV))
-                   /*  
+                   /*
                     * DUX uses db[2] on cnode-specific
-                    * device files, so skip 'em 
+                    * device files, so skip 'em
                     */
                    if (j == 2 && SPECIAL)
                        continue;
@@ -335,8 +335,8 @@ pass1()
                (dp->di_mode & IFMT) == IFDIR ? DSTATE : FSTATE;
 #endif /* VICE */
 #if defined(ACLS) && defined(AFS_HPUX_ENV)
-           /* 
-            * keep track of associated contin inodes 
+           /*
+            * keep track of associated contin inodes
             */
            if (dp->di_contin != 0)
                statemap[inumber] |= HASCINODE;
index afd4f478a0a0b858588f088af3671d128b669f0a..91b466e49a877273654f2bf06443e902a8ed11ed 100644 (file)
@@ -178,7 +178,7 @@ pass2check(idesc)
     int holdstate;
 #endif /* ACLS */
 
-    /* 
+    /*
      * check for "."
      */
     if (idesc->id_entryno != 0)
@@ -200,12 +200,12 @@ pass2check(idesc)
     if (dirp->d_ino != 0 && strcmp(dirp->d_name, "..") != 0) {
        pfatal("CANNOT FIX, FIRST ENTRY IN DIRECTORY CONTAINS %s\n",
               dirp->d_name);
-#if    defined(AFS_SUN_ENV) 
+#if    defined(AFS_SUN_ENV)
        iscorrupt = 1;
 #endif
     } else if (dirp->d_reclen < entrysize) {
        pfatal("CANNOT FIX, INSUFFICIENT SPACE TO ADD '.'\n");
-#if    defined(AFS_SUN_ENV) 
+#if    defined(AFS_SUN_ENV)
        iscorrupt = 1;
 #endif
     } else if (dirp->d_reclen < 2 * entrysize) {
@@ -257,12 +257,12 @@ pass2check(idesc)
     if (dirp->d_ino != 0 && strcmp(dirp->d_name, ".") != 0) {
        pfatal("CANNOT FIX, SECOND ENTRY IN DIRECTORY CONTAINS %s\n",
               dirp->d_name);
-#if    defined(AFS_SUN_ENV) 
+#if    defined(AFS_SUN_ENV)
        iscorrupt = 1;
 #endif
     } else if (dirp->d_reclen < entrysize) {
        pfatal("CANNOT FIX, INSUFFICIENT SPACE TO ADD '..'\n");
-#if    defined(AFS_SUN_ENV) 
+#if    defined(AFS_SUN_ENV)
        iscorrupt = 1;
 #endif
     } else {
index c37ee6de892041cc28382c78377c98007bf97ae9..58f795a66aa204a180dc1da34f75cda3c83f17ec 100644 (file)
@@ -81,7 +81,7 @@ pass3()
        if (statemap[inumber] & HASCINODE) {
            if ((dp = ginode(inumber)) == NULL)
                break;
-           /* 
+           /*
             * Make sure di_contin is not out of range and then
             * check and make sure that the inode #di_contin
             * is a continuation inode that has not already been
index 9c95c89d5776363b323fa997969bfcaa75f8ecfc..f9950565e5826d89a78b02dbc139ebed6eddd90c 100644 (file)
@@ -125,15 +125,15 @@ pass4()
            break;
 
 #if defined(ACLS) && defined(AFS_HPUX_ENV)
-           /* 
-            * UNreferenced continuation inode 
+           /*
+            * UNreferenced continuation inode
             */
        case CSTATE:
            clri(&idesc, "UNREF", 2);
            break;
 
-           /* 
-            * referenced continuation inode 
+           /*
+            * referenced continuation inode
             */
        case CRSTATE:
            if ((dp = ginode(inumber)) == NULL)
index dd00c2004701a188d099c99e1607e2fcf3a9dc3c..7aa9107a2ab983467aa46ad52245661452e0d2a9 100644 (file)
@@ -163,7 +163,7 @@ pass5()
     /* this is the original from UCB/McKusick, but it is clearly wrong.  It is
      * rounding the # of fragments to the next 1024 (in our case, with a 1K/8K file system),
      * while instead it should be rounding to the next block.
-     * 
+     *
      * In addition, we should be sure that we allocate enough space, but that seems to be
      * ensured by the fact that the bitmap is rounded up to the nearest short, and that there
      * are never more than 16 frags per block.
index 7b7b42296336596a4eb0c8892075deef811112f6..4ebb33cfb0d26ba142bccd504514c6009cce9a57 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index da3d0884d1fda3c45493e0970bed3688f6b31896..808f0326f9796456f48015b974b4a9c933cace13 100644 (file)
@@ -98,7 +98,7 @@ struct bufarea *pbp;
 /*
  * The size of a cylinder group is calculated by CGSIZE. The maximum size
  * is limited by the fact that cylinder groups are at most one block.
- * Its size is derived from the size of the maps maintained in the 
+ * Its size is derived from the size of the maps maintained in the
  * cylinder group and the (struct cg) size.
  */
 #define CGSIZE(fs) \
@@ -205,7 +205,7 @@ setup(dev)
      * The rules are:
      *      1) if nflag is set, it's pretty safe to fsck the target dev
      *      2) if the target device is a swap, exit
-     *      3) if hotroot is set, and "-F" is not specified prompt the 
+     *      3) if hotroot is set, and "-F" is not specified prompt the
      *              user and wait for reply
      *      4) if the target is a mounted file system, and "-F" is not
      *              specified, prompt the user and wait for reply
@@ -966,7 +966,7 @@ freply(s)
 
 #if   defined(AFS_HPUX110_ENV)
 /*
- *  Refer to function compare_sblocks() in HP's fsck.c 
+ *  Refer to function compare_sblocks() in HP's fsck.c
  *
  *  DESCRIPTION:
  *     This routine will compare the primary superblock (PRIM_SBLOCK) to the
index 45d75213fa28ada6cf1ca56057012c2e438254c3..f63842139b8f3cfb1ce5d6aa551729256a43606e 100644 (file)
@@ -44,7 +44,7 @@ extern int inside[9];
 extern u_char *fragtbl[];
 
 /*
- * Update the frsum fields to reflect addition or deletion 
+ * Update the frsum fields to reflect addition or deletion
  * of some frags.
  */
 fragacct(fs, fragmap, fraglist, cnt)
index 522aedd54d18a7c18c44473592b9f4ab43172a30..1e27e8f6eb12ea46b3427dee85c207a47c0562f3 100644 (file)
@@ -43,7 +43,7 @@ int inside[9] = {
 
 /*
  * Given a block map bit pattern, the frag tables tell whether a
- * particular size fragment is available. 
+ * particular size fragment is available.
  *
  * used as:
  * if ((1 << (size - 1)) & fragtbl[fs->fs_frag][map] {
index c0ef946ceef9bf1dd90be31d94e57d5c9689ff8f..c6c9da570b23b8b9a718b05977027b618c1eccd8 100644 (file)
@@ -152,7 +152,7 @@ reply(question)
     printf("\n");
     if (!persevere && (nflag || fswritefd < 0)) {
        printf("%s? no\n\n", question);
-#if    defined(AFS_SUN_ENV) 
+#if    defined(AFS_SUN_ENV)
        iscorrupt = 1;          /* known to be corrupt */
 #endif
        return (0);
index 243dc631b9ba857fcd2b228c4f76a6f05112b34b..15e688ec2c68d6c6c04742a9098a9ae3c19cb0d7 100644 (file)
@@ -1,13 +1,13 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  */
 
-/* I don't really need all thes, but I can't tell which ones I need 
+/* I don't really need all thes, but I can't tell which ones I need
  * and which I don't.
  */
 #include <afsconfig.h>
index 7a962ce217fb47c0aebdeed7b4ef5fc2cfd579eb..d8d93a724e34e29ba758d6eca655cb514eda9607 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
 /*                                                                      */
 /* ********************************************************************** */
 
-/* 
- * in Check_PermissionRights, certain privileges are afforded to the owner 
- * of the volume, or the owner of a file.  Are these considered "use of 
- * privilege"? 
+/*
+ * in Check_PermissionRights, certain privileges are afforded to the owner
+ * of the volume, or the owner of a file.  Are these considered "use of
+ * privilege"?
  */
 
 #include <afsconfig.h>
@@ -380,7 +380,7 @@ CallPreamble(struct rx_call *acall, int activecall,
        if (BreakDelayedCallBacks_r(thost)) {
            ViceLog(0,
                    ("BreakDelayedCallbacks FAILED for host %s:%d which IS UP.  Connection from %s:%d.  Possible network or routing failure.\n",
-                    afs_inet_ntoa_r(thost->host, hoststr), ntohs(thost->port), afs_inet_ntoa_r(rxr_HostOf(*tconn), hoststr2), 
+                    afs_inet_ntoa_r(thost->host, hoststr), ntohs(thost->port), afs_inet_ntoa_r(rxr_HostOf(*tconn), hoststr2),
                     ntohs(rxr_PortOf(*tconn))));
            if (MultiProbeAlternateAddress_r(thost)) {
                ViceLog(0,
@@ -396,7 +396,7 @@ CallPreamble(struct rx_call *acall, int activecall,
                if (BreakDelayedCallBacks_r(thost)) {
                    ViceLog(0,
                            ("BreakDelayedCallbacks FAILED AGAIN for host %s:%d which IS UP.  Connection from %s:%d.  Possible network or routing failure.\n",
-                             afs_inet_ntoa_r(thost->host, hoststr), ntohs(thost->port), afs_inet_ntoa_r(rxr_HostOf(*tconn), hoststr2), 
+                             afs_inet_ntoa_r(thost->host, hoststr), ntohs(thost->port), afs_inet_ntoa_r(rxr_HostOf(*tconn), hoststr2),
                              ntohs(rxr_PortOf(*tconn))));
                    code = -1;
                }
@@ -425,7 +425,7 @@ CallPostamble(struct rx_connection *aconn, afs_int32 ret,
 
     H_LOCK;
     tclient = h_FindClient_r(aconn);
-    if (!tclient) 
+    if (!tclient)
        goto busyout;
     thost = tclient->host;
     if (thost->hostFlags & HERRORTRANS)
@@ -482,7 +482,7 @@ CheckVnode(AFSFid * fid, Volume ** volptr, Vnode ** vptr, int lock)
        extern int VInit;
 
        while (1) {
-           int restarting = 
+           int restarting =
 #ifdef AFS_DEMAND_ATTACH_FS
                VSALVAGE
 #else
@@ -499,35 +499,35 @@ CheckVnode(AFSFid * fid, Volume ** volptr, Vnode ** vptr, int lock)
            if ((errorCode == VOFFLINE) && (VInit < 2)) {
                /* The volume we want may not be attached yet because
                 * the volume initialization is not yet complete.
-                * We can do several things: 
+                * We can do several things:
                 *     1.  return -1, which will cause users to see
                 *         "connection timed out".  This is more or
                 *         less the same as always, except that the servers
                 *         may appear to bounce up and down while they
                 *         are actually restarting.
-                *     2.  return VBUSY which will cause clients to 
+                *     2.  return VBUSY which will cause clients to
                 *         sleep and retry for 6.5 - 15 minutes, depending
                 *         on what version of the CM they are running.  If
-                *         the file server takes longer than that interval 
+                *         the file server takes longer than that interval
                 *         to attach the desired volume, then the application
-                *         will see an ENODEV or EIO.  This approach has 
+                *         will see an ENODEV or EIO.  This approach has
                 *         the advantage that volumes which have been attached
                 *         are immediately available, it keeps the server's
                 *         immediate backlog low, and the call is interruptible
                 *         by the user.  Users see "waiting for busy volume."
                 *     3.  sleep here and retry.  Some people like this approach
-                *         because there is no danger of seeing errors.  However, 
-                *         this approach only works with a bounded number of 
+                *         because there is no danger of seeing errors.  However,
+                *         this approach only works with a bounded number of
                 *         clients, since the pending queues will grow without
                 *         stopping.  It might be better to find a way to take
                 *         this call and stick it back on a queue in order to
-                *         recycle this thread for a different request.    
+                *         recycle this thread for a different request.
                 *     4.  Return a new error code, which new cache managers will
                 *         know enough to interpret as "sleep and retry", without
                 *         the upper bound of 6-15 minutes that is imposed by the
                 *         VBUSY handling.  Users will see "waiting for
                 *         busy volume," so they know that something is
-                *         happening.  Old cache managers must be able to do  
+                *         happening.  Old cache managers must be able to do
                 *         something reasonable with this, for instance, mark the
                 *         server down.  Fortunately, any error code < 0
                 *         will elicit that behavior. See #1.
@@ -568,7 +568,7 @@ CheckVnode(AFSFid * fid, Volume ** volptr, Vnode ** vptr, int lock)
                    }
                }
            }
-           /* allow read operations on busy volume. 
+           /* allow read operations on busy volume.
             * must check local_errorCode because demand attach fs
             * can have local_errorCode == VSALVAGING, errorCode == VBUSY */
            else if (local_errorCode == VBUSY && lock == READ_LOCK) {
@@ -649,7 +649,7 @@ SetAccessList(Vnode ** targetptr, Volume ** volume,
 
 /* Must not be called with H_LOCK held */
 static void
-client_CheckRights(struct client *client, struct acl_accessList *ACL, 
+client_CheckRights(struct client *client, struct acl_accessList *ACL,
                   afs_int32 *rights)
 {
     *rights = 0;
@@ -667,7 +667,7 @@ client_HasAsMember(struct client *client, afs_int32 id)
     afs_int32 code = 0;
 
     ObtainReadLock(&client->lock);
-    if (client->CPS.prlist_len > 0 && !client->deleted && 
+    if (client->CPS.prlist_len > 0 && !client->deleted &&
        client->host && !(client->host->hostFlags & HOSTDELETED))
        code = acl_IsAMember(id, &client->CPS);
     ReleaseReadLock(&client->lock);
@@ -714,7 +714,7 @@ GetRights(struct client *client, struct acl_accessList *ACL,
        char hoststr[16];
        ViceLog(5,
                ("CheckRights: len=%u, for host=%s:%d\n",
-                client->host->hcps.prlist_len, 
+                client->host->hcps.prlist_len,
                 afs_inet_ntoa_r(client->host->host, hoststr),
                 ntohs(client->host->port)));
     } else
@@ -840,7 +840,7 @@ VolumeOwner(struct client *client, Vnode * targetptr)
     if (owner >= 0)
        return (client->ViceId == owner);
     else {
-       /* 
+       /*
         * We don't have to check for host's cps since only regular
         * viceid are volume owners.
         */
@@ -863,7 +863,7 @@ VolumeRootVnode(Vnode * targetptr)
  * StoreStatus) related calls
  */
 /* this code should probably just set a "priv" flag where all the audit events
- * are now, and only generate the audit event once at the end of the routine, 
+ * are now, and only generate the audit event once at the end of the routine,
  * thus only generating the event if all the checks succeed, but only because
  * of the privilege       XXX
  */
@@ -1125,9 +1125,9 @@ CopyOnWrite(Vnode * targetptr, Volume * volptr, afs_foff_t off, afs_fsize_t len)
        DFlush();               /* just in case? */
 
     VN_GET_LEN(size, targetptr);
-    if (size > off) 
+    if (size > off)
        size -= off;
-    else 
+    else
        size = 0;
     if (size > len)
        size = len;
@@ -1144,7 +1144,7 @@ CopyOnWrite(Vnode * targetptr, Volume * volptr, afs_foff_t off, afs_fsize_t len)
        ViceLog(0, ("Volume %u now offline, must be salvaged.\n",
                    volptr->hashid));
        return EIO;
-    }    
+    }
     targFdP = IH_OPEN(targetptr->handle);
     if (targFdP == NULL) {
        rc = errno;
@@ -1455,7 +1455,7 @@ Update_ParentVnodeStatus(Vnode * parentptr, Volume * volptr, DirHandle * dir,
 
     parentptr->disk.dataVersion++;
     newlength = (afs_fsize_t) Length(dir);
-    /* 
+    /*
      * This is a called on both dir removals (i.e. remove, removedir, rename) but also in dir additions
      * (create, symlink, link, makedir) so we need to check if we have enough space
      * XXX But we still don't check the error since we're dealing with dirs here and really the increase
@@ -1823,7 +1823,7 @@ HandleLocking(Vnode * targetptr, struct client *client, afs_int32 rights, ViceLo
                0;
        Time += AFS_LOCKWAIT;
        if (LockingType == LockRead) {
-           if ( !(rights & PRSFS_LOCK) && 
+           if ( !(rights & PRSFS_LOCK) &&
                  !(rights & PRSFS_WRITE) &&
                  !(OWNSp(client, targetptr) && (rights & PRSFS_INSERT)) )
                     return(EACCES);
@@ -1834,7 +1834,7 @@ HandleLocking(Vnode * targetptr, struct client *client, afs_int32 rights, ViceLo
            } else
                return (EAGAIN);
        } else if (LockingType == LockWrite) {
-           if ( !(rights & PRSFS_WRITE) && 
+           if ( !(rights & PRSFS_WRITE) &&
                 !(OWNSp(client, targetptr) && (rights & PRSFS_INSERT)) )
                return(EACCES);
 
@@ -2018,7 +2018,7 @@ SRXAFS_FsCmd(struct rx_call * acall, struct AFSFid * Fid,
     default:
         code = EINVAL;
     }
-    ViceLog(1,("FsCmd: cmd = %d, code=%d\n", 
+    ViceLog(1,("FsCmd: cmd = %d, code=%d\n",
                        Inputs->command, Outputs->code));
     return code;
 }
@@ -2341,7 +2341,7 @@ common_FetchData64(struct rx_call *acall, struct AFSFid *Fid,
     }
 #endif /* FS_STATS_DETAILED */
 
-    osi_auditU(acall, FetchDataEvent, errorCode, 
+    osi_auditU(acall, FetchDataEvent, errorCode,
                AUD_ID, t_client ? t_client->ViceId : 0,
                AUD_FID, Fid, AUD_END);
     return (errorCode);
@@ -2353,7 +2353,7 @@ SRXAFS_FetchData(struct rx_call * acall, struct AFSFid * Fid, afs_int32 Pos,
                 afs_int32 Len, struct AFSFetchStatus * OutStatus,
                 struct AFSCallBack * CallBack, struct AFSVolSync * Sync)
 {
-    return common_FetchData64(acall, Fid, Pos, Len, OutStatus, CallBack, 
+    return common_FetchData64(acall, Fid, Pos, Len, OutStatus, CallBack,
                               Sync, 0);
 }
 
@@ -2489,9 +2489,9 @@ SRXAFS_FetchACL(struct rx_call * acall, struct AFSFid * Fid,
     }
 #endif /* FS_STATS_DETAILED */
 
-    osi_auditU(acall, FetchACLEvent, errorCode, 
+    osi_auditU(acall, FetchACLEvent, errorCode,
                AUD_ID, t_client ? t_client->ViceId : 0,
-               AUD_FID, Fid, 
+               AUD_FID, Fid,
                AUD_ACL, AccessList->AFSOpaque_val, AUD_END);
     return errorCode;
 }                              /*SRXAFS_FetchACL */
@@ -2716,7 +2716,7 @@ SRXAFS_BulkStatus(struct rx_call * acall, struct AFSCBFids * Fids,
 
   Audit_and_Return:
     ViceLog(2, ("SAFS_BulkStatus       returns %d\n", errorCode));
-    osi_auditU(acall, BulkFetchStatusEvent, errorCode, 
+    osi_auditU(acall, BulkFetchStatusEvent, errorCode,
                AUD_ID, t_client ? t_client->ViceId : 0,
                AUD_FIDS, Fids, AUD_END);
     return errorCode;
@@ -2806,7 +2806,7 @@ SRXAFS_InlineBulkStatus(struct rx_call * acall, struct AFSCBFids * Fids,
                              &rights, &anyrights))) {
            tstatus = &OutStats->AFSBulkStats_val[i];
            tstatus->errorCode = errorCode;
-           PutVolumePackage(parentwhentargetnotdir, targetptr, (Vnode *) 0, 
+           PutVolumePackage(parentwhentargetnotdir, targetptr, (Vnode *) 0,
                             volptr, &client);
            parentwhentargetnotdir = (Vnode *) 0;
            targetptr = (Vnode *) 0;
@@ -2892,7 +2892,7 @@ SRXAFS_InlineBulkStatus(struct rx_call * acall, struct AFSCBFids * Fids,
 
   Audit_and_Return:
     ViceLog(2, ("SAFS_InlineBulkStatus returns %d\n", errorCode));
-    osi_auditU(acall, InlineBulkFetchStatusEvent, errorCode, 
+    osi_auditU(acall, InlineBulkFetchStatusEvent, errorCode,
                AUD_ID, t_client ? t_client->ViceId : 0,
                AUD_FIDS, Fids, AUD_END);
     return 0;
@@ -2953,7 +2953,7 @@ SRXAFS_FetchStatus(struct rx_call * acall, struct AFSFid * Fid,
     }
 #endif /* FS_STATS_DETAILED */
 
-    osi_auditU(acall, FetchStatusEvent, code, 
+    osi_auditU(acall, FetchStatusEvent, code,
                AUD_ID, t_client ? t_client->ViceId : 0,
                AUD_FID, Fid, AUD_END);
     return code;
@@ -3175,7 +3175,7 @@ common_StoreData64(struct rx_call *acall, struct AFSFid *Fid,
        FS_UNLOCK;
     }
 #endif /* FS_STATS_DETAILED */
-    osi_auditU(acall, StoreDataEvent, errorCode, 
+    osi_auditU(acall, StoreDataEvent, errorCode,
                AUD_ID, t_client ? t_client->ViceId : 0,
                AUD_FID, Fid, AUD_END);
     return (errorCode);
@@ -3187,7 +3187,7 @@ SRXAFS_StoreData(struct rx_call * acall, struct AFSFid * Fid,
                 afs_uint32 Length, afs_uint32 FileLength,
                 struct AFSFetchStatus * OutStatus, struct AFSVolSync * Sync)
 {
-    if (FileLength > 0x7fffffff || Pos > 0x7fffffff || 
+    if (FileLength > 0x7fffffff || Pos > 0x7fffffff ||
        (0x7fffffff - Pos) < Length)
         return EFBIG;
 
@@ -3311,7 +3311,7 @@ SRXAFS_StoreACL(struct rx_call * acall, struct AFSFid * Fid,
 
   Bad_StoreACL:
     /* Update and store volume/vnode and parent vnodes back */
-    PutVolumePackage(parentwhentargetnotdir, targetptr, (Vnode *) 0, 
+    PutVolumePackage(parentwhentargetnotdir, targetptr, (Vnode *) 0,
                     volptr, &client);
     ViceLog(2, ("SAFS_StoreACL returns %d\n", errorCode));
     errorCode = CallPostamble(tcon, errorCode, thost);
@@ -3334,7 +3334,7 @@ SRXAFS_StoreACL(struct rx_call * acall, struct AFSFid * Fid,
     }
 #endif /* FS_STATS_DETAILED */
 
-    osi_auditU(acall, StoreACLEvent, errorCode, 
+    osi_auditU(acall, StoreACLEvent, errorCode,
                AUD_ID, t_client ? t_client->ViceId : 0,
                AUD_FID, Fid, AUD_ACL, AccessList->AFSOpaque_val, AUD_END);
     return errorCode;
@@ -3418,7 +3418,7 @@ SAFSS_StoreStatus(struct rx_call *acall, struct AFSFid *Fid,
 
   Bad_StoreStatus:
     /* Update and store volume/vnode and parent vnodes back */
-    PutVolumePackage(parentwhentargetnotdir, targetptr, (Vnode *) 0, 
+    PutVolumePackage(parentwhentargetnotdir, targetptr, (Vnode *) 0,
                     volptr, &client);
     ViceLog(2, ("SAFS_StoreStatus returns %d\n", errorCode));
     return errorCode;
@@ -3480,7 +3480,7 @@ SRXAFS_StoreStatus(struct rx_call * acall, struct AFSFid * Fid,
     }
 #endif /* FS_STATS_DETAILED */
 
-    osi_auditU(acall, StoreStatusEvent, code, 
+    osi_auditU(acall, StoreStatusEvent, code,
                AUD_ID, t_client ? t_client->ViceId : 0,
                AUD_FID, Fid, AUD_END);
     return code;
@@ -3581,7 +3581,7 @@ SAFSS_RemoveFile(struct rx_call *acall, struct AFSFid *DirFid, char *Name,
 
   Bad_RemoveFile:
     /* Update and store volume/vnode and parent vnodes back */
-    PutVolumePackage(parentwhentargetnotdir, targetptr, parentptr, 
+    PutVolumePackage(parentwhentargetnotdir, targetptr, parentptr,
                     volptr, &client);
     FidZap(&dir);
     ViceLog(2, ("SAFS_RemoveFile returns %d\n", errorCode));
@@ -3643,7 +3643,7 @@ SRXAFS_RemoveFile(struct rx_call * acall, struct AFSFid * DirFid, char *Name,
     }
 #endif /* FS_STATS_DETAILED */
 
-    osi_auditU(acall, RemoveFileEvent, code, 
+    osi_auditU(acall, RemoveFileEvent, code,
                AUD_ID, t_client ? t_client->ViceId : 0,
                AUD_FID, DirFid, AUD_STR, Name, AUD_END);
     return code;
@@ -3814,7 +3814,7 @@ SRXAFS_CreateFile(struct rx_call * acall, struct AFSFid * DirFid, char *Name,
     }
 #endif /* FS_STATS_DETAILED */
 
-    osi_auditU(acall, CreateFileEvent, code, 
+    osi_auditU(acall, CreateFileEvent, code,
                AUD_ID, t_client ? t_client->ViceId : 0,
                AUD_FID, DirFid, AUD_STR, Name, AUD_FID, OutFid, AUD_END);
     return code;
@@ -3941,7 +3941,7 @@ SAFSS_Rename(struct rx_call *acall, struct AFSFid *OldDirFid, char *OldName,
 
     /* The CopyOnWrite might return ENOSPC ( disk full). Even if the second
      *  call to CopyOnWrite returns error, it is not necessary to revert back
-     *  the effects of the first call because the contents of the volume is 
+     *  the effects of the first call because the contents of the volume is
      *  not modified, it is only replicated.
      */
     if (oldvptr->disk.cloned) {
@@ -4270,7 +4270,7 @@ SAFSS_Rename(struct rx_call *acall, struct AFSFid *OldDirFid, char *OldName,
        VPutVnode(&fileCode, newfileptr);
        assert(fileCode == 0);
     }
-    (void)PutVolumePackage(fileptr, (newvptr && newvptr != oldvptr ? 
+    (void)PutVolumePackage(fileptr, (newvptr && newvptr != oldvptr ?
                                     newvptr : 0), oldvptr, volptr, &client);
     FidZap(&olddir);
     FidZap(&newdir);
@@ -4339,9 +4339,9 @@ SRXAFS_Rename(struct rx_call * acall, struct AFSFid * OldDirFid,
     }
 #endif /* FS_STATS_DETAILED */
 
-    osi_auditU(acall, RenameFileEvent, code, 
+    osi_auditU(acall, RenameFileEvent, code,
                AUD_ID, t_client ? t_client->ViceId : 0,
-               AUD_FID, OldDirFid, AUD_STR, OldName, 
+               AUD_FID, OldDirFid, AUD_STR, OldName,
                AUD_FID, NewDirFid, AUD_STR, NewName, AUD_END);
     return code;
 
@@ -4460,10 +4460,10 @@ SAFSS_Symlink(struct rx_call *acall, struct AFSFid *DirFid, char *Name,
        ViceLog(0, ("Volume %u now offline, must be salvaged.\n",
                    volptr->hashid));
        return EIO;
-    }    
+    }
     len = strlen((char *) LinkContents);
     code = (len == FDH_WRITE(fdP, (char *) LinkContents, len)) ? 0 : VDISKFULL;
-    if (code) 
+    if (code)
        ViceLog(0, ("SAFSS_Symlink FDH_WRITE failed for len=%d, Fid=%u.%d.%d\n", (int)len, OutFid->Volume, OutFid->Vnode, OutFid->Unique));
     FDH_CLOSE(fdP);
     /*
@@ -4552,8 +4552,8 @@ SRXAFS_Symlink(struct rx_call *acall,     /* Rx call */
     }
 #endif /* FS_STATS_DETAILED */
 
-    osi_auditU(acall, SymlinkEvent, code, 
-               AUD_ID, t_client ? t_client->ViceId : 0, 
+    osi_auditU(acall, SymlinkEvent, code,
+               AUD_ID, t_client ? t_client->ViceId : 0,
                AUD_FID, DirFid, AUD_STR, Name,
               AUD_FID, OutFid, AUD_STR, LinkContents, AUD_END);
     return code;
@@ -4682,7 +4682,7 @@ SAFSS_Link(struct rx_call *acall, struct AFSFid *DirFid, char *Name,
     /* break call back on DirFid */
     BreakCallBack(client->host, DirFid, 0);
     /*
-     * We also need to break the callback for the file that is hard-linked since part 
+     * We also need to break the callback for the file that is hard-linked since part
      * of its status (like linkcount) is changed
      */
     BreakCallBack(client->host, ExistingFid, 0);
@@ -4753,7 +4753,7 @@ SRXAFS_Link(struct rx_call * acall, struct AFSFid * DirFid, char *Name,
     }
 #endif /* FS_STATS_DETAILED */
 
-    osi_auditU(acall, LinkEvent, code, 
+    osi_auditU(acall, LinkEvent, code,
                AUD_ID, t_client ? t_client->ViceId : 0,
                AUD_FID, DirFid, AUD_STR, Name,
               AUD_FID, ExistingFid, AUD_END);
@@ -4826,7 +4826,7 @@ SAFSS_MakeDir(struct rx_call *acall, struct AFSFid *DirFid, char *Name,
      * requires w access for the user to create a directory. this
      * closes a loophole in the current security arrangement, since a
      * user with i access only can create a directory and get the
-     * implcit a access that goes with dir ownership, and proceed to 
+     * implcit a access that goes with dir ownership, and proceed to
      * subvert quota in the volume.
      */
     if ((errorCode = CheckWriteMode(parentptr, rights, PRSFS_INSERT))
@@ -4953,7 +4953,7 @@ SRXAFS_MakeDir(struct rx_call * acall, struct AFSFid * DirFid, char *Name,
     }
 #endif /* FS_STATS_DETAILED */
 
-    osi_auditU(acall, MakeDirEvent, code, 
+    osi_auditU(acall, MakeDirEvent, code,
                AUD_ID, t_client ? t_client->ViceId : 0,
                AUD_FID, DirFid, AUD_STR, Name,
               AUD_FID, OutFid, AUD_END);
@@ -5115,7 +5115,7 @@ SRXAFS_RemoveDir(struct rx_call * acall, struct AFSFid * DirFid, char *Name,
     }
 #endif /* FS_STATS_DETAILED */
 
-    osi_auditU(acall, RemoveDirEvent, code, 
+    osi_auditU(acall, RemoveDirEvent, code,
                AUD_ID, t_client ? t_client->ViceId : 0,
                AUD_FID, DirFid, AUD_STR, Name, AUD_END);
     return code;
@@ -5247,8 +5247,8 @@ SRXAFS_SetLock(struct rx_call * acall, struct AFSFid * Fid, ViceLockType type,
     }
 #endif /* FS_STATS_DETAILED */
 
-    osi_auditU(acall, SetLockEvent, code, 
-               AUD_ID, t_client ? t_client->ViceId : 0, 
+    osi_auditU(acall, SetLockEvent, code,
+               AUD_ID, t_client ? t_client->ViceId : 0,
                AUD_FID, Fid, AUD_LONG, type, AUD_END);
     return code;
 }                              /*SRXAFS_SetLock */
@@ -5373,7 +5373,7 @@ SRXAFS_ExtendLock(struct rx_call * acall, struct AFSFid * Fid,
     }
 #endif /* FS_STATS_DETAILED */
 
-    osi_auditU(acall, ExtendLockEvent, code, 
+    osi_auditU(acall, ExtendLockEvent, code,
                AUD_ID, t_client ? t_client->ViceId : 0,
                AUD_FID, Fid, AUD_END);
     return code;
@@ -5509,8 +5509,8 @@ SRXAFS_ReleaseLock(struct rx_call * acall, struct AFSFid * Fid,
     }
 #endif /* FS_STATS_DETAILED */
 
-    osi_auditU(acall, ReleaseLockEvent, code, 
-               AUD_ID, t_client ? t_client->ViceId : 0, 
+    osi_auditU(acall, ReleaseLockEvent, code,
+               AUD_ID, t_client ? t_client->ViceId : 0,
                AUD_FID, Fid, AUD_END);
     return code;
 
@@ -5651,7 +5651,7 @@ SRXAFS_GetStatistics(struct rx_call *acall, struct ViceStatistics *Statistics)
     }
 #endif /* FS_STATS_DETAILED */
 
-    osi_auditU(acall, GetStatisticsEvent, code, 
+    osi_auditU(acall, GetStatisticsEvent, code,
                AUD_ID, t_client ? t_client->ViceId : 0, AUD_END);
     return code;
 }                              /*SRXAFS_GetStatistics */
@@ -5687,7 +5687,7 @@ SRXAFS_GetStatistics64(struct rx_call *acall, afs_int32 statsVersion, ViceStatis
        goto Bad_GetStatistics64;
 
     ViceLog(1, ("SAFS_GetStatistics64 Received\n"));
-    Statistics->ViceStatistics64_val = 
+    Statistics->ViceStatistics64_val =
        malloc(statsVersion*sizeof(afs_int64));
     Statistics->ViceStatistics64_len = statsVersion;
     FS_LOCK;
@@ -5695,41 +5695,41 @@ SRXAFS_GetStatistics64(struct rx_call *acall, afs_int32 statsVersion, ViceStatis
     Statistics->ViceStatistics64_val[STATS64_STARTTIME] = StartTime;
     Statistics->ViceStatistics64_val[STATS64_CURRENTCONNECTIONS] =
        CurrentConnections;
-    Statistics->ViceStatistics64_val[STATS64_TOTALVICECALLS] = 
+    Statistics->ViceStatistics64_val[STATS64_TOTALVICECALLS] =
        AFSCallStats.TotalCalls;
     Statistics->ViceStatistics64_val[STATS64_TOTALFETCHES] =
        AFSCallStats.FetchData + AFSCallStats.FetchACL +
        AFSCallStats.FetchStatus;
-    Statistics->ViceStatistics64_val[STATS64_FETCHDATAS] = 
+    Statistics->ViceStatistics64_val[STATS64_FETCHDATAS] =
        AFSCallStats.FetchData;
-    Statistics->ViceStatistics64_val[STATS64_FETCHEDBYTES] = 
+    Statistics->ViceStatistics64_val[STATS64_FETCHEDBYTES] =
        AFSCallStats.TotalFetchedBytes;
     seconds = AFSCallStats.AccumFetchTime / 1000;
     if (seconds <= 0)
         seconds = 1;
-    Statistics->ViceStatistics64_val[STATS64_FETCHDATARATE] = 
+    Statistics->ViceStatistics64_val[STATS64_FETCHDATARATE] =
        AFSCallStats.TotalFetchedBytes / seconds;
     Statistics->ViceStatistics64_val[STATS64_TOTALSTORES] =
         AFSCallStats.StoreData + AFSCallStats.StoreACL +
         AFSCallStats.StoreStatus;
-    Statistics->ViceStatistics64_val[STATS64_STOREDATAS] = 
+    Statistics->ViceStatistics64_val[STATS64_STOREDATAS] =
        AFSCallStats.StoreData;
-    Statistics->ViceStatistics64_val[STATS64_STOREDBYTES] = 
+    Statistics->ViceStatistics64_val[STATS64_STOREDBYTES] =
        AFSCallStats.TotalStoredBytes;
     seconds = AFSCallStats.AccumStoreTime / 1000;
     if (seconds <= 0)
         seconds = 1;
-    Statistics->ViceStatistics64_val[STATS64_STOREDATARATE] = 
+    Statistics->ViceStatistics64_val[STATS64_STOREDATARATE] =
        AFSCallStats.TotalStoredBytes / seconds;
 #ifdef AFS_NT40_ENV
     Statistics->ViceStatistics64_val[STATS64_PROCESSSIZE] = -1;
 #else
-    Statistics->ViceStatistics64_val[STATS64_PROCESSSIZE] = 
+    Statistics->ViceStatistics64_val[STATS64_PROCESSSIZE] =
        (afs_int32) ((long)sbrk(0) >> 10);
 #endif
     FS_UNLOCK;
     h_GetWorkStats((int *)&(Statistics->ViceStatistics64_val[STATS64_WORKSTATIONS]),
-                   (int *)&(Statistics->ViceStatistics64_val[STATS64_ACTIVEWORKSTATIONS]), 
+                   (int *)&(Statistics->ViceStatistics64_val[STATS64_ACTIVEWORKSTATIONS]),
                   (int *)0,
                    (afs_int32) (FT_ApproxTime()) - (15 * 60));
 
@@ -5762,7 +5762,7 @@ SRXAFS_GetStatistics64(struct rx_call *acall, afs_int32 statsVersion, ViceStatis
     }
 #endif /* FS_STATS_DETAILED */
 
-    osi_auditU(acall, GetStatisticsEvent, code, 
+    osi_auditU(acall, GetStatisticsEvent, code,
                AUD_ID, t_client ? t_client->ViceId : 0, AUD_END);
     return code;
 }                              /*SRXAFS_GetStatistics */
@@ -5830,7 +5830,7 @@ SRXAFS_XStatsVersion(struct rx_call * a_call, afs_int32 * a_versionP)
     FS_UNLOCK;
 #endif /* FS_STATS_DETAILED */
 
-    osi_auditU(a_call, XStatsVersionEvent, 0, 
+    osi_auditU(a_call, XStatsVersionEvent, 0,
                AUD_ID, t_client ? t_client->ViceId : 0, AUD_END);
     return (0);
 }                              /*SRXAFS_XStatsVersion */
@@ -6293,7 +6293,7 @@ SRXAFS_NGetVolumeInfo(struct rx_call * acall, char *avolid,
 
 
 /*
- * Dummy routine. Should never be called (the cache manager should only 
+ * Dummy routine. Should never be called (the cache manager should only
  * invoke this interface when communicating with a AFS/DFS Protocol
  * Translator).
  */
@@ -6683,7 +6683,7 @@ SRXAFS_GetVolumeStatus(struct rx_call * acall, afs_int32 avolid,
     }
 #endif /* FS_STATS_DETAILED */
 
-    osi_auditU(acall, GetVolumeStatusEvent, errorCode, 
+    osi_auditU(acall, GetVolumeStatusEvent, errorCode,
                AUD_ID, t_client ? t_client->ViceId : 0,
                AUD_LONG, avolid, AUD_STR, *Name, AUD_END);
     return (errorCode);
@@ -6756,7 +6756,7 @@ SRXAFS_SetVolumeStatus(struct rx_call * acall, afs_int32 avolid,
        RXUpdate_VolumeStatus(volptr, StoreVolStatus, Name, OfflineMsg, Motd);
 
   Bad_SetVolumeStatus:
-    PutVolumePackage(parentwhentargetnotdir, targetptr, (Vnode *) 0, 
+    PutVolumePackage(parentwhentargetnotdir, targetptr, (Vnode *) 0,
                     volptr, &client);
     ViceLog(2, ("SAFS_SetVolumeStatus returns %d\n", errorCode));
     errorCode = CallPostamble(tcon, errorCode, thost);
@@ -6781,7 +6781,7 @@ SRXAFS_SetVolumeStatus(struct rx_call * acall, afs_int32 avolid,
     }
 #endif /* FS_STATS_DETAILED */
 
-    osi_auditU(acall, SetVolumeStatusEvent, errorCode, 
+    osi_auditU(acall, SetVolumeStatusEvent, errorCode,
                AUD_ID, t_client ? t_client->ViceId : 0,
                AUD_LONG, avolid, AUD_STR, Name, AUD_END);
     return (errorCode);
@@ -7679,18 +7679,18 @@ init_sys_error_to_et(void)
     sys2et[EIO] = UAEIO;
 }
 
-/* NOTE:  2006-03-01                                                     
- *  SRXAFS_CallBackRxConnAddr should be re-written as follows:           
- *  - pass back the connection, client, and host from CallPreamble       
- *  - keep a ref on the client, which we don't now                       
- *  - keep a hold on the host, which we already do                       
- *  - pass the connection, client, and host down into SAFSS_*, and use   
- *    them instead of independently discovering them via rx_ConnectionOf 
- *    (safe) and rx_GetSpecific (not so safe)                            
+/* NOTE:  2006-03-01
+ *  SRXAFS_CallBackRxConnAddr should be re-written as follows:
+ *  - pass back the connection, client, and host from CallPreamble
+ *  - keep a ref on the client, which we don't now
+ *  - keep a hold on the host, which we already do
+ *  - pass the connection, client, and host down into SAFSS_*, and use
+ *    them instead of independently discovering them via rx_ConnectionOf
+ *    (safe) and rx_GetSpecific (not so safe)
  *  The idea being that we decide what client and host we're going to use
  *  when CallPreamble is called, and stay consistent throughout the call.
- *  This change is too invasive for 1.4.1 but should be made in 1.5.x.   
- */                                                                      
+ *  This change is too invasive for 1.4.1 but should be made in 1.5.x.
+ */
 
 afs_int32
 SRXAFS_CallBackRxConnAddr (struct rx_call * acall, afs_int32 *addr)
@@ -7705,10 +7705,10 @@ SRXAFS_CallBackRxConnAddr (struct rx_call * acall, afs_int32 *addr)
     int i,j;
     struct rx_connection *conn;
 #endif
-    
+
     if ((errorCode = CallPreamble(acall, ACTIVECALL, &tcon, &tcallhost)))
            goto Bad_CallBackRxConnAddr1;
-    
+
 #ifndef __EXPERIMENTAL_CALLBACK_CONN_MOVING
     errorCode = 1;
 #else
@@ -7719,34 +7719,34 @@ SRXAFS_CallBackRxConnAddr (struct rx_call * acall, afs_int32 *addr)
        goto Bad_CallBackRxConnAddr;
     }
     thost = tclient->host;
-    
+
     /* nothing more can be done */
-    if ( !thost->interface ) 
+    if ( !thost->interface )
        goto Bad_CallBackRxConnAddr;
-    
+
     /* the only address is the primary interface */
     /* can't change when there's only 1 address, anyway */
-    if ( thost->interface->numberOfInterfaces <= 1 ) 
+    if ( thost->interface->numberOfInterfaces <= 1 )
        goto Bad_CallBackRxConnAddr;
-    
+
     /* initialise a security object only once */
     if ( !sc )
        sc = (struct rx_securityClass *) rxnull_NewClientSecurityObject();
-    
+
     for ( i=0; i < thost->interface->numberOfInterfaces; i++)
     {
            if ( *addr == thost->interface->addr[i] ) {
                    break;
            }
     }
-    
-    if ( *addr != thost->interface->addr[i] ) 
+
+    if ( *addr != thost->interface->addr[i] )
        goto Bad_CallBackRxConnAddr;
 
     conn = rx_NewConnection (thost->interface->addr[i],
                             thost->port, 1, sc, 0);
-    rx_SetConnDeadTime(conn, 2); 
-    rx_SetConnHardDeadTime(conn, AFS_HARDDEADTIME); 
+    rx_SetConnDeadTime(conn, 2);
+    rx_SetConnHardDeadTime(conn, AFS_HARDDEADTIME);
     H_UNLOCK;
     errorCode = RXAFSCB_Probe(conn);
     H_LOCK;
@@ -7764,7 +7764,7 @@ SRXAFS_CallBackRxConnAddr (struct rx_call * acall, afs_int32 *addr)
        return errorCode;
     } else {
        rx_DestroyConnection(conn);
-    }      
+    }
   Bad_CallBackRxConnAddr:
     h_ReleaseClient_r(tclient);
     /* The hold on thost will be released by CallPostamble */
index 27b530f05014c94d3e64d6b2ea69bd1f15787749..58e7764bc9dc33c08cf178488e1daea3af537e02 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -12,7 +12,7 @@
 /*
  * NEW callback package callback.c (replaces vicecb.c)
  * Updated call back routines, NOW with:
- * 
+ *
  *     Faster DeleteVenus (Now called DeleteAllCallBacks)
  *     Call back breaking for volumes
  *     Adaptive timeouts on call backs
  *     nblocks must be < 65536
  *     Space used is nblocks*16 bytes
  *     Note that space will be reclaimed by breaking callbacks of old hosts
- * 
+ *
  * time = AddCallBack(host, fid)
  *     Add a call back.
  *     Returns the expiration time at the workstation.
- * 
+ *
  * BreakCallBack(host, fid)
  *     Break all call backs for fid, except for the specified host.
  *     Delete all of them.
- * 
+ *
  * BreakVolumeCallBacksLater(volume)
  *     Break all call backs on volume, using single call to each host
  *     Delete all the call backs.
- * 
+ *
  * DeleteCallBack(host,fid)
  *     Delete (do not break) single call back for fid.
- * 
+ *
  * DeleteFileCallBacks(fid)
  *     Delete (do not break) all call backs for fid.
  *
  * DeleteAllCallBacks(host)
  *     Delete (do not break) all call backs for host.
- * 
+ *
  * CleanupTimedOutCallBacks()
  *     Delete all timed out call back entries
  *     Must be called periodically by file server.
- * 
+ *
  * BreakDelayedCallBacks(host)
  *     Break all delayed call backs for host.
  *     Returns 1: one or more failed, 0: success.
- * 
+ *
  * PrintCallBackStats()
  *     Print statistics about call backs to stdout.
- * 
+ *
  * DumpCallBacks() ---wishful thinking---
  *     Dump call back state to /tmp/callback.state.
  *     This is separately interpretable by the program pcb.
@@ -504,7 +504,7 @@ XCallBackBulk_r(struct host * ahost, struct AFSFid * fids, afs_int32 nfids)
     return code;
 }
 
-/* the locked flag tells us if the host entry has already been locked 
+/* the locked flag tells us if the host entry has already been locked
  * by our parent.  I don't think anybody actually calls us with the
  * host locked, but here's how to make that work:  GetSomeSpace has to
  * change so that it doesn't attempt to lock any hosts < "host".  That
@@ -549,7 +549,7 @@ AddCallBack1_r(struct host *host, AFSFid * fid, afs_uint32 * thead, int type,
     host->Console |= 2;
 
     /* allocate these guys first, since we can't call the allocator with
-     * the host structure locked -- or we might deadlock. However, we have 
+     * the host structure locked -- or we might deadlock. However, we have
      * to avoid races with FindFE... */
     while (!(newcb = GetCB())) {
        GetSomeSpace_r(host, locked);
@@ -666,19 +666,19 @@ CompareCBA(const void *e1, const void *e2)
     return ((cba1->hp)->index - (cba2->hp)->index);
 }
 
-/* Take an array full of hosts, all held.  Break callbacks to them, and 
- * release the holds once you're done, except don't release xhost.  xhost 
+/* Take an array full of hosts, all held.  Break callbacks to them, and
+ * release the holds once you're done, except don't release xhost.  xhost
  * may be NULL.  Currently only works for a single Fid in afidp array.
  * If you want to make this work with multiple fids, you need to fix
  * the error handling.  One approach would be to force a reset if a
  * multi-fid call fails, or you could add delayed callbacks for each
  * fid.   You probably also need to sort and remove duplicate hosts.
- * When this is called from the BreakVolumeCallBacks path, it does NOT 
- * force a reset if the RPC fails, it just marks the host down and tries 
+ * When this is called from the BreakVolumeCallBacks path, it does NOT
+ * force a reset if the RPC fails, it just marks the host down and tries
  * to create a delayed callback. */
 /* N.B.  be sure that code works when ncbas == 0 */
 /* N.B.  requires all the cba[*].hp pointers to be valid... */
-/* This routine does not hold a lock on the host for the duration of 
+/* This routine does not hold a lock on the host for the duration of
  * the BreakCallBack RPC, which is a significant deviation from tradition.
  * It _does_ get a lock on the host before setting VenusDown = 1,
  * which is sufficient only if VenusDown = 0 only happens when the
@@ -733,7 +733,7 @@ MultiBreakCallBack_r(struct cbstruct cba[], int ncbas,
                            ("BCB: INTERNAL ERROR: hp=%p, cba=%p, thead=%u\n",
                             hp, cba, idx));
                } else {
-                   /* 
+                   /*
                     ** try breaking callbacks on alternate interface addresses
                     */
                    if (MultiBreakCallBackAlternateAddress(hp, afidp)) {
@@ -750,7 +750,7 @@ MultiBreakCallBack_r(struct cbstruct cba[], int ncbas,
                        }
 
                        H_LOCK;
-                       h_Lock_r(hp); 
+                       h_Lock_r(hp);
                         if (!(hp->hostFlags & HOSTDELETED)) {
                             hp->hostFlags |= VENUSDOWN;
                             /**
@@ -759,7 +759,7 @@ MultiBreakCallBack_r(struct cbstruct cba[], int ncbas,
                             AddCallBack1_r(hp, afidp->AFSCBFids_val, itot(idx),
                                            CB_DELAYED, 1);
                         }
-                       h_Unlock_r(hp); 
+                       h_Unlock_r(hp);
                        H_UNLOCK;
                    }
                }
@@ -795,10 +795,10 @@ MultiBreakCallBack_r(struct cbstruct cba[], int ncbas,
  * Break all call backs for fid, except for the specified host (unless flag
  * is true, in which case all get a callback message. Assumption: the specified
  * host is h_Held, by the caller; the others aren't.
- * Specified host may be bogus, that's ok.  This used to check to see if the 
- * host was down in two places, once right after the host was h_held, and 
+ * Specified host may be bogus, that's ok.  This used to check to see if the
+ * host was down in two places, once right after the host was h_held, and
  * again after it was locked.  That race condition is incredibly rare and
- * relatively harmless even when it does occur, so we don't check for it now. 
+ * relatively harmless even when it does occur, so we don't check for it now.
  */
 /* if flag is true, send a break callback msg to "host", too */
 int
@@ -856,7 +856,7 @@ BreakCallBack(struct host *xhost, AFSFid * fid, int flag)
                    }
                    TDel(cb);
                    HDel(cb);
-                   CDel(cb, 1);        /* Usually first; so this delete 
+                   CDel(cb, 1);        /* Usually first; so this delete
                                         * is reasonably inexpensive */
                }
            }
@@ -1139,8 +1139,8 @@ MultiBreakVolumeCallBack_r(struct host *host, int isheld,
                     host, afs_inet_ntoa_r(host->host, hoststr),
                     ntohs(host->port)));
        }
-       DeleteAllCallBacks_r(host, deletefe);   /* Delete all callback state 
-                                                * rather than attempting to 
+       DeleteAllCallBacks_r(host, deletefe);   /* Delete all callback state
+                                                * rather than attempting to
                                                 * selectively remember to
                                                 * delete the volume callbacks
                                                 * later */
@@ -1428,7 +1428,7 @@ struct lih_params {
  * host may be held by some other thread */
 #define OTHER_MUSTHOLD_LIH 2
 
-/* This version does not allow 'host' to be selected unless its ActiveCall 
+/* This version does not allow 'host' to be selected unless its ActiveCall
  * is newer than 'params->lastlih' which is the host with the oldest
  * ActiveCall from the last pass (if it is provided).  We filter out any hosts
  * that are are held by other threads.
@@ -1493,12 +1493,12 @@ lih1_r(struct host *host, int flags, void *rock)
 /* first pass: sequentially find the oldest host which isn't held by
                anyone for which we can clear callbacks;
               skipping 'hostp' */
-/* second pass: sequentially find the oldest host regardless of 
+/* second pass: sequentially find the oldest host regardless of
                whether or not the host is held; skipping 'hostp' */
 /* third pass: attempt to clear callbacks from 'hostp' */
 /* always called with hostp unlocked */
 
-/* Note: hostlist is ordered most recently created host first and 
+/* Note: hostlist is ordered most recently created host first and
  * its order has no relationship to the most recently used. */
 extern struct host *hostList;
 static int
@@ -1685,7 +1685,7 @@ static int cb_stateRestoreTimeouts(struct fs_dump_state * state);
 static int cb_stateRestoreFEHash(struct fs_dump_state * state);
 static int cb_stateRestoreFEs(struct fs_dump_state * state);
 static int cb_stateRestoreFE(struct fs_dump_state * state);
-static int cb_stateRestoreCBs(struct fs_dump_state * state, struct FileEntry * fe, 
+static int cb_stateRestoreCBs(struct fs_dump_state * state, struct FileEntry * fe,
                              struct iovec * iov, int niovecs);
 
 static int cb_stateVerifyFEHash(struct fs_dump_state * state);
@@ -1748,7 +1748,7 @@ cb_stateSave(struct fs_dump_state * state)
        ret = 1;
        goto done;
     }
-    
+
  done:
     return ret;
 }
@@ -1822,7 +1822,7 @@ cb_stateRestoreIndices(struct fs_dump_state * state)
            }
        }
     }
-    
+
     /* restore indices in the CallBack structures */
     for (i = 1; i < state->cb_map.len; i++) {
        if (state->cb_map.entries[i].new_idx) {
@@ -1833,7 +1833,7 @@ cb_stateRestoreIndices(struct fs_dump_state * state)
                ret = 1;
                goto done;
            }
-           
+
            /* restore the cb->fhead entry */
            if (fe_OldToNew(state, cb->fhead, &cb->fhead)) {
                ret = 1;
@@ -2161,7 +2161,7 @@ cb_stateRestoreTimeouts(struct fs_dump_state * state)
     int ret = 0, len;
 
     if (fs_stateReadHeader(state, &state->cb_hdr->timeout_offset,
-                          state->cb_timeout_hdr, 
+                          state->cb_timeout_hdr,
                           sizeof(struct callback_state_timeout_header))) {
        ret = 1;
        goto done;
@@ -2234,7 +2234,7 @@ cb_stateRestoreFEHash(struct fs_dump_state * state)
     int ret = 0, len;
 
     if (fs_stateReadHeader(state, &state->cb_hdr->fehash_offset,
-                          state->cb_fehash_hdr, 
+                          state->cb_fehash_hdr,
                           sizeof(struct callback_state_fehash_header))) {
        ret = 1;
        goto done;
@@ -2336,8 +2336,8 @@ cb_stateSaveFE(struct fs_dump_state * state, struct FileEntry * fe)
     iov[1].iov_len = sizeof(struct FEDiskEntry);
     iovcnt = 2;
 
-    for (cbi = fe->firstcb, cb = itocb(cbi); 
-        cb != NULL; 
+    for (cbi = fe->firstcb, cb = itocb(cbi);
+        cb != NULL;
         cbi = cb->cnext, cb = itocb(cbi), hdr.nCBs++) {
        if (cbi > state->cb_hdr->cb_max) {
            state->cb_hdr->cb_max = cbi;
@@ -2361,7 +2361,7 @@ cb_stateSaveFE(struct fs_dump_state * state, struct FileEntry * fe)
     }
 
     hdr.magic = CALLBACK_STATE_ENTRY_MAGIC;
-    hdr.len = sizeof(hdr) + sizeof(struct FEDiskEntry) + 
+    hdr.len = sizeof(hdr) + sizeof(struct FEDiskEntry) +
        (hdr.nCBs * sizeof(struct CBDiskEntry));
 
     if (!written) {
@@ -2450,13 +2450,13 @@ cb_stateRestoreFE(struct fs_dump_state * state)
            }
        }
     }
-    
+
  done:
     return ret;
 }
 
 static int
-cb_stateRestoreCBs(struct fs_dump_state * state, struct FileEntry * fe, 
+cb_stateRestoreCBs(struct fs_dump_state * state, struct FileEntry * fe,
                   struct iovec * iov, int niovecs)
 {
     int ret = 0, idx;
@@ -2520,7 +2520,7 @@ cb_stateFEToDiskEntry(struct FileEntry * in, struct FEDiskEntry * out)
 }
 
 static int
-cb_stateDiskEntryToFE(struct fs_dump_state * state, 
+cb_stateDiskEntryToFE(struct fs_dump_state * state,
                      struct FEDiskEntry * in, struct FileEntry * out)
 {
     int ret = 0;
@@ -2765,7 +2765,7 @@ main(int argc, char **argv)
     struct CallBack *cb;
     time_t now;
     int timebits = 32;
-    
+
     memset(&fid, 0, sizeof(fid));
     argc--;
     argv++;
@@ -2808,7 +2808,7 @@ main(int argc, char **argv)
 #ifdef AFS_64BIT_ENV
                && (timebits != 64)
 #endif
-               ) 
+               )
                err++;
        } else if (!strcmp(*argv, "-volume")) {
            if (argc < 1) {
@@ -2984,7 +2984,7 @@ MultiBreakCallBackAlternateAddress_r(struct host *host,
 
        interfaces[j] = host->interface->interface[i];
        conns[j] =
-           rx_NewConnection(interfaces[j].addr, 
+           rx_NewConnection(interfaces[j].addr,
                             interfaces[j].port, 1, sc, 0);
        rx_SetConnDeadTime(conns[j], 2);
        rx_SetConnHardDeadTime(conns[j], AFS_HARDDEADTIME);
@@ -3037,7 +3037,7 @@ MultiBreakCallBackAlternateAddress_r(struct host *host,
 
 
 /*
-** try multi_RX probes to host. 
+** try multi_RX probes to host.
 ** return 0 on success, non-0 on failure
 */
 int
@@ -3079,7 +3079,7 @@ MultiProbeAlternateAddress_r(struct host *host)
 
        interfaces[j] = host->interface->interface[i];
        conns[j] =
-           rx_NewConnection(interfaces[j].addr, 
+           rx_NewConnection(interfaces[j].addr,
                             interfaces[j].port, 1, sc, 0);
        rx_SetConnDeadTime(conns[j], 2);
        rx_SetConnHardDeadTime(conns[j], AFS_HARDDEADTIME);
@@ -3118,11 +3118,11 @@ MultiProbeAlternateAddress_r(struct host *host)
                    ("multiprobe failure with addr %s:%d\n",
                     afs_inet_ntoa_r(interfaces[multi_i].addr, hoststr),
                      ntohs(interfaces[multi_i].port)));
-            
+
             /* This is less than desirable but its the best we can do.
-             * The AFS Cache Manager will return either 0 for a Uuid  
-             * match and a 1 for a non-match.   If the error is 1 we 
-             * therefore know that our mapping of IP address to Uuid 
+             * The AFS Cache Manager will return either 0 for a Uuid
+             * match and a 1 for a non-match.   If the error is 1 we
+             * therefore know that our mapping of IP address to Uuid
              * is wrong.   We should attempt to find the correct
              * Uuid and fix the host tables.
              */
index a74095f535cd80f525335a20a0f126f717b098a7..5359de45d3931f0f66a6c70ed408cb9f0a4714b4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1f07b3613bca2676665f940d40ca7c118f0c8059..7c89a6218462012186b53bdf714da9f2260ad811 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 7f915a4cf5f8f453df480c91e19b5c812d227974..ec2ed475d90edb01d2293b4c82b37040a41ae728 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -126,7 +126,7 @@ struct afs_PerfStats {
     afs_int32 rx_nBusies;      /*Ttl VBUSYs sent to shed load */
     afs_int32 fs_nBusies;      /*Ttl VBUSYs sent during restart/vol clone */
 
-    /* 
+    /*
      * Can't count this as an RPC because it breaks the data structure
      */
     afs_int32 fs_nGetCaps;     /* Number of GetCapabilities calls */
index 51aa5112ccec96285dc6ae3e765b1630d82ce56e..7d44b9fa0bcf602f6800e590ff7ea41b2bb05b6d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 4c7cacf206e28591fb91599442b5e7fdb0f5e087..604b3ab501527052ec260081ddbaf0544daf5831 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -278,14 +278,14 @@ hpr_Initialize(struct ubik_client **uclient)
        ViceLog(0, ("hpr_Initialize: Could not open configuration directory: %s", AFSDIR_SERVER_ETC_DIRPATH));
        return -1;
     }
-    
+
     code = afsconf_GetLocalCell(tdir, cellstr, sizeof(cellstr));
     if (code) {
        ViceLog(0, ("hpr_Initialize: Could not get local cell. [%d]", code));
        afsconf_Close(tdir);
        return code;
     }
-    
+
     code = afsconf_GetCellInfo(tdir, cellstr, "afsprot", &info);
     if (code) {
        ViceLog(0, ("hpr_Initialize: Could not locate cell %s in %s/%s",
@@ -293,14 +293,14 @@ hpr_Initialize(struct ubik_client **uclient)
        afsconf_Close(tdir);
        return code;
     }
-    
+
     code = rx_Init(0);
     if (code) {
        ViceLog(0, ("hpr_Initialize: Could not initialize rx."));
        afsconf_Close(tdir);
         return code;
     }
-    
+
     /* Most callers use secLevel==1, however, the fileserver uses secLevel==2
      * to force use of the KeyFile.  secLevel == 0 implies -noauth was
      * specified. */
@@ -317,7 +317,7 @@ hpr_Initialize(struct ubik_client **uclient)
         sc = rxnull_NewClientSecurityObject();
     if (scIndex == RX_SECIDX_NULL)
        ViceLog(0, ("hpr_Initialize: Could not get afs tokens, running unauthenticated. [%d]", code));
-    
+
     memset(serverconns, 0, sizeof(serverconns));        /* terminate list!!! */
     for (i = 0; i < info.numServers; i++) {
         serverconns[i] =
@@ -352,12 +352,12 @@ hpr_GetHostCPS(afs_int32 host, prlist *CPS)
 #ifdef AFS_PTHREAD_ENV
     afs_int32 code;
     afs_int32 over;
-    struct ubik_client *uclient = 
+    struct ubik_client *uclient =
        (struct ubik_client *)pthread_getspecific(viced_uclient_key);
 
     if (!uclient) {
         code = hpr_Initialize(&uclient);
-       if (!code) 
+       if (!code)
            assert(pthread_setspecific(viced_uclient_key, (void *)uclient) == 0);
        else
            return code;
@@ -386,7 +386,7 @@ hpr_NameToId(namelist *names, idlist *ids)
 #ifdef AFS_PTHREAD_ENV
     afs_int32 code;
     afs_int32 i;
-    struct ubik_client *uclient = 
+    struct ubik_client *uclient =
        (struct ubik_client *)pthread_getspecific(viced_uclient_key);
 
     if (!uclient) {
@@ -411,9 +411,9 @@ hpr_IdToName(idlist *ids, namelist *names)
 {
 #ifdef AFS_PTHREAD_ENV
     afs_int32 code;
-    struct ubik_client *uclient = 
+    struct ubik_client *uclient =
        (struct ubik_client *)pthread_getspecific(viced_uclient_key);
-    
+
     if (!uclient) {
         code = hpr_Initialize(&uclient);
        if (!code)
@@ -435,7 +435,7 @@ hpr_GetCPS(afs_int32 id, prlist *CPS)
 #ifdef AFS_PTHREAD_ENV
     afs_int32 code;
     afs_int32 over;
-    struct ubik_client *uclient = 
+    struct ubik_client *uclient =
        (struct ubik_client *)pthread_getspecific(viced_uclient_key);
 
     if (!uclient) {
@@ -618,16 +618,16 @@ h_gethostcps_r(struct host *host, afs_int32 now)
         * with one of these errors. In such case we would like to reevaluate the rpc call to
         * find if there's cps for this guy. We treat other errors (except network failures
         * ones - i.e. code < 0) as an indication that there is no CPS for this host. Ideally
-        * we could like to deal this problem the other way around (i.e. if code == NOCPS 
+        * we could like to deal this problem the other way around (i.e. if code == NOCPS
         * ignore else retry next time) but the problem is that there're other errors (i.e.
         * EPERM) for which we don't want to retry and we don't know the whole code list!
         */
        if (code < 0 || code == UNOQUORUM || code == UNOTSYNC) {
-           /* 
+           /*
             * We would have preferred to use a while loop and try again since ops in protected
             * acls for this host will fail now but they'll be reevaluated on any subsequent
             * call. The attempt to wait for a quorum/sync site or network error won't work
-            * since this problems really should only occurs during a complete fileserver 
+            * since this problems really should only occurs during a complete fileserver
             * restart. Since the fileserver will start before the ptservers (and thus before
             * quorums are complete) clients will be utilizing all the fileserver's lwps!!
             */
@@ -779,7 +779,7 @@ h_Lookup_r(afs_uint32 haddr, afs_uint16 hport, struct host **hostp)
        assert(host);
        if (!(host->hostFlags & HOSTDELETED) && chain->addr == haddr
            && chain->port == hport) {
-           if ((host->hostFlags & HWHO_INPROGRESS) && 
+           if ((host->hostFlags & HWHO_INPROGRESS) &&
                h_threadquota(host->lock.num_waiting)) {
                *hostp = 0;
                return VBUSY;
@@ -888,7 +888,7 @@ h_TossStuff_r(struct host *host)
                         ntohs(host->port), client));
                return;
            }
-                
+
            if (client->refCount) {
                char hoststr[16];
                ViceLog(0,
@@ -942,7 +942,7 @@ h_TossStuff_r(struct host *host)
            /* delete the hash entry for each valid alternate addresses */
            for (i = 0; i < host->interface->numberOfInterfaces; i++) {
                hostAddrPort = host->interface->interface[i];
-                /* 
+                /*
                  * if the interface addr/port is the primary, we already
                  * removed it.  If the addr/port is not valid, its not
                  * in the hash table.
@@ -1045,7 +1045,7 @@ h_Enumerate(int (*proc) (struct host*, int, void *), void *param)
  * be held after enumeration.
  */
 void
-h_Enumerate_r(int (*proc) (struct host *, int, void *), 
+h_Enumerate_r(int (*proc) (struct host *, int, void *),
              struct host *enumstart, void *param)
 {
     struct host *host, *next;
@@ -1137,15 +1137,15 @@ h_AddHostToUuidHashTable_r(struct afsUUID *uuid, struct host *host)
        if (!chain->hostPtr)
            continue;
 
-       if (chain->hostPtr->interface && 
+       if (chain->hostPtr->interface &&
            afs_uuid_equal(&chain->hostPtr->interface->uuid, uuid)) {
            if (LogLevel >= 125) {
-               afsUUID_to_string(&chain->hostPtr->interface->uuid, uuid1, 
+               afsUUID_to_string(&chain->hostPtr->interface->uuid, uuid1,
                                  127);
                afsUUID_to_string(uuid, uuid2, 127);
-               ViceLog(125, ("h_AddHostToUuidHashTable_r: host %" AFS_PTR_FMT " (uuid %s) exists as %s:%d (uuid %s)\n", 
+               ViceLog(125, ("h_AddHostToUuidHashTable_r: host %" AFS_PTR_FMT " (uuid %s) exists as %s:%d (uuid %s)\n",
                              host, uuid1,
-                             afs_inet_ntoa_r(chain->hostPtr->host, hoststr), 
+                             afs_inet_ntoa_r(chain->hostPtr->host, hoststr),
                              ntohs(chain->hostPtr->port), uuid2));
            }
            return;
@@ -1164,9 +1164,9 @@ h_AddHostToUuidHashTable_r(struct afsUUID *uuid, struct host *host)
          if (LogLevel < 125)
               return;
      afsUUID_to_string(uuid, uuid2, 127);
-     ViceLog(125, 
+     ViceLog(125,
             ("h_AddHostToUuidHashTable_r: host %p (%s:%d) added as uuid %s\n",
-             host, afs_inet_ntoa_r(chain->hostPtr->host, hoststr), 
+             host, afs_inet_ntoa_r(chain->hostPtr->host, hoststr),
              ntohs(chain->hostPtr->port), uuid2));
 }
 
@@ -1178,30 +1178,30 @@ h_DeleteHostFromUuidHashTable_r(struct host *host)
      struct h_UuidHashChain **uhp, *uth;
      char uuid1[128];
      char hoststr[16];
+
      if (!host->interface)
        return 0;
+
      /* hash into proper bucket */
      index = h_UuidHashIndex(&host->interface->uuid);
-     
+
      if (LogLevel >= 125)
         afsUUID_to_string(&host->interface->uuid, uuid1, 127);
      for (uhp = &hostUuidHashTable[index]; (uth = *uhp); uhp = &uth->next) {
          assert(uth->hostPtr);
         if (uth->hostPtr == host) {
-            ViceLog(125, 
+            ViceLog(125,
                     ("h_DeleteHostFromUuidHashTable_r: host %" AFS_PTR_FMT " (uuid %s %s:%d)\n",
-                     host, uuid1, afs_inet_ntoa_r(host->host, hoststr), 
+                     host, uuid1, afs_inet_ntoa_r(host->host, hoststr),
                      ntohs(host->port)));
             *uhp = uth->next;
             free(uth);
             return 1;
         }
      }
-     ViceLog(125, 
+     ViceLog(125,
             ("h_DeleteHostFromUuidHashTable_r: host %" AFS_PTR_FMT " (uuid %s %s:%d) not found\n",
-             host, uuid1, afs_inet_ntoa_r(host->host, hoststr), 
+             host, uuid1, afs_inet_ntoa_r(host->host, hoststr),
              ntohs(host->port)));
      return 0;
 }
@@ -1515,9 +1515,9 @@ h_AddHostToAddrHashTable_r(afs_uint32 addr, afs_uint16 port, struct host *host)
 }
 
 /*
- * This is called with host locked and held. 
+ * This is called with host locked and held.
  * It is called to either validate or add an additional interface
- * address/port on the specified host.  
+ * address/port on the specified host.
  *
  * All addresses are in network byte order.
  */
@@ -1528,7 +1528,7 @@ addInterfaceAddr_r(struct host *host, afs_uint32 addr, afs_uint16 port)
     int number;
     struct Interface *interface;
     char hoststr[16], hoststr2[16];
-                                                   
+
     assert(host);
     assert(host->interface);
 
@@ -1540,13 +1540,13 @@ addInterfaceAddr_r(struct host *host, afs_uint32 addr, afs_uint16 port)
     for (i = 0; i < number; i++) {
        if (host->interface->interface[i].addr == addr &&
              host->interface->interface[i].port == port) {
-           ViceLog(125, 
+           ViceLog(125,
                    ("addInterfaceAddr : found host %" AFS_PTR_FMT " (%s:%d) adding %s:%d%s\n",
-                    host, afs_inet_ntoa_r(host->host, hoststr), 
-                    ntohs(host->port), afs_inet_ntoa_r(addr, hoststr2), 
-                    ntohs(port), host->interface->interface[i].valid ? "" : 
+                    host, afs_inet_ntoa_r(host->host, hoststr),
+                    ntohs(host->port), afs_inet_ntoa_r(addr, hoststr2),
+                    ntohs(port), host->interface->interface[i].valid ? "" :
                     ", validating"));
-     
+
            if (host->interface->interface[i].valid == 0) {
                host->interface->interface[i].valid = 1;
                h_AddHostToAddrHashTable_r(addr, port, host);
@@ -1555,11 +1555,11 @@ addInterfaceAddr_r(struct host *host, afs_uint32 addr, afs_uint16 port)
         }
     }
 
-    ViceLog(125, ("addInterfaceAddr : host %" AFS_PTR_FMT " (%s:%d) adding %s:%d\n", 
-                 host, afs_inet_ntoa_r(host->host, hoststr), 
-                 ntohs(host->port), afs_inet_ntoa_r(addr, hoststr2), 
+    ViceLog(125, ("addInterfaceAddr : host %" AFS_PTR_FMT " (%s:%d) adding %s:%d\n",
+                 host, afs_inet_ntoa_r(host->host, hoststr),
+                 ntohs(host->port), afs_inet_ntoa_r(addr, hoststr2),
                  ntohs(port)));
-    
+
     interface = (struct Interface *)
        malloc(sizeof(struct Interface) + (sizeof(struct AddrPort) * number));
     if (!interface) {
@@ -1570,7 +1570,7 @@ addInterfaceAddr_r(struct host *host, afs_uint32 addr, afs_uint16 port)
     interface->uuid = host->interface->uuid;
     for (i = 0; i < number; i++)
        interface->interface[i] = host->interface->interface[i];
-    
+
     /* Add the new valid interface */
     interface->interface[number].addr = addr;
     interface->interface[number].port = port;
@@ -1578,7 +1578,7 @@ addInterfaceAddr_r(struct host *host, afs_uint32 addr, afs_uint16 port)
     h_AddHostToAddrHashTable_r(addr, port, host);
     free(host->interface);
     host->interface = interface;
-    
+
     return 0;
 }
 
@@ -1599,9 +1599,9 @@ removeInterfaceAddr_r(struct host *host, afs_uint32 addr, afs_uint16 port)
     assert(host);
     assert(host->interface);
 
-    ViceLog(125, ("removeInterfaceAddr : host %" AFS_PTR_FMT " (%s:%d) addr %s:%d\n", 
-                 host, afs_inet_ntoa_r(host->host, hoststr), 
-                 ntohs(host->port), afs_inet_ntoa_r(addr, hoststr2), 
+    ViceLog(125, ("removeInterfaceAddr : host %" AFS_PTR_FMT " (%s:%d) addr %s:%d\n",
+                 host, afs_inet_ntoa_r(host->host, hoststr),
+                 ntohs(host->port), afs_inet_ntoa_r(addr, hoststr2),
                  ntohs(port)));
 
     /*
@@ -1622,7 +1622,7 @@ removeInterfaceAddr_r(struct host *host, afs_uint32 addr, afs_uint16 port)
            interface->numberOfInterfaces = number;
            return 0;
        }
-    }  
+    }
     /* not found */
     return 0;
 }
@@ -1630,7 +1630,7 @@ removeInterfaceAddr_r(struct host *host, afs_uint32 addr, afs_uint16 port)
 
 
 static int
-h_threadquota(int waiting) 
+h_threadquota(int waiting)
 {
     if (lwps > 64) {
        if (waiting > 5)
@@ -1688,7 +1688,7 @@ h_GetHost_r(struct rx_connection *tcon)
         * structure for this address. Verify that the identity
         * of the caller matches the identity in the host structure.
         */
-       if ((host->hostFlags & HWHO_INPROGRESS) && 
+       if ((host->hostFlags & HWHO_INPROGRESS) &&
            h_threadquota(host->lock.num_waiting)) {
                h_Release_r(host);
            host = NULL;
@@ -1717,16 +1717,16 @@ h_GetHost_r(struct rx_connection *tcon)
          * If there is a match, we can use the existing callback
          * connection to verify the UUID.  If they do not match
          * we need to use a new callback connection to verify the
-         * UUID of the incoming caller and perhaps use the old 
+         * UUID of the incoming caller and perhaps use the old
          * callback connection to verify that the old address/port
          * is still valid.
          */
-       
+
        cb_conn = host->callback_rxcon;
        rx_GetConnection(cb_conn);
        H_UNLOCK;
         if (haddr == host->host && hport == host->port) {
-            /* The existing callback connection matches the 
+            /* The existing callback connection matches the
              * incoming connection so just use it.
              */
            code =
@@ -1743,7 +1743,7 @@ h_GetHost_r(struct rx_connection *tcon)
             cb_in = rx_NewConnection(haddr, hport, 1, sc, 0);
             rx_SetConnDeadTime(cb_in, 50);
             rx_SetConnHardDeadTime(cb_in, AFS_HARDDEADTIME);
-           
+
             code =
                 RXAFSCB_TellMeAboutYourself(cb_in, &interf, &caps);
            if (code == RXGEN_OPCODE)
@@ -1752,7 +1752,7 @@ h_GetHost_r(struct rx_connection *tcon)
        rx_PutConnection(cb_conn);
        cb_conn=NULL;
        H_LOCK;
-       if ((code == RXGEN_OPCODE) || 
+       if ((code == RXGEN_OPCODE) ||
            ((code == 0) && (afs_uuid_equal(&interf.uuid, &nulluuid)))) {
            identP = (struct Identity *)malloc(sizeof(struct Identity));
            if (!identP) {
@@ -1762,14 +1762,14 @@ h_GetHost_r(struct rx_connection *tcon)
            identP->valid = 0;
            rx_SetSpecific(tcon, rxcon_ident_key, identP);
            if (cb_in == NULL) {
-               /* The host on this connection was unable to respond to 
+               /* The host on this connection was unable to respond to
                 * the WhoAreYou. We will treat this as a new connection
                 * from the existing host. The worst that can happen is
                 * that we maintain some extra callback state information */
                if (host->interface) {
                    ViceLog(0,
                            ("Host %" AFS_PTR_FMT " (%s:%d) used to support WhoAreYou, deleting.\n",
-                            host, 
+                            host,
                             afs_inet_ntoa_r(host->host, hoststr),
                             ntohs(host->port)));
                    host->hostFlags |= HOSTDELETED;
@@ -1783,7 +1783,7 @@ h_GetHost_r(struct rx_connection *tcon)
                /* The incoming connection does not support WhoAreYou but
                 * the original one might have.  Use removeAddress_r() to
                  * remove this addr/port from the host that was found.
-                 * If there are no more addresses left for the host it 
+                 * If there are no more addresses left for the host it
                  * will be deleted.  Then we retry.
                  */
                 removeAddress_r(host, haddr, hport);
@@ -1818,7 +1818,7 @@ h_GetHost_r(struct rx_connection *tcon)
                    ViceLog(25,
                            ("Uuid doesn't match host %" AFS_PTR_FMT " (%s:%d).\n",
                             host, afs_inet_ntoa_r(host->host, hoststr), ntohs(host->port)));
-                   
+
                    removeAddress_r(host, host->host, host->port);
                }
                host->hostFlags &= ~HWHO_INPROGRESS;
@@ -1828,8 +1828,8 @@ h_GetHost_r(struct rx_connection *tcon)
                host = NULL;
                goto retry;
            } else if (cb_in) {
-               /* the UUID matched the client at the incoming addr/port 
-                 * but this is not the address of the active callback 
+               /* the UUID matched the client at the incoming addr/port
+                 * but this is not the address of the active callback
                  * connection.  Try that connection and see if the client
                  * is still there and if the reported UUID is the same.
                  */
@@ -1849,18 +1849,18 @@ h_GetHost_r(struct rx_connection *tcon)
                 if (code2) {
                     /* The primary address is either not responding or
                      * is not the client we are looking for.  Need to
-                     * remove the primary address and add swap in the new 
+                     * remove the primary address and add swap in the new
                      * callback connection, and destroy the old one.
                      */
                     struct rx_connection *rxconn;
                     ViceLog(0,("CB: ProbeUuid for host %" AFS_PTR_FMT " (%s:%d) failed %d\n",
-                              host, 
+                              host,
                               afs_inet_ntoa_r(host->host, hoststr),
                               ntohs(host->port),code2));
 
-                    /* 
+                    /*
                      * make sure we add and then remove.  otherwise, we
-                     * might end up with no valid interfaces after the 
+                     * might end up with no valid interfaces after the
                      * remove and the host will have been marked deleted.
                      */
                     addInterfaceAddr_r(host, haddr, hport);
@@ -1870,7 +1870,7 @@ h_GetHost_r(struct rx_connection *tcon)
                     rxconn = host->callback_rxcon;
                     host->callback_rxcon = cb_in;
                     cb_in = NULL;
-                   
+
                     if (rxconn) {
                         /*
                          * If rx_DestroyConnection calls h_FreeConnection we
@@ -1885,7 +1885,7 @@ h_GetHost_r(struct rx_connection *tcon)
            }
        } else {
             if (cb_in) {
-                /* A callback to the incoming connection address is failing.  
+                /* A callback to the incoming connection address is failing.
                  * Assume that the addr/port is no longer associated with the host
                  * returned by h_Lookup_r.
                  */
@@ -1978,7 +1978,7 @@ h_GetHost_r(struct rx_connection *tcon)
            rx_PutConnection(cb_conn);
            cb_conn=NULL;
            H_LOCK;
-           if ((code == RXGEN_OPCODE) || 
+           if ((code == RXGEN_OPCODE) ||
                ((code == 0) && (afs_uuid_equal(&interf.uuid, &nulluuid)))) {
                if (!identP)
                    identP =
@@ -2061,12 +2061,12 @@ h_GetHost_r(struct rx_connection *tcon)
                         cb_conn=NULL;
                        if (code2) {
                            /* The primary address is either not responding or
-                            * is not the client we are looking for.  
+                            * is not the client we are looking for.
                             * MultiProbeAlternateAddress_r() will remove the
                             * alternate interfaces that do not have the same
                             * Uuid. */
                            ViceLog(0,("CB: ProbeUuid for host %" AFS_PTR_FMT " (%s:%d) failed %d\n",
-                                        oldHost, 
+                                        oldHost,
                                          afs_inet_ntoa_r(oldHost->host, hoststr),
                                         ntohs(oldHost->port),code2));
                            MultiProbeAlternateAddress_r(oldHost);
@@ -2088,24 +2088,24 @@ h_GetHost_r(struct rx_connection *tcon)
 
                        ViceLog(25,
                                  ("CB: Host %" AFS_PTR_FMT " (%s:%d) has new addr %s:%d\n",
-                                   oldHost, 
+                                   oldHost,
                                    afs_inet_ntoa_r(oldHost->host, hoststr2),
                                    ntohs(oldHost->port),
                                    afs_inet_ntoa_r(haddr, hoststr),
                                    ntohs(hport)));
-                       /* 
+                       /*
                         * add then remove.  otherwise the host may get marked
                         * deleted if we removed the only valid address.
                         */
                        addInterfaceAddr_r(oldHost, haddr, hport);
                        if (probefail || oldHost->host == haddr) {
-                           /* 
-                            * The probe failed which means that the old 
-                            * address is either unreachable or is not the 
-                            * same host we were just contacted by.  We will 
-                            * also remove addresses if only the port has 
+                           /*
+                            * The probe failed which means that the old
+                            * address is either unreachable or is not the
+                            * same host we were just contacted by.  We will
+                            * also remove addresses if only the port has
                             * changed because that indicates the client
-                            * is behind a NAT. 
+                            * is behind a NAT.
                             */
                            removeInterfaceAddr_r(oldHost, oldHost->host, oldHost->port);
                        } else {
@@ -2115,12 +2115,12 @@ h_GetHost_r(struct rx_connection *tcon)
                            for (i = 0; i < number; i++) {
                                if (interface->interface[i].addr == haddr &&
                                    interface->interface[i].port != hport) {
-                                   /* 
+                                   /*
                                     * We have just been contacted by a client
-                                    * that has been seen from behind a NAT 
+                                    * that has been seen from behind a NAT
                                     * and at least one other address.
                                     */
-                                   removeInterfaceAddr_r(oldHost, haddr, 
+                                   removeInterfaceAddr_r(oldHost, haddr,
                                                          interface->interface[i].port);
                                    break;
                                }
@@ -2132,7 +2132,7 @@ h_GetHost_r(struct rx_connection *tcon)
                        rxconn = oldHost->callback_rxcon;
                        oldHost->callback_rxcon = host->callback_rxcon;
                        host->callback_rxcon = rxconn;
-                       
+
                         /* don't destroy rxconn here; let h_TossStuff_r
                          * take care of that via h_Release_r below */
                    }
@@ -2146,7 +2146,7 @@ h_GetHost_r(struct rx_connection *tcon)
                    /* This really is a new host */
                    h_AddHostToUuidHashTable_r(&identP->uuid, host);
                    cb_conn = host->callback_rxcon;
-                   rx_GetConnection(cb_conn);          
+                   rx_GetConnection(cb_conn);
                    H_UNLOCK;
                    code =
                        RXAFSCB_InitCallBackState3(cb_conn,
@@ -2375,13 +2375,13 @@ h_FindClient_r(struct rx_connection *tcon)
     int created = 0;
 
     client = (struct client *)rx_GetSpecific(tcon, rxcon_client_key);
-    if (client && client->sid == rxr_CidOf(tcon) 
+    if (client && client->sid == rxr_CidOf(tcon)
        && client->VenusEpoch == rxr_GetEpoch(tcon)
        && !(client->host->hostFlags & HOSTDELETED)) {
 
        client->refCount++;
        h_Hold_r(client->host);
-       if (!client->deleted && client->prfail != 2) {  
+       if (!client->deleted && client->prfail != 2) {
            /* Could add shared lock on client here */
            /* note that we don't have to lock entry in this path to
             * ensure CPS is initialized, since we don't call rx_SetSpecific
@@ -2408,7 +2408,7 @@ h_FindClient_r(struct rx_connection *tcon)
        expTime = 0x7fffffff;
     } else if (authClass == 2) {
        afs_int32 kvno;
-    
+
        /* kerberos ticket */
        code = rxkad_GetServerInfo(tcon, /*level */ 0, (afs_uint32 *)&expTime,
                                   tname, tinst, tcell, &kvno);
@@ -2448,7 +2448,7 @@ h_FindClient_r(struct rx_connection *tcon)
     if (!client) { /* loop */
        host = h_GetHost_r(tcon);       /* Returns with incremented refCount  */
 
-       if (!host) 
+       if (!host)
            return NULL;
 
     retryfirstclient:
@@ -2519,7 +2519,7 @@ h_FindClient_r(struct rx_connection *tcon)
                char hoststr[16];
                ViceLog(0,
                        ("pr_GetCPS failed(%d) for user %d, host %" AFS_PTR_FMT " (%s:%d)\n",
-                        code, viceid, client->host, 
+                        code, viceid, client->host,
                          afs_inet_ntoa_r(client->host->host,hoststr),
                         ntohs(client->host->port)));
 
@@ -2542,7 +2542,7 @@ h_FindClient_r(struct rx_connection *tcon)
        }
        /* the disabling of system:administrators is so iffy and has so many
         * possible failure modes that we will disable it again */
-       /* Turn off System:Administrator for safety  
+       /* Turn off System:Administrator for safety
         * if (AL_IsAMember(SystemId, client->CPS) == 0)
         * assert(AL_DisableGroup(SystemId, client->CPS) == 0); */
     }
@@ -2561,7 +2561,7 @@ h_FindClient_r(struct rx_connection *tcon)
            if (created) {
                ViceLog(0, ("FindClient: stillborn client %p(%x); "
                            "conn %p (host %s:%d) had client %p(%x)\n",
-                           client, client->sid, tcon, 
+                           client, client->sid, tcon,
                            afs_inet_ntoa_r(rxr_HostOf(tcon), hoststr),
                            ntohs(rxr_PortOf(tcon)),
                            oldClient, oldClient->sid));
@@ -2576,7 +2576,7 @@ h_FindClient_r(struct rx_connection *tcon)
            if (created) {
                FreeCE(client);
                created = 0;
-           } 
+           }
            oldClient->refCount++;
            H_UNLOCK;
            ObtainWriteLock(&oldClient->lock);
@@ -2585,7 +2585,7 @@ h_FindClient_r(struct rx_connection *tcon)
        } else {
            ViceLog(0, ("FindClient: deleted client %p(%x) already had "
                        "conn %p (host %s:%d), stolen by client %p(%x)\n",
-                       oldClient, oldClient->sid, tcon, 
+                       oldClient, oldClient->sid, tcon,
                        afs_inet_ntoa_r(rxr_HostOf(tcon), hoststr),
                        ntohs(rxr_PortOf(tcon)),
                        client, client->sid));
@@ -2684,7 +2684,7 @@ GetClient(struct rx_connection *tcon, struct client **cp)
 int
 PutClient(struct client **cp)
 {
-    if (*cp == NULL) 
+    if (*cp == NULL)
        return -1;
 
     H_LOCK;
@@ -2828,7 +2828,7 @@ static int
 h_DumpHost(struct host *host, int flags, void *rock)
 {
     StreamHandle_t *file = (StreamHandle_t *)rock;
-    
+
     int i;
     char tmpStr[256];
     char hoststr[16];
@@ -2854,7 +2854,7 @@ h_DumpHost(struct host *host, int flags, void *rock)
     if (host->interface)
        for (i = 0; i < host->interface->numberOfInterfaces; i++) {
            char hoststr[16];
-           sprintf(tmpStr, " %s:%d", 
+           sprintf(tmpStr, " %s:%d",
                     afs_inet_ntoa_r(host->interface->interface[i].addr, hoststr),
                     ntohs(host->interface->interface[i].port));
            (void)STREAM_WRITE(tmpStr, strlen(tmpStr), 1, file);
@@ -2949,7 +2949,7 @@ h_stateSave(struct fs_dump_state * state)
 /* demand attach fs
  * host state serialization
  *
- * this procedure restores all host state from a disk for fast startup 
+ * this procedure restores all host state from a disk for fast startup
  */
 int
 h_stateRestore(struct fs_dump_state * state)
@@ -3025,7 +3025,7 @@ h_stateVerifyHost(struct host * h, int flags, void* rock)
 
     if (h->interface) {
        for (i = h->interface->numberOfInterfaces-1; i >= 0; i--) {
-           if (h_stateVerifyAddrHash(state, h, h->interface->interface[i].addr, 
+           if (h_stateVerifyAddrHash(state, h, h->interface->interface[i].addr,
                                      h->interface->interface[i].port,
                                      h->interface->interface[i].valid)) {
                state->bail = 1;
@@ -3150,7 +3150,7 @@ h_stateVerifyUuidHash(struct fs_dump_state * state, struct host * h)
        if (host->interface &&
            afs_uuid_equal(&host->interface->uuid, uuidp)) {
            if (host != h) {
-               ViceLog(0, ("h_stateVerifyUuidHash: warning: uuid hash entry points to different host struct (%d, %d)\n", 
+               ViceLog(0, ("h_stateVerifyUuidHash: warning: uuid hash entry points to different host struct (%d, %d)\n",
                            h->index, host->index));
                state->flags.warnings_generated = 1;
            }
@@ -3239,7 +3239,7 @@ h_stateSaveHost(struct host * host, int flags, void* rock)
 
     h_hostToDiskEntry_r(host, &hdsk);
     if (host->interface) {
-       if_len = sizeof(struct Interface) + 
+       if_len = sizeof(struct Interface) +
            ((host->interface->numberOfInterfaces-1) * sizeof(struct AddrPort));
        ifp = (struct Interface *) malloc(if_len);
        assert(ifp != NULL);
@@ -3263,7 +3263,7 @@ h_stateSaveHost(struct host * host, int flags, void* rock)
     if (hdsk.index > state->h_hdr->index_max)
        state->h_hdr->index_max = hdsk.index;
 
-    hdr.len = sizeof(struct host_state_entry_header) + 
+    hdr.len = sizeof(struct host_state_entry_header) +
        sizeof(struct hostDiskEntry) + if_len + hcps_len;
     hdr.magic = HOST_STATE_ENTRY_MAGIC;
 
@@ -3271,7 +3271,7 @@ h_stateSaveHost(struct host * host, int flags, void* rock)
     iov[0].iov_len = sizeof(hdr);
     iov[1].iov_base = (char *) &hdsk;
     iov[1].iov_len = sizeof(struct hostDiskEntry);
-    
+
     if (fs_stateWriteV(state, iov, iovcnt)) {
        ViceLog(0, ("h_stateSaveHost: failed to save host %d", host->index));
        state->bail = 1;
@@ -3375,11 +3375,11 @@ h_stateRestoreHost(struct fs_dump_state * state)
     if (ifp) {
        int i;
        for (i = ifp->numberOfInterfaces-1; i >= 0; i--) {
-            if (ifp->interface[i].valid && 
+            if (ifp->interface[i].valid &&
                 !(ifp->interface[i].addr == host->host &&
                   ifp->interface[i].port == host->port)) {
-                h_AddHostToAddrHashTable_r(ifp->interface[i].addr, 
-                                           ifp->interface[i].port, 
+                h_AddHostToAddrHashTable_r(ifp->interface[i].addr,
+                                           ifp->interface[i].port,
                                            host);
             }
        }
@@ -3751,7 +3751,7 @@ CheckHost(struct host *host, int flags, void *rock)
                    }
                    /* Note:  it's safe to delete hosts even if they have call
                     * back state, because break delayed callbacks (called when a
-                    * message is received from the workstation) will always send a 
+                    * message is received from the workstation) will always send a
                     * break all call backs to the workstation if there is no
                     * callback.
                     */
@@ -3778,7 +3778,7 @@ CheckHost(struct host *host, int flags, void *rock)
                        H_LOCK;
                        if (code) {
                            ViceLog(0,
-                                   ("CheckHost: Probe failed for host %s:%d, code %d\n", 
+                                   ("CheckHost: Probe failed for host %s:%d, code %d\n",
                                     hoststr, ntohs(host->port), code));
                            host->hostFlags |= VENUSDOWN;
                        }
@@ -3855,7 +3855,7 @@ CheckHost_r(struct host *host, int flags, void *dummy)
                    }
                    /* Note:  it's safe to delete hosts even if they have call
                     * back state, because break delayed callbacks (called when a
-                    * message is received from the workstation) will always send a 
+                    * message is received from the workstation) will always send a
                     * break all call backs to the workstation if there is no
                     * callback.
                     */
@@ -3882,7 +3882,7 @@ CheckHost_r(struct host *host, int flags, void *dummy)
                        H_LOCK;
                        if (code) {
                            ViceLog(0,
-                                   ("CheckHost_r: Probe failed for host %s:%d, code %d\n", 
+                                   ("CheckHost_r: Probe failed for host %s:%d, code %d\n",
                                     hoststr, ntohs(host->port), code));
                            host->hostFlags |= VENUSDOWN;
                        }
@@ -3922,7 +3922,7 @@ h_CheckHosts(void)
      */
     checktime = now - 15 * 60;
     clientdeletetime = now - 120 * 60; /* 2 hours ago */
-    
+
     H_LOCK;
     h_Enumerate_r(CheckHost_r, hostList, NULL);
     H_UNLOCK;
@@ -3956,7 +3956,7 @@ initInterfaceAddr_r(struct host *host, struct interfaceAddr *interf)
     myPort = host->port;       /* current port */
 
     ViceLog(125,
-           ("initInterfaceAddr : host %s:%d numAddr %d\n", 
+           ("initInterfaceAddr : host %s:%d numAddr %d\n",
              afs_inet_ntoa_r(myAddr, hoststr), ntohs(myPort), number));
 
     /* validation checks */
@@ -3967,7 +3967,7 @@ initInterfaceAddr_r(struct host *host, struct interfaceAddr *interf)
     }
 
     /*
-     * The client's notion of its own IP addresses is not reliable.  
+     * The client's notion of its own IP addresses is not reliable.
      *
      * 1. The client list might contain private address ranges which
      *    are likely to be re-used by many clients allocated addresses
@@ -3994,8 +3994,8 @@ initInterfaceAddr_r(struct host *host, struct interfaceAddr *interf)
 
     /*
      * Convert IP addresses to network byte order, and remove
-     * duplicate IP addresses from the interface list, and 
-     * determine whether or not the incoming addr/port is 
+     * duplicate IP addresses from the interface list, and
+     * determine whether or not the incoming addr/port is
      * listed.  Note that if the address matches it is not
      * truly a match because the port number for the entries
      * in the interface list are port 7001 and the port number
@@ -4044,12 +4044,12 @@ initInterfaceAddr_r(struct host *host, struct interfaceAddr *interf)
     for (i = 0; i < count; i++) {
 
         interface->interface[i].addr = interf->addr_in[i];
-       /* We store the port as 7001 because the addresses reported by 
+       /* We store the port as 7001 because the addresses reported by
         * TellMeAboutYourself and WhoAreYou RPCs are only valid if they
         * are coming from fully connected hosts (no NAT/PATs)
         */
        interface->interface[i].port = port7001;
-        interface->interface[i].valid = 
+        interface->interface[i].valid =
             (interf->addr_in[i] == myAddr && port7001 == myPort) ? 1 : 0;
     }
 
@@ -4060,10 +4060,10 @@ initInterfaceAddr_r(struct host *host, struct interfaceAddr *interf)
 
     if (LogLevel >= 125) {
        afsUUID_to_string(&interface->uuid, uuidstr, 127);
-       
+
        ViceLog(125, ("--- uuid %s\n", uuidstr));
        for (i = 0; i < host->interface->numberOfInterfaces; i++) {
-           ViceLog(125, ("--- alt address %s:%d\n", 
+           ViceLog(125, ("--- alt address %s:%d\n",
                          afs_inet_ntoa_r(host->interface->interface[i].addr, hoststr),
                          ntohs(host->interface->interface[i].port)));
        }
@@ -4075,7 +4075,7 @@ initInterfaceAddr_r(struct host *host, struct interfaceAddr *interf)
 /* deleted a HashChain structure for this address and host */
 /* returns 1 on success */
 int
-h_DeleteHostFromAddrHashTable_r(afs_uint32 addr, afs_uint16 port, 
+h_DeleteHostFromAddrHashTable_r(afs_uint32 addr, afs_uint16 port,
                                struct host *host)
 {
     char hoststr[16];
@@ -4084,7 +4084,7 @@ h_DeleteHostFromAddrHashTable_r(afs_uint32 addr, afs_uint16 port,
     if (addr == 0 && port == 0)
        return 1;
 
-    for (hp = &hostAddrHashTable[h_HashIndex(addr)]; (th = *hp); 
+    for (hp = &hostAddrHashTable[h_HashIndex(addr)]; (th = *hp);
         hp = &th->next) {
         assert(th->hostPtr);
         if (th->hostPtr == host && th->addr == addr && th->port == port) {
@@ -4096,9 +4096,9 @@ h_DeleteHostFromAddrHashTable_r(afs_uint32 addr, afs_uint16 port,
            return 1;
         }
     }
-    ViceLog(125, 
+    ViceLog(125,
            ("h_DeleteHostFromAddrHashTable_r: host %" AFS_PTR_FMT " (%s:%d) not found\n",
-            host, afs_inet_ntoa_r(host->host, hoststr), 
+            host, afs_inet_ntoa_r(host->host, hoststr),
             ntohs(host->port)));
     return 0;
 }
index d4b364c4ff65136b2a8ab790e427866ada60983b..4b660627aeb59c4907977d4773b9b5a0f0b577df 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -78,7 +78,7 @@ struct host {
     char hcpsfailed;           /* Retry the cps call next time */
     prlist hcps;               /* cps for hostip acls */
     afs_uint32 LastCall;       /* time of last call from host */
-    afs_uint32 ActiveCall;     /* time of any call but gettime, 
+    afs_uint32 ActiveCall;     /* time of any call but gettime,
                                    getstats and getcaps */
     struct client *FirstClient;        /* first connection from host */
     afs_uint32 cpsCall;                /* time of last cps call from this host */
index 227d6103886090ec62dd6b24f76f1eab85b0b803..6021a53e12dea792361b4e5ea65d5612abae72c2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index f57afc0aecae4ad5150d15a38de585d1ed0a422a..14419854ea2c438f01a606608ac4769e7116ba7a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ba83f5f2ee9e1023bf07266d2c8973f45de05c4e..ce5342a4754f5132a692dd9b35a9e3158798ec74 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -131,7 +131,7 @@ char fsync_wait[1];
 #endif /* AFS_PTHREAD_ENV */
 
 #ifdef AFS_NT40_ENV
-#define NT_OPEN_MAX    1024    /* This is an arbitrary no. we came up with for 
+#define NT_OPEN_MAX    1024    /* This is an arbitrary no. we came up with for
                                 * now. We hope this will be replaced by a more
                                 * intelligent estimate later. */
 #endif
@@ -162,9 +162,9 @@ int debuglevel = 0;
 int printBanner = 0;
 int rxJumbograms = 0;          /* default is to not send and receive jumbograms. */
 int rxBind = 0;                /* don't bind */
-int rxkadDisableDotCheck = 0;      /* disable check for dot in principal name */ 
+int rxkadDisableDotCheck = 0;      /* disable check for dot in principal name */
 int rxMaxMTU = -1;
-afs_int32 implicitAdminRights = PRSFS_LOOKUP;  /* The ADMINISTER right is 
+afs_int32 implicitAdminRights = PRSFS_LOOKUP;  /* The ADMINISTER right is
                                                 * already implied */
 afs_int32 readonlyServer = 0;
 
@@ -243,11 +243,11 @@ static void FlagMsg(void);
 #endif
 
 #ifndef AFS_NT40_ENV
-struct fs_state fs_state = 
-    { FS_MODE_NORMAL, 
-      0, 
-      0, 
-      0, 
+struct fs_state fs_state =
+    { FS_MODE_NORMAL,
+      0,
+      0,
+      0,
       0,
       { 1,1,1,1 },
       PTHREAD_COND_INITIALIZER,
@@ -843,7 +843,7 @@ ShutDownAndCore(int dopanic)
 
 #ifdef AFS_DEMAND_ATTACH_FS
     if (fs_state.options.fs_state_save) {
-       /* 
+       /*
         * demand attach fs
         * save fileserver state to disk */
 
@@ -1088,8 +1088,8 @@ ParseArgs(int argc, char *argv[])
     for (i = 1; i < argc; i++) {
        if (!strcmp(argv[i], "-d")) {
             if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for -d\n"); 
-               return -1; 
+               fprintf(stderr, "missing argument for -d\n");
+               return -1;
            }
            debuglevel = atoi(argv[++i]);
            LogLevel = debuglevel;
@@ -1097,8 +1097,8 @@ ParseArgs(int argc, char *argv[])
            printBanner = 1;
        } else if (!strcmp(argv[i], "-implicit")) {
             if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for -implicit\n"); 
-               return -1; 
+               fprintf(stderr, "missing argument for -implicit\n");
+               return -1;
            }
            implicitAdminRights = ParseRights(argv[++i]);
            if (implicitAdminRights < 0)
@@ -1114,8 +1114,8 @@ ParseArgs(int argc, char *argv[])
                max_fileserver_thread() - FILESERVER_HELPER_THREADS;
            Sawlwps = 1;
             if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for -p\n"); 
-               return -1; 
+               fprintf(stderr, "missing argument for -p\n");
+               return -1;
            }
            lwps = atoi(argv[++i]);
            if (lwps > lwps_max)
@@ -1125,22 +1125,22 @@ ParseArgs(int argc, char *argv[])
        } else if (!strcmp(argv[i], "-b")) {
            Sawbufs = 1;
             if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for -b\n"); 
-               return -1; 
+               fprintf(stderr, "missing argument for -b\n");
+               return -1;
            }
            buffs = atoi(argv[++i]);
        } else if (!strcmp(argv[i], "-l")) {
            Sawlarge = 1;
             if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for -l\n"); 
-               return -1; 
+               fprintf(stderr, "missing argument for -l\n");
+               return -1;
            }
            large = atoi(argv[++i]);
        } else if (!strcmp(argv[i], "-vc")) {
            SawVC = 1;
             if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for -vc\n"); 
-               return -1; 
+               fprintf(stderr, "missing argument for -vc\n");
+               return -1;
            }
            volcache = atoi(argv[++i]);
        } else if (!strcmp(argv[i], "-novbc")) {
@@ -1148,15 +1148,15 @@ ParseArgs(int argc, char *argv[])
        } else if (!strcmp(argv[i], "-rxpck")) {
            Sawrxpck = 1;
             if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for -rxpck\n"); 
-               return -1; 
+               fprintf(stderr, "missing argument for -rxpck\n");
+               return -1;
            }
            rxpackets = atoi(argv[++i]);
 #ifdef AFS_PTHREAD_ENV
        } else if (!strcmp(argv[i], "-vattachpar")) {
             if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for %s\n", argv[i]); 
-               return -1; 
+               fprintf(stderr, "missing argument for %s\n", argv[i]);
+               return -1;
            }
            vol_attach_threads = atoi(argv[++i]);
 #endif /* AFS_PTHREAD_ENV */
@@ -1185,8 +1185,8 @@ ParseArgs(int argc, char *argv[])
            fs_state.options.fs_state_restore = 0;
        } else if (!strcmp(argv[i], "-fs-state-verify")) {
             if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for %s\n", argv[i]); 
-               return -1; 
+               fprintf(stderr, "missing argument for %s\n", argv[i]);
+               return -1;
            }
            i++;
            if (!strcmp(argv[i], "none")) {
@@ -1204,28 +1204,28 @@ ParseArgs(int argc, char *argv[])
            }
        } else if (!strcmp(argv[i], "-vhashsize")) {
             if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for %s\n", argv[i]); 
-               return -1; 
+               fprintf(stderr, "missing argument for %s\n", argv[i]);
+               return -1;
            }
            VSetVolHashSize(atoi(argv[++i]));
        } else if (!strcmp(argv[i], "-vlrudisable")) {
            VLRU_SetOptions(VLRU_SET_ENABLED, 0);
        } else if (!strcmp(argv[i], "-vlruthresh")) {
             if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for %s\n", argv[i]); 
-               return -1; 
+               fprintf(stderr, "missing argument for %s\n", argv[i]);
+               return -1;
            }
            VLRU_SetOptions(VLRU_SET_THRESH, 60*atoi(argv[++i]));
        } else if (!strcmp(argv[i], "-vlruinterval")) {
             if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for %s\n", argv[i]); 
-               return -1; 
+               fprintf(stderr, "missing argument for %s\n", argv[i]);
+               return -1;
            }
            VLRU_SetOptions(VLRU_SET_INTERVAL, atoi(argv[++i]));
        } else if (!strcmp(argv[i], "-vlrumax")) {
             if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for %s\n", argv[i]); 
-               return -1; 
+               fprintf(stderr, "missing argument for %s\n", argv[i]);
+               return -1;
            }
            VLRU_SetOptions(VLRU_SET_MAX, atoi(argv[++i]));
        } else if (!strcmp(argv[i], "-unsafe-nosalvage")) {
@@ -1234,20 +1234,20 @@ ParseArgs(int argc, char *argv[])
        } else if (!strcmp(argv[i], "-s")) {
            Sawsmall = 1;
             if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for -s\n"); 
-               return -1; 
+               fprintf(stderr, "missing argument for -s\n");
+               return -1;
            }
            nSmallVns = atoi(argv[++i]);
        } else if (!strcmp(argv[i], "-abortthreshold")) {
             if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for -abortthreshold\n"); 
-               return -1; 
+               fprintf(stderr, "missing argument for -abortthreshold\n");
+               return -1;
            }
            abort_threshold = atoi(argv[++i]);
        } else if (!strcmp(argv[i], "-k")) {
             if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for -k\n"); 
-               return -1; 
+               fprintf(stderr, "missing argument for -k\n");
+               return -1;
            }
            stack = atoi(argv[++i]);
        }
@@ -1258,30 +1258,30 @@ ParseArgs(int argc, char *argv[])
 #endif
        else if (!strcmp(argv[i], "-spare")) {
             if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for -spare\n"); 
-               return -1; 
+               fprintf(stderr, "missing argument for -spare\n");
+               return -1;
            }
            BlocksSpare = atoi(argv[++i]);
            SawSpare = 1;
        } else if (!strcmp(argv[i], "-pctspare")) {
             if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for -pctspare\n"); 
-               return -1; 
+               fprintf(stderr, "missing argument for -pctspare\n");
+               return -1;
            }
            PctSpare = atoi(argv[++i]);
            BlocksSpare = 0;    /* has non-zero default */
            SawPctSpare = 1;
        } else if (!strcmp(argv[i], "-w")) {
             if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for -w\n"); 
-               return -1; 
+               fprintf(stderr, "missing argument for -w\n");
+               return -1;
            }
            fiveminutes = atoi(argv[++i]);
        } else if (!strcmp(argv[i], "-hr")) {
            int hr;
             if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for -hr\n"); 
-               return -1; 
+               fprintf(stderr, "missing argument for -hr\n");
+               return -1;
            }
            hr = atoi(argv[++i]);
            if ((hr < 1) || (hr > 36)) {
@@ -1298,8 +1298,8 @@ ParseArgs(int argc, char *argv[])
        else if (!strcmp(argv[i], "-cb")) {
            Sawcbs = 1;
             if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for -cb\n"); 
-               return -1; 
+               fprintf(stderr, "missing argument for -cb\n");
+               return -1;
            }
            numberofcbs = atoi(argv[++i]);
            if ((numberofcbs < 10000) || (numberofcbs > 2147483647)) {
@@ -1311,8 +1311,8 @@ ParseArgs(int argc, char *argv[])
        } else if (!strcmp(argv[i], "-busyat")) {
            Sawbusy = 1;
            if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for -busyat\n"); 
-               return -1; 
+               fprintf(stderr, "missing argument for -busyat\n");
+               return -1;
            }
            busy_threshold = atoi(argv[++i]);
            if (busy_threshold < 10) {
@@ -1327,8 +1327,8 @@ ParseArgs(int argc, char *argv[])
        else if (!strcmp(argv[i], "-m")) {
            extern int aixlow_water;
            if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for -m\n"); 
-               return -1; 
+               fprintf(stderr, "missing argument for -m\n");
+               return -1;
            }
            aixlow_water = atoi(argv[++i]);
            if ((aixlow_water < 0) || (aixlow_water > 30)) {
@@ -1348,14 +1348,14 @@ ParseArgs(int argc, char *argv[])
            rxkadDisableDotCheck = 1;
        } else if (!strcmp(argv[i], "-rxmaxmtu")) {
            if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for -rxmaxmtu\n"); 
-               return -1; 
+               fprintf(stderr, "missing argument for -rxmaxmtu\n");
+               return -1;
            }
            rxMaxMTU = atoi(argv[++i]);
-           if ((rxMaxMTU < RX_MIN_PACKET_SIZE) || 
+           if ((rxMaxMTU < RX_MIN_PACKET_SIZE) ||
                (rxMaxMTU > RX_MAX_PACKET_DATA_SIZE)) {
                printf("rxMaxMTU %d%% invalid; must be between %d-%" AFS_SIZET_FMT "\n",
-                      rxMaxMTU, RX_MIN_PACKET_SIZE, 
+                      rxMaxMTU, RX_MIN_PACKET_SIZE,
                       RX_MAX_PACKET_DATA_SIZE);
                return -1;
                }
@@ -1363,8 +1363,8 @@ ParseArgs(int argc, char *argv[])
            extern char local_realms[AFS_NUM_LREALMS][AFS_REALM_SZ];
            extern int  num_lrealms;
            if ((i + 1) >= argc) {
-               fprintf(stderr, "missing argument for -realm\n"); 
-               return -1; 
+               fprintf(stderr, "missing argument for -realm\n");
+               return -1;
            }
            if (strlen(argv[++i]) >= AFS_REALM_SZ) {
                printf
@@ -1372,7 +1372,7 @@ ParseArgs(int argc, char *argv[])
                     AFS_REALM_SZ);
                return -1;
            }
-           if (num_lrealms == -1) 
+           if (num_lrealms == -1)
                num_lrealms = 0;
            if (num_lrealms >= AFS_NUM_LREALMS) {
                printf
@@ -1433,7 +1433,7 @@ ParseArgs(int argc, char *argv[])
        else if (strcmp(argv[i], "-mrafslogs") == 0) {
            /* set syslog logging flag */
            mrafsStyleLogs = 1;
-       } 
+       }
        else if (strcmp(argv[i], "-saneacls") == 0) {
            saneacls = 1;
        }
@@ -1810,10 +1810,10 @@ WriteSysIdFile(void)
 }
 
 /*
- * defect 10966 
+ * defect 10966
  * This routine sets up the buffers for the VL_RegisterAddrs RPC. All addresses
  * in FS_HostAddrs[] are in NBO, while the RPC treats them as a "blob" of data
- * and so we need to convert each of them into HBO which is what the extra 
+ * and so we need to convert each of them into HBO which is what the extra
  * array called FS_HostAddrs_HBO is used here.
  */
 static afs_int32
@@ -1861,8 +1861,8 @@ SetupVL(void)
 
     if (AFSDIR_SERVER_NETRESTRICT_FILEPATH || AFSDIR_SERVER_NETINFO_FILEPATH) {
        /*
-        * Find addresses we are supposed to register as per the netrestrict 
-        * and netinfo files (/usr/afs/local/NetInfo and 
+        * Find addresses we are supposed to register as per the netrestrict
+        * and netinfo files (/usr/afs/local/NetInfo and
         * /usr/afs/local/NetRestict)
         */
        char reason[1024];
@@ -1882,7 +1882,7 @@ SetupVL(void)
 
     if (FS_HostAddr_cnt == 1 && rxBind == 1)
        code = FS_HostAddrs[0];
-    else 
+    else
        code = htonl(INADDR_ANY);
     return code;
 }
@@ -2040,8 +2040,8 @@ main(int argc, char *argv[])
 #endif
     CheckAdminName();
 
-    /* if we support more than 16 threads, then we better have the ability 
-     ** to keep open a large number of files simultaneously 
+    /* if we support more than 16 threads, then we better have the ability
+     ** to keep open a large number of files simultaneously
      */
 #if    defined(AFS_AIX_ENV) && !defined(AFS_AIX42_ENV)
     curLimit = OPEN_MAX;       /* for pre AIX 4.2 systems */
@@ -2136,7 +2136,7 @@ main(int argc, char *argv[])
     afsconf_BuildServerSecurityObjects(confDir, AFSCONF_SEC_OBJS_RXKAD_CRYPT,
                                       &securityClasses, &numClasses);
 
-    tservice = rx_NewServiceHost(rx_bindhost,  /* port */ 0, /* service id */ 
+    tservice = rx_NewServiceHost(rx_bindhost,  /* port */ 0, /* service id */
                                 1,     /*service name */
                                 "AFS",
                                 securityClasses, numClasses,
@@ -2207,7 +2207,7 @@ main(int argc, char *argv[])
 #endif
 
 #if !defined(AFS_DEMAND_ATTACH_FS)
-    /* 
+    /*
      * For DAFS, we do not start the Rx server threads until after
      * the volume package is initialized, and fileserver state is
      * restored.  This is necessary in order to keep host and callback
@@ -2220,11 +2220,11 @@ main(int argc, char *argv[])
 #endif
 
     /* we ensure that there is enough space in the vnode buffer to satisfy
-     ** requests from all concurrent threads. 
+     ** requests from all concurrent threads.
      ** the maximum number of vnodes used by a single thread at any one time
      ** is three ( "link" uses three vnodes simultaneously, one vLarge and
      ** two vSmall for linking files and two vLarge and one vSmall for linking
-     ** files  ) : dhruba 
+     ** files  ) : dhruba
      */
     minVnodesRequired = 2 * lwps + 1;
     if (minVnodesRequired > nSmallVns) {
@@ -2240,7 +2240,7 @@ main(int argc, char *argv[])
 
     /* We now do this after getting the listener up and running, so that client
      * connections don't timeout (maybe) if a file server is restarted, since it
-     * will be available "real soon now".  Worry about whether we can satisfy the 
+     * will be available "real soon now".  Worry about whether we can satisfy the
      * calls in the volume package itself.
      */
     VOptDefaults(fileServer, &opts);
index f1b53c5acf34f29895d68f60b5b803dbcb604bcd..a2e64dbb56ff483f7e2a7918274512afe1f7a525 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -17,7 +17,7 @@
 /*
  * Revision 2.2  90/08/29  15:12:11
  * Cleanups.
- * 
+ *
  * Revision 2.1  90/08/07  19:46:16
  * Start with clean version to sync test and dev trees.
  * */
@@ -226,7 +226,7 @@ struct fs_state {
     volatile byte FsyncCheckLWP_tranquil;      /* fsync check thread is shutdown or sleeping */
     volatile byte salvsync_fatal_error;        /* fatal error with salvsync comm */
 
-    /* some command-line options we use in 
+    /* some command-line options we use in
      * various places
      *
      * these fields are immutable once we
index 327af467aa994c86de206871bf44d63fbfa4b06a..55eaff48b2737aa6f03422fec2f85dfa0f95ead8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 7c5387faad58de6383398d86a17d52adf4526a54..320a9aa1e491056a322adc9dff57c5ce020c8567 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -210,7 +210,7 @@ handleit(struct cmd_syndesc *as, void *arock)
        exit(1);
     }
 
-    /* Because we know that all the vldb entries are the same size and type we 
+    /* Because we know that all the vldb entries are the same size and type we
      * can just read them sequentially, fiddle with the fields, and write
      * them out again.  If we invent a vldb format that has different
      * types of entries, then we're going to have to invent new logic for
@@ -377,7 +377,7 @@ read_mhentries(afs_uint32 mh_addr, int oldfd)
     if (!mh_addr)
        return;
 
-    /* Check if the first extent block is beyond eof. If 
+    /* Check if the first extent block is beyond eof. If
      * it is, it's not real.
      */
     if (mh_addr > dbsize - VL_ADDREXTBLK_SIZE)
@@ -419,7 +419,7 @@ read_mhentries(afs_uint32 mh_addr, int oldfd)
 
        sit = ntohl(base[0]->ex_contaddrs[j]);
 
-       /* Every time we allocate a new extent block, it is allocated after 
+       /* Every time we allocate a new extent block, it is allocated after
         * the previous ones. But it must be before the EOF.
         */
        if ((sit < (a + VL_ADDREXTBLK_SIZE))
@@ -461,7 +461,7 @@ read_mhentries(afs_uint32 mh_addr, int oldfd)
  * extent blocks and verify that the pointers are good. And fix.
  * Then convert the multihomed addresses to single address if we
  * are converting back from version 4.
- * 
+ *
  * Before this can be called, the routine read_mhentries must be called.
  */
 void
@@ -525,7 +525,7 @@ convert_mhentries(int oldfd, int newfd, struct vlheader_2 *header,
        }
     }
 
-    /* If we are converting from version 4 to version 3, then 
+    /* If we are converting from version 4 to version 3, then
      * translate any multihome ptrs in the IpMappedAddr array
      * to true IP addresses.
      */
@@ -734,7 +734,7 @@ convert_header(int ofd, int fd, int fromv, int tov, void *fromaddr,
 
 /* Convert an address pointer to a vlentry from version 4 to version 3.
  * This involves checking if the address is after any of the four
- * MH block and if it is, subtract the size of the MH block. 
+ * MH block and if it is, subtract the size of the MH block.
  *
  * In going from version 4 to 3, the mh blocks go away and all entries
  * move up in their place. The adresses then need to be updated.
@@ -760,7 +760,7 @@ Conv4to3(afs_uint32 addr)
     return (raddr);
 }
 
-/* this only works because the vlheader struct is essentially the same 
+/* this only works because the vlheader struct is essentially the same
  * from version 1 to version 2 -- that is, the first bunch of fields
  * aren't any more or any larger, so they match up pretty well.
 */
index fc9a8466cc9569298ea732808a33c9452458135f..3131d7f29e82849db7f2218e6745c2bb3f3d43c2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ebdedb2d2db48ecb5dae08c1efca501007b713ba..2bf0c838d0702a29457eee1ae9486f83d47c7171 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index ea17b303d97558d1b0ab6b952819dfa125a7cabb..c6557dabfd8e30f22221811156c9499ec94a7e58 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 2000, International Business Machines Corporation and others.
 # All Rights Reserved.
-# 
+#
 # This software has been released under the terms of the IBM Public
 # License.  For details, see the LICENSE file in the top-level source
 # directory or online at http://www.openafs.org/dl/license10.html
index cb658624d7e8c0f879fdc33ad12e0b576ecc62b9..b8112fddfd8bdd3e8af4f9f9028f3816a1e40c97 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 3614362f8903a499dd872e57f2743bd439ce9d8f..e327a1bd0f9df1f2b8058d8bee1adde3424a7023 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -154,7 +154,7 @@ afs_int32
 vl_Initialize(int auth, char *confDir, int server, char *cellp)
 {
     return ugen_ClientInit(auth?0:1, confDir, cellp, 0,
-                         &cstruct, NULL, "vl_Initialize", rxkad_clear, 
+                         &cstruct, NULL, "vl_Initialize", rxkad_clear,
                          MAXSERVERS, AFSCONF_VLDBSERVICE, 50, server,
                          htons(AFSCONF_VLDBPORT), USER_SERVICE_ID);
 }
index c3516966306946eb092e2b78d530c8f9524bc57c..e141feb663360950fada7ab826f219ae40db6396 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -77,9 +77,9 @@ int listentries, listservers, listheader, listuheader, verbose, quiet;
 int fix = 0;
 int passes = 0;
 /* if quiet, don't send anything to stdout */
-int quiet = 0; 
+int quiet = 0;
 /*  error level. 0 = no error, 1 = warning, 2 = error, 4 = fatal */
-int error_level  = 0; 
+int error_level  = 0;
 
 struct er {
     long addr;
@@ -89,28 +89,28 @@ afs_int32 maxentries;
 int serveraddrs[MAXSERVERID + 2];
 
 /*  Used to control what goes to stdout based on quiet flag */
-void 
+void
 quiet_println(const char *fmt,...) {
-    va_list args;                                             
+    va_list args;
     if (!quiet) {
-        va_start(args, fmt);                                      
-        vfprintf(stdout, fmt, args);                              
-        va_end(args);                                             
+        va_start(args, fmt);
+        vfprintf(stdout, fmt, args);
+        va_end(args);
     }
 }
 
 /*  Used to set the error level and ship messages to stderr */
-void                                                   
-log_error(int eval, const char *fmt, ...)                          
-{                                                             
-    va_list args;                                             
+void
+log_error(int eval, const char *fmt, ...)
+{
+    va_list args;
     if (error_level < eval) error_level  = eval ;  /*  bump up the severity */
-    va_start(args, fmt);                                      
-    vfprintf(stderr, fmt, args);                              
-    va_end(args);                                             
+    va_start(args, fmt);
+    vfprintf(stderr, fmt, args);
+    va_end(args);
 
     if (error_level  == VLDB_CHECK_FATAL) exit(VLDB_CHECK_FATAL);
-}  
+}
 
 
 #if 0
@@ -178,9 +178,9 @@ vldbio(int position, void *buffer, int size, int rdwr)
        return (-1);
     }
 
-    if (rdwr == 1) 
+    if (rdwr == 1)
        r = write(fd, buffer, size);
-    else 
+    else
        r = read(fd, buffer, size);
 
     if (r != size) {
@@ -597,7 +597,7 @@ ReadAllEntries(struct vlheader *header)
                    continue;
                }
                if (e) {
-                  log_error 
+                  log_error
                        (VLDB_CHECK_ERROR,"VLDB entry '%s' contains an unknown RW/RO index serverFlag\n",
                         vlentry.name);
                    e = 0;
@@ -686,12 +686,12 @@ FollowNameHash(struct vlheader *header)
             * checked it either above or below
             */
            if (record[rindex].addr != addr && record[rindex].addr) {
-               log_error       
+               log_error
                    (VLDB_CHECK_ERROR,"INTERNAL VLDB_CHECK_ERROR: addresses %ld and %u use same record slot %d\n",
                     record[rindex].addr, addr, rindex);
            }
            if (record[rindex].type & NH) {
-               log_error       
+               log_error
                    (VLDB_CHECK_ERROR,"Name Hash %d: Bad entry '%s': Already in the name hash\n",
                     i, vlentry.name);
                record[rindex].type |= MULTN;
@@ -713,7 +713,7 @@ FollowNameHash(struct vlheader *header)
 
            /* Hash the name and check if in correct hash table */
            if (NameHash(vlentry.name) != i) {
-               log_error       
+               log_error
                    (VLDB_CHECK_ERROR,"Name Hash %d: Bad entry '%s': Incorrect name hash chain (should be in %d)\n",
                     i, vlentry.name, NameHash(vlentry.name));
                record[rindex].type |= MULTN;
@@ -802,7 +802,7 @@ FollowIdHash(struct vlheader *header)
 
                /* Hash the id and check if in correct hash table */
                if (IdHash(vlentry.volumeId[i]) != j) {
-                  log_error 
+                  log_error
                        (VLDB_CHECK_ERROR,"%s Id Hash %d: Bad entry '%s': Incorrect Id hash chain (should be in %d)\n",
                         vtype(i), j, vlentry.name,
                         IdHash(vlentry.volumeId[i]));
@@ -842,7 +842,7 @@ FollowFreeChain(struct vlheader *header)
         addr = vlentry.nextIdHash[0]) {
        readentry(addr, &vlentry, &type);
        if (type != FR) {
-          log_error 
+          log_error
                (VLDB_CHECK_ERROR,"Free Chain %d: Bad entry at %u: Not a valid free vlentry (0x%x)\n",
                 count, addr, type);
            continue;
@@ -850,7 +850,7 @@ FollowFreeChain(struct vlheader *header)
 
        rindex = addr / sizeof(vlentry);
        if (record[rindex].addr != addr && record[rindex].addr) {
-          log_error 
+          log_error
                (VLDB_CHECK_ERROR,"INTERNAL VLDB_CHECK_ERROR: addresses %u and %ld use same record slot %d\n",
                 record[rindex].addr, addr, rindex);
        }
@@ -872,16 +872,16 @@ FollowFreeChain(struct vlheader *header)
  * Read each multihomed block and mark it as found in the record.
  * Read each entry in each multihomed block and mark the serveraddrs
  * array with the number of ip addresses found for this entry.
- * 
+ *
  * Then read the IpMappedAddr array in the header.
  * Verify that multihomed entries base and index are valid and points to
  * a good multhomed entry.
  * Mark the serveraddrs array with 1 ip address for regular entries.
- * 
- * By the end, the severaddrs array will have a 0 if the entry has no 
+ *
+ * By the end, the severaddrs array will have a 0 if the entry has no
  * IP addresses in it or the count of the number of IP addresses.
  *
- * The code does not verify if there are duplicate IP addresses in the 
+ * The code does not verify if there are duplicate IP addresses in the
  * list. The vlserver does this when a fileserver registeres itself.
  */
 void
@@ -903,12 +903,12 @@ CheckIpAddrs(struct vlheader *header)
        quiet_println("Check Multihomed blocks\n");
 
     if (header->SIT) {
-       /* Read the first MH block and from it, gather the 
+       /* Read the first MH block and from it, gather the
         * addresses of all the mh blocks.
         */
        readMH(header->SIT, MHblock);
        if (MHblock->ex_flags != VLCONTBLOCK) {
-          log_error 
+          log_error
                (VLDB_CHECK_ERROR,"Multihomed Block 0: Bad entry at %u: Not a valid multihomed block\n",
                 header->SIT);
        }
@@ -918,7 +918,7 @@ CheckIpAddrs(struct vlheader *header)
        }
 
        if (header->SIT != caddrs[0]) {
-          log_error 
+          log_error
                (VLDB_CHECK_ERROR,"MH block does not point to self %u in header, %u in block\n",
                 header->SIT, caddrs[0]);
        }
@@ -930,19 +930,19 @@ CheckIpAddrs(struct vlheader *header)
 
            readMH(caddrs[i], MHblock);
            if (MHblock->ex_flags != VLCONTBLOCK) {
-               log_error       
+               log_error
                    (VLDB_CHECK_ERROR,"Multihomed Block 0: Bad entry at %u: Not a valid multihomed block\n",
                     header->SIT);
            }
 
            rindex = caddrs[i] / sizeof(vlentry);
            if (record[rindex].addr != caddrs[i] && record[rindex].addr) {
-               log_error       
+               log_error
                    (VLDB_CHECK_ERROR,"INTERNAL VLDB_CHECK_ERROR: addresses %u and %u use same record slot %d\n",
                     record[rindex].addr, caddrs[i], rindex);
            }
            if (record[rindex].type & FRC) {
-               log_error       
+               log_error
                    (VLDB_CHECK_ERROR,"MH Blocks Chain %d: Bad entry at %ld: Already a MH block\n",
                     i, record[rindex].addr);
                break;
@@ -951,7 +951,7 @@ CheckIpAddrs(struct vlheader *header)
 
            mhblocks++;
 
-           /* Read each entry in a multihomed block. 
+           /* Read each entry in a multihomed block.
             * Find the pointer to the entry in the IpMappedAddr array and
             * verify that the entry is good (has IP addresses in it).
             */
@@ -978,7 +978,7 @@ CheckIpAddrs(struct vlheader *header)
 
                if (memcmp(&e->ex_hostuuid, &nulluuid, sizeof(afsUUID)) == 0) {
                    if (ipindex != -1) {
-                       log_error       
+                       log_error
                            (VLDB_CHECK_ERROR,"Server Addrs index %d references null MH block %d, index %d\n",
                             ipindex, i, j);
                        serveraddrs[ipindex] = 0;       /* avoids printing 2nd error below */
@@ -997,7 +997,7 @@ CheckIpAddrs(struct vlheader *header)
                if (ipaddrs) {
                    mhentries++;
                    if (ipindex == -1) {
-                       log_error       
+                       log_error
                            (VLDB_CHECK_ERROR,"MH block %d, index %d: Not referenced by server addrs\n",
                             i, j);
                    } else {
@@ -1040,16 +1040,16 @@ CheckIpAddrs(struct vlheader *header)
                mhentries++;
                if (((header->IpMappedAddr[i] & 0x00ff0000) >> 16) >
                    VL_MAX_ADDREXTBLKS)
-                  log_error 
+                  log_error
                        (VLDB_CHECK_ERROR,"IP Addr for entry %d: Multihome block is bad (%d)\n",
                         i, ((header->IpMappedAddr[i] & 0x00ff0000) >> 16));
                if (((header->IpMappedAddr[i] & 0x0000ffff) > VL_MHSRV_PERBLK)
                    || ((header->IpMappedAddr[i] & 0x0000ffff) < 1))
-                   log_error 
+                   log_error
                        (VLDB_CHECK_ERROR,"IP Addr for entry %d: Multihome index is bad (%d)\n",
                         i, (header->IpMappedAddr[i] & 0x0000ffff));
                if (serveraddrs[i] == -1) {
-                   log_error 
+                   log_error
                        (VLDB_CHECK_WARNING,"warning: IP Addr for entry %d: Multihome entry has no ip addresses\n",
                         i);
                    serveraddrs[i] = 0;
@@ -1213,7 +1213,7 @@ WorkerBee(struct cmd_syndesc *as, void *arock)
     FollowFreeChain(&header);
 
     /* Now check the record we have been keeping for inconsistencies
-     * For valid vlentries, also check that the server we point to is 
+     * For valid vlentries, also check that the server we point to is
      * valid (the serveraddrs array).
      */
     if (verbose)
@@ -1366,39 +1366,39 @@ WorkerBee(struct cmd_syndesc *as, void *arock)
            for (j = 0; j < NMAXNSERVERS; j++) {
                if ((vlentry.serverNumber[j] != 255)
                    && (serveraddrs[vlentry.serverNumber[j]] == 0)) {
-                  log_error 
+                  log_error
                        (VLDB_CHECK_ERROR,"Volume '%s', index %d points to empty server entry %d\n",
                         vlentry.name, j, vlentry.serverNumber[j]);
                }
            }
-       
+
            if (record[i].type & 0xffff0f00)
-               log_error       
+               log_error
                    (VLDB_CHECK_ERROR,"Volume '%s' id %u also found on other chains (0x%x)\n",
                     vlentry.name, vlentry.volumeId[0], record[i].type);
-           
+
            /* A free entry */
        } else if (record[i].type & FR) {
            if (!(record[i].type & FRC))
                log_error(VLDB_CHECK_ERROR,"Free vlentry at %ld not on free chain\n",
                       record[i].addr);
-           
+
            if (record[i].type & 0xfffffdf0)
-               log_error       
+               log_error
                    (VLDB_CHECK_ERROR,"Free vlentry at %ld also found on other chains (0x%x)\n",
                     record[i].addr, record[i].type);
-           
+
            /* A multihomed entry */
        } else if (record[i].type & MH) {
            if (!(record[i].type & MHC))
                log_error(VLDB_CHECK_ERROR,"Multihomed block at %ld is orphaned\n",
                       record[i].addr);
-           
+
            if (record[i].type & 0xfffffef0)
-               log_error       
+               log_error
                    (VLDB_CHECK_ERROR,"Multihomed block at %ld also found on other chains (0x%x)\n",
                     record[i].addr, record[i].type);
-           
+
        } else {
            log_error(VLDB_CHECK_ERROR,"Unknown entry type at %u (0x%x)\n", record[i].addr,
                   record[i].type);
@@ -1423,7 +1423,7 @@ WorkerBee(struct cmd_syndesc *as, void *arock)
        if (record[i].type & VL) {
            readentry(record[i].addr, &vlentry, &type);
            if (!(record[i].type & REFN)) {
-               log_error(VLDB_CHECK_ERROR,"%d: Record %ld (type 0x%x) not in a name chain\n", i, 
+               log_error(VLDB_CHECK_ERROR,"%d: Record %ld (type 0x%x) not in a name chain\n", i,
                       record[i].addr, record[i].type);
            }
            if (vlentry.volumeId[0] && !(record[i].type & REFRW)) {
@@ -1431,11 +1431,11 @@ WorkerBee(struct cmd_syndesc *as, void *arock)
                       record[i].addr, record[i].type);
            }
            if (vlentry.volumeId[1] && !(record[i].type & REFRO)) {
-               log_error(VLDB_CHECK_ERROR,"%d: Record %ld (type 0x%x) not in a RO chain\n", i, 
+               log_error(VLDB_CHECK_ERROR,"%d: Record %ld (type 0x%x) not in a RO chain\n", i,
                       record[i].addr, record[i].type);
            }
            if (vlentry.volumeId[2] && !(record[i].type & REFBK)) {
-               log_error(VLDB_CHECK_ERROR,"%d: Record %ld (type 0x%x) not in a BK chain\n", i, 
+               log_error(VLDB_CHECK_ERROR,"%d: Record %ld (type 0x%x) not in a BK chain\n", i,
                       record[i].addr, record[i].type);
            }
            if (fix) {
index 4d81cee7ab31c45ab6a05d75e8066ff91c0de500..d97e092c481e0f2470866131b4965da415b13cd8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 700d603d372d27bc019f5e17aefca885f475b3bd..55d5e6f9b2d0432eb7022754b874ee0cc72d24c0 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -1566,7 +1566,7 @@ SVL_ListAttributesN2(struct rx_call *rxcall,
                    namematchRWBK = (thismatch ? 1 : 2);
                }
 
-               /* Match with the RO volume name. Compare once and 
+               /* Match with the RO volume name. Compare once and
                 * remember results in namematchRO. Note that this will
                 * pick up entries marked NEWREPSITEs and DONTUSE.
                 */
@@ -2192,10 +2192,10 @@ SVL_RegisterAddrs(struct rx_call *rxcall, afsUUID *uuidp, afs_int32 spare1,
        if (count == 1)
            VLog(0, ("   You must 'vos changeaddr' this other server entry\n"));
        else
-           VLog(0, 
+           VLog(0,
                ("   You must 'vos changeaddr' these other server entries\n"));
        if (foundUuidEntry)
-           VLog(0, 
+           VLog(0,
                ("   and/or remove the sysid file from the registering fileserver\n"));
        VLog(0, ("   before the fileserver can be registered in the VLDB.\n"));
 
@@ -2238,7 +2238,7 @@ SVL_RegisterAddrs(struct rx_call *rxcall, afsUUID *uuidp, afs_int32 spare1,
     VLog(0, ("]\n"));
 
     if (foundUuidEntry) {
-       VLog(0, 
+       VLog(0,
            ("   It will replace the following existing entry in the VLDB (same uuid):\n"));
        VLog(0, ("      entry %d: [", FoundUuid));
        for (k = 0; k < VL_MAXIPADDRS_PERMH; k++) {
@@ -2264,7 +2264,7 @@ SVL_RegisterAddrs(struct rx_call *rxcall, afsUUID *uuidp, afs_int32 spare1,
            index = HostAddress[ReplaceEntry] & 0x0000ffff;
            exp = &ex_addr[fbase][index];
 
-           VLog(0, 
+           VLog(0,
                ("   It will replace the following existing entry in the VLDB (new uuid):\n"));
            VLog(0, ("      entry %d: [", ReplaceEntry));
            for (k = 0; k < VL_MAXIPADDRS_PERMH; k++) {
@@ -2276,7 +2276,7 @@ SVL_RegisterAddrs(struct rx_call *rxcall, afsUUID *uuidp, afs_int32 spare1,
            }
            VLog(0, ("]\n"));
        } else {
-           /* Not a mh entry. So we have to create a new mh entry and 
+           /* Not a mh entry. So we have to create a new mh entry and
             * put it on the ReplaceEntry slot of the HostAddress array.
             */
            VLog(0, ("   It will replace existing entry %d, ", ReplaceEntry));
@@ -2326,7 +2326,7 @@ SVL_RegisterAddrs(struct rx_call *rxcall, afsUUID *uuidp, afs_int32 spare1,
        return VL_IO;
     }
 
-    /* Remove any common addresses from other mh entres. We know these entries 
+    /* Remove any common addresses from other mh entres. We know these entries
      * are being changed and not replaced so they are mh entries.
      */
     m = 0;
@@ -2342,7 +2342,7 @@ SVL_RegisterAddrs(struct rx_call *rxcall, afsUUID *uuidp, afs_int32 spare1,
        tex = &ex_addr[fbase][index];
 
        if (++m == 1)
-           VLog(0, 
+           VLog(0,
                ("   The following existing entries in the VLDB will be updated:\n"));
 
        VLog(0, ("      entry %d: [", WillChange[i]));
@@ -2536,7 +2536,7 @@ put_attributeentry(struct vldbentry **Vldbentry,
            return VL_SIZEEXCEEDED;     /* no growing if smallMem defined */
 
        /* Allocate another set of memory; each time allocate twice as
-        * many blocks as the last time. When we reach VLDBALLOCLIMIT, 
+        * many blocks as the last time. When we reach VLDBALLOCLIMIT,
         * then grow in increments of VLDBALLOCINCR.
         */
        allo = (*alloccnt > VLDBALLOCLIMIT) ? VLDBALLOCINCR : *alloccnt;
@@ -2577,7 +2577,7 @@ put_nattributeentry(struct nvldbentry **Vldbentry,
            return VL_SIZEEXCEEDED;     /* no growing if smallMem defined */
 
        /* Allocate another set of memory; each time allocate twice as
-        * many blocks as the last time. When we reach VLDBALLOCLIMIT, 
+        * many blocks as the last time. When we reach VLDBALLOCLIMIT,
         * then grow in increments of VLDBALLOCINCR.
         */
        allo = (*alloccnt > VLDBALLOCLIMIT) ? VLDBALLOCINCR : *alloccnt;
index a741c323df088efdccbfb0babd02ec43fbdabd35..e0982f9cacefb00c295218e60689a382cec0ccbc 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -148,8 +148,8 @@ main(int argc, char **argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
@@ -177,8 +177,8 @@ main(int argc, char **argv)
            }
        } else if (strcmp(argv[index], "-d") == 0) {
            if ((index + 1) >= argc) {
-               fprintf(stderr, "missing argument for -d\n"); 
-               return -1; 
+               fprintf(stderr, "missing argument for -d\n");
+               return -1;
            }
            debuglevel = atoi(argv[++index]);
            LogLevel = debuglevel;
@@ -192,14 +192,14 @@ main(int argc, char **argv)
            rxkadDisableDotCheck = 1;
        } else if (!strcmp(argv[index], "-rxmaxmtu")) {
            if ((index + 1) >= argc) {
-               fprintf(stderr, "missing argument for -rxmaxmtu\n"); 
-               return -1; 
+               fprintf(stderr, "missing argument for -rxmaxmtu\n");
+               return -1;
            }
            rxMaxMTU = atoi(argv[++index]);
-           if ((rxMaxMTU < RX_MIN_PACKET_SIZE) || 
+           if ((rxMaxMTU < RX_MIN_PACKET_SIZE) ||
                (rxMaxMTU > RX_MAX_PACKET_DATA_SIZE)) {
                printf("rxMaxMTU %d invalid; must be between %d-%" AFS_SIZET_FMT "\n",
-                      rxMaxMTU, RX_MIN_PACKET_SIZE, 
+                      rxMaxMTU, RX_MIN_PACKET_SIZE,
                       RX_MAX_PACKET_DATA_SIZE);
                return -1;
            }
@@ -323,15 +323,15 @@ main(int argc, char **argv)
     if (rxBind) {
        afs_int32 ccode;
 #ifndef AFS_NT40_ENV
-        if (AFSDIR_SERVER_NETRESTRICT_FILEPATH || 
+        if (AFSDIR_SERVER_NETRESTRICT_FILEPATH ||
             AFSDIR_SERVER_NETINFO_FILEPATH) {
             char reason[1024];
             ccode = parseNetFiles(SHostAddrs, NULL, NULL,
                                  ADDRSPERSITE, reason,
                                  AFSDIR_SERVER_NETINFO_FILEPATH,
                                  AFSDIR_SERVER_NETRESTRICT_FILEPATH);
-        } else 
-#endif 
+        } else
+#endif
        {
             ccode = rx_getAllAddr(SHostAddrs, ADDRSPERSITE);
         }
index 01603f50c706166c64f9ecd0bd4a04e9ed26a54a..b16d11ae5a71c7ecfe4afb91c327e71427174fb8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index a7725d650ebe2d1ec831ff3ad0295c808f83cdc2..b5ad49a101e1c4569ce42bc5f8f44bb25a6b1158 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 9f4aedd85ee0d0f031ef68c7c136f085e752b916..405176a99c73e8e992ddc2ccabff9bdb816a327e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -271,7 +271,7 @@ DoCloneIndex(Volume * rwvp, Volume * clvp, VnodeClass class, int reclone)
            /* If a directory, mark vnode in old volume as cloned */
            if ((rwvnode->type == vDirectory) && ReadWriteOriginal) {
 #ifdef DVINC
-               /* 
+               /*
                 * It is my firmly held belief that immediately after
                 * copy-on-write, the two directories can be identical.
                 * If the new copy is changed (presumably, that is the very
index 6d6625f6b6dc8059105ef0e29f6a7c605bc05b3c..0e483772db3a270431ee4f668a076cdd50424390 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 3f582140f7449520a6ea7ac61069e3a528d6a9cf..a530c21335a570508a5959e1d9ac2e94cd1ef94c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2006-2008, Sine Nomine Associates and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -294,7 +294,7 @@ SYNC_ask(SYNC_client_state * state, SYNC_command * com, SYNC_response * res)
 
     now = FT_ApproxTime();
     timeout = now + state->hard_timeout;
-    for (tries = 0; 
+    for (tries = 0;
         (tries <= state->retry_limit) && (now <= timeout);
         tries++, now = FT_ApproxTime()) {
        code = SYNC_ask_internal(state, com, res);
@@ -311,9 +311,9 @@ SYNC_ask(SYNC_client_state * state, SYNC_command * com, SYNC_response * res)
            SYNC_reconnect(state);
            /* try again */
        } else {
-           /* 
-            * unknown (probably protocol-specific) response code, pass it up to 
-            * the caller, and let them deal with it 
+           /*
+            * unknown (probably protocol-specific) response code, pass it up to
+            * the caller, and let them deal with it
             */
            break;
        }
@@ -321,7 +321,7 @@ SYNC_ask(SYNC_client_state * state, SYNC_command * com, SYNC_response * res)
 
     if (code == SYNC_COM_ERROR) {
        Log("SYNC_ask: fatal protocol error on circuit '%s'; disabling sync "
-           "protocol until next server restart\n", 
+           "protocol until next server restart\n",
            state->proto_name);
        state->fatal_error = 1;
     }
@@ -389,7 +389,7 @@ SYNC_ask_internal(SYNC_client_state * state, SYNC_command * com, SYNC_response *
 
     memcpy(buf, &com->hdr, sizeof(com->hdr));
     if (com->payload.len) {
-       memcpy(buf + sizeof(com->hdr), com->payload.buf, 
+       memcpy(buf + sizeof(com->hdr), com->payload.buf,
               com->hdr.command_len - sizeof(com->hdr));
     }
 
@@ -448,7 +448,7 @@ SYNC_ask_internal(SYNC_client_state * state, SYNC_command * com, SYNC_response *
     res->recv_len = n;
 
     if (n < sizeof(res->hdr)) {
-       Log("SYNC_ask:  response too short on circuit '%s'\n", 
+       Log("SYNC_ask:  response too short on circuit '%s'\n",
            state->proto_name);
        res->hdr.response = SYNC_COM_ERROR;
        goto done;
@@ -458,7 +458,7 @@ SYNC_ask_internal(SYNC_client_state * state, SYNC_command * com, SYNC_response *
 #endif
 
     if ((n - sizeof(res->hdr)) > res->payload.len) {
-       Log("SYNC_ask:  response too long on circuit '%s'\n", 
+       Log("SYNC_ask:  response too long on circuit '%s'\n",
            state->proto_name);
        res->hdr.response = SYNC_COM_ERROR;
        goto done;
@@ -482,8 +482,8 @@ SYNC_ask_internal(SYNC_client_state * state, SYNC_command * com, SYNC_response *
 }
 
 
-/* 
- * daemon com SYNC server-side interfaces 
+/*
+ * daemon com SYNC server-side interfaces
  */
 
 /**
@@ -574,7 +574,7 @@ SYNC_getCom(SYNC_server_state_t * state,
  *    @retval SYNC_COM_ERROR
  */
 afs_int32
-SYNC_putRes(SYNC_server_state_t * state, 
+SYNC_putRes(SYNC_server_state_t * state,
            osi_socket fd,
            SYNC_response * res)
 {
@@ -603,7 +603,7 @@ SYNC_putRes(SYNC_server_state_t * state,
 
     memcpy(buf, &res->hdr, sizeof(res->hdr));
     if (res->payload.len) {
-       memcpy(buf + sizeof(res->hdr), res->payload.buf, 
+       memcpy(buf + sizeof(res->hdr), res->payload.buf,
               res->hdr.response_len - sizeof(res->hdr));
     }
 
@@ -676,8 +676,8 @@ SYNC_bindSock(SYNC_server_state_t * state)
        Log("SYNC_bindSock: setsockopt failed with (%d)\n", errno);
 
     for (numTries = 0; numTries < state->bind_retry_limit; numTries++) {
-       code = bind(state->fd, 
-                   (struct sockaddr *)&state->addr, 
+       code = bind(state->fd,
+                   (struct sockaddr *)&state->addr,
                    AFS_SOCKADDR_LEN(&state->addr));
        if (code == 0)
            break;
index 59933a1fbe3a739556e1c37e2494838381810693..81fd38c218fb3c4865b16bbd770a71d0fc83d88c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2006-2008, Sine Nomine Associates and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -10,7 +10,7 @@
 #ifndef _AFS_VOL_DAEMON_COM_H
 #define _AFS_VOL_DAEMON_COM_H 1
 
-/* 
+/*
  * SYNC protocol constants
  */
 
@@ -22,7 +22,7 @@
 #define SYNC_COM_CODE_USER_BASE 65536
 #define SYNC_COM_CODE_DECL(code) (SYNC_COM_CODE_USER_BASE+(code))
 
-/** 
+/**
  * general command codes.
  */
 enum SYNCOpCode {
@@ -33,7 +33,7 @@ enum SYNCOpCode {
 
 /* SYNC protocol response codes
  *
- * response codes 0-65535 are reserved for 
+ * response codes 0-65535 are reserved for
  * global SYNC package response codes
  */
 #define SYNC_RES_CODE_USER_BASE 65536
index dbcb362ee899e379216d88b7fa6f1a03894ecf92..2a0a6908f1e400abee983c5487512a1f02df192b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1725fa40ddc58406913299e50bc651de584d46b7..3ee5206819438a8af2717304b019ff3a7d940bc6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -76,7 +76,7 @@
 
 extern int LogLevel;
 
-static SYNC_client_state fssync_state = 
+static SYNC_client_state fssync_state =
     { -1,                    /* file descriptor */
       FSSYNC_ENDPOINT_DECL,  /* server endpoint */
       FSYNC_PROTO_VERSION,   /* protocol version */
@@ -192,7 +192,7 @@ FSYNC_GenericOp(void * ext_hdr, size_t ext_len,
 }
 
 afs_int32
-FSYNC_VolOp(VolumeId volume, char * partition, 
+FSYNC_VolOp(VolumeId volume, char * partition,
            int command, int reason,
            SYNC_response * res)
 {
index b9a382d0de42030c4af1c3ee5a05ddc404d6f0e4..2528e7f6f6d03068cfe09371e0d3216c6dbfd07b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2006-2010, Sine Nomine Associates and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -159,7 +159,7 @@ main(int argc, char **argv)
        exit(2);
     }
 
-    
+
     ts = cmd_CreateSyntax("online", VolOnline, NULL, "bring a volume online (FSYNC_VOL_ON opcode)");
     VOLOP_PARMS_DECL(ts);
 
@@ -364,7 +364,7 @@ do_volop(struct state * state, afs_int32 command, SYNC_response * res)
        res->payload.buf = res_buf;
     }
 
-    fprintf(stderr, "calling FSYNC_VolOp with command code %d (%s)\n", 
+    fprintf(stderr, "calling FSYNC_VolOp with command code %d (%s)\n",
            command, FSYNC_com2string(command));
 
     code = FSYNC_VolOp(state->vop->volume,
@@ -399,7 +399,7 @@ do_volop(struct state * state, afs_int32 command, SYNC_response * res)
         } \
     } while (0)
 
-static int 
+static int
 VolOnline(struct cmd_syndesc * as, void * rock)
 {
     struct state state;
@@ -412,7 +412,7 @@ VolOnline(struct cmd_syndesc * as, void * rock)
     return 0;
 }
 
-static int 
+static int
 VolOffline(struct cmd_syndesc * as, void * rock)
 {
     struct state state;
@@ -669,7 +669,7 @@ VolQuery(struct cmd_syndesc * as, void * rock)
        printf("\tneedsPutBack    = %d\n", v.needsPutBack);
        printf("\tspecialStatus   = %d\n", v.specialStatus);
        printf("\tupdateTime      = %u\n", v.updateTime);
-       
+
        printf("\tvnodeIndex[vSmall] = {\n");
         printf("\t\thandle       = %p\n", v.vnodeIndex[vSmall].handle);
         printf("\t\tbitmap       = %p\n", v.vnodeIndex[vSmall].bitmap);
@@ -689,7 +689,7 @@ VolQuery(struct cmd_syndesc * as, void * rock)
            printf("\tattach_flags    = %s\n", vol_flags_to_string(v.attach_flags));
            printf("\tnWaiters        = %d\n", v.nWaiters);
            printf("\tchainCacheCheck = %d\n", v.chainCacheCheck);
-           
+
            /* online salvage structure */
            printf("\tsalvage = {\n");
            printf("\t\tprio      = %u\n", v.salvage.prio);
@@ -697,7 +697,7 @@ VolQuery(struct cmd_syndesc * as, void * rock)
            printf("\t\trequested = %d\n", v.salvage.requested);
            printf("\t\tscheduled = %d\n", v.salvage.scheduled);
            printf("\t}\n");
-           
+
            /* statistics structure */
            printf("\tstats = {\n");
 
@@ -724,12 +724,12 @@ VolQuery(struct cmd_syndesc * as, void * rock)
            printf("\t\t\thi = %u\n", hi);
            printf("\t\t\tlo = %u\n", lo);
            printf("\t\t}\n");
-           
+
            printf("\t\tattaches         = %u\n", v.stats.attaches);
            printf("\t\tsoft_detaches    = %u\n", v.stats.soft_detaches);
            printf("\t\tsalvages         = %u\n", v.stats.salvages);
            printf("\t\tvol_ops          = %u\n", v.stats.vol_ops);
-           
+
            printf("\t\tlast_attach      = %u\n", v.stats.last_attach);
            printf("\t\tlast_get         = %u\n", v.stats.last_get);
            printf("\t\tlast_promote     = %u\n", v.stats.last_promote);
@@ -739,10 +739,10 @@ VolQuery(struct cmd_syndesc * as, void * rock)
            printf("\t\tlast_salvage_req = %u\n", v.stats.last_salvage_req);
            printf("\t\tlast_vol_op      = %u\n", v.stats.last_vol_op);
            printf("\t}\n");
-           
+
            /* VLRU state */
            printf("\tvlru = {\n");
-           printf("\t\tidx = %d (%s)\n", 
+           printf("\t\tidx = %d (%s)\n",
                   v.vlru.idx, vlru_idx_to_string(v.vlru.idx));
            printf("\t}\n");
 
@@ -788,7 +788,7 @@ VolHdrQuery(struct cmd_syndesc * as, void * rock)
        printf("\t\tmagic   = 0x%x\n", v.stamp.magic);
        printf("\t\tversion = %u\n", v.stamp.version);
        printf("\t}\n");
-       
+
        printf("\tid               = %u\n", v.id);
        printf("\tname             = '%s'\n", v.name);
        if (v.inUse != 0) {
@@ -868,13 +868,13 @@ VolOpQuery(struct cmd_syndesc * as, void * rock)
        printf("\t\tproto_version  = %u\n", vop.com.proto_version);
        printf("\t\tpkt_seq        = %u\n", vop.com.pkt_seq);
        printf("\t\tcom_seq        = %u\n", vop.com.com_seq);
-       printf("\t\tprogramType    = %d (%s)\n", 
+       printf("\t\tprogramType    = %d (%s)\n",
               vop.com.programType, VPTypeToString(vop.com.programType));
        printf("\t\tpid            = %d\n", vop.com.pid);
        printf("\t\ttid            = %d\n", vop.com.tid);
-       printf("\t\tcommand        = %d (%s)\n", 
+       printf("\t\tcommand        = %d (%s)\n",
               vop.com.command, FSYNC_com2string(vop.com.command));
-       printf("\t\treason         = %d (%s)\n", 
+       printf("\t\treason         = %d (%s)\n",
               vop.com.reason, FSYNC_reason2string(vop.com.reason));
        printf("\t\tcommand_len    = %u\n", vop.com.command_len);
        printf("\t\tflags          = 0x%lux\n", afs_printable_uint32_lu(vop.com.flags));
@@ -944,7 +944,7 @@ do_vnqry(struct state * state, SYNC_response * res)
     qry.spare = 0;
     strlcpy(qry.partName, state->vop->partName, sizeof(qry.partName));
 
-    fprintf(stderr, "calling FSYNC_GenericOp with command code %d (%s)\n", 
+    fprintf(stderr, "calling FSYNC_GenericOp with command code %d (%s)\n",
            command, FSYNC_com2string(command));
 
     code = FSYNC_GenericOp(&qry, sizeof(qry), command, FSYNC_OPERATOR, res);
@@ -1125,7 +1125,7 @@ StatsQuery(struct cmd_syndesc * as, void * rock)
 
     common_prolog(as, &state);
 
-    fprintf(stderr, "calling FSYNC_askfs with command code %d (%s)\n", 
+    fprintf(stderr, "calling FSYNC_askfs with command code %d (%s)\n",
            command, FSYNC_com2string(command));
 
     code = FSYNC_StatsOp(&scom, command, FSYNC_WHATEVER, &res);
@@ -1139,9 +1139,9 @@ StatsQuery(struct cmd_syndesc * as, void * rock)
     }
 
     fprintf(stderr, "FSYNC_VolOp returned %d (%s)\n", code, SYNC_res2string(code));
-    fprintf(stderr, "protocol response code was %d (%s)\n", 
+    fprintf(stderr, "protocol response code was %d (%s)\n",
            res.hdr.response, SYNC_res2string(res.hdr.response));
-    fprintf(stderr, "protocol reason code was %d (%s)\n", 
+    fprintf(stderr, "protocol reason code was %d (%s)\n",
            res.hdr.reason, FSYNC_reason2string(res.hdr.reason));
 
     VDisconnectFS();
@@ -1195,7 +1195,7 @@ print_vol_stats_general(VolPkgStats * stats)
     printf("VolPkgStats = {\n");
 #ifdef AFS_DEMAND_ATTACH_FS
     for (i = 0; i < VOL_STATE_COUNT; i++) {
-       printf("\tvol_state_count[%s] = %d\n", 
+       printf("\tvol_state_count[%s] = %d\n",
               vol_state_to_string(i),
               stats->state_levels[i]);
     }
@@ -1249,7 +1249,7 @@ print_vol_stats_general(VolPkgStats * stats)
     printf("\t}\n");
 
     printf("\thdr_cache_size = %d\n", stats->hdr_cache_size);
-           
+
     printf("}\n");
 }
 
index a13d16058255c6ebe286b56b30b0a53be63dc0f5..c9d6b1c6911814b05f60cb993422d532ff653d1f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -117,7 +117,7 @@ static struct offlineInfo OfflineVolumes[MAXHANDLERS][MAXOFFLINEVOLUMES];
 /**
  * fssync server socket handle.
  */
-static SYNC_server_state_t fssync_server_state = 
+static SYNC_server_state_t fssync_server_state =
     { -1,                       /* file descriptor */
       FSSYNC_ENDPOINT_DECL,     /* server endpoint */
       FSYNC_PROTO_VERSION,      /* protocol version */
@@ -699,11 +699,11 @@ FSYNC_com_VolOn(FSSYNC_VolOp_command * vcom, SYNC_response * res)
     vp = VLookupVolume_r(&error, vcom->vop->volume, NULL);
     if (vp &&
        FSYNC_partMatch(vcom, vp, 1) &&
-       vp->pending_vol_op && 
+       vp->pending_vol_op &&
        (vcom->hdr->programType != vp->pending_vol_op->com.programType)) {
        /* a different program has this volume checked out. deny. */
        Log("FSYNC_VolOn: WARNING: program type %u has attempted to manipulate "
-           "state for volume %u using command code %u while the volume is " 
+           "state for volume %u using command code %u while the volume is "
            "checked out by program type %u for command code %u.\n",
            vcom->hdr->programType,
            vcom->vop->volume,
@@ -786,7 +786,7 @@ FSYNC_com_VolOn(FSSYNC_VolOp_command * vcom, SYNC_response * res)
  * @note this is an FSYNC RPC server stub
  *
  * @note this procedure handles the following FSSYNC command codes:
- *       - FSYNC_VOL_OFF 
+ *       - FSYNC_VOL_OFF
  *       - FSYNC_VOL_NEEDVOLUME
  *
  * @note the supplementary reason code contains additional details.
@@ -873,7 +873,7 @@ FSYNC_com_VolOff(FSSYNC_VolOp_command * vcom, SYNC_response * res)
                Log("volume %u already checked out\n", vp->hashid);
                /* XXX debug */
                Log("vp->vop = { com = { ver=%u, prog=%d, com=%d, reason=%d, len=%u, flags=0x%x }, vop = { vol=%u, part='%s' } }\n",
-                   vp->pending_vol_op->com.proto_version, 
+                   vp->pending_vol_op->com.proto_version,
                    vp->pending_vol_op->com.programType,
                    vp->pending_vol_op->com.command,
                    vp->pending_vol_op->com.reason,
@@ -913,7 +913,7 @@ FSYNC_com_VolOff(FSSYNC_VolOp_command * vcom, SYNC_response * res)
         */
        switch (type) {
        case salvageServer:
-           /* it is possible for the salvageserver to checkout a 
+           /* it is possible for the salvageserver to checkout a
             * volume for salvage before its scheduling request
             * has been sent to the salvageserver */
            if (vp->salvage.requested && !vp->salvage.scheduled) {
@@ -1017,11 +1017,11 @@ FSYNC_com_VolOff(FSSYNC_VolOp_command * vcom, SYNC_response * res)
        if (VVolOpLeaveOnline_r(vp, &info)) {
            VUpdateVolume_r(&error, vp, VOL_UPDATE_WAIT);       /* At least get volume stats right */
            if (LogLevel) {
-               Log("FSYNC: Volume %u (%s) was left on line for an external %s request\n", 
-                   V_id(vp), V_name(vp), 
-                   vcom->hdr->reason == V_CLONE ? "clone" : 
-                   vcom->hdr->reason == V_READONLY ? "readonly" : 
-                   vcom->hdr->reason == V_DUMP ? "dump" : 
+               Log("FSYNC: Volume %u (%s) was left on line for an external %s request\n",
+                   V_id(vp), V_name(vp),
+                   vcom->hdr->reason == V_CLONE ? "clone" :
+                   vcom->hdr->reason == V_READONLY ? "readonly" :
+                   vcom->hdr->reason == V_DUMP ? "dump" :
                    vcom->hdr->reason == FSYNC_SALVAGE ? "salvage" :
                    "UNKNOWN");
            }
@@ -1047,7 +1047,7 @@ FSYNC_com_VolOff(FSSYNC_VolOp_command * vcom, SYNC_response * res)
             VOfflineForVolOp_r(&error, vp, "A volume utility is running.");
             if (error==0) {
                 assert(vp->nUsers==0);
-                vp->pending_vol_op->vol_op_state = FSSYNC_VolOpRunningOffline; 
+                vp->pending_vol_op->vol_op_state = FSSYNC_VolOpRunningOffline;
             }
             else {
                VDeregisterVolOp_r(vp);
@@ -1800,7 +1800,7 @@ FSYNC_com_StatsOpViceP(FSSYNC_StatsOp_command * scom, SYNC_response * res)
        stats->minFree = dp->minFree;
        stats->f_files = dp->f_files;
        stats->vol_list_len = dp->vol_list.len;
-       
+
        res->hdr.response_len += sizeof(struct DiskPartitionStats64);
     }
 
@@ -1830,7 +1830,7 @@ FSYNC_com_StatsOpHash(FSSYNC_StatsOp_command * scom, SYNC_response * res)
     AssignInt64(head->reorders, &stats->chain_reorders);
 
     res->hdr.response_len += sizeof(struct VolumeHashChainStats);
-    
+
     return code;
 }
 
@@ -1876,7 +1876,7 @@ FSYNC_com_to_info(FSSYNC_VolOp_command * vcom, FSSYNC_VolOp_info * info)
 }
 
 /**
- * check whether command packet partition name matches volume 
+ * check whether command packet partition name matches volume
  * object's partition name.
  *
  * @param[in] vcom        pointer to command packet
@@ -1893,11 +1893,11 @@ FSYNC_com_to_info(FSSYNC_VolOp_command * vcom, FSSYNC_VolOp_info * info)
  *
  * @internal
  */
-static int 
+static int
 FSYNC_partMatch(FSSYNC_VolOp_command * vcom, Volume * vp, int match_anon)
 {
     return ((match_anon && vcom->vop->partName[0] == 0) ||
-           (strncmp(vcom->vop->partName, V_partition(vp)->name, 
+           (strncmp(vcom->vop->partName, V_partition(vp)->name,
                     sizeof(vcom->vop->partName)) == 0));
 }
 
index 638c743f6c5dd87cc5805fa2523605b2176c66b2..9a1cd2e1875d0cc8317cf0610bc3fb947b7724cb 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -62,7 +62,7 @@ enum FSYNCOpCode {
 };
 
 /**
- * FSYNC reason codes. 
+ * FSYNC reason codes.
  */
 enum FSYNCReasonCode {
     FSYNC_WHATEVER            = SYNC_REASON_CODE_DECL(0), /**< XXXX */
@@ -132,7 +132,7 @@ enum FSSYNC_VolOpState {
 typedef struct FSSYNC_VolOp_info {
     SYNC_command_hdr com;
     FSSYNC_VolOp_hdr vop;
-    enum FSSYNC_VolOpState vol_op_state; 
+    enum FSSYNC_VolOpState vol_op_state;
 } FSSYNC_VolOp_info;
 
 
@@ -192,8 +192,8 @@ typedef struct FSSYNC_VGUpdate_command {
  */
 extern void FSYNC_Init(void);
 
-/* 
- * fsync client interfaces 
+/*
+ * fsync client interfaces
  */
 extern void FSYNC_clientFinis(void);
 extern int FSYNC_clientInit(void);
@@ -208,7 +208,7 @@ extern afs_int32 FSYNC_GenericOp(void * ext_hdr, size_t ext_len,
                                 SYNC_response * res);
 
 /* volume operations control interface */
-extern afs_int32 FSYNC_VolOp(VolumeId volume, char *partName, int com, int reason, 
+extern afs_int32 FSYNC_VolOp(VolumeId volume, char *partName, int com, int reason,
                             SYNC_response * res);
 
 /* statistics query interface */
index c2b57c2834ba93fb30738f90913588764e97cd80..b825a2a17ba92c84735a539aeaa4b3cdb9101eb3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 2ea3fb79e963d960da04ebb97e742078ecbbddbe..096f34d748a5f2449083c9ddb4aef2b9f4313a73 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -847,13 +847,13 @@ ih_reallyclose(IHandle_t * ihP)
     if (ihP->ih_synced) {
        FdHandle_t *fdP;
        IH_UNLOCK;
-       
+
        fdP = IH_OPEN(ihP);
-       if (fdP) { 
+       if (fdP) {
            OS_SYNC(fdP->fd_fd);
            FDH_CLOSE(fdP);
        }
-       
+
        IH_LOCK;
     }
 
@@ -939,7 +939,7 @@ ih_sync_all(void) {
        if (ihP)
            ihP->ih_refcnt++;   /* must not disappear over unlock */
        for (; ihP; ihP = ihPnext) {
-           
+
            if (ihP->ih_synced) {
                FdHandle_t *fdP;
 
@@ -947,7 +947,7 @@ ih_sync_all(void) {
                IH_UNLOCK;
 
                fdP = IH_OPEN(ihP);
-               if (fdP) { 
+               if (fdP) {
                    OS_SYNC(fdP->fd_fd);
                    FDH_CLOSE(fdP);
                }
index 42c635bd5c9ec10b2eb03f762d855969164678ba..0786e9f107d7f527bdcac91b0adcdd77632dc0ec 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -11,7 +11,7 @@
  * pass the elements required to identify a file to the underlying file
  * systen. For the usual Vice inode operations, this is no more than the
  * usual device and inode numbers. For the user space file system used on NT
- * we also need the volume id to identify the file. 
+ * we also need the volume id to identify the file.
  *
  * An FdHandle_t is an abstraction used to associate file descroptors
  * with Inode handles. IH_OPEN is used to get a file descriptor that
index 7bb461992f4c3a2046a1c994760125531660fda9..8d7460444e265cef88ab2f4d7b3a5e2fb1ff97e6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -458,9 +458,9 @@ ginode(inum)
 /* xfs_ListViceInodes
  *
  * xfs_ListViceInodes verifies and correct the XFS namespace as it collects
- * the inode information. The name is required for the idec operation to work. 
+ * the inode information. The name is required for the idec operation to work.
  * Steps 2 and 3 below are for the AFS_XFS_NAME_VERS == 1. If the name space
- * changes, the algorithm will need to change. 
+ * changes, the algorithm will need to change.
  * 1) If the parent inode number does not match the directory's inod number,
  *    change it in the attribute.
  * 2) If the unqifier in the attribute does not match the name, rename the
@@ -474,7 +474,7 @@ ginode(inum)
  */
 
 /* xfs_VerifyInode
- * 
+ *
  * Does the verifications listed above.
  * We can't change the names until the readdir is complete, so we set the
  * rename flag if the file needs renaming.
@@ -1245,7 +1245,7 @@ ListViceInodes(char *devname, char *mountedOn, FILE *inodeFile,
            err = -2;
            goto out1;
        }
-       
+
        /*
         * Paranoia:  check that the file is really the right size
         */
@@ -1327,7 +1327,7 @@ convertVolumeInfo(int fdr, int fdw, afs_uint32 vid)
     vd.type = RWVOL;
     vd.dontSalvage = 0;
     vd.inUse = 0;
-    vd.uniquifier += 5000;      /* just in case there are still file copies 
+    vd.uniquifier += 5000;      /* just in case there are still file copies
                                   from the old RW volume around */
 
     p = strrchr(vd.name, '.');
@@ -1352,13 +1352,13 @@ struct specino {
 
 
 int
-UpdateThisVolume(struct ViceInodeInfo *inodeinfo, VolumeId singleVolumeNumber, 
+UpdateThisVolume(struct ViceInodeInfo *inodeinfo, VolumeId singleVolumeNumber,
                 struct specino *specinos)
 {
     struct dinode *p;
     if ((inodeinfo->u.vnode.vnodeNumber == INODESPECIAL) &&
        (inodeinfo->u.vnode.volumeId == singleVolumeNumber)) {
-       specinos[inodeinfo->u.special.type].inodeNumber = 
+       specinos[inodeinfo->u.special.type].inodeNumber =
            inodeinfo->inodeNumber;
     }
     return 0; /* We aren't using a result file, we're caching */
@@ -1412,7 +1412,7 @@ inode_ConvertROtoRWvolume(char *pname, afs_uint32 volumeId)
     memset(&specinos, 0, sizeof(specinos));
 
     /* now do the work */
-          
+
     for (partP = DiskPartitionList; partP && strcmp(partP->name, pname);
          partP = partP->next);
     if (!partP) {
@@ -1430,7 +1430,7 @@ inode_ConvertROtoRWvolume(char *pname, afs_uint32 volumeId)
         goto done;
     }
 #endif
-          
+
     if (VReadVolumeDiskHeader(volumeId, partP, &h)) {
        Log("1 inode_ConvertROtoRWvolume: Couldn't read header for RO-volume %lu.\n",
            afs_printable_uint32_lu(volumeId));
@@ -1442,15 +1442,15 @@ inode_ConvertROtoRWvolume(char *pname, afs_uint32 volumeId)
     strcpy(tmpDevName, partP->devName);
     name = getDevName(tmpDevName, wpath);
 
-    if ((err = ListViceInodes(name, VPartitionPath(partP), 
-                             NULL, UpdateThisVolume, volumeId, 
+    if ((err = ListViceInodes(name, VPartitionPath(partP),
+                             NULL, UpdateThisVolume, volumeId,
                              &forcep, 0, wpath, &specinos)) < 0)
     {
        Log("1 inode_ConvertROtoRWvolume: Couldn't get special inodes\n");
        code = EIO;
        goto done;
     }
-          
+
 #if defined(NEARINODE_HINT)
     nearInodeHash(volumeId, nearInode);
     nearInode %= partP->f_files;
@@ -1458,26 +1458,26 @@ inode_ConvertROtoRWvolume(char *pname, afs_uint32 volumeId)
 
     for (j = VI_VOLINFO; j < VI_LINKTABLE+1; j++) {
        if (specinos[j].inodeNumber > 0) {
-           specinos[j].ninodeNumber = 
+           specinos[j].ninodeNumber =
                IH_CREATE(NULL, partP->device, VPartitionPath(partP),
                          nearInode, h.parent, INODESPECIAL, j, h.parent);
-           IH_INIT(ih, partP->device, volumeId, 
+           IH_INIT(ih, partP->device, volumeId,
                    specinos[j].inodeNumber);
            fdP = IH_OPEN(ih);
            if (!fdP) {
-               Log("1 inode_ConvertROtoRWvolume: Couldn't find special inode %d for %d\n", j, volumeId); 
+               Log("1 inode_ConvertROtoRWvolume: Couldn't find special inode %d for %d\n", j, volumeId);
                code = -1;
                goto done;
            }
-           
+
            IH_INIT(ih2, partP->device, h.parent, specinos[j].ninodeNumber);
-           fdP2 = IH_OPEN(ih2); 
-           if (!fdP2) { 
-               Log("1 inode_ConvertROtoRWvolume: Couldn't find special inode %d for %d\n", j, h.parent);  
+           fdP2 = IH_OPEN(ih2);
+           if (!fdP2) {
+               Log("1 inode_ConvertROtoRWvolume: Couldn't find special inode %d for %d\n", j, h.parent);
                code = -1;
                goto done;
-           } 
-           
+           }
+
            if (j == VI_VOLINFO)
                convertVolumeInfo(fdP->fd_fd, fdP2->fd_fd, ih2->ih_vid);
            else {
@@ -1491,10 +1491,10 @@ inode_ConvertROtoRWvolume(char *pname, afs_uint32 volumeId)
                    if (nBytes != len) {
                        code = -1;
                        goto done;
-                   }               
+                   }
                }
            }
-               
+
            FDH_CLOSE(fdP);
            FDH_CLOSE(fdP2);
 
@@ -1509,7 +1509,7 @@ inode_ConvertROtoRWvolume(char *pname, afs_uint32 volumeId)
            IH_RELEASE(ih2);
        }
     }
-   
+
     h.id = h.parent;
 #ifdef AFS_64BIT_IOPS_ENV
     h.volumeInfo_lo = (afs_int32)specinos[VI_VOLINFO].ninodeNumber & 0xffffffff;
index b4e0649d4692bea216d168af3a09e0ab5503eadb..bd55fc36f19c7521768267fa57716d76564e01b1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -79,7 +79,7 @@ extern off_t afs_lseek(int FD, off_t O, int F);
 /*
  * This function emulates a subset of flock()
  */
-int 
+int
 emul_flock(int fd, int cmd)
 {    struct flock f;
 
@@ -144,7 +144,7 @@ namei_iwrite(IHandle_t * h, afs_foff_t offset, char *buf, afs_fsize_t size)
 
 /* Inode number format:
  * low 26 bits - vnode number - all 1's if volume special file.
- * next 3 bits - tag 
+ * next 3 bits - tag
  * next 3 bits spare (0's)
  * high 32 bits - uniquifier (regular) or type if spare
  */
@@ -341,9 +341,9 @@ namei_CreateDataDirectories(namei_t * name, int *created)
  * Output:
  *  errp : errno of the first error encountered during the directory cleanup.
  *         *errp should have been initialized to 0.
- * 
+ *
  * Return Values:
- *  -1  : If errors were encountered during cleanup and error is set to 
+ *  -1  : If errors were encountered during cleanup and error is set to
  *        the first errno.
  *   0  : Success.
  *
@@ -376,7 +376,7 @@ delTree(char *root, char *tree, int *errp)
                if (!strcmp(dirp->d_name, ".") || !strcmp(dirp->d_name, ".."))
                    continue;
                /* since root is big enough, we reuse the space to
-                * concatenate the dirname to the current tree 
+                * concatenate the dirname to the current tree
                 */
                strcat(root, "/");
                strcat(root, dirp->d_name);
@@ -386,8 +386,8 @@ delTree(char *root, char *tree, int *errp)
                } else
                    *errp = *errp ? *errp : errno;
 
-               /* recover path to our cur tree by truncating it to 
-                * its original len 
+               /* recover path to our cur tree by truncating it to
+                * its original len
                 */
                *cp = 0;
            }
@@ -740,7 +740,7 @@ namei_dec(IHandle_t * ih, Inode ino, int p1)
            Log("Warning: Lost ref on ihandle dev %d vid %d ino %" AFS_INT64_FMT "\n",
                th->ih_dev, th->ih_vid, (afs_int64)th->ih_ino);
            IH_RELEASE(th);
-         
+
            /* If we're less than 0, someone presumably unlinked;
               don't bother setting count to 0, but we need to drop a lock */
            if (namei_SetLinkCount(fdP, ino, 0, 1) < 0) {
@@ -808,11 +808,11 @@ namei_replace_file_by_hardlink(IHandle_t *hLink, IHandle_t *hTarget)
     afs_int32 code;
     namei_t nameLink;
     namei_t nameTarget;
-    
+
     /* Convert handle to file name. */
     namei_HandleToName(&nameLink, hLink);
     namei_HandleToName(&nameTarget, hTarget);
-    
+
     unlink(nameLink.n_path);
     code = link(nameTarget.n_path, nameLink.n_path);
     return code;
@@ -825,16 +825,16 @@ namei_copy_on_write(IHandle_t *h)
     namei_t name;
     FdHandle_t *fdP;
     struct afs_stat tstat;
-    
+
     namei_HandleToName(&name, h);
-    if (afs_stat(name.n_path, &tstat) < 0) 
+    if (afs_stat(name.n_path, &tstat) < 0)
        return EIO;
     if (tstat.st_nlink > 1) {                   /* do a copy on write */
        char path[259];
        char *buf;
        afs_size_t size;
        ssize_t tlen;
-       
+
        fdP = IH_OPEN(h);
        if (!fdP)
            return EIO;
@@ -855,9 +855,9 @@ namei_copy_on_write(IHandle_t *h)
        FDH_SEEK(fdP, 0, 0);
        while (size) {
            tlen = size > 8192 ? 8192 : size;
-           if (FDH_READ(fdP, buf, tlen) != tlen) 
+           if (FDH_READ(fdP, buf, tlen) != tlen)
                break;
-           if (write(fd, buf, tlen) != tlen) 
+           if (write(fd, buf, tlen) != tlen)
                break;
            size -= tlen;
        }
@@ -890,23 +890,23 @@ namei_copy_on_write(IHandle_t *h)
  *
  * Using this information we can see that a layout of 256 directories, each
  * with 512 subdirectories and each of those having 512 files gives us
- * 256*512*512 = 67108864 AFS files and directories. 
+ * 256*512*512 = 67108864 AFS files and directories.
  *
  * The volume, vnode, uniquifier and data version, as well as the tag
- * are required, either for finding the file or for salvaging. It's best to 
+ * are required, either for finding the file or for salvaging. It's best to
  * restrict the name to something that can be mapped into 64 bits so the
  * "Inode" is easily comparable (using "==") to other "Inodes". The tag
  * is used to distinguish between different versions of the same file
  * which are currently in the RW and clones of a volume. See "Link Table
- * Organization" below for more information on the tag. The tag is 
- * required in the name of the file to ensure a unique name. 
+ * Organization" below for more information on the tag. The tag is
+ * required in the name of the file to ensure a unique name.
  *
  * We can store data in the uid, gid and mode bits of the files, provided
  * the directories have root only access. This gives us 15 bits for each
  * of uid and gid (GNU chown considers 65535 to mean "don't change").
- * There are 9 available mode bits. Adn we need to store a total of 
+ * There are 9 available mode bits. Adn we need to store a total of
  * 32 (volume id) + 26 (vnode) + 32 (uniquifier) + 32 (data-version) + 3 (tag)
- * or 131 bits somewhere. 
+ * or 131 bits somewhere.
  *
  * The format of a file name for a regular file is:
  * /vicepX/AFSIDat/V1/V2/AA/BB/<tag><uniq><vno>
@@ -927,7 +927,7 @@ namei_copy_on_write(IHandle_t *h)
  * should be formed so that the leading characters are different as quickly
  * as possible, leading to faster discards of incorrect matches in the
  * lookup code.
- * 
+ *
  */
 
 
@@ -1015,7 +1015,7 @@ namei_GetLinkCount2(FdHandle_t * h, Inode ino, int lockit, int fixup, int nowrit
         if (rc != sizeof(row))
            goto bad_getLinkByte;
     }
+
     return (int)((row >> index) & NAMEI_TAGMASK);
 
   bad_getLinkByte:
@@ -1025,7 +1025,7 @@ namei_GetLinkCount2(FdHandle_t * h, Inode ino, int lockit, int fixup, int nowrit
 }
 
 int
-namei_GetLinkCount(FdHandle_t * h, Inode ino, int lockit) 
+namei_GetLinkCount(FdHandle_t * h, Inode ino, int lockit)
 {
     return namei_GetLinkCount2(h, ino, lockit, 0, 1);
 }
@@ -1173,7 +1173,7 @@ static int namei_ListAFSSubDirs(IHandle_t * dirIH,
 
 /* WriteInodeInfo
  *
- * Write the inode data to the results file. 
+ * Write the inode data to the results file.
  *
  * Returns -2 on error, 0 on success.
  *
@@ -1213,14 +1213,14 @@ VerifyDirPerms(char *path)
  * -2 - not enough space on partition, salvager has error message for this.
  *
  * This code optimizes single volume salvages by just looking at that one
- * volume's directory. 
+ * volume's directory.
  *
  * If the resultFile is NULL, then don't call the write routine.
  */
 int
 ListViceInodes(char *devname, char *mountedOn, FILE *inodeFile,
               int (*judgeInode) (struct ViceInodeInfo * info, afs_uint32 vid, void *rock),
-              afs_uint32 singleVolumeNumber, int *forcep, int forceR, char *wpath, 
+              afs_uint32 singleVolumeNumber, int *forcep, int forceR, char *wpath,
               void *rock)
 {
     int ninodes;
@@ -1524,7 +1524,7 @@ DecodeInode(char *dpath, char *name, struct ViceInodeInfo *info,
     int64_to_flipbase64(check, info->inodeNumber);
     if (strcmp(name, check))
        return -1;
-    
+
     GetOGMFromStat(&status, &parm, &tag);
     if ((info->inodeNumber & NAMEI_INODESPECIAL) == NAMEI_INODESPECIAL) {
        /* p1 - vid, p2 - -1, p3 - type, p4 - rwvid */
index be2222cd4e9b4e4b96ed445bb2f44dbd2697e5e3..b76cdf08a6118e111880a36fc24c8d71de4e20ef 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -51,10 +51,10 @@ int namei_ListAFSFiles(char *dev,
                                         struct ViceInodeInfo * info,
                                         char *dir, char *file), FILE * fp,
                       int (*judge_fun) (struct ViceInodeInfo * info,
-                                        afs_uint32 vid, void *rock), 
+                                        afs_uint32 vid, void *rock),
                       afs_uint32 singleVolumeNumber, void *rock);
 int ListViceInodes(char *devname, char *mountedOn, FILE *inodeFile,
-                  int (*judgeInode) (struct ViceInodeInfo * info, afs_uint32 vid, 
+                  int (*judgeInode) (struct ViceInodeInfo * info, afs_uint32 vid,
                                      void *rock),
                   afs_uint32 singleVolumeNumber, int *forcep, int forceR,
                   char *wpath, void *rock);
index 0472c89e833c83bcc32d877c5bbb13c2b0a4e77f..6c27757c5e6b9e0f6f5ea6680e7cea10f0a45a42 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 2f81be50291f82d373214b76237391a690eede47..6e0c59e546064b011bb11e1566f42c000eaaabae 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -330,7 +330,7 @@ nt_seek(FD_t fd, int off, int where)
 int nt_SetLinkCount(FdHandle_t * h, Inode ino, int count, int locked);
 
 
-/* nt_DevToDrive 
+/* nt_DevToDrive
  * converts a device number (2-25) into a drive letter name.
  *
  * Arguments:
@@ -419,7 +419,7 @@ nt_HandleToName(char *name, IHandle_t * h)
  * The data for each volume is in a separate directory. The name of the
  * volume is of the form: Vol_NNNNNN.data, where NNNNNN is a base 32
  * representation of the RW volume ID (even where the RO is the only volume
- * on the partition). Below that are separate subdirectories for the 
+ * on the partition). Below that are separate subdirectories for the
  * AFS directories and special files. There are also 16 directories for files,
  * hashed on the low 5 bits (recall bit0 is always 0) of the vnode number.
  * These directories are named:
@@ -858,10 +858,10 @@ nt_GetLinkCountInternal(FdHandle_t * h, Inode ino, int lockit, int fixup)
     if (!SetFilePointer(h->fd_fd, (LONG) offset, NULL, FILE_BEGIN))
        goto bad_getLinkByte;
 
-    if (!ReadFile(h->fd_fd, (void *)&row, 2, &bytesRead, NULL)) 
+    if (!ReadFile(h->fd_fd, (void *)&row, 2, &bytesRead, NULL))
        goto bad_getLinkByte;
-    
-    if (bytesRead == 0 && fixup) { 
+
+    if (bytesRead == 0 && fixup) {
        LARGE_INTEGER size;
 
        if (!GetFileSizeEx(h->fd_fd, &size) || size.QuadPart >= offset+sizeof(row))
@@ -876,7 +876,7 @@ nt_GetLinkCountInternal(FdHandle_t * h, Inode ino, int lockit, int fixup)
         row |= 1<<index;
         goto rewrite;
     }
+
     return (int)((row >> index) & NT_TAGMASK);
 
   bad_getLinkByte:
@@ -892,7 +892,7 @@ nt_GetLinkCount(FdHandle_t * h, Inode ino, int lockit)
 }
 
 void
-nt_SetNonZLC(FdHandle_t * h, Inode ino) 
+nt_SetNonZLC(FdHandle_t * h, Inode ino)
 {
     (void)nt_GetLinkCountInternal(h, ino, 0, 1);
 }
@@ -970,7 +970,7 @@ static int nt_ListAFSSubDirs(IHandle_t * dirIH,
 
 /* WriteInodeInfo
  *
- * Write the inode data to the results file. 
+ * Write the inode data to the results file.
  *
  * Returns -2 on error, 0 on success.
  *
@@ -995,14 +995,14 @@ WriteInodeInfo(FILE * fp, struct ViceInodeInfo *info, char *dir, char *name)
  * -2 - not enough space on partition, salvager has error message for this.
  *
  * This code optimizes single volume salvages by just looking at that one
- * volume's directory. 
+ * volume's directory.
  *
  * If the inodeFile is NULL, then don't call the write routine.
  */
 int
 ListViceInodes(char *devname, char *mountedOn, FILE *inodeFile,
               int (*judgeInode) (struct ViceInodeInfo * info, afs_uint32 vid, void *rock),
-              afs_uint32 singleVolumeNumber, int *forcep, int forceR, char *wpath, 
+              afs_uint32 singleVolumeNumber, int *forcep, int forceR, char *wpath,
               void *rock)
 {
     int ninodes;
index 9ca1b56f970820fcbe63e3fd63f925b640d2ee17..8ffa469391a1f40a6e33c13278137147402c7a8b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -37,7 +37,7 @@ extern int nt_unlink(char *name);
 
 /* Inode operations */
 extern Inode nt_MakeSpecIno(int type);
-extern Inode nt_icreate(IHandle_t * h, char *p, afs_uint32 p1, afs_uint32 p2, 
+extern Inode nt_icreate(IHandle_t * h, char *p, afs_uint32 p1, afs_uint32 p2,
                         afs_uint32 p3, afs_uint32 p4);
 extern FD_t nt_iopen(IHandle_t * h);
 extern int nt_irelease(IHandle_t * h);
index 0bd832e5bc54066922d1bfa641062424cdfbabcf..7a89da8eac642fdd2e05339f5e667fe1a71653f9 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -32,7 +32,7 @@
 #endif
 
 #include <afs/afsutil.h>
-    
+
 #include "nfs.h"
 #include "lwp.h"
 #include "lock.h"
index 080849c0a9e789b040dc6397a42bf8b320175140..faa6861d6838408916153222595f5dc75d3bc753 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -478,7 +478,7 @@ VAttachPartitions(void)
 #endif
            || (strncmp(mnt.mnt_mntopts, "ro,ignore", 9) == 0))
            continue;
-       
+
        /* If we're going to always attach this partition, do it later. */
        if (VIsAlwaysAttach(mnt.mnt_mountp))
            continue;
@@ -1363,7 +1363,7 @@ VPartHeaderUnlock(struct DiskPartition64 *dp, int locktype)
  * @internal volume package internal use only
  */
 
-struct DiskPartition64 * 
+struct DiskPartition64 *
 VGetPartitionById_r(afs_int32 id, int abortp)
 {
     struct DiskPartition64 *dp = NULL;
@@ -1403,7 +1403,7 @@ VGetPartitionById(afs_int32 id, int abortp)
     return dp;
 }
 
-static struct DiskPartition64 * 
+static struct DiskPartition64 *
 VLookupPartition_r(char * path)
 {
     afs_int32 id = volutil_GetPartitionID(path);
@@ -1414,7 +1414,7 @@ VLookupPartition_r(char * path)
     return DiskPartitionTable[id];
 }
 
-static void 
+static void
 AddPartitionToTable_r(struct DiskPartition64 *dp)
 {
     assert(dp->index >= 0 && dp->index <= VOLMAXPARTS);
@@ -1422,7 +1422,7 @@ AddPartitionToTable_r(struct DiskPartition64 *dp)
 }
 
 #if 0
-static void 
+static void
 DeletePartitionFromTable_r(struct DiskPartition64 *dp)
 {
     assert(dp->index >= 0 && dp->index <= VOLMAXPARTS);
index c122c0563a5706b0c637f6a3f0349219e7dcd1ce..4af19a6d86ad7fae45a98c4dd741c500e5afa2cb 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -149,7 +149,7 @@ struct DiskPartitionStats64 {
 };
 
 #define        PART_DONTUPDATE 1
-#define PART_DUPLICATE  2      /* NT - used if we find more than one partition 
+#define PART_DUPLICATE  2      /* NT - used if we find more than one partition
                                 * using the same drive. Will be dumped before
                                 * all partitions attached.
                                 */
index 8b5845ade503970abb6e660b80eff4b1439a66fb..1ede75672e92c43cefe778254b20d5a6c0b103bd 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 8b2d51778bbbef17e077a17578155226fce4a6e9..47bce55df1ee12fa6bef4fc05071c2fed923795f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -56,13 +56,13 @@ static int ObliterateRegion(Volume * avp, VnodeClass aclass, StreamHandle_t * af
 #if 0
 static void PurgeIndex(Volume * vp, VnodeClass class);
 static void PurgeHeader(Volume * vp);
-#endif 
+#endif
 
 static void PurgeIndex_r(Volume * vp, VnodeClass class);
 static void PurgeHeader_r(Volume * vp);
 
 /* No lock needed. Only the volserver will call this, and only one transaction
- * can have a given volume (volid/partition pair) in use at a time 
+ * can have a given volume (volid/partition pair) in use at a time
  */
 void
 VPurgeVolume(Error * ec, Volume * vp)
index ce5353907000974502db5c709d3baf15cd37a718..1991658554c673eb64951987ffbc0920ab90b0e5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 1a2a2caf65374a13104f43e7ed32fd0df54ab08f..85ac10b65a3b693ac15f5219862145c1a98c3bfe 100644 (file)
@@ -1,13 +1,13 @@
 /*
  * Copyright 2006-2007, Sine Nomine Associates and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  */
 
-/* 
+/*
  * demand attach fs
  * online salvager daemon
  */
@@ -313,8 +313,8 @@ main(int argc, char **argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
@@ -427,7 +427,7 @@ SalvageClient(VolumeId vid, char * pname)
                        "trying to continue anyway\n");
     }
     SALVSYNC_clientInit();
-    
+
     code = SALVSYNC_SalvageVolume(vid, pname, SALVSYNC_SALVAGE, SALVSYNC_OPERATOR, 0, NULL);
     if (code != SYNC_OK) {
        goto sync_error;
@@ -500,7 +500,7 @@ SalvageServer(int argc, char **argv)
      * VInitVolumePackage2 (called below) makes sure that a file server or
      * other volume utilities don't interfere with the salvage.
      */
-    
+
     /* even demand attach online salvager
      * still needs this because we don't want
      * a stand-alone salvager to conflict with
@@ -527,12 +527,12 @@ SalvageServer(int argc, char **argv)
 
     /* start up the reaper and log cleaner threads */
     assert(pthread_attr_setdetachstate(&attrs, PTHREAD_CREATE_DETACHED) == 0);
-    assert(pthread_create(&tid, 
-                         &attrs, 
+    assert(pthread_create(&tid,
+                         &attrs,
                          &SalvageChildReaperThread,
                          NULL) == 0);
-    assert(pthread_create(&tid, 
-                         &attrs, 
+    assert(pthread_create(&tid,
+                         &attrs,
                          &SalvageLogCleanupThread,
                          NULL) == 0);
     assert(pthread_create(&tid,
@@ -570,13 +570,13 @@ SalvageServer(int argc, char **argv)
            child_slot[slot] = pid;
            node->pid = pid;
            VOL_UNLOCK;
-           
+
            assert(pthread_mutex_lock(&worker_lock) == 0);
            current_workers++;
-           
+
            /* let the reaper thread know another worker was spawned */
            assert(pthread_cond_broadcast(&worker_cv) == 0);
-           
+
            /* if we're overquota, wait for the reaper */
            while (current_workers >= Parallel) {
                assert(pthread_cond_wait(&worker_cv, &worker_lock) == 0);
@@ -599,7 +599,7 @@ DoSalvageVolume(struct SalvageQueueNode * node, int slot)
      * another thread may have held the lock on the FILE
      * structure when fork was called! */
 
-    afs_snprintf(childLog, sizeof(childLog), "%s.%d", 
+    afs_snprintf(childLog, sizeof(childLog), "%s.%d",
                 AFSDIR_SERVER_SLVGLOG_FILEPATH, getpid());
 
     logFile = afs_fopen(childLog, "a");
@@ -612,10 +612,10 @@ DoSalvageVolume(struct SalvageQueueNode * node, int slot)
        Log("salvageServer: invalid volume id specified; salvage aborted\n");
        return 1;
     }
-    
+
     partP = VGetPartition(node->command.sop.partName, 0);
     if (!partP) {
-       Log("salvageServer: Unknown or unmounted partition %s; salvage aborted\n", 
+       Log("salvageServer: Unknown or unmounted partition %s; salvage aborted\n",
            node->command.sop.partName);
        return 1;
     }
@@ -728,7 +728,7 @@ SalvageLogCleanupThread(void * arg)
            SalvageLogCleanup(cleanup->pid);
            free(cleanup);
            assert(pthread_mutex_lock(&worker_lock) == 0);
-       }           
+       }
     }
 
     assert(pthread_mutex_unlock(&worker_lock) == 0);
@@ -743,9 +743,9 @@ SalvageLogCleanup(int pid)
     char fn[AFSDIR_PATH_MAX];
     static char buf[LOG_XFER_BUF_SIZE];
 
-    afs_snprintf(fn, sizeof(fn), "%s.%d", 
+    afs_snprintf(fn, sizeof(fn), "%s.%d",
                 AFSDIR_SERVER_SLVGLOG_FILEPATH, pid);
-    
+
 
     pidlog = open(fn, O_RDONLY);
     unlink(fn);
index 7e141c29cbc43a0e60df03281c9c63462e5f68ef..4cc0a49a5f7e1a5755d021dd862cb2b3e6445de0 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -135,11 +135,11 @@ handleit(struct cmd_syndesc *as, void *arock)
     char pname[100], *temp;
     afs_int32 seenpart = 0, seenvol = 0, vid = 0;
     ProgramType pt;
-   
+
 #ifdef FAST_RESTART
     afs_int32  seenany = 0;
 #endif
-    
+
     VolumePackageOptions opts;
     struct DiskPartition64 *partP;
 
@@ -371,8 +371,8 @@ main(int argc, char **argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index e62e5f60283a7d411f962b5af8b9a90976093f22..814cbcaf6f2b2e0ee334d4e839d1f647a4d5e65f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2006-2008, Sine Nomine Associates and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -59,7 +59,7 @@ extern int LogLevel;
 extern int VInit;
 extern pthread_mutex_t vol_salvsync_mutex;
 
-static SYNC_client_state salvsync_client_state = 
+static SYNC_client_state salvsync_client_state =
     { -1,                     /* file descriptor */
       SALVSYNC_ENDPOINT_DECL, /* server endpoint */
       SALVSYNC_PROTO_VERSION, /* protocol version */
@@ -123,7 +123,7 @@ SALVSYNC_askSalv(SYNC_command * com, SYNC_response * res)
 }
 
 afs_int32
-SALVSYNC_SalvageVolume(VolumeId volume, char *partName, int command, int reason, 
+SALVSYNC_SalvageVolume(VolumeId volume, char *partName, int command, int reason,
                       afs_uint32 prio, SYNC_response * res_in)
 {
     SYNC_command com;
@@ -163,7 +163,7 @@ SALVSYNC_SalvageVolume(VolumeId volume, char *partName, int command, int reason,
 }
 
 afs_int32
-SALVSYNC_LinkVolume(VolumeId parent, 
+SALVSYNC_LinkVolume(VolumeId parent,
                    VolumeId clone,
                    char * partName,
                    SYNC_response * res_in)
index aae6a1a8dfc782e8521fa3b70b12cd5343a30ced..db5848a02fd5c7854e3a4fdb9091693f846bdbe1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2006-2008, Sine Nomine Associates and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -112,14 +112,14 @@ static void AddToPendingQueue(struct SalvageQueueNode * node);
 static void DeleteFromPendingQueue(struct SalvageQueueNode * node);
 static struct SalvageQueueNode * LookupPendingCommandByPid(int pid);
 static void UpdateCommandPrio(struct SalvageQueueNode * node);
-static void HandlePrio(struct SalvageQueueNode * clone, 
+static void HandlePrio(struct SalvageQueueNode * clone,
                       struct SalvageQueueNode * parent,
                       afs_uint32 new_prio);
 
 static int LinkNode(struct SalvageQueueNode * parent,
                    struct SalvageQueueNode * clone);
 
-static struct SalvageQueueNode * LookupNode(VolumeId vid, char * partName, 
+static struct SalvageQueueNode * LookupNode(VolumeId vid, char * partName,
                                            struct SalvageQueueNode ** parent);
 static struct SalvageQueueNode * LookupNodeByCommand(SALVSYNC_command_hdr * qry,
                                                     struct SalvageQueueNode ** parent);
@@ -139,7 +139,7 @@ extern pthread_mutex_t vol_salvsync_mutex;
 /**
  * salvsync server socket handle.
  */
-static SYNC_server_state_t salvsync_server_state = 
+static SYNC_server_state_t salvsync_server_state =
     { -1,                       /* file descriptor */
       SALVSYNC_ENDPOINT_DECL,   /* server endpoint */
       SALVSYNC_PROTO_VERSION,   /* protocol version */
@@ -392,7 +392,7 @@ SALVSYNC_com(osi_socket fd)
     memset(&scom, 0, sizeof(scom));
     memset(&sres, 0, sizeof(sres));
     memset(&sres_hdr, 0, sizeof(sres_hdr));
-    
+
     com.payload.buf = (void *)buf;
     com.payload.len = SYNC_PROTO_MAX_LEN;
     res.payload.buf = (void *) &sres_hdr;
@@ -505,9 +505,9 @@ SALVSYNC_com(osi_socket fd)
  *
  * @internal
  *
- * @post the volume is enqueued in the to-be-salvaged queue.  
- *       if the volume was already in the salvage queue, its 
- *       priority (and thus its location in the queue) are 
+ * @post the volume is enqueued in the to-be-salvaged queue.
+ *       if the volume was already in the salvage queue, its
+ *       priority (and thus its location in the queue) are
  *       updated.
  */
 static afs_int32
@@ -548,7 +548,7 @@ SALVSYNC_com_Salvage(SALVSYNC_command * com, SALVSYNC_response * res)
        memcpy(&clone->command.com, com->hdr, sizeof(SYNC_command_hdr));
        memcpy(&clone->command.sop, com->sop, sizeof(SALVSYNC_command_hdr));
 
-       /* 
+       /*
         * make sure volgroup parent partition path is kept coherent
         *
         * If we ever want to support non-COW clones on a machine holding
@@ -616,7 +616,7 @@ SALVSYNC_com_Cancel(SALVSYNC_command * com, SALVSYNC_response * res)
        res->hdr->flags |= SALVSYNC_FLAG_VOL_STATS_VALID;
        res->sop->prio = node->command.sop.prio;
        res->sop->state = node->state;
-       if ((node->type == SALVSYNC_VOLGROUP_PARENT) && 
+       if ((node->type == SALVSYNC_VOLGROUP_PARENT) &&
            (node->state == SALVSYNC_STATE_QUEUED)) {
            DeleteFromSalvageQueue(node);
        }
@@ -908,7 +908,7 @@ AllocNode(struct SalvageQueueNode ** node_out)
     int code = 0;
     struct SalvageQueueNode * node;
 
-    *node_out = node = (struct SalvageQueueNode *) 
+    *node_out = node = (struct SalvageQueueNode *)
        malloc(sizeof(struct SalvageQueueNode));
     if (node == NULL) {
        code = 1;
@@ -1003,7 +1003,7 @@ LinkNode(struct SalvageQueueNode * parent,
 }
 
 static void
-HandlePrio(struct SalvageQueueNode * clone, 
+HandlePrio(struct SalvageQueueNode * clone,
           struct SalvageQueueNode * node,
           afs_uint32 new_prio)
 {
@@ -1109,7 +1109,7 @@ LookupPendingCommand(SALVSYNC_command_hdr * qry)
     struct SalvageQueueNode * np, * nnp;
 
     for (queue_Scan(&pendingQueue, np, nnp, SalvageQueueNode)) {
-       if ((np->command.sop.volume == qry->volume) && 
+       if ((np->command.sop.volume == qry->volume) &&
            !strncmp(np->command.sop.partName, qry->partName,
                     sizeof(qry->partName)))
            break;
@@ -1169,7 +1169,7 @@ UpdateCommandPrio(struct SalvageQueueNode * node)
 
 /* this will need to be rearchitected if we ever want more than one thread
  * to wait for new salvage nodes */
-struct SalvageQueueNode * 
+struct SalvageQueueNode *
 SALVSYNC_getWork(void)
 {
     int i;
@@ -1187,7 +1187,7 @@ SALVSYNC_getWork(void)
        VOL_CV_WAIT(&salvageQueue.cv);
     }
 
-    /* 
+    /*
      * short circuit for simple case where only one partition has
      * scheduled salvages
      */
@@ -1198,9 +1198,9 @@ SALVSYNC_getWork(void)
     }
 
 
-    /* 
+    /*
      * ok, more than one partition has scheduled salvages.
-     * now search for partitions with scheduled salvages, but no pending salvages. 
+     * now search for partitions with scheduled salvages, but no pending salvages.
      */
     dp = VGetPartitionById_r(next_part_sched, 0);
     if (!dp) {
@@ -1208,8 +1208,8 @@ SALVSYNC_getWork(void)
     }
     fdp = dp;
 
-    for (i=0 ; 
-        !i || dp != fdp ; 
+    for (i=0 ;
+        !i || dp != fdp ;
         dp = (dp->next) ? dp->next : DiskPartitionList, i++ ) {
        if (!partition_salvaging[dp->index] && salvageQueue.len[dp->index]) {
            node = queue_First(&salvageQueue.part[dp->index], SalvageQueueNode);
@@ -1224,8 +1224,8 @@ SALVSYNC_getWork(void)
      */
     dp = fdp;
 
-    for (i=0 ; 
-        !i || dp != fdp ; 
+    for (i=0 ;
+        !i || dp != fdp ;
         dp = (dp->next) ? dp->next : DiskPartitionList, i++ ) {
        if (salvageQueue.len[dp->index]) {
            node = queue_First(&salvageQueue.part[dp->index], SalvageQueueNode);
@@ -1308,9 +1308,9 @@ SALVSYNC_doneWork_r(struct SalvageQueueNode * node, int result)
 static int
 ChildFailed(int status)
 {
-    return (WCOREDUMP(status) || 
-           WIFSIGNALED(status) || 
-           ((WEXITSTATUS(status) != 0) && 
+    return (WCOREDUMP(status) ||
+           WIFSIGNALED(status) ||
+           ((WEXITSTATUS(status) != 0) &&
             (WEXITSTATUS(status) != SALSRV_EXIT_VOLGROUP_LINK)));
 }
 
index f0fc3d669a9d02ffda82675791104a32679e4eea..67845d009f95b549b9627cc752caf673e1d94ee1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2006-2010, Sine Nomine Associates and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -28,7 +28,7 @@
 #define SALVSYNC_PROTO_VERSION        SALVSYNC_PROTO_VERSION_V3
 
 
-/** 
+/**
  * SALVSYNC protocol command codes.
  */
 typedef enum {
@@ -73,7 +73,7 @@ typedef enum {
 /* SALVSYNC flags */
 #define SALVSYNC_FLAG_VOL_STATS_VALID SYNC_FLAG_CODE_DECL(0) /* volume stats in response are valid */
 
-/** 
+/**
  * SALVSYNC command state.
  */
 typedef enum {
index 32a03d2b5c6261487ef11e61d59806d6b33265ad..a412a784439b159587f5348039edb422d82e5642 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index cbf1a0117241e943777fdb714c96c94af801abf9..842d48e853c2ce95482574abe21b15d392c47e8b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 94635cb8e48f38bfa604965809a265e63868f033..45cfa858ccbfd9f0ba74711d268d0e764468e5f8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -259,7 +259,7 @@ DeleteFromVnLRU(struct VnodeClassInfo * vcp, Vnode * vnp)
     if (vnp == vcp->lruHead)
        vcp->lruHead = vcp->lruHead->lruNext;
 
-    if ((vnp == vcp->lruHead) || 
+    if ((vnp == vcp->lruHead) ||
        (vcp->lruHead == NULL))
        Abort("DeleteFromVnLRU: lru chain addled!\n");
 
@@ -458,9 +458,9 @@ VInitVnodes(VnodeClass class, int nVnodes)
  *       state is set to VN_STATE_INVALID.
  *       inode handle is released.
  *
- * @note we traverse backwards along the lru circlist.  It shouldn't 
- *       be necessary to specify that nUsers == 0 since if it is in the list, 
- *       nUsers should be 0.  Things shouldn't be in lruq unless no one is 
+ * @note we traverse backwards along the lru circlist.  It shouldn't
+ *       be necessary to specify that nUsers == 0 since if it is in the list,
+ *       nUsers should be 0.  Things shouldn't be in lruq unless no one is
  *       using them.
  *
  * @warning DAFS: VOL_LOCK is dropped while doing inode handle release
@@ -483,9 +483,9 @@ VGetFreeVnode_r(struct VnodeClassInfo * vcp)
 #endif
     VNLog(1, 2, Vn_id(vnp), (intptr_t)vnp, 0, 0);
 
-    /* 
+    /*
      * it's going to be overwritten soon enough.
-     * remove from LRU, delete hash entry, and 
+     * remove from LRU, delete hash entry, and
      * disassociate from old parent volume before
      * we have a chance to drop the vol glock
      */
@@ -506,7 +506,7 @@ VGetFreeVnode_r(struct VnodeClassInfo * vcp)
         *   - ihandle package lock contention
         *   - closing file descriptor(s) associated with ih
         *
-        * Hance, we perform outside of the volume package lock in order to 
+        * Hance, we perform outside of the volume package lock in order to
         * reduce the probability of contention.
         */
        IH_RELEASE(vnp->handle);
@@ -548,8 +548,8 @@ VLookupVnode(Volume * vp, VnodeId vnodeId)
 
     newHash = VNODE_HASH(vp, vnodeId);
     for (vnp = VnodeHashTable[newHash];
-        (vnp && 
-         ((Vn_id(vnp) != vnodeId) || 
+        (vnp &&
+         ((Vn_id(vnp) != vnodeId) ||
           (Vn_volume(vnp) != vp) ||
           (vp->cacheCheck != Vn_cacheCheck(vnp))));
         vnp = vnp->hashNext);
@@ -745,7 +745,7 @@ VAllocVnode_r(Error * ec, Volume * vp, VnodeType type)
             *
             * if this becomes a bottleneck, there are ways to
             * improve parallelism for this code path
-            *   -- tkeiser 11/28/2007 
+            *   -- tkeiser 11/28/2007
             */
            VCreateReservation_r(vp);
            VWaitExclusiveState_r(vp);
@@ -808,7 +808,7 @@ VAllocVnode_r(Error * ec, Volume * vp, VnodeType type)
 
 
        error_encountered:
-           /* 
+           /*
             * close the file handle
             * acquire VOL_LOCK
             * invalidate the vnode
@@ -874,7 +874,7 @@ VAllocVnode_r(Error * ec, Volume * vp, VnodeType type)
  * @internal vnode package internal use only
  */
 static void
-VnLoad(Error * ec, Volume * vp, Vnode * vnp, 
+VnLoad(Error * ec, Volume * vp, Vnode * vnp,
        struct VnodeClassInfo * vcp, VnodeClass class)
 {
     /* vnode not cached */
@@ -920,8 +920,8 @@ VnLoad(Error * ec, Volume * vp, Vnode * vnp,
            Log("VnLoad: Couldn't read vnode %u, volume %u (%s); volume needs salvage\n", Vn_id(vnp), V_id(vp), V_name(vp));
        } else {
            /* vnode is not allocated */
-           if (LogLevel >= 5) 
-               Log("VnLoad: Couldn't read vnode %u, volume %u (%s); read %d bytes, errno %d\n", 
+           if (LogLevel >= 5)
+               Log("VnLoad: Couldn't read vnode %u, volume %u (%s); read %d bytes, errno %d\n",
                    Vn_id(vnp), V_id(vp), V_name(vp), (int)nBytes, errno);
            *ec = VIO;
            dosalv = 0;
@@ -1003,7 +1003,7 @@ VnLoad(Error * ec, Volume * vp, Vnode * vnp,
  * @internal vnode package internal use only
  */
 static void
-VnStore(Error * ec, Volume * vp, Vnode * vnp, 
+VnStore(Error * ec, Volume * vp, Vnode * vnp,
        struct VnodeClassInfo * vcp, VnodeClass class)
 {
     ssize_t nBytes;
@@ -1069,7 +1069,7 @@ VnStore(Error * ec, Volume * vp, Vnode * vnp,
     VnChangeState_r(vnp, vn_state_save);
 #endif
     return;
-    
+
  error_encountered:
 #ifdef AFS_DEMAND_ATTACH_FS
     /* XXX instead of dumping core, let's try to request a salvage
@@ -1537,7 +1537,7 @@ VVnodeWriteToRead_r(Error * ec, Vnode * vnp)
     return 0;
 }
 
-/** 
+/**
  * initial size of ihandle pointer vector.
  *
  * @see VInvalidateVnodesByVolume_r
@@ -1595,8 +1595,8 @@ VInvalidateVnodesByVolume_r(Volume * vp,
     if (ih_vec == NULL)
        return ENOMEM;
 
-    /* 
-     * Traverse the volume's vnode list.  Pull all the ihandles out into a 
+    /*
+     * Traverse the volume's vnode list.  Pull all the ihandles out into a
      * thread-private array for later asynchronous processing.
      */
 #ifdef AFS_DEMAND_ATTACH_FS
@@ -1620,7 +1620,7 @@ restart_traversal:
                ih_vec = ih_vec_new;
 #ifdef AFS_DEMAND_ATTACH_FS
                /*
-                * Theoretically, the volume's VVn list should not change 
+                * Theoretically, the volume's VVn list should not change
                 * because the volume is in an exclusive state.  For the
                 * sake of safety, we will restart the traversal from the
                 * the beginning (which is not expensive because we're
@@ -1704,7 +1704,7 @@ VCloseVnodeFiles_r(Volume * vp)
  *       during this exclusive operation.  This is due to the fact that we are
  *       generally called during the refcount 1->0 transition.
  *
- * @todo we should handle failures in VInvalidateVnodesByVolume_r more 
+ * @todo we should handle failures in VInvalidateVnodesByVolume_r more
  *       gracefully.
  *
  * @see VInvalidateVnodesByVolume_r
index 465d81953fcec83ca60951ab6222c2a32aeeb06b..fb677a77a4b794041427e3af6417f62a6b452f7a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 817a8129d0013b3452ef94f80a296dc954002c69..506922d6022d04beca70f723b4227608666f0008 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2007-2008, Sine Nomine Associates and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -59,7 +59,7 @@ VnCancelReservation_r(Vnode * vnp)
     if (--Vn_refcount(vnp) == 0) {
        AddToVnLRU(Vn_class(vnp), vnp);
 
-       /* If caching is turned off, 
+       /* If caching is turned off,
         * disassociate vnode cache entry from volume object */
        if (!TrustVnodeCacheEntry) {
            DeleteFromVVnList(vnp);
@@ -195,7 +195,7 @@ VnIsExclusiveState(VnState state)
     case VN_STATE_EXCLUSIVE:
     case VN_STATE_STORE:
        return 1;
-    default: 
+    default:
        return 0;
     }
 }
@@ -236,7 +236,7 @@ VnIsErrorState(VnState state)
 static_inline int
 VnIsValidState(VnState state)
 {
-    if ((state >= 0) && 
+    if ((state >= 0) &&
        (state < VN_STATE_COUNT)) {
        return 1;
     }
index 2c6c1e09eb54ff27e6ae3ebd78f4ea2cde779cf6..6f4eb8fa1f6efff5d6db68304bd76d6a34ad25dd 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2004, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 84ee6a440512d0611bf2e854a215f12391557123..f4c451610a3597f174ab42eedbb5646d11e6441c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -11,7 +11,7 @@
    System:             VICE-TWO
    Module:             vol-info.c
    Institution:        The Information Technology Center, Carnegie-Mellon University
-   
+
    */
 
 #include <afsconfig.h>
@@ -49,7 +49,7 @@
 #include "viceinode.h"
 #include <afs/afssyscalls.h>
 #include <afs/afsutil.h>
-    
+
 #ifdef _AIX
 #include <time.h>
 #endif
index 369eb263050d7f1a955e465e6ff541db65cba8d4..1e8448495161c584d08d70b75f815dc5f87edbac 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -71,7 +71,7 @@ Vnodes with 0 inode pointers in RW volumes are now deleted.
        Logs missing inode numbers.
 
     2.3 features:
-           Increments directory version number by 200 (rather than by 1) when it is salvaged, in order to prevent problems due to the fact that a version number can be promised to a workstation before it is written to disk.  If the server crashes, it may have an older version.  Salvaging it could bring the version number up to the same version the workstation believed it already had a call back on. 
+           Increments directory version number by 200 (rather than by 1) when it is salvaged, in order to prevent problems due to the fact that a version number can be promised to a workstation before it is written to disk.  If the server crashes, it may have an older version.  Salvaging it could bring the version number up to the same version the workstation believed it already had a call back on.
 
     2.4 features:
            Locks the file /vice/vol/salvage.lock before starting.  Aborts if it can't acquire the lock.
@@ -411,7 +411,7 @@ IsRootInode(struct afs_stat *status)
 {
     /*
      * The root inode is not a fixed value in XFS partitions. So we need to
-     * see if the partition is in the list of mounted partitions. This only 
+     * see if the partition is in the list of mounted partitions. This only
      * affects the SalvageFileSys path, so we check there.
      */
     return (status->st_ino == ROOTINODE);
@@ -544,12 +544,12 @@ SalvageFileSysParallel(struct DiskPartition64 *partP)
     }
 
     if (thisjob) {
-       /* Check to see if thisjob is for a disk that we are already 
+       /* Check to see if thisjob is for a disk that we are already
         * salvaging. If it is, link it in as the next job to do. The
-        * jobs array has 1 entry per disk being salvages. numjobs is 
-        * the total number of disks currently being salvaged. In 
+        * jobs array has 1 entry per disk being salvages. numjobs is
+        * the total number of disks currently being salvaged. In
         * order to keep thejobs array compact, when a disk is
-        * completed, the hightest element in the jobs array is moved 
+        * completed, the hightest element in the jobs array is moved
         * down to now open slot.
         */
        for (j = 0; j < numjobs; j++) {
@@ -588,7 +588,7 @@ SalvageFileSysParallel(struct DiskPartition64 *partP)
            jobs[j] = jobs[j]->nextjob; /* Step to next part on same disk */
            free(oldjob);       /* free the old job */
 
-           /* If there is another partition on the disk to salvage, then 
+           /* If there is another partition on the disk to salvage, then
             * say we will start it (startjob). If not, then put thisjob there
             * and say we will start it.
             */
@@ -801,8 +801,8 @@ SalvageFileSys1(struct DiskPartition64 *partP, VolumeId singleVolumeNumber)
 
 
     /*
-     * Remove any leftover /vicepa/salvage.inodes.* or /vicepa/salvage.temp.* 
-     * files 
+     * Remove any leftover /vicepa/salvage.inodes.* or /vicepa/salvage.temp.*
+     * files
      */
     {
        DIR *dirp;
@@ -1541,7 +1541,7 @@ RecordHeader(struct DiskPartition64 *dp, const char *name,
             * the last try looking at it; avoid AskOffline'ing the same vol
             * multiple times */
 
-           if (singleVolumeNumber 
+           if (singleVolumeNumber
                && summary.header.id != singleVolumeNumber) {
                /* don't offline singleVolumeNumber; we already did that
                 * earlier */
@@ -2611,7 +2611,7 @@ SalvageIndex(Inode ino, VnodeClass class, int RW,
                        /*
                         * Because of the possibility of the uniquifier overflows (> 4M)
                         * we compare them modulo the low 22-bits; we shouldn't worry
-                        * about mismatching since they shouldn't to many old 
+                        * about mismatching since they shouldn't to many old
                         * uniquifiers of the same vnode...
                         */
                        if (IUnique(vu) != IUnique(iu)) {
@@ -2729,7 +2729,7 @@ SalvageIndex(Inode ino, VnodeClass class, int RW,
                        memset(vnode, 0, vcp->diskSize);
                        vnodeChanged = 1;
                    } else {
-                       /* Should not reach here becuase we checked for 
+                       /* Should not reach here becuase we checked for
                         * (inodeNumber == 0) above. And where we zero the vnode,
                         * we also goto vnodeDone.
                         */
@@ -2819,9 +2819,9 @@ CopyOnWrite(struct DirSummary *dir)
 }
 
 /*
- * This function should either successfully create a new dir, or give up 
- * and leave things the way they were.  In particular, if it fails to write 
- * the new dir properly, it should return w/o changing the reference to the 
+ * This function should either successfully create a new dir, or give up
+ * and leave things the way they were.  In particular, if it fails to write
+ * the new dir properly, it should return w/o changing the reference to the
  * old dir.
  */
 void
@@ -2858,9 +2858,9 @@ CopyAndSalvage(struct DirSummary *dir)
     assert(VALID_INO(newinode));
     SetSalvageDirHandle(&newdir, dir->rwVid, fileSysDevice, newinode);
 
-    /* Assign . and .. vnode numbers from dir and vnode.parent. 
+    /* Assign . and .. vnode numbers from dir and vnode.parent.
      * The uniquifier for . is in the vnode.
-     * The uniquifier for .. might be set to a bogus value of 1 and 
+     * The uniquifier for .. might be set to a bogus value of 1 and
      * the salvager will later clean it up.
      */
     if (vnode.parent && (vnodeEssence = CheckVnodeNumber(vnode.parent))) {
@@ -2912,7 +2912,7 @@ CopyAndSalvage(struct DirSummary *dir)
     /* make sure old directory file is really closed */
     fdP = IH_OPEN(dir->dirHandle.dirh_handle);
     FDH_REALLYCLOSE(fdP);
-    
+
     code = IH_DEC(dir->ds_linkH, oldinode, dir->rwVid);
     assert(code == 0);
     dir->dirHandle = newdir;
@@ -2941,7 +2941,7 @@ JudgeEntry(void *dirVal, char *name, afs_int32 vnodeNumber,
     }
 #ifdef AFS_AIX_ENV
 #ifndef AFS_NAMEI_ENV
-    /* On AIX machines, don't allow entries to point to inode 0. That is a special 
+    /* On AIX machines, don't allow entries to point to inode 0. That is a special
      * mount inode for the partition. If this inode were deleted, it would crash
      * the machine.
      */
@@ -2981,7 +2981,7 @@ JudgeEntry(void *dirVal, char *name, afs_int32 vnodeNumber,
        if (!vnodeEssence->unique
            && ((strcmp(name, "..") == 0) || (strcmp(name, ".") == 0))) {
            /* This is an orphaned directory. Don't delete the . or ..
-            * entry. Otherwise, it will get created in the next 
+            * entry. Otherwise, it will get created in the next
             * salvage and deleted again here. So Just skip it.
             */
            return 0;
@@ -3086,7 +3086,7 @@ JudgeEntry(void *dirVal, char *name, afs_int32 vnodeNumber,
                IH_RELEASE(ihP);
                return 0;
            }
-       
+
            if (size > 1024)
                size = 1024;
            nBytes = FDH_READ(fdP, buf, size);
@@ -3119,8 +3119,8 @@ JudgeEntry(void *dirVal, char *name, afs_int32 vnodeNumber,
        }
 
        /* The directory entry points to the vnode. Check to see if the
-        * vnode points back to the directory. If not, then let the 
-        * directory claim it (else it might end up orphaned). Vnodes 
+        * vnode points back to the directory. If not, then let the
+        * directory claim it (else it might end up orphaned). Vnodes
         * already claimed by another directory are deleted from this
         * directory: hardlinks to the same vnode are not allowed
         * from different directories.
@@ -3845,7 +3845,7 @@ SalvageVolume(struct InodeSummary *rwIsp, IHandle_t * alinkH)
                LFVnode = rootdir.vnodeNumber;  /* Lost+Found vnode number */
                LFUnique = rootdir.unique;      /* Lost+Found uniquifier */
 
-               /* Update this orphaned vnode's info. Its parent info and 
+               /* Update this orphaned vnode's info. Its parent info and
                 * link count (do for orphaned directories and files).
                 */
                vep->parent = LFVnode;  /* Parent is the root dir */
@@ -3854,7 +3854,7 @@ SalvageVolume(struct InodeSummary *rwIsp, IHandle_t * alinkH)
                vep->claimed = 1;
                vep->count--;   /* Inc link count (root dir will pt to it) */
 
-               /* If this orphaned vnode is a directory, change '..'. 
+               /* If this orphaned vnode is a directory, change '..'.
                 * The name of the orphaned dir/file is unknown, so we
                 * build a unique name. No need to CopyOnWrite the directory
                 * since it is not connected to tree in BK or RO volume and
index 21c5ae637a64eb12047548409fe6067247c3935d..9331a3c461541a8a444305d76ce8ff44cbb81d4c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 66e3b49a811dba336e7125ce835500f4621b8dbb..2199b6992184de46d8312163a4067b5d6bc20730 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 7df90ae62f088eaf892332b81ecc3fb1845ffaaf..4b7f5f5298e974d58745d3a719e73489555633cf 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 6b1bdd6e649a129c353aae71a71c3e7a6ba7f13f..aec2bcb72b930992801dca57dc3f4c6045e1f8dd 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -178,7 +178,7 @@ extern void *calloc(), *realloc();
 
 /* Forward declarations */
 static Volume *attach2(Error * ec, VolId volumeId, char *path,
-                      struct DiskPartition64 *partp, Volume * vp, 
+                      struct DiskPartition64 *partp, Volume * vp,
                       int isbusy, int mode);
 static void ReallyFreeVolume(Volume * vp);
 #ifdef AFS_DEMAND_ATTACH_FS
@@ -246,7 +246,7 @@ pthread_t vol_glock_holder = 0;
 /*
  * when possible, don't just reorder single elements, but reorder
  * entire chains of elements at once.  a chain of elements that
- * exceed the element previous to the pivot by at least CHAIN_THRESH 
+ * exceed the element previous to the pivot by at least CHAIN_THRESH
  * accesses are moved in front of the chain whose elements have at
  * least CHAIN_THRESH less accesses than the pivot element
  */
@@ -352,7 +352,7 @@ static int VInitPreAttachVolumes(int nthreads, struct volume_init_queue *vq);
 #endif /* AFS_PTHREAD_ENV */
 
 #ifndef AFS_DEMAND_ATTACH_FS
-static int VAttachVolumesByPartition(struct DiskPartition64 *diskP, 
+static int VAttachVolumesByPartition(struct DiskPartition64 *diskP,
                                     int * nAttached, int * nUnattached);
 #endif /* AFS_DEMAND_ATTACH_FS */
 
@@ -459,9 +459,9 @@ VThreadOptions_t VThread_defaults = {
 #endif /* AFS_DEMAND_ATTACH_FS */
 
 
-struct Lock vol_listLock;      /* Lock obtained when listing volumes:  
-                                * prevents a volume from being missed 
-                                * if the volume is attached during a 
+struct Lock vol_listLock;      /* Lock obtained when listing volumes:
+                                * prevents a volume from being missed
+                                * if the volume is attached during a
                                 * list volumes */
 
 
@@ -583,8 +583,8 @@ VInitVolumePackage2(ProgramType pt, VolumePackageOptions * opts)
     assert(pthread_mutex_init(&vol_salvsync_mutex, NULL) == 0);
 #endif /* AFS_DEMAND_ATTACH_FS */
 
-    /* Ok, we have done enough initialization that fileserver can 
-     * start accepting calls, even though the volumes may not be 
+    /* Ok, we have done enough initialization that fileserver can
+     * start accepting calls, even though the volumes may not be
      * available just yet.
      */
     VInit = 1;
@@ -1203,7 +1203,7 @@ VShutdown_r(void)
     for (params.n_parts=0, diskP = DiskPartitionList;
         diskP; diskP = diskP->next, params.n_parts++);
 
-    Log("VShutdown:  shutting down on-line volumes on %d partition%s...\n", 
+    Log("VShutdown:  shutting down on-line volumes on %d partition%s...\n",
        params.n_parts, params.n_parts > 1 ? "s" : "");
 
     if (vol_attach_threads > 1) {
@@ -1235,7 +1235,7 @@ VShutdown_r(void)
            }
            Log("VShutdown: partition %s has %d volumes with attached headers\n",
                VPartitionPath(diskP), count);
-               
+
 
            /* build up the pass 0 shutdown work queue */
            dpq = (struct diskpartition_queue_t *) malloc(sizeof(struct diskpartition_queue_t));
@@ -1257,7 +1257,7 @@ VShutdown_r(void)
                   (&tid, &attrs, &VShutdownThread,
                    &params) == 0);
        }
-       
+
        /* wait for all the pass 0 shutdowns to complete */
        while (params.n_threads_complete < params.n_threads) {
            assert(pthread_cond_wait(&params.master_cv, &params.lock) == 0);
@@ -1272,12 +1272,12 @@ VShutdown_r(void)
 
        /* run the parallel shutdown scheduler. it will drop the glock internally */
        ShutdownController(&params);
-       
+
        /* wait for all the workers to finish pass 3 and terminate */
        while (params.pass < 4) {
            VOL_CV_WAIT(&params.cv);
        }
-       
+
        assert(pthread_attr_destroy(&attrs) == 0);
        assert(pthread_cond_destroy(&params.cv) == 0);
        assert(pthread_cond_destroy(&params.master_cv) == 0);
@@ -1336,7 +1336,7 @@ VShutdown_r(void)
                if (LogLevel >= 5)
                    Log("VShutdown:  Attempting to take volume %u offline.\n",
                        vp->hashid);
-               
+
                /* next, take the volume offline (drops reference count) */
                VOffline_r(vp, "File server was shut down");
            }
@@ -1406,10 +1406,10 @@ ShutdownController(vshutdown_thread_t * params)
        for (diskP = DiskPartitionList; diskP; diskP=diskP->next) {
            id = diskP->index;
            Log("ShutdownController:  part[%d] : (len=%d, thread_target=%d, done_pass=%d, pass_head=%p)\n",
-               id, 
+               id,
                diskP->vol_list.len,
-               shadow.part_thread_target[id], 
-               shadow.part_done_pass[id], 
+               shadow.part_thread_target[id],
+               shadow.part_done_pass[id],
                shadow.part_pass_head[id]);
        }
 
@@ -1422,7 +1422,7 @@ ShutdownController(vshutdown_thread_t * params)
 
 /* create the shutdown thread work schedule.
  * this scheduler tries to implement fairness
- * by allocating at least 1 thread to each 
+ * by allocating at least 1 thread to each
  * partition with volumes to be shutdown,
  * and then it attempts to allocate remaining
  * threads based upon the amount of work left
@@ -1440,7 +1440,7 @@ ShutdownCreateSchedule(vshutdown_thread_t * params)
     for (diskP = DiskPartitionList; diskP; diskP = diskP->next) {
        sum += diskP->vol_list.len;
     }
-    
+
     params->schedule_version++;
     params->vol_remaining = sum;
 
@@ -1497,7 +1497,7 @@ ShutdownCreateSchedule(vshutdown_thread_t * params)
        /* compute the residues */
        for (diskP = DiskPartitionList; diskP; diskP = diskP->next) {
            id = diskP->index;
-           part_residue[id] = diskP->vol_list.len - 
+           part_residue[id] = diskP->vol_list.len -
                (params->part_thread_target[id] * thr_workload);
        }
 
@@ -1605,9 +1605,9 @@ VShutdownThread(void * args)
                break;
            }
        }
-       
+
        if (!found) {
-           /* hmm. for some reason the controller thread couldn't find anything for 
+           /* hmm. for some reason the controller thread couldn't find anything for
             * us to do. let's see if there's anything we can do */
            for (diskP = DiskPartitionList; diskP; diskP = diskP->next) {
                id = diskP->index;
@@ -1624,7 +1624,7 @@ VShutdownThread(void * args)
                }
            }
        }
-       
+
        /* do work on this partition until either the controller
         * creates a new schedule, or we run out of things to do
         * on this partition */
@@ -1682,7 +1682,7 @@ VShutdownThread(void * args)
            }
            pass = params->pass;
        }
-       
+
        /* for fairness */
        VOL_UNLOCK;
        pthread_yield();
@@ -1694,7 +1694,7 @@ VShutdownThread(void * args)
     return NULL;
 }
 
-/* shut down all volumes on a given disk partition 
+/* shut down all volumes on a given disk partition
  *
  * note that this function will not allow mp-fast
  * shutdown of a partition */
@@ -1712,7 +1712,7 @@ VShutdownByPartition_r(struct DiskPartition64 * dp)
     VVByPListBeginExclusive_r(dp);
 
     /* pick the low-hanging fruit first,
-     * then do the complicated ones last 
+     * then do the complicated ones last
      * (has the advantage of keeping
      *  in-use volumes up until the bitter end) */
     for (pass = 0, total=0; pass < 4; pass++) {
@@ -1735,13 +1735,13 @@ VShutdownByPartition_r(struct DiskPartition64 * dp)
  * 0 to only "shutdown" {pre,un}attached and error state volumes
  * 1 to also shutdown attached volumes w/ volume header loaded
  * 2 to also shutdown attached volumes w/o volume header loaded
- * 3 to also shutdown exclusive state volumes 
+ * 3 to also shutdown exclusive state volumes
  *
  * caller MUST hold exclusive access on the hash chain
  * because we drop vol_glock_mutex internally
- * 
- * this function is reentrant for passes 1--3 
- * (e.g. multiple threads can cooperate to 
+ *
+ * this function is reentrant for passes 1--3
+ * (e.g. multiple threads can cooperate to
  *  shutdown a partition mp-fast)
  *
  * pass 0 is not scaleable because the volume state data is
@@ -1775,7 +1775,7 @@ ShutdownVolumeWalk_r(struct DiskPartition64 * dp, int pass,
 
     for (queue_ScanFrom(&dp->vol_list, qp, qp, nqp, rx_queue)) {
        vp = (Volume *) (((char *)qp) - offsetof(Volume, vol_list));
-       
+
        switch (pass) {
        case 0:
            if ((V_attachState(vp) != VOL_STATE_UNATTACHED) &&
@@ -1825,7 +1825,7 @@ VShutdownVolume_r(Volume * vp)
     VWaitExclusiveState_r(vp);
 
     assert(VIsValidState(V_attachState(vp)));
-    
+
     switch(V_attachState(vp)) {
     case VOL_STATE_SALVAGING:
        /* Leave salvaging volumes alone. Any in-progress salvages will
@@ -1854,7 +1854,7 @@ VShutdownVolume_r(Volume * vp)
     default:
        break;
     }
-    
+
     VCancelReservation_r(vp);
     vp = NULL;
     return 0;
@@ -1974,7 +1974,7 @@ VolumeHeaderToDisk(VolumeDiskHeader_t * dh, VolumeHeader_t * h)
  * Converts an on-disk representation of a volume header to
  * the in-memory representation of a volume header.
  *
- * Makes the assumption that AFS has *always* 
+ * Makes the assumption that AFS has *always*
  * zero'd the volume header file so that high parts of inode
  * numbers are 0 in older (SGI EFS) volume header files.
  */
@@ -2023,7 +2023,7 @@ DiskToVolumeHeader(VolumeHeader_t * h, VolumeDiskHeader_t * dh)
  * @return volume object pointer
  *
  * @note A pre-attached volume will only have its partition
- *       and hashid fields initialized.  At first call to 
+ *       and hashid fields initialized.  At first call to
  *       VGetVolume, the volume will be fully attached.
  *
  */
@@ -2053,7 +2053,7 @@ VPreAttachVolumeByName(Error * ec, char *partition, char *name)
 Volume *
 VPreAttachVolumeByName_r(Error * ec, char *partition, char *name)
 {
-    return VPreAttachVolumeById_r(ec, 
+    return VPreAttachVolumeById_r(ec,
                                  partition,
                                  VolumeNumber(name));
 }
@@ -2072,7 +2072,7 @@ VPreAttachVolumeByName_r(Error * ec, char *partition, char *name)
  * @internal volume package internal use only.
  */
 Volume *
-VPreAttachVolumeById_r(Error * ec, 
+VPreAttachVolumeById_r(Error * ec,
                       char * partition,
                       VolId volumeId)
 {
@@ -2117,15 +2117,15 @@ VPreAttachVolumeById_r(Error * ec,
  *          properly in this case.
  *
  * @note If there is already a volume object registered with
- *       the same volume id, its pointer MUST be passed as 
+ *       the same volume id, its pointer MUST be passed as
  *       argument vp.  Failure to do so will result in a silent
  *       failure to preattach.
  *
  * @internal volume package internal use only.
  */
-Volume * 
-VPreAttachVolumeByVp_r(Error * ec, 
-                      struct DiskPartition64 * partp, 
+Volume *
+VPreAttachVolumeByVp_r(Error * ec,
+                      struct DiskPartition64 * partp,
                       Volume * vp,
                       VolId vid)
 {
@@ -2134,7 +2134,7 @@ VPreAttachVolumeByVp_r(Error * ec,
     *ec = 0;
 
     /* check to see if pre-attach already happened */
-    if (vp && 
+    if (vp &&
        (V_attachState(vp) != VOL_STATE_UNATTACHED) &&
        (V_attachState(vp) != VOL_STATE_DELETED) &&
        (V_attachState(vp) != VOL_STATE_PREATTACHED) &&
@@ -2193,7 +2193,7 @@ VPreAttachVolumeByVp_r(Error * ec,
            vp = nvp;
            goto done;
        } else {
-         /* hack to make up for VChangeState_r() decrementing 
+         /* hack to make up for VChangeState_r() decrementing
           * the old state counter */
          VStats.state_levels[0]++;
        }
@@ -2245,7 +2245,7 @@ VAttachVolumeByName_r(Error * ec, char *partition, char *name, int mode)
 #endif /* AFS_DEMAND_ATTACH_FS */
 
     *ec = 0;
-   
+
     volumeId = VolumeNumber(name);
 
     if (!(partp = VGetPartition_r(partition, 0))) {
@@ -2293,7 +2293,7 @@ VAttachVolumeByName_r(Error * ec, char *partition, char *name, int mode)
 
            if (vp->specialStatus == VBUSY)
                isbusy = 1;
-           
+
            /* if it's already attached, see if we can return it */
            if (V_attachState(vp) == VOL_STATE_ATTACHED) {
                VGetVolumeByVp_r(ec, vp);
@@ -2319,7 +2319,7 @@ VAttachVolumeByName_r(Error * ec, char *partition, char *name, int mode)
        }
 
        /* pre-attach volume if it hasn't been done yet */
-       if (!vp || 
+       if (!vp ||
            (V_attachState(vp) == VOL_STATE_UNATTACHED) ||
            (V_attachState(vp) == VOL_STATE_DELETED) ||
            (V_attachState(vp) == VOL_STATE_ERROR)) {
@@ -2332,11 +2332,11 @@ VAttachVolumeByName_r(Error * ec, char *partition, char *name, int mode)
 
        assert(vp != NULL);
 
-       /* handle pre-attach races 
+       /* handle pre-attach races
         *
         * multiple threads can race to pre-attach a volume,
         * but we can't let them race beyond that
-        * 
+        *
         * our solution is to let the first thread to bring
         * the volume into an exclusive state win; the other
         * threads just wait until it finishes bringing the
@@ -2452,11 +2452,11 @@ VAttachVolumeByName_r(Error * ec, char *partition, char *name, int mode)
         if (*ec != VSALVAGING)
 #endif /* AFS_DEMAND_ATTACH_FS */
        FSYNC_VolOp(volumeId, partition, FSYNC_VOL_ON, 0, NULL);
-    } else 
+    } else
 #endif
     if (programType == fileServer && vp) {
 #ifdef AFS_DEMAND_ATTACH_FS
-       /* 
+       /*
         * we can get here in cases where we don't "own"
         * the volume (e.g. volume owned by a utility).
         * short circuit around potential disk header races.
@@ -2536,7 +2536,7 @@ VAttachVolumeByVp_r(Error * ec, Volume * vp, int mode)
 
     /* volume utility should never call AttachByVp */
     assert(programType == fileServer);
-   
+
     volumeId = vp->hashid;
     partp = vp->partition;
     VolumeExternalName_r(volumeId, name, sizeof(name));
@@ -2564,7 +2564,7 @@ VAttachVolumeByVp_r(Error * ec, Volume * vp, int mode)
     }
 
     /* pre-attach volume if it hasn't been done yet */
-    if (!vp || 
+    if (!vp ||
        (V_attachState(vp) == VOL_STATE_UNATTACHED) ||
        (V_attachState(vp) == VOL_STATE_DELETED) ||
        (V_attachState(vp) == VOL_STATE_ERROR)) {
@@ -2578,7 +2578,7 @@ VAttachVolumeByVp_r(Error * ec, Volume * vp, int mode)
            vp = nvp;
        }
     }
-    
+
     assert(vp != NULL);
     VChangeState_r(vp, VOL_STATE_ATTACHING);
 
@@ -2607,7 +2607,7 @@ VAttachVolumeByVp_r(Error * ec, Volume * vp, int mode)
      * for any reason, skip to the end.  We cannot
      * safely call VUpdateVolume unless we "own" it.
      */
-    if (*ec || 
+    if (*ec ||
        (vp == NULL) ||
        (V_attachState(vp) != VOL_STATE_ATTACHED)) {
        goto done;
@@ -2889,7 +2889,7 @@ attach_volume_header(Error *ec, Volume *vp, struct DiskPartition64 *partp,
     IncUInt64(&vp->stats.hdr_loads);
     VOL_UNLOCK;
 #endif /* AFS_DEMAND_ATTACH_FS */
-    
+
     if (*ec) {
        Log("VAttachVolume: Error reading diskDataHandle header for vol %lu; "
            "error=%u\n", afs_printable_uint32_lu(volid), *ec);
@@ -3583,7 +3583,7 @@ VGetVolume_r(Error * ec, VolId volumeId)
 
 /* try to get a volume we've previously looked up */
 /* for demand attach fs, caller MUST NOT hold a ref count on vp */
-Volume * 
+Volume *
 VGetVolumeByVp_r(Error * ec, Volume * vp)
 {
     return GetVolume(ec, NULL, vp->hashid, vp, 0);
@@ -3622,7 +3622,7 @@ GetVolume(Error * ec, Error * client_ec, VolId volumeId, Volume * hint, int nowa
     Volume *avp, * rvp = hint;
 #endif
 
-    /* 
+    /*
      * if VInit is zero, the volume package dynamic
      * data structures have not been initialized yet,
      * and we must immediately return an error
@@ -3682,7 +3682,7 @@ GetVolume(Error * ec, Error * client_ec, VolId volumeId, Volume * hint, int nowa
 
        VGET_CTR_INC(V3);
        IncUInt64(&VStats.hdr_gets);
-       
+
 #ifdef AFS_DEMAND_ATTACH_FS
        /* block if someone else is performing an exclusive op on this volume */
        if (rvp != vp) {
@@ -3791,15 +3791,15 @@ GetVolume(Error * ec, Error * client_ec, VolId volumeId, Volume * hint, int nowa
         * not VolOpRunningUnknown (attach2 would have converted it to Online
         * or Offline)
         */
-        
+
          /* only valid before/during demand attachment */
          assert(!vp->pending_vol_op || vp->pending_vol_op->vol_op_state != FSSYNC_VolOpRunningUnknown);
-        
+
          /* deny getvolume due to running mutually exclusive vol op */
          if (vp->pending_vol_op && vp->pending_vol_op->vol_op_state==FSSYNC_VolOpRunningOffline) {
-          /* 
+          /*
            * volume cannot remain online during this volume operation.
-           * notify client. 
+           * notify client.
            */
           if (vp->specialStatus) {
               /*
@@ -3850,7 +3850,7 @@ GetVolume(Error * ec, Error * client_ec, VolId volumeId, Volume * hint, int nowa
 #endif /* AFS_DEMAND_ATTACH_FS */
            break;
        }
-       
+
        VGET_CTR_INC(V7);
        if (vp->shuttingDown) {
            VGET_CTR_INC(V8);
@@ -3984,12 +3984,12 @@ VTakeOffline(Volume * vp)
  *
  * @post needsSalvaged flag is set.
  *       for DAFS, salvage is requested.
- *       no further references to the volume through the volume 
+ *       no further references to the volume through the volume
  *       package will be honored.
  *       all file descriptor and vnode caches are invalidated.
  *
  * @warning this is a heavy-handed interface.  it results in
- *          a volume going offline regardless of the current 
+ *          a volume going offline regardless of the current
  *          reference count state.
  *
  * @internal  volume package internal use only
@@ -4134,12 +4134,12 @@ VOfflineForVolOp_r(Error *ec, Volume *vp, char *message)
     while (!VIsOfflineState(V_attachState(vp))) {
         /* do not give corrupted volumes to the volserver */
         if (vp->salvage.requested && vp->pending_vol_op->com.programType != salvageServer) {
-           *ec = 1; 
+           *ec = 1;
           goto error;
         }
        VWaitStateChange_r(vp);
     }
-    *ec = 0; 
+    *ec = 0;
  error:
     VCancelReservation_r(vp);
 }
@@ -4187,7 +4187,7 @@ VDetachVolume_r(Error * ec, Volume * vp)
     VLRU_Delete_r(vp);
     VChangeState_r(vp, VOL_STATE_SHUTTING_DOWN);
 #else
-    if (programType != fileServer) 
+    if (programType != fileServer)
        V_inUse(vp) = 0;
 #endif /* AFS_DEMAND_ATTACH_FS */
     VPutVolume_r(vp);
@@ -4198,14 +4198,14 @@ VDetachVolume_r(Error * ec, Volume * vp)
      */
 #ifdef FSSYNC_BUILD_CLIENT
     if (VCanUseFSSYNC() && notifyServer) {
-       /* 
-        * Note:  The server is not notified in the case of a bogus volume 
-        * explicitly to make it possible to create a volume, do a partial 
-        * restore, then abort the operation without ever putting the volume 
-        * online.  This is essential in the case of a volume move operation 
-        * between two partitions on the same server.  In that case, there 
-        * would be two instances of the same volume, one of them bogus, 
-        * which the file server would attempt to put on line 
+       /*
+        * Note:  The server is not notified in the case of a bogus volume
+        * explicitly to make it possible to create a volume, do a partial
+        * restore, then abort the operation without ever putting the volume
+        * online.  This is essential in the case of a volume move operation
+        * between two partitions on the same server.  In that case, there
+        * would be two instances of the same volume, one of them bogus,
+        * which the file server would attempt to put on line
         */
        FSYNC_VolOp(volume, tpartp->name, useDone, 0, NULL);
        /* XXX this code path is only hit by volume utilities, thus
@@ -4251,7 +4251,7 @@ VCloseVolumeHandles_r(Volume * vp)
     /* demand attach fs
      *
      * XXX need to investigate whether we can perform
-     * DFlushVolume outside of vol_glock_mutex... 
+     * DFlushVolume outside of vol_glock_mutex...
      *
      * VCloseVnodeFiles_r drops the glock internally */
     DFlushVolume(vp->hashid);
@@ -4288,7 +4288,7 @@ VCloseVolumeHandles_r(Volume * vp)
 
 /* For both VForceOffline and VOffline, we close all relevant handles.
  * For VOffline, if we re-attach the volume, the files may possible be
- * different than before. 
+ * different than before.
  */
 /* for demand attach, caller MUST hold a ref count on vp */
 static void
@@ -4376,7 +4376,7 @@ VUpdateVolume_r(Error * ec, Volume * vp, int flags)
     if (*ec) {
        Log("VUpdateVolume: error updating volume header, volume %u (%s)\n",
            V_id(vp), V_name(vp));
-       /* try to update on-disk header, 
+       /* try to update on-disk header,
         * while preventing infinite recursion */
        if (!(flags & VOL_UPDATE_NOFORCEOFF)) {
            VForceOffline_r(vp, VOL_FORCEOFF_NOUPDATE);
@@ -4658,8 +4658,8 @@ VCheckOffline(Volume * vp)
  * from free()ing the Volume struct during an async i/o op */
 
 /* register with the async volume op ref counter */
-/* VCreateReservation_r moved into inline code header because it 
- * is now needed in vnode.c -- tkeiser 11/20/2007 
+/* VCreateReservation_r moved into inline code header because it
+ * is now needed in vnode.c -- tkeiser 11/20/2007
  */
 
 /**
@@ -4669,7 +4669,7 @@ VCheckOffline(Volume * vp)
  *
  * @internal volume package internal use only
  *
- * @pre 
+ * @pre
  *    @arg VOL_LOCK is held
  *    @arg lightweight refcount held
  *
@@ -4706,8 +4706,8 @@ VCheckFree(Volume * vp)
     int ret = 0;
     if ((vp->nUsers == 0) &&
        (vp->nWaiters == 0) &&
-       !(V_attachFlags(vp) & (VOL_IN_HASH | 
-                              VOL_ON_VBYP_LIST | 
+       !(V_attachFlags(vp) & (VOL_IN_HASH |
+                              VOL_ON_VBYP_LIST |
                               VOL_IS_BUSY |
                               VOL_ON_VLRU))) {
        ReallyFreeVolume(vp);
@@ -4923,7 +4923,7 @@ VCheckSalvage(Volume * vp)
  * @param[in]  flags   see flags note below
  *
  * @note flags:
- *       VOL_SALVAGE_INVALIDATE_HEADER causes volume header cache entry 
+ *       VOL_SALVAGE_INVALIDATE_HEADER causes volume header cache entry
  *                                     to be invalidated.
  *
  * @pre VOL_LOCK is held.
@@ -4993,11 +4993,11 @@ VRequestSalvage_r(Error * ec, Volume * vp, int reason, int flags)
            code = 1;
        }
        if (flags & VOL_SALVAGE_INVALIDATE_HEADER) {
-           /* Instead of ReleaseVolumeHeader, we do FreeVolumeHeader() 
-               so that the the next VAttachVolumeByVp_r() invocation 
-               of attach2() will pull in a cached header 
-               entry and fail, then load a fresh one from disk and attach 
-               it to the volume.             
+           /* Instead of ReleaseVolumeHeader, we do FreeVolumeHeader()
+               so that the the next VAttachVolumeByVp_r() invocation
+               of attach2() will pull in a cached header
+               entry and fail, then load a fresh one from disk and attach
+               it to the volume.
            */
            FreeVolumeHeader(vp);
        }
@@ -5024,7 +5024,7 @@ VRequestSalvage_r(Error * ec, Volume * vp, int reason, int flags)
  *
  * @note DAFS fileserver only
  *
- * @note this should be called whenever a VGetVolume fails due to a 
+ * @note this should be called whenever a VGetVolume fails due to a
  *       pending salvage request
  *
  * @todo should set exclusive state and drop glock around salvsync call
@@ -5044,7 +5044,7 @@ VUpdateSalvagePriority_r(Volume * vp)
     now = FT_ApproxTime();
 
     /* update the salvageserver priority queue occasionally so that
-     * frequently requested volumes get moved to the head of the queue 
+     * frequently requested volumes get moved to the head of the queue
      */
     if ((vp->salvage.scheduled) &&
        (vp->stats.last_salvage_req < (now-SALVAGE_PRIO_UPDATE_INTERVAL))) {
@@ -5123,7 +5123,7 @@ try_FSSYNC(Volume *vp, char *partName, int *code) {
  *    @retval 0 salvage scheduled successfully
  *    @retval 1 salvage not scheduled, or SALVSYNC/FSSYNC com error
  *
- * @pre 
+ * @pre
  *    @arg VOL_LOCK is held.
  *    @arg nUsers and nWaiters should be zero.
  *
@@ -5172,7 +5172,7 @@ VScheduleSalvage_r(Volume * vp)
      *     to avoid fssync deadlocks
      */
     if (!vp->salvage.scheduled) {
-       /* if we haven't previously scheduled a salvage, do so now 
+       /* if we haven't previously scheduled a salvage, do so now
         *
         * set the volume to an exclusive state and drop the lock
         * around the SALVSYNC call
@@ -5303,7 +5303,7 @@ VDisconnectSALV(void)
  * @return operation status
  *    @retval 0 success
  *
- * @pre 
+ * @pre
  *    @arg VOL_LOCK is held.
  *    @arg client should have a live connection to the salvageserver.
  *
@@ -5318,7 +5318,7 @@ VDisconnectSALV(void)
  */
 int
 VDisconnectSALV_r(void)
-{ 
+{
     return SALVSYNC_clientFinis();
 }
 
@@ -5354,7 +5354,7 @@ VReconnectSALV(void)
  *    @retval 0 failure
  *    @retval 1 success
  *
- * @pre 
+ * @pre
  *    @arg VOL_LOCK is held.
  *    @arg client should have a live connection to the salvageserver.
  *
@@ -5392,7 +5392,7 @@ VReconnectSALV_r(void)
  *    @retval 0 failure
  *    @retval 1 success
  *
- * @pre 
+ * @pre
  *    @arg VInit must equal 2.
  *    @arg Program Type must not be fileserver or salvager.
  *
@@ -5419,7 +5419,7 @@ VConnectFS(void)
  *    @retval 0 failure
  *    @retval 1 success
  *
- * @pre 
+ * @pre
  *    @arg VInit must equal 2.
  *    @arg Program Type must not be fileserver or salvager.
  *    @arg VOL_LOCK is held.
@@ -5436,7 +5436,7 @@ int
 VConnectFS_r(void)
 {
     int rc;
-    assert((VInit == 2) && 
+    assert((VInit == 2) &&
           (programType != fileServer) &&
           (programType != salvager));
     rc = FSYNC_clientInit();
@@ -5448,7 +5448,7 @@ VConnectFS_r(void)
 /**
  * disconnect from the fileserver SYNC service.
  *
- * @pre 
+ * @pre
  *    @arg client should have a live connection to the fileserver.
  *    @arg VOL_LOCK is held.
  *    @arg Program Type must not be fileserver or salvager.
@@ -5572,7 +5572,7 @@ VChildProcReconnectFS(void)
 
  */
 int
-VAllocBitmapEntry_r(Error * ec, Volume * vp, 
+VAllocBitmapEntry_r(Error * ec, Volume * vp,
                    struct vnodeIndex *index, int flags)
 {
     int ret = 0;
@@ -6235,7 +6235,7 @@ VScanUpdateList(void)
  * in order to speed up fileserver shutdown
  *
  * (1) by soft detach we mean a process very similar
- *     to VOffline, except the final state of the 
+ *     to VOffline, except the final state of the
  *     Volume will be VOL_STATE_PREATTACHED, instead
  *     of the usual VOL_STATE_UNATTACHED
  */
@@ -6350,13 +6350,13 @@ static void VLRU_Wait_r(struct VLRU_q * q);
  * @note DAFS only
  *
  * @note valid option parameters are:
- *    @arg @c VLRU_SET_THRESH 
+ *    @arg @c VLRU_SET_THRESH
  *         set the period of inactivity after which
  *         volumes are eligible for soft detachment
- *    @arg @c VLRU_SET_INTERVAL 
+ *    @arg @c VLRU_SET_INTERVAL
  *         set the time interval between calls
  *         to the volume LRU "garbage collector"
- *    @arg @c VLRU_SET_MAX 
+ *    @arg @c VLRU_SET_MAX
  *         set the max number of volumes to deallocate
  *         in one GC pass
  */
@@ -6380,7 +6380,7 @@ VLRU_SetOptions(int option, afs_uint32 val)
  *
  * @post VLRU scanner thread internal timing parameters are computed
  *
- * @note computes internal timing parameters based upon user-modifiable 
+ * @note computes internal timing parameters based upon user-modifiable
  *       tunable parameters.
  *
  * @note DAFS only
@@ -6564,7 +6564,7 @@ VLRU_Add_r(Volume * vp)
  *
  * @note DAFS only
  *
- * @todo We should probably set volume state to something exlcusive 
+ * @todo We should probably set volume state to something exlcusive
  *       (as @c VLRU_Add_r does) prior to dropping @c VOL_LOCK.
  *
  * @internal volume package internal use only.
@@ -6588,7 +6588,7 @@ VLRU_Delete_r(Volume * vp)
       VLRU_Wait_r(&volume_LRU.q[idx]);
     } while (idx != vp->vlru.idx);
 
-    /* now remove from the VLRU and update 
+    /* now remove from the VLRU and update
      * the appropriate counter */
     queue_Remove(&vp->vlru);
     volume_LRU.q[idx].len--;
@@ -6669,11 +6669,11 @@ VLRU_UpdateAccess_r(Volume * vp)
  *
  * @param[in] vp       pointer to volume object
  * @param[in] new_idx  index of VLRU queue onto which the volume will be moved
- * @param[in] append   controls whether the volume will be appended or 
+ * @param[in] append   controls whether the volume will be appended or
  *                     prepended to the queue.  A nonzero value means it will
  *                     be appended; zero means it will be prepended.
  *
- * @pre The new (and old, if applicable) queue(s) must either be owned 
+ * @pre The new (and old, if applicable) queue(s) must either be owned
  *      exclusively by the calling thread for asynchronous manipulation,
  *      or the queue(s) must be quiescent and VOL_LOCK must be held.
  *      Please see VLRU_BeginExclusive_r, VLRU_EndExclusive_r and VLRU_Wait_r
@@ -6700,7 +6700,7 @@ VLRU_SwitchQueues(Volume * vp, int new_idx, int append)
 
     queue_Remove(&vp->vlru);
     volume_LRU.q[vp->vlru.idx].len--;
-    
+
     /* put the volume back on the correct generational queue */
     if (append) {
        queue_Append(&volume_LRU.q[new_idx], &vp->vlru);
@@ -6732,7 +6732,7 @@ VLRU_ScannerThread(void * args)
     afs_uint32 now, min_delay, delay;
     int i, min_idx, min_op, overdue, state;
 
-    /* set t=0 for promotion cycle to be 
+    /* set t=0 for promotion cycle to be
      * fileserver startup */
     now = FT_ApproxTime();
     for (i=0; i < VLRU_GENERATIONS-1; i++) {
@@ -6853,12 +6853,12 @@ VLRU_ScannerThread(void * args)
  *
  *    @arg The volume has been accessed since the last promotion:
  *         @c (vp->stats.last_get >= vp->stats.last_promote)
- *    @arg The last promotion occurred at least 
+ *    @arg The last promotion occurred at least
  *         @c volume_LRU.promotion_interval[idx] seconds ago
  *
  * As a performance optimization, promotions are "globbed".  In other
  * words, we promote arbitrarily large contiguous sublists of elements
- * as one operation.  
+ * as one operation.
  *
  * @param[in] idx  VLRU queue index to scan
  *
@@ -6966,7 +6966,7 @@ VLRU_Demote_r(int idx)
         * demotion passes */
        if (salv_flag_vec &&
            !(V_attachFlags(vp) & VOL_HDR_DONTSALV) &&
-           demote && 
+           demote &&
            (vp->updateTime < (now - SALVAGE_INTERVAL)) &&
            (V_attachState(vp) == VOL_STATE_ATTACHED)) {
            salv_flag_vec[salv_vec_offset++] = vp;
@@ -7118,7 +7118,7 @@ VCheckSoftDetach(Volume * vp, afs_uint32 thresh)
     return ret;
 }
 
-/* check whether volume should be made a 
+/* check whether volume should be made a
  * soft detach candidate */
 static int
 VCheckSoftDetachCandidate(Volume * vp, afs_uint32 thresh)
@@ -7224,9 +7224,9 @@ VSoftDetachVolume_r(Volume * vp, afs_uint32 thresh)
        /* vhold drops the glock, so now we should
         * check to make sure we aren't racing against
         * other threads.  if we are racing, offlining vp
-        * would be wasteful, and block the scanner for a while 
+        * would be wasteful, and block the scanner for a while
         */
-       if (vp->nWaiters || 
+       if (vp->nWaiters ||
            (vp->nUsers > 1) ||
            (vp->shuttingDown) ||
            (vp->goingOffline) ||
@@ -7267,7 +7267,7 @@ VSoftDetachVolume_r(Volume * vp, afs_uint32 thresh)
 /* Volume Header Cache routines                    */
 /***************************************************/
 
-/** 
+/**
  * volume header cache.
  */
 struct volume_hdr_LRU_t volume_hdr_LRU;
@@ -7279,7 +7279,7 @@ struct volume_hdr_LRU_t volume_hdr_LRU;
  *
  * @pre VOL_LOCK held.  Function has never been called before.
  *
- * @post howMany cache entries are allocated, initialized, and added 
+ * @post howMany cache entries are allocated, initialized, and added
  *       to the LRU list.  Header cache statistics are initialized.
  *
  * @note only applicable to fileServer program type.  Should only be
@@ -7318,7 +7318,7 @@ VInitVolumeHeaderCache(afs_uint32 howMany)
  *
  * @pre VOL_LOCK held.  For DAFS, lightweight ref must be held on volume object.
  *
- * @post volume header attached to volume object.  if necessary, header cache 
+ * @post volume header attached to volume object.  if necessary, header cache
  *       entry on LRU is synchronized to disk.  Header is removed from LRU list.
  *
  * @note VOL_LOCK may be dropped
@@ -7381,7 +7381,7 @@ GetVolumeHeader(Volume * vp)
                hd = queue_First(&volume_hdr_LRU, volHeader);
                queue_Remove(hd);
            } else {
-               /* LRU is empty, so allocate a new volHeader 
+               /* LRU is empty, so allocate a new volHeader
                 * this is probably indicative of a leak, so let the user know */
                hd = (struct volHeader *)calloc(1, sizeof(struct volHeader));
                assert(hd != NULL);
@@ -7392,7 +7392,7 @@ GetVolumeHeader(Volume * vp)
                volume_hdr_LRU.stats.free++;
            }
            if (hd->back) {
-               /* this header used to belong to someone else. 
+               /* this header used to belong to someone else.
                 * we'll need to check if the header needs to
                 * be sync'd out to disk */
 
@@ -7595,14 +7595,14 @@ FreeVolumeHeader(Volume * vp)
  *
  * @post Volume Hash Table will have 2^logsize buckets
  */
-int 
+int
 VSetVolHashSize(int logsize)
 {
     /* 64 to 16384 hash buckets seems like a reasonable range */
     if ((logsize < 6 ) || (logsize > 14)) {
         return -1;
     }
-    
+
     if (!VInit) {
         VolumeHashTable.Size = 1 << logsize;
         VolumeHashTable.Mask = VolumeHashTable.Size - 1;
@@ -7627,10 +7627,10 @@ VInitVolumeHash(void)
 {
     int i;
 
-    VolumeHashTable.Table = (VolumeHashChainHead *) calloc(VolumeHashTable.Size, 
+    VolumeHashTable.Table = (VolumeHashChainHead *) calloc(VolumeHashTable.Size,
                                                           sizeof(VolumeHashChainHead));
     assert(VolumeHashTable.Table != NULL);
-    
+
     for (i=0; i < VolumeHashTable.Size; i++) {
        queue_Init(&VolumeHashTable.Table[i]);
 #ifdef AFS_DEMAND_ATTACH_FS
@@ -7724,30 +7724,30 @@ DeleteVolumeFromHashTable(Volume * vp)
  *
  * @param[out] ec        error code return
  * @param[in]  volumeId  volume id
- * @param[in]  hint      volume object which we believe could be the correct 
+ * @param[in]  hint      volume object which we believe could be the correct
                          mapping
  *
  * @return volume object pointer
  *    @retval NULL  no such volume id is registered with the hash table.
  *
- * @pre VOL_LOCK is held.  For DAFS, caller must hold a lightweight 
+ * @pre VOL_LOCK is held.  For DAFS, caller must hold a lightweight
         ref on hint.
  *
- * @post volume object with the given id is returned.  volume object and 
- *       hash chain access statistics are updated.  hash chain may have 
+ * @post volume object with the given id is returned.  volume object and
+ *       hash chain access statistics are updated.  hash chain may have
  *       been reordered.
  *
- * @note For DAFS, VOL_LOCK may be dropped in order to wait for an 
- *       asynchronous hash chain reordering operation to finish, or 
+ * @note For DAFS, VOL_LOCK may be dropped in order to wait for an
+ *       asynchronous hash chain reordering operation to finish, or
  *       in order for us to perform an asynchronous chain reordering.
  *
- * @note Hash chain reorderings occur when the access count for the 
- *       volume object being looked up exceeds the sum of the previous 
- *       node's (the node ahead of it in the hash chain linked list) 
+ * @note Hash chain reorderings occur when the access count for the
+ *       volume object being looked up exceeds the sum of the previous
+ *       node's (the node ahead of it in the hash chain linked list)
  *       access count plus the constant VOLUME_HASH_REORDER_THRESHOLD.
  *
- * @note For DAFS, the hint parameter allows us to short-circuit if the 
- *       cacheCheck fields match between the hash chain head and the 
+ * @note For DAFS, the hint parameter allows us to short-circuit if the
+ *       cacheCheck fields match between the hash chain head and the
  *       hint volume object.
  */
 Volume *
@@ -7775,7 +7775,7 @@ VLookupVolume_r(Error * ec, VolId volumeId, Volume * hint)
 #endif /* AFS_DEMAND_ATTACH_FS */
 
     /* someday we need to either do per-chain locks, RWlocks,
-     * or both for volhash access. 
+     * or both for volhash access.
      * (and move to a data structure with better cache locality) */
 
     /* search the chain for this volume id */
@@ -7818,7 +7818,7 @@ VLookupVolume_r(Error * ec, VolId volumeId, Volume * hint)
        /* update the short-circuit cache check */
        vp->chainCacheCheck = head->cacheCheck;
     }
-#endif /* AFS_DEMAND_ATTACH_FS */    
+#endif /* AFS_DEMAND_ATTACH_FS */
 
     return vp;
 }
@@ -7949,7 +7949,7 @@ VHashEndExclusive_r(VolumeHashChainHead * head)
  * @note This interface should be called before any attempt to
  *       traverse the hash chain.  It is permissible for a thread
  *       to gain exclusive access to the chain, and then perform
- *       latent operations on the chain asynchronously wrt the 
+ *       latent operations on the chain asynchronously wrt the
  *       VOL_LOCK.
  *
  * @warning if waiting is necessary, VOL_LOCK is dropped
@@ -8110,7 +8110,7 @@ VVByPListEndExclusive_r(struct DiskPartition64 * dp)
  * @note This interface should be called before any attempt to
  *       traverse the VByPList.  It is permissible for a thread
  *       to gain exclusive access to the list, and then perform
- *       latent operations on the list asynchronously wrt the 
+ *       latent operations on the list asynchronously wrt the
  *       VOL_LOCK.
  *
  * @warning if waiting is necessary, VOL_LOCK is dropped
@@ -8201,7 +8201,7 @@ struct VLRUExtStats {
     struct VLRUExtStatsEntry * vec;
 };
 
-/** 
+/**
  * add a 256-entry fudge factor onto the vector in case state changes
  * out from under us.
  */
@@ -8331,7 +8331,7 @@ VPrintExtendedCacheStats_r(int flags)
            reorders.sum += ch_reorders.sum;
            len.sum      += (double)head->len;
            vol_sum      += head->len;
-           
+
            if (i == 0) {
                len.min      = (double) head->len;
                len.max      = (double) head->len;
@@ -8410,7 +8410,7 @@ VPrintExtendedCacheStats_r(int flags)
 
            /* dump per-chain stats */
            Log("Volume hash chain %d : len=%d, looks=%s, reorders=%s\n",
-               i, head->len, 
+               i, head->len,
                DoubleToPrintable(ch_looks.sum, pr_buf[0], sizeof(pr_buf[0])),
                DoubleToPrintable(ch_reorders.sum, pr_buf[1], sizeof(pr_buf[1])));
            Log("\tVolume gets : min=%s, max=%s, avg=%s, total=%s\n",
@@ -8431,7 +8431,7 @@ VPrintExtendedCacheStats_r(int flags)
        } else if (flags & VOL_STATS_PER_CHAIN) {
            /* dump simple per-chain stats */
            Log("Volume hash chain %d : len=%d, looks=%s, gets=%s, reorders=%s\n",
-               i, head->len, 
+               i, head->len,
                DoubleToPrintable(ch_looks.sum, pr_buf[0], sizeof(pr_buf[0])),
                DoubleToPrintable(ch_gets.sum, pr_buf[1], sizeof(pr_buf[1])),
                DoubleToPrintable(ch_reorders.sum, pr_buf[2], sizeof(pr_buf[2])));
@@ -8498,7 +8498,7 @@ VPrintExtendedCacheStats_r(int flags)
                 *     of the VGetPartitionById_r interface contract. */
                diskP = VGetPartitionById_r(i, 0);
                if (diskP) {
-                   Log("Partition %s has %d online volumes\n", 
+                   Log("Partition %s has %d online volumes\n",
                        VPartitionPath(diskP), diskP->vol_list.len);
                }
            }
index 9e2eeee53259bcb948943939c1a3b2a6bce2ceae..8eabf84889fc5d81b37b5f41c860d4c22f0e874a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -476,7 +476,7 @@ typedef struct VolumeDiskData {
 /* Memory resident volume information */
 /**************************************/
 
-/** 
+/**
  * global volume package stats.
  */
 typedef struct VolPkgStats {
@@ -646,7 +646,7 @@ typedef struct Volume {
                                 * value nextVnodeVersion */
     IHandle_t *diskDataHandle; /* Unix inode holding general volume info */
     bit16 vnodeHashOffset;     /* Computed by HashOffset function in vnode.h.
-                                * Assigned to the volume when initialized. 
+                                * Assigned to the volume when initialized.
                                 * Added to vnode number for hash table index */
     byte shuttingDown;         /* This volume is going to be detached */
     byte goingOffline;         /* This volume is going offline */
@@ -834,9 +834,9 @@ extern void VLockFileUnlock(struct VLockFile *lf, afs_uint32 offset);
 #ifdef AFS_DEMAND_ATTACH_FS
 extern Volume *VPreAttachVolumeByName(Error * ec, char *partition, char *name);
 extern Volume *VPreAttachVolumeByName_r(Error * ec, char *partition, char *name);
-extern Volume *VPreAttachVolumeById_r(Error * ec, char * partition, 
+extern Volume *VPreAttachVolumeById_r(Error * ec, char * partition,
                                      VolId volumeId);
-extern Volume *VPreAttachVolumeByVp_r(Error * ec, struct DiskPartition64 * partp, 
+extern Volume *VPreAttachVolumeByVp_r(Error * ec, struct DiskPartition64 * partp,
                                      Volume * vp, VolId volume_id);
 extern Volume *VGetVolumeByVp_r(Error * ec, Volume * vp);
 extern int VShutdownByPartition_r(struct DiskPartition64 * dp);
index 1ce7bafa3f00f75f48ccda994ee35a733f6493af..acdc21dad93acfcb23ca42c618790731aefab101 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2005-2008, Sine Nomine Associates and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -338,7 +338,7 @@ VIsOfflineState(VolState state)
 static_inline int
 VIsValidState(VolState state)
 {
-    if ((state >= 0) && 
+    if ((state >= 0) &&
        (state < VOL_STATE_COUNT)) {
        return 1;
     }
index 7abd95bd27ee32d0eb05312a22e0767c981e25b0..c53ea0e2f7fc0195b8e111e364e41f037ae1c01d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index b513d3bf31d2350bb4b7816440be76c7e3108123..5a3aae123ef3d8ef9736e58e02bf8531a9a51e9c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index e67667ac9eb38c3339fc53e5f40fd512770ae722..24df654afe8a1e73b05001af2853d046a3f47111 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 0252928acce8879cd7cf4fb3abb1531b73cace56..8c4f6f3a24377f1376b1263e6a69bf90841d490d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 349eb7247065c90f8f42050738236dcd67c7badc..0ce57e4e1e97c40d31a4e7fd00748ca6056f66e0 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index e2d79bc867e412c796754e93544fe1fca32d1c3f..0b06feb434049f2a6ecc6708b3abaaa908f3f4a9 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -168,8 +168,8 @@ iod_InitMulti(struct iod *iodp, struct rx_call **calls, int ncalls,
 /* For the single dump case, it's ok to just return the "bytes written"
  * that rx_Write returns, since all the callers of iod_Write abort when
  * the returned value is less than they expect.  For the multi dump case,
- * I don't think we want half the replicas to go bad just because one 
- * connection timed out, but if they all time out, then we should give up. 
+ * I don't think we want half the replicas to go bad just because one
+ * connection timed out, but if they all time out, then we should give up.
  */
 static int
 iod_Write(struct iod *iodp, char *buf, int nbytes)
@@ -737,7 +737,7 @@ DumpFile(struct iod *iodp, int vnode, FdHandle_t * handleP)
     howBig = status.st_size;
 
 #ifdef AFS_AIX_ENV
-    /* Unfortunately in AIX valuable fields such as st_blksize are 
+    /* Unfortunately in AIX valuable fields such as st_blksize are
      * gone from the stat structure.
      */
 #if defined(AFS_AIX52_ENV)
@@ -801,7 +801,7 @@ DumpFile(struct iod *iodp, int vnode, FdHandle_t * handleP)
                Log("1 Volser: DumpFile: Error reading inode %s for vnode %d\n", PrintInode(NULL, handleP->fd_ih->ih_ino), vnode);
            }
 
-           /* Pad the rest of the buffer with zeros. Remember offset we started 
+           /* Pad the rest of the buffer with zeros. Remember offset we started
             * padding. Keep total tally of padding.
             */
            memset(p + n, 0, howMany - n);
@@ -1142,8 +1142,8 @@ ProcessIndex(Volume * vp, VnodeClass class, afs_int32 ** Bufp, int *sizep,
                    if (vnode->type != vNull && VNDISK_GET_INO(vnode)) {
                        cnt1++;
                        if (DoLogging) {
-                           Log("RestoreVolume %u Cleanup: Removing old vnode=%u inode=%llu size=unknown\n", 
-                     V_id(vp), bitNumberToVnodeNumber(i, class), 
+                           Log("RestoreVolume %u Cleanup: Removing old vnode=%u inode=%llu size=unknown\n",
+                     V_id(vp), bitNumberToVnodeNumber(i, class),
                      (afs_uintmax_t) VNDISK_GET_INO(vnode));
                        }
                        IH_DEC(V_linkHandle(vp), VNDISK_GET_INO(vnode),
index 87b144730b3ef1915e37cdb4be436237cb1be9f7..e949f3c65e72ad33c50d87fe430123677504a137 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
 #ifndef _VOLSER_DUMPSTUFF_H
 #define _VOLSER_DUMPSTUFF_H
 
-/* This iod stuff is a silly little package to emulate the old qi_in stuff, 
+/* This iod stuff is a silly little package to emulate the old qi_in stuff,
  * which emulated the stdio stuff.  There is a big assumption here, that the
  * rx_Read will never be called directly, by a routine like readFile, when
  * there is an old character that was pushed back with iod_ungetc.  This
  * is really bletchy, and is here for compatibility only.  Eventually,
- * we should define a volume format that doesn't require the pushing back 
- * of characters (i.e. characters should not double both as an end marker 
- * and a begin marker) 
+ * we should define a volume format that doesn't require the pushing back
+ * of characters (i.e. characters should not double both as an end marker
+ * and a begin marker)
  */
 struct iod {
     struct rx_call *call;      /* call to which to write, might be an array */
@@ -32,9 +32,9 @@ struct iod {
 };
 
 extern int DumpVolume(struct rx_call *call, Volume *vp, afs_int32, int);
-extern int DumpVolMulti(struct rx_call **, int, Volume *, afs_int32, int, 
+extern int DumpVolMulti(struct rx_call **, int, Volume *, afs_int32, int,
                        int *);
-extern int RestoreVolume(struct rx_call *, Volume *, int, 
+extern int RestoreVolume(struct rx_call *, Volume *, int,
                         struct restoreCookie *);
 extern int SizeDumpVolume(struct rx_call *, Volume *, afs_int32, int,
                          struct volintSize *);
index 7c8df8b8c1ef4afa0755ba6236d6dec7b8bbab38..ecc50f80612d76ecb02b640bc4325a313e8dcf3f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index fa103ac38bb39779ea86081978cae3876700fb31..a279ba47b9ffd8caa24adf7d77ff868de455d9e5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -40,7 +40,7 @@
 
 /* Finds an index in VLDB entry that matches the volume type, server, and partition.
  * If type is zero, will match first index of ANY type (RW, BK, or RO).
- * If server is zero, will match first index of ANY server and partition 
+ * If server is zero, will match first index of ANY server and partition
  * Zero is a valid partition field.
  */
 int
@@ -115,7 +115,7 @@ Lp_SetROValue(struct nvldbentry *entry, afs_uint32 oserver,
 }
 
 /* Returns success if this server and partition matches the RW entry */
-int 
+int
 Lp_Match(afs_uint32 server, afs_int32 part,
          struct nvldbentry *entry)
 {
@@ -125,14 +125,14 @@ Lp_Match(afs_uint32 server, afs_int32 part,
 }
 
 /* Return the index of the RO entry (plus 1) if it exists, else return 0 */
-int 
+int
 Lp_ROMatch(afs_uint32 server, afs_int32 part, struct nvldbentry *entry)
 {
     return (FindIndex(entry, server, part, ITSROVOL) + 1);
 }
 
 /* Return the index of the RW entry if it exists, else return -1 */
-int 
+int
 Lp_GetRwIndex(struct nvldbentry *entry)
 {
     return (FindIndex(entry, 0, 0, ITSRWVOL));
@@ -164,7 +164,7 @@ Lp_QAdd(struct qHead *ahead, struct aqueue *elem)
     }
 }
 
-int 
+int
 Lp_QScan(struct qHead *ahead, afs_int32 id, int *success, struct aqueue **elem)
 {
     struct aqueue *cptr;
index f458f8d8fa82d1f4e9aac87af159fbb220e05132..35be2f12c4260e4b63df15d48de15f19dcf6cf2b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 8a10b5c206bc648c6652617d42609d5b8011286c..ae62c3abfaeab4c85f43eeb34eea71edfc0ab1de 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 620e87b4e222982dd3c2471d9cc843922c51edbb..4862aac94a5b771eb8c43888b0694c766e307d56 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  *    uses your current umask. Mode bits for directories are 0777 (then
  *    AND'ed with the umask). Mode bits for files are the owner mode bits
  *    duplicated accross group and user (then AND'ed with the umask).
- * 5. For restores of full dumps, if a directory says it has a file and 
- *    the file is not found, then a symbolic link "AFSFile-<#>" will 
- *    appear in that restored tree. Restores of incremental dumps remove 
- *    all these files at the end (expensive because it is a tree search).  
- * 6. If a file or directory was found in the dump but found not to be 
- *    connected to the hierarchical tree, then the file or directory 
- *    will be connected at the root of the tree as "__ORPHANEDIR__.<#>" 
- *    or "__ORPHANFILE__.<#>".  
+ * 5. For restores of full dumps, if a directory says it has a file and
+ *    the file is not found, then a symbolic link "AFSFile-<#>" will
+ *    appear in that restored tree. Restores of incremental dumps remove
+ *    all these files at the end (expensive because it is a tree search).
+ * 6. If a file or directory was found in the dump but found not to be
+ *    connected to the hierarchical tree, then the file or directory
+ *    will be connected at the root of the tree as "__ORPHANEDIR__.<#>"
+ *    or "__ORPHANFILE__.<#>".
  * 7. ACLs are not restored.
  *
  */
@@ -573,7 +573,7 @@ ReadVNode(afs_int32 count)
                        if (this_vn & 1) {
                             /*ADIRENTRY*/
                                /* dirname is the directory to create.
-                                * vflink is what will link to it. 
+                                * vflink is what will link to it.
                                 */
                                afs_snprintf(dirname, sizeof dirname, "%s/%s",
                                             parentdir, this_name);
index 9a7539f868ca658103d4f26db56694727583e0de..cef91bfd831e9956ec2de26327264cb2603f6b8a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -11,7 +11,7 @@
    System:             VICE-TWO
    Module:             vol-dump.c
    Institution:        The Information Technology Center, Carnegie-Mellon University
-   
+
    */
 
 #include <afsconfig.h>
@@ -586,7 +586,7 @@ DumpFile(int dumpfd, int vnode, FdHandle_t * handleP,  struct VnodeDiskObject *v
     howBig = status.st_size;
 
 #ifdef AFS_AIX_ENV
-    /* Unfortunately in AIX valuable fields such as st_blksize are 
+    /* Unfortunately in AIX valuable fields such as st_blksize are
      * gone from the stat structure.
      */
     fstatfs(handleP->fd_fd, &tstatfs);
@@ -657,7 +657,7 @@ DumpFile(int dumpfd, int vnode, FdHandle_t * handleP,  struct VnodeDiskObject *v
                        PrintInode(NULL, handleP->fd_ih->ih_ino), vnode);
            }
 
-           /* Pad the rest of the buffer with zeros. Remember offset we started 
+           /* Pad the rest of the buffer with zeros. Remember offset we started
             * padding. Keep total tally of padding.
             */
            memset(p + n, 0, howMany - n);
index 52f34c6a6570a20d1bcf5f0ba98e5ff1c1a3b842..5ff347656b28dba0b722d4fca36ce06fdab0e58e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 6f8daa8265d086843eb07854d453026319f44ad6..20e7baf2c9c6b402ca6fa92aa32ac9a89fc588bb 100644 (file)
@@ -82,8 +82,8 @@ struct Msg {
     char line[1024];
 };
 
-static afs_int32 
-ExtractVnodes(struct Msg *m, Volume *vol, afs_int32 class, 
+static afs_int32
+ExtractVnodes(struct Msg *m, Volume *vol, afs_int32 class,
              struct VnodeExtract **list,
              afs_uint32 *length, afs_uint32 where,
              struct VnodeDiskObject *vd,
@@ -105,7 +105,7 @@ ExtractVnodes(struct Msg *m, Volume *vol, afs_int32 class,
 
     fdP = IH_OPEN(vol->vnodeIndex[class].handle);
     if (!fdP) {
-       sprintf(m->line, "Couldn't open %s Index of volume %u\n", 
+       sprintf(m->line, "Couldn't open %s Index of volume %u\n",
                class ? "small":"large", V_id(vol));
        rx_Write(m->call, m->line, strlen(m->line));
        code = EIO;
@@ -121,7 +121,7 @@ ExtractVnodes(struct Msg *m, Volume *vol, afs_int32 class,
     memset(*list, 0, size / vcp->diskSize * sizeof(struct VnodeExtract));
     stream = FDH_FDOPEN(fdP, "r");
     if (!stream) {
-       sprintf(m->line, "Couldn't stream open %s Index of volume %u\n", 
+       sprintf(m->line, "Couldn't stream open %s Index of volume %u\n",
                class ? "small":"large", V_id(vol));
        rx_Write(m->call, m->line, strlen(m->line));
        return EIO;
@@ -153,7 +153,7 @@ ExtractVnodes(struct Msg *m, Volume *vol, afs_int32 class,
        if (*parent) {
            offset = (*parent + 1 - class) << (vcp->logSize -1);
             code = STREAM_SEEK(stream, offset, 0);
-           if (STREAM_READ(vnode, vcp->diskSize, 1, stream) == 1) 
+           if (STREAM_READ(vnode, vcp->diskSize, 1, stream) == 1)
                memcpy(parentvd, vnode, vcp->diskSize);
            else
                code = EIO;
@@ -169,7 +169,7 @@ ExtractVnodes(struct Msg *m, Volume *vol, afs_int32 class,
                        V_id(vol));
        rx_Write(m->call, m->line, strlen(m->line));
     }
-    
+
 Bad_Extract:
     if (stream)
        STREAM_CLOSE(stream);
@@ -182,10 +182,10 @@ Bad_Extract:
     return code;
 }
 
-static afs_int32 
-FindVnodes(struct Msg *m, afs_uint32 where, 
-          struct VnodeExtract *list, afs_int32 length, 
-          struct VnodeExtract *dlist, afs_int32 dlength, 
+static afs_int32
+FindVnodes(struct Msg *m, afs_uint32 where,
+          struct VnodeExtract *list, afs_int32 length,
+          struct VnodeExtract *dlist, afs_int32 dlength,
           afs_uint32 *needed, afs_int32 class)
 {
     afs_int32 i, j, found = 0;
@@ -203,17 +203,17 @@ FindVnodes(struct Msg *m, afs_uint32 where,
            list[i].flag |= (NEEDED + CHANGEPARENT);
            (*needed)++;
        }
-    } 
+    }
     if (list[0].vN & 1) {              /* only for directories */
        if (!found) {
-           sprintf(m->line, 
+           sprintf(m->line,
                "SplitVolume: directory %u where to start new volume not found\n",
                 where);
            rx_Write(m->call, m->line, strlen(m->line));
            return ENOENT;
        }
        found = 0;
-       for (i=0; i<length; i++) { 
+       for (i=0; i<length; i++) {
            if (list[i].vN == parent) { /* dir where to create mount point */
                list[i].flag |= PARENT;
                found = 1;
@@ -221,7 +221,7 @@ FindVnodes(struct Msg *m, afs_uint32 where,
            }
        }
        if (!found) {
-           sprintf(m->line, "SplitVolume: parent directory %u not found\n", 
+           sprintf(m->line, "SplitVolume: parent directory %u not found\n",
                        parent);
            rx_Write(m->call, m->line, strlen(m->line));
            return ENOENT;
@@ -243,14 +243,14 @@ FindVnodes(struct Msg *m, afs_uint32 where,
        }
     }
     if (m->verbose) {
-       sprintf(m->line, "%u %s vnodes will go into the new volume\n", 
+       sprintf(m->line, "%u %s vnodes will go into the new volume\n",
                        *needed, class ? "small" : "large");
        rx_Write(m->call, m->line, strlen(m->line));
     }
     return 0;
 }
-    
-static afs_int32 
+
+static afs_int32
 copyDir(struct Msg *m, IHandle_t *inh, IHandle_t *outh)
 {
     FdHandle_t *infdP, *outfdP;
@@ -259,7 +259,7 @@ copyDir(struct Msg *m, IHandle_t *inh, IHandle_t *outh)
 
     infdP = IH_OPEN(inh);
     if (!infdP) {
-       sprintf(m->line, "Couldn't open input directory %u.%u.%u\n", 
+       sprintf(m->line, "Couldn't open input directory %u.%u.%u\n",
                    infdP->fd_ih->ih_vid,
                    (afs_uint32)(infdP->fd_ih->ih_ino & NAMEI_VNODEMASK),
                    (afs_uint32)(infdP->fd_ih->ih_ino >> NAMEI_UNIQSHIFT));
@@ -268,7 +268,7 @@ copyDir(struct Msg *m, IHandle_t *inh, IHandle_t *outh)
     }
     outfdP = IH_OPEN(outh);
     if (!outfdP) {
-       sprintf(m->line, "Couldn't open output directory %u.%u.%u\n", 
+       sprintf(m->line, "Couldn't open output directory %u.%u.%u\n",
                    outfdP->fd_ih->ih_vid,
                    (afs_uint32)(outfdP->fd_ih->ih_ino & NAMEI_VNODEMASK),
                    (afs_uint32)(outfdP->fd_ih->ih_ino >> NAMEI_UNIQSHIFT));
@@ -284,7 +284,7 @@ copyDir(struct Msg *m, IHandle_t *inh, IHandle_t *outh)
        size_t tlen;
         tlen = size > 2048 ? 2048 : size;
         if (FDH_READ(infdP, tbuf, tlen) != tlen) {
-                   sprintf(m->line, "Couldn't read directory %u.%u.%u\n", 
+                   sprintf(m->line, "Couldn't read directory %u.%u.%u\n",
                    infdP->fd_ih->ih_vid,
                    (afs_uint32)(infdP->fd_ih->ih_ino & NAMEI_VNODEMASK),
                    (afs_uint32)(infdP->fd_ih->ih_ino >> NAMEI_UNIQSHIFT));
@@ -295,7 +295,7 @@ copyDir(struct Msg *m, IHandle_t *inh, IHandle_t *outh)
            return EIO;
        }
        if (FDH_WRITE(outfdP, tbuf, tlen) != tlen) {
-           sprintf(m->line, "Couldn't write directory %u.%u.%u\n", 
+           sprintf(m->line, "Couldn't write directory %u.%u.%u\n",
                    outfdP->fd_ih->ih_vid,
                    (afs_uint32)(outfdP->fd_ih->ih_ino & NAMEI_VNODEMASK),
                    (afs_uint32)(outfdP->fd_ih->ih_ino >> NAMEI_UNIQSHIFT));
@@ -313,11 +313,11 @@ copyDir(struct Msg *m, IHandle_t *inh, IHandle_t *outh)
     return 0;
 }
 
-afs_int32 copyVnodes(struct Msg *m, Volume *vol, Volume *newvol, 
-                       afs_int32 class, 
+afs_int32 copyVnodes(struct Msg *m, Volume *vol, Volume *newvol,
+                       afs_int32 class,
                        struct VnodeExtract *list, afs_int32 length,
                        afs_int32 where, afs_uint64 *blocks,
-                       struct VnodeDiskObject *parVnode) 
+                       struct VnodeDiskObject *parVnode)
 {
     afs_int32 i, code = 0;
     char buf[SIZEOF_LARGEDISKVNODE];
@@ -332,14 +332,14 @@ afs_int32 copyVnodes(struct Msg *m, Volume *vol, Volume *newvol,
 
     fdP = IH_OPEN(vol->vnodeIndex[class].handle);
     if (!fdP) {
-       Log("Couldn't open %s Index of volume %u\n", 
+       Log("Couldn't open %s Index of volume %u\n",
                class ? "small":"large", V_id(vol));
        code = EIO;
        goto Bad_Copy;
     }
     newfdP = IH_OPEN(newvol->vnodeIndex[class].handle);
     if (!newfdP) {
-       Log("Couldn't open %s Index of volume %u\n", 
+       Log("Couldn't open %s Index of volume %u\n",
                class ? "small":"large", V_id(newvol));
        code = EIO;
        goto Bad_Copy;
@@ -360,9 +360,9 @@ afs_int32 copyVnodes(struct Msg *m, Volume *vol, Volume *newvol,
                goto Bad_Copy;
            }
            if (e->flag & PARENT) {
-               /* 
-                *   do a preventive copy on write for later update 
-                 */ 
+               /*
+                *   do a preventive copy on write for later update
+                 */
                IHandle_t *newh = 0;
                IHandle_t *h = 0;
 #if defined(NEARINODE_HINT) && !defined(AFS_NAMEI_ENV)
@@ -372,7 +372,7 @@ afs_int32 copyVnodes(struct Msg *m, Volume *vol, Volume *newvol,
 
                newino = IH_CREATE(V_linkHandle(vol), V_device(vol),
                                VPartitionPath(V_partition(vol)),
-                               nearInode, V_parentId(vol), 
+                               nearInode, V_parentId(vol),
                                e->vN, vnode->uniquifier,
                                vnode->dataVersion);
                IH_INIT(newh, V_device(vol), V_parentId(vol), newino);
@@ -405,15 +405,15 @@ afs_int32 copyVnodes(struct Msg *m, Volume *vol, Volume *newvol,
                    V_pref(vol,nearInode)
 #endif
                    IH_INIT(h, vol->device, V_parentId(vol), ino);
-                   if (e->parent == where) 
+                   if (e->parent == where)
                        vnode->parent = 1;
                    newino = IH_CREATE(V_linkHandle(newvol), V_device(newvol),
                                VPartitionPath(V_partition(newvol)),
-                               nearInode, V_parentId(newvol), 
+                               nearInode, V_parentId(newvol),
                                e->vN, vnode->uniquifier,
                                vnode->dataVersion);
                    if (!VALID_INO(newino)) {
-                       Log("IH_CREATE failed for %u.%u.%u\n", 
+                       Log("IH_CREATE failed for %u.%u.%u\n",
                            V_id(newvol), e->vN, vnode->uniquifier);
                        code = EIO;
                        goto Bad_Copy;
@@ -444,18 +444,18 @@ afs_int32 copyVnodes(struct Msg *m, Volume *vol, Volume *newvol,
         }
     }
     /*
-     *  Now copy the root directory from old to new volume 
+     *  Now copy the root directory from old to new volume
      */
     if (class == vLarge) {
        IHandle_t *h, *newh;
         char buf2[SIZEOF_LARGEDISKVNODE];
         struct VnodeDiskObject *vnode2 = (struct VnodeDiskObject *)&buf2;
        afs_uint64 newoffset;
-       
+
        newoffset = vcp->diskSize;
        if (FDH_SEEK(newfdP, newoffset, 0) != newoffset
         || FDH_READ(newfdP, vnode2, vcp->diskSize) != vcp->diskSize) {
-           Log("splitvolume: couldn't read in large Index of new volume %u at offset %u\n", 
+           Log("splitvolume: couldn't read in large Index of new volume %u at offset %u\n",
                    V_id(newvol), vcp->diskSize);
            code = EIO;
            goto Bad_Copy;
@@ -489,10 +489,10 @@ afs_int32 copyVnodes(struct Msg *m, Volume *vol, Volume *newvol,
        vnode->serverModifyTime = vnode2->serverModifyTime;
        if (FDH_SEEK(newfdP, newoffset, 0) != newoffset
          || FDH_WRITE(newfdP, vnode, vcp->diskSize) != vcp->diskSize) {
-           Log("splitvolume: couldn't write in large Index of %u at offset %u\n", 
+           Log("splitvolume: couldn't write in large Index of %u at offset %u\n",
                    V_id(newvol), vcp->diskSize);
            code = EIO;
-       } 
+       }
     }
 Bad_Copy:
     if (fdP)
@@ -503,7 +503,7 @@ Bad_Copy:
 }
 
 static afs_int32
-findName(Volume *vol, struct VnodeDiskObject *vd, afs_uint32 vN, 
+findName(Volume *vol, struct VnodeDiskObject *vd, afs_uint32 vN,
         afs_uint32 un, char *name,afs_int32 length)
 {
     afs_int32 code;
@@ -514,12 +514,12 @@ findName(Volume *vol, struct VnodeDiskObject *vd, afs_uint32 vN,
     SetSalvageDirHandle(&dir, V_id(vol), V_device(vol), ino);
 
     code = InverseLookup(&dir, vN, un, name, length);
-    FidZap(&dir);   
+    FidZap(&dir);
     return code;
 }
 
 static afs_int32
-createMountpoint(Volume *vol, Volume *newvol, struct VnodeDiskObject *parent, 
+createMountpoint(Volume *vol, Volume *newvol, struct VnodeDiskObject *parent,
                afs_uint32 vN,  struct VnodeDiskObject *vd, char *name)
 {
     afs_int32 code;
@@ -579,11 +579,11 @@ createMountpoint(Volume *vol, Volume *newvol, struct VnodeDiskObject *parent,
     newino = IH_CREATE(V_linkHandle(vol), V_device(vol),
                VPartitionPath(V_partition(vol)), nearInode,
                 V_parentId(vol), newvN, vnode.uniquifier, 1);
-    
+
     IH_INIT(h, V_device(vol), V_parentId(vol), newino);
     fdP2 = IH_OPEN(h);
     if (!fdP2) {
-       Log("split volume: couldn't open inode for mountpoint %u.%u.%u\n", 
+       Log("split volume: couldn't open inode for mountpoint %u.%u.%u\n",
                V_id(vol), newvN, vnode.uniquifier);
        return EIO;
     }
@@ -591,7 +591,7 @@ createMountpoint(Volume *vol, Volume *newvol, struct VnodeDiskObject *parent,
     sprintf(symlink, "#%s", V_name(newvol));
     size = strlen(symlink) + 1;
     if (FDH_WRITE(fdP2, symlink, size) != size) {
-       Log("split volume: couldn't write mountpoint %u.%u.%u\n", 
+       Log("split volume: couldn't write mountpoint %u.%u.%u\n",
                V_id(vol), newvN, vnode.uniquifier);
        return EIO;
     }
@@ -601,10 +601,10 @@ createMountpoint(Volume *vol, Volume *newvol, struct VnodeDiskObject *parent,
     VNDISK_SET_LEN(&vnode, size);
 #ifndef AFS_RXOSD_SUPPORT
     vnode.vnodeMagic = SMALLVNODEMAGIC;
-#endif    
+#endif
     if (FDH_SEEK(fdP, offset, 0) != offset
       || FDH_WRITE(fdP, &vnode, vcp->diskSize) != vcp->diskSize) {
-       Log("split volume: couldn't write vnode for mountpoint %u.%u.%u\n", 
+       Log("split volume: couldn't write vnode for mountpoint %u.%u.%u\n",
                V_id(vol), newvN, vnode.uniquifier);
        return EIO;
     }
@@ -628,8 +628,8 @@ createMountpoint(Volume *vol, Volume *newvol, struct VnodeDiskObject *parent,
        return code;
     }
     code = Create(&dir, name, &fid);
-    FidZap(&dir);   
+    FidZap(&dir);
+
     class = vLarge;
     vcp = &VnodeClassInfo[class];
     fdP = IH_OPEN(vol->vnodeIndex[class].handle);
@@ -637,7 +637,7 @@ createMountpoint(Volume *vol, Volume *newvol, struct VnodeDiskObject *parent,
     parent->dataVersion++;
     if (FDH_SEEK(fdP, offset, 0) != offset
       || FDH_WRITE(fdP, parent, vcp->diskSize) != vcp->diskSize) {
-       Log("split volume: couldn't write vnode for parent directory %u.%u.%u\n", 
+       Log("split volume: couldn't write vnode for parent directory %u.%u.%u\n",
                V_id(vol), vN, parent->uniquifier);
        return EIO;
     }
@@ -645,8 +645,8 @@ createMountpoint(Volume *vol, Volume *newvol, struct VnodeDiskObject *parent,
     return code;
 }
 
-static afs_int32 
-deleteVnodes(Volume *vol, afs_int32 class, 
+static afs_int32
+deleteVnodes(Volume *vol, afs_int32 class,
             struct VnodeExtract *list, afs_int32 length,
             afs_uint64 *blocks)
 {
@@ -662,7 +662,7 @@ deleteVnodes(Volume *vol, afs_int32 class,
 
     fdP = IH_OPEN(vol->vnodeIndex[class].handle);
     if (!fdP) {
-       Log("Couldn't open %s Index of volume %u\n", 
+       Log("Couldn't open %s Index of volume %u\n",
                class ? "small":"large", V_id(vol));
        code = EIO;
        goto Bad_Delete;
@@ -702,7 +702,7 @@ deleteVnodes(Volume *vol, afs_int32 class,
            }
            memset(vnode, 0, vcp->diskSize);
            vnode->type = vNull;
-           if (FDH_SEEK(fdP, offset, 0) != offset 
+           if (FDH_SEEK(fdP, offset, 0) != offset
              || FDH_WRITE(fdP, vnode, vcp->diskSize) != vcp->diskSize) {
                   Log("Couldn't write in %s Index of volume %u to offset %"
                       AFS_UINT64_FMT "\n", class ? "small":"large",
@@ -716,8 +716,8 @@ Bad_Delete:
     return code;
 }
 
-afs_int32 
-split_volume(struct rx_call *call, Volume *vol, Volume *newvol, 
+afs_int32
+split_volume(struct rx_call *call, Volume *vol, Volume *newvol,
             afs_uint32 where, afs_int32 verbose)
 {
     Error code = 0;
@@ -739,22 +739,22 @@ split_volume(struct rx_call *call, Volume *vol, Volume *newvol,
     m->call = call;
     m->verbose = verbose;
 
-    /* 
+    /*
      *  First step: planning
      *
      *  Find out which directories will belong to the new volume
      *
      */
     if (verbose) {
-       sprintf(m->line, 
+       sprintf(m->line,
                "1st step: extract vnode essence from large vnode file\n");
        rx_Write(m->call, m->line, strlen(m->line));
     }
 
-    code = ExtractVnodes(m, vol, vLarge, &dirList, &dl, where, rootVnode, 
+    code = ExtractVnodes(m, vol, vLarge, &dirList, &dl, where, rootVnode,
                        &parent, parVnode);
     if (code) {
-       sprintf(m->line, 
+       sprintf(m->line,
                "ExtractVnodes failed for %u for directories with code %d\n",
                V_id(vol), code);
        rx_Write(m->call, m->line, strlen(m->line));
@@ -763,31 +763,31 @@ split_volume(struct rx_call *call, Volume *vol, Volume *newvol,
 
     if (verbose) {
        sprintf(m->line, "2nd step: look for name of vnode %u in directory %u.%u.%u\n",
-               where, V_id(vol), parent, parVnode->uniquifier); 
+               where, V_id(vol), parent, parVnode->uniquifier);
        rx_Write(m->call, m->line, strlen(m->line));
     }
-    code = findName(vol, parVnode, where, rootVnode->uniquifier, 
+    code = findName(vol, parVnode, where, rootVnode->uniquifier,
                     name,  sizeof(name));
     if (code) {
-       sprintf(m->line, 
+       sprintf(m->line,
                "splitvolume: could'nt find name of %u in directory %u.%u.%u.\n",
-               where, V_id(vol), parent, parVnode->uniquifier); 
+               where, V_id(vol), parent, parVnode->uniquifier);
        rx_Write(m->call, m->line, strlen(m->line));
        return code;
     }
     if (verbose) {
-       sprintf(m->line, "name of %u is %s\n", where, name); 
+       sprintf(m->line, "name of %u is %s\n", where, name);
        rx_Write(m->call, m->line, strlen(m->line));
     }
 
     if (verbose) {
-       sprintf(m->line, "3rd step: find all directory vnodes belonging to the subtree under %u \"%s\"\n", 
+       sprintf(m->line, "3rd step: find all directory vnodes belonging to the subtree under %u \"%s\"\n",
                        where, name);
        rx_Write(m->call, m->line, strlen(m->line));
     }
     code = FindVnodes(m, where, dirList, dl, dirList, dl, &dirsNeeded, 1);
     if (code) {
-       sprintf(m->line, 
+       sprintf(m->line,
                "FindVnodes for directories failed with code %d\n", code);
        rx_Write(m->call, m->line, strlen(m->line));
        return code;
@@ -799,20 +799,20 @@ split_volume(struct rx_call *call, Volume *vol, Volume *newvol,
     }
     code = ExtractVnodes(m, vol, vSmall, &fileList, &fl, where, 0, 0, 0);
     if (code) {
-       sprintf(m->line, 
+       sprintf(m->line,
                "ExtractVnodes failed for %u for files with code %d\n",
                V_id(vol), code);
        rx_Write(m->call, m->line, strlen(m->line));
        return code;
     }
     if (verbose) {
-       sprintf(m->line, "5th step: find all small vnodes belonging to the subtree under %u \"%s\"\n", 
+       sprintf(m->line, "5th step: find all small vnodes belonging to the subtree under %u \"%s\"\n",
                        where, name);
        rx_Write(m->call, m->line, strlen(m->line));
     }
     FindVnodes(m, where, fileList, fl, dirList, dl, &filesNeeded, 0);
 
-    /* 
+    /*
      *  Third step: create hard links for all files needed
      *
      */
@@ -823,15 +823,15 @@ split_volume(struct rx_call *call, Volume *vol, Volume *newvol,
        sprintf(m->line, "6th step: create hard links in the AFSIDat tree between files of the old and new volume\n");
        rx_Write(m->call, m->line, strlen(m->line));
     }
-    code = copyVnodes(m, vol, newvol, 1, fileList, fl, where, &blocks, 0); 
+    code = copyVnodes(m, vol, newvol, 1, fileList, fl, where, &blocks, 0);
     if (code) {
        sprintf(m->line, "copyVnodes for files failed with code %d\n", code);
        rx_Write(m->call, m->line, strlen(m->line));
        return code;
     }
-       
-    /* 
-     *  Forth step: create hard links for all directories and copy 
+
+    /*
+     *  Forth step: create hard links for all directories and copy
      *  split directory to new root directory
      */
 
@@ -840,7 +840,7 @@ split_volume(struct rx_call *call, Volume *vol, Volume *newvol,
                where);
        rx_Write(m->call, m->line, strlen(m->line));
     }
-    code = copyVnodes(m, vol, newvol, 0, dirList, dl, where, &blocks, parVnode); 
+    code = copyVnodes(m, vol, newvol, 0, dirList, dl, where, &blocks, parVnode);
     if (code) {
        sprintf(m->line, "copyVnodes for directories failed with code %d\n", code);
        rx_Write(m->call, m->line, strlen(m->line));
@@ -875,7 +875,7 @@ split_volume(struct rx_call *call, Volume *vol, Volume *newvol,
        sprintf(m->line, "9th step: create mountpoint \"%s\" for new volume in old volume's directory %u.\n", name, parent);
        rx_Write(m->call, m->line, strlen(m->line));
     }
-    
+
     code = createMountpoint(vol, newvol, parVnode, parent, rootVnode, name);
     if (code) {
        sprintf(m->line, "createMountpoint failed with code %d\n", code);
@@ -886,7 +886,7 @@ split_volume(struct rx_call *call, Volume *vol, Volume *newvol,
      * Now both volumes should be ready and consistent, but the old volume
      * contains still the vnodes and data we transferred into the new one.
      * Delete orphaned vnodes and data.
-     */ 
+     */
 
     blocks = 0;
     if (verbose) {
index 16db9f0c0c44d3149240de722ba03060cabf1458..9d7b8a3e34383e955119ca5d713f181cd2008522 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 2000, International Business Machines Corporation and others.
 # All Rights Reserved.
-# 
+#
 # This software has been released under the terms of the IBM Public
 # License.  For details, see the LICENSE file in the top-level source
 # directory or online at http://www.openafs.org/dl/license10.html
index d7b979e59519bd746736eb1b2a7c177e7e60c621..4d20f0a7a2ef13c8618c99230459b07481972f8f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -211,7 +211,7 @@ struct pIDs {
 
 struct diskPartition {
         char   name[32];       /* Mounted partition name */
-        char   devName[32];    
+        char   devName[32];
         int    lock_fd;
        int     totalUsable;
        int     free;
@@ -221,7 +221,7 @@ struct diskPartition {
 
 struct diskPartition64 {
     char       name[256];      /* Mounted partition name */
-    char       devName[256];   
+    char       devName[256];
     int                lock_fd;
     afs_int64  totalUsable;
     afs_int64  free;
index 2b43be614cd9eb0998852ba7ab4bf40fe7b6c54c..b2f5605432dcfa595aeab37303776fc5a6b1690e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -84,7 +84,7 @@ struct volser_trans *QI_GlobalWriteTrans = 0;
 struct afsconf_dir *tdir;
 static afs_int32 runningCalls = 0;
 int DoLogging = 0;
-int debuglevel = 0; 
+int debuglevel = 0;
 #define MAXLWP 128
 int lwps = 9;
 int udpBufSize = 0;            /* UDP buffer size for receive */
@@ -127,7 +127,7 @@ MyAfterProc(struct rx_call *acall, afs_int32 code)
 }
 
 /* Called every GCWAKEUP seconds to try to unlock all our partitions,
- * if we're idle and there are no active transactions 
+ * if we're idle and there are no active transactions
  */
 static void
 TryUnlock(void)
@@ -239,7 +239,7 @@ vol_rxstat_userok(struct rx_call *call)
 }
 
 #include "AFS_component_version_number.c"
-int 
+int
 main(int argc, char **argv)
 {
     afs_int32 code;
@@ -257,8 +257,8 @@ main(int argc, char **argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
@@ -298,8 +298,8 @@ main(int argc, char **argv)
            rxkadDisableDotCheck = 1;
        } else if (strcmp(argv[code], "-d") == 0) {
            if ((code + 1) >= argc) {
-               fprintf(stderr, "missing argument for -d\n"); 
-               return -1; 
+               fprintf(stderr, "missing argument for -d\n");
+               return -1;
            }
            debuglevel = atoi(argv[++code]);
            LogLevel = debuglevel;
@@ -326,14 +326,14 @@ main(int argc, char **argv)
            rxJumbograms = 1;
        } else if (!strcmp(argv[code], "-rxmaxmtu")) {
            if ((code + 1) >= argc) {
-               fprintf(stderr, "missing argument for -rxmaxmtu\n"); 
-               exit(1); 
+               fprintf(stderr, "missing argument for -rxmaxmtu\n");
+               exit(1);
            }
            rxMaxMTU = atoi(argv[++code]);
-           if ((rxMaxMTU < RX_MIN_PACKET_SIZE) || 
+           if ((rxMaxMTU < RX_MIN_PACKET_SIZE) ||
                (rxMaxMTU > RX_MAX_PACKET_DATA_SIZE)) {
                printf("rxMaxMTU %d invalid; must be between %d-%" AFS_SIZET_FMT "\n",
-                      rxMaxMTU, RX_MIN_PACKET_SIZE, 
+                      rxMaxMTU, RX_MIN_PACKET_SIZE,
                       RX_MAX_PACKET_DATA_SIZE);
                exit(1);
            }
@@ -440,18 +440,18 @@ main(int argc, char **argv)
        rx_SetUdpBufSize(udpBufSize);   /* set the UDP buffer size for receive */
     if (rxBind) {
        afs_int32 ccode;
-        if (AFSDIR_SERVER_NETRESTRICT_FILEPATH || 
+        if (AFSDIR_SERVER_NETRESTRICT_FILEPATH ||
             AFSDIR_SERVER_NETINFO_FILEPATH) {
             char reason[1024];
             ccode = parseNetFiles(SHostAddrs, NULL, NULL,
                                            ADDRSPERSITE, reason,
                                            AFSDIR_SERVER_NETINFO_FILEPATH,
                                            AFSDIR_SERVER_NETRESTRICT_FILEPATH);
-        } else 
+        } else
        {
             ccode = rx_getAllAddr(SHostAddrs, ADDRSPERSITE);
         }
-        if (ccode == 1) 
+        if (ccode == 1)
             host = SHostAddrs[0];
     }
 
index 18bd7e7a12a987d88386151ea54a53789b4ce026..a371da5f876f44074366ba195bc4b0f1f7efb73f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -87,7 +87,7 @@ static int GetPartName(afs_int32 partid, char *pname);
 #endif
 
 afs_int32 localTid = 1;
+
 static afs_int32 VolPartitionInfo(struct rx_call *, char *pname,
                                  struct diskPartition64 *);
 static afs_int32 VolNukeVolume(struct rx_call *, afs_int32, afs_uint32);
@@ -133,7 +133,7 @@ static afs_int32 VolSetIdsTypes(struct rx_call *, afs_int32, char [],
 static afs_int32 VolSetDate(struct rx_call *, afs_int32, afs_int32);
 
 /* this call unlocks all of the partition locks we've set */
-int 
+int
 VPFullUnlock_r(void)
 {
     struct DiskPartition64 *tp;
@@ -411,7 +411,7 @@ ViceCreateRoot(Volume *vp)
 }
 
 afs_int32
-SAFSVolPartitionInfo(struct rx_call *acid, char *pname, struct diskPartition 
+SAFSVolPartitionInfo(struct rx_call *acid, char *pname, struct diskPartition
                     *partition)
 {
     afs_int32 code;
@@ -432,7 +432,7 @@ SAFSVolPartitionInfo(struct rx_call *acid, char *pname, struct diskPartition
 }
 
 afs_int32
-SAFSVolPartitionInfo64(struct rx_call *acid, char *pname, struct diskPartition64 
+SAFSVolPartitionInfo64(struct rx_call *acid, char *pname, struct diskPartition64
                     *partition)
 {
     afs_int32 code;
@@ -443,7 +443,7 @@ SAFSVolPartitionInfo64(struct rx_call *acid, char *pname, struct diskPartition64
 }
 
 afs_int32
-VolPartitionInfo(struct rx_call *acid, char *pname, struct diskPartition64 
+VolPartitionInfo(struct rx_call *acid, char *pname, struct diskPartition64
                 *partition)
 {
     struct DiskPartition64 *dp;
@@ -511,8 +511,8 @@ VolNukeVolume(struct rx_call *acid, afs_int32 apartID, afs_uint32 avolID)
  * Return the new volume id in *avolid.
  */
 afs_int32
-SAFSVolCreateVolume(struct rx_call *acid, afs_int32 apart, char *aname, 
-                   afs_int32 atype, afs_uint32 aparent, afs_uint32 *avolid, 
+SAFSVolCreateVolume(struct rx_call *acid, afs_int32 apart, char *aname,
+                   afs_int32 atype, afs_uint32 aparent, afs_uint32 *avolid,
                    afs_int32 *atrans)
 {
     afs_int32 code;
@@ -526,8 +526,8 @@ SAFSVolCreateVolume(struct rx_call *acid, afs_int32 apart, char *aname,
 }
 
 static afs_int32
-VolCreateVolume(struct rx_call *acid, afs_int32 apart, char *aname, 
-                   afs_int32 atype, afs_uint32 aparent, afs_uint32 *avolid, 
+VolCreateVolume(struct rx_call *acid, afs_int32 apart, char *aname,
+                   afs_int32 atype, afs_uint32 aparent, afs_uint32 *avolid,
                    afs_int32 *atrans)
 {
     Error error;
@@ -664,7 +664,7 @@ VolDeleteVolume(struct rx_call *acid, afs_int32 atrans)
  */
 /* for efficiency reasons, sometimes faster to piggyback a purge here */
 afs_int32
-SAFSVolClone(struct rx_call *acid, afs_int32 atrans, afs_uint32 purgeId, 
+SAFSVolClone(struct rx_call *acid, afs_int32 atrans, afs_uint32 purgeId,
             afs_int32 newType, char *newName, afs_uint32 *newNumber)
 {
     afs_int32 code;
@@ -677,7 +677,7 @@ SAFSVolClone(struct rx_call *acid, afs_int32 atrans, afs_uint32 purgeId,
 }
 
 static afs_int32
-VolClone(struct rx_call *acid, afs_int32 atrans, afs_uint32 purgeId, 
+VolClone(struct rx_call *acid, afs_int32 atrans, afs_uint32 purgeId,
             afs_int32 newType, char *newName, afs_uint32 *newNumber)
 {
     afs_uint32 newId;
@@ -992,9 +992,9 @@ VolReClone(struct rx_call *acid, afs_int32 atrans, afs_int32 cloneId)
        LogError(error);
        goto fail;
     }
-    /* VUpdateVolume succeeded. Mark it in service so there's no window 
-     * between FSYNC_VOL_ON and VolSetFlags where it's offline with no  
-     * specialStatus; this is a reclone and this volume started online  
+    /* VUpdateVolume succeeded. Mark it in service so there's no window
+     * between FSYNC_VOL_ON and VolSetFlags where it's offline with no
+     * specialStatus; this is a reclone and this volume started online
      */
     V_inService(clonevp) = 1;
     VDetachVolume(&error, clonevp);    /* allow file server to get it's hands on it */
@@ -1233,7 +1233,7 @@ VolSetFlags(struct rx_call *acid, afs_int32 atid, afs_int32 aflags)
  */
 afs_int32
 SAFSVolForward(struct rx_call *acid, afs_int32 fromTrans, afs_int32 fromDate,
-              struct destServer *destination, afs_int32 destTrans, 
+              struct destServer *destination, afs_int32 destTrans,
               struct restoreCookie *cookie)
 {
     afs_int32 code;
@@ -1247,7 +1247,7 @@ SAFSVolForward(struct rx_call *acid, afs_int32 fromTrans, afs_int32 fromDate,
 
 static afs_int32
 VolForward(struct rx_call *acid, afs_int32 fromTrans, afs_int32 fromDate,
-              struct destServer *destination, afs_int32 destTrans, 
+              struct destServer *destination, afs_int32 destTrans,
               struct restoreCookie *cookie)
 {
     struct volser_trans *tt;
@@ -1332,16 +1332,16 @@ VolForward(struct rx_call *acid, afs_int32 fromTrans, afs_int32 fromDate,
 
 /* Start a dump and send it to multiple places simultaneously.
  * If this returns an error (eg, return ENOENT), it means that
- * none of the releases worked.  If this returns 0, that means 
+ * none of the releases worked.  If this returns 0, that means
  * that one or more of the releases worked, and the caller has
  * to examine the results array to see which one(s).
  * This will only do EITHER incremental or full, not both, so it's
  * the caller's responsibility to be sure that all the destinations
- * need just an incremental (and from the same time), if that's 
- * what we're doing. 
+ * need just an incremental (and from the same time), if that's
+ * what we're doing.
  */
 afs_int32
-SAFSVolForwardMultiple(struct rx_call *acid, afs_int32 fromTrans, afs_int32 
+SAFSVolForwardMultiple(struct rx_call *acid, afs_int32 fromTrans, afs_int32
                       fromDate, manyDests *destinations, afs_int32 spare,
                       struct restoreCookie *cookie, manyResults *results)
 {
@@ -1360,7 +1360,7 @@ SAFSVolForwardMultiple(struct rx_call *acid, afs_int32 fromTrans, afs_int32
        i = results->manyResults_len = destinations->manyDests_len;
        results->manyResults_val = codes =
          (afs_int32 *) malloc(i * sizeof(afs_int32));
-    }  
+    }
     if (!results || !results->manyResults_val)
        return ENOMEM;
 
@@ -1514,7 +1514,7 @@ VolDump(struct rx_call *acid, afs_int32 fromTrans, afs_int32 fromDate,
     return 0;
 }
 
-/* 
+/*
  * Ha!  No more helper process!
  */
 afs_int32
@@ -2032,13 +2032,13 @@ FillVolInfo(Volume * vp, volint_info_handle_t * handle)
      *   -- tkeiser 11/27/2007
      */
 
-    /* Conditions that offline status is based on: 
+    /* Conditions that offline status is based on:
                volume is unattached state
                volume state is in (one of several error states)
                volume not in service
                volume is not marked as blessed (not on hold)
                volume in salvage req. state
-               volume needsSalvaged 
+               volume needsSalvaged
                next op would set volume offline
                next op would not leave volume online (based on several conditions)
     */
@@ -2046,11 +2046,11 @@ FillVolInfo(Volume * vp, volint_info_handle_t * handle)
        (V_attachState(vp) == VOL_STATE_UNATTACHED) ||
        VIsErrorState(V_attachState(vp)) ||
        !hdr->inService ||
-       !hdr->blessed || 
+       !hdr->blessed ||
        (V_attachState(vp) == VOL_STATE_SALVSYNC_REQ) ||
        hdr->needsSalvaged ||
-       (vp->pending_vol_op && 
-               (vp->pending_vol_op->com.command == FSYNC_VOL_OFF || 
+       (vp->pending_vol_op &&
+               (vp->pending_vol_op->com.command == FSYNC_VOL_OFF ||
                !VVolOpLeaveOnline_r(vp, vp->pending_vol_op) )
        )
        ) {
@@ -2074,7 +2074,7 @@ FillVolInfo(Volume * vp, volint_info_handle_t * handle)
 
 #ifdef AFS_DEMAND_ATTACH_FS
        /* see comment above where we set inUse bit */
-       if (hdr->needsSalvaged || 
+       if (hdr->needsSalvaged ||
            (vp && VIsErrorState(V_attachState(vp)))) {
            handle->volinfo_ptr.base->needsSalvaged = 1;
        } else {
@@ -2085,7 +2085,7 @@ FillVolInfo(Volume * vp, volint_info_handle_t * handle)
 #endif
        handle->volinfo_ptr.base->destroyMe = hdr->destroyMe;
        handle->volinfo_ptr.base->spare0 = hdr->minquota;
-       handle->volinfo_ptr.base->spare1 = 
+       handle->volinfo_ptr.base->spare1 =
            (long)hdr->weekUse[0] +
            (long)hdr->weekUse[1] +
            (long)hdr->weekUse[2] +
@@ -2112,7 +2112,7 @@ FillVolInfo(Volume * vp, volint_info_handle_t * handle)
                   0, numStatBytes);
        } else {
            memcpy((char *)&(handle->volinfo_ptr.ext->stat_reads[0]),
-                  (char *)&(hdr->stat_reads[0]), 
+                  (char *)&(hdr->stat_reads[0]),
                   numStatBytes);
        }
        break;
@@ -2128,7 +2128,7 @@ FillVolInfo(Volume * vp, volint_info_handle_t * handle)
  *
  * @param[in] volumeId  volumeId for which we want state information
  * @param[in] pname     partition name string
- * @param[inout] vp     pointer to pointer to Volume object which 
+ * @param[inout] vp     pointer to pointer to Volume object which
  *                      will be populated (see note)
  *
  * @return operation status
@@ -2197,8 +2197,8 @@ typedef enum {
 static int
 GetVolInfo(afs_uint32 partId,
           afs_uint32 volumeId,
-          char * pname, 
-          char * volname, 
+          char * pname,
+          char * volname,
           volint_info_handle_t * handle,
           vol_info_list_mode_t mode)
 {
@@ -2229,7 +2229,7 @@ GetVolInfo(afs_uint32 partId,
     /* Get volume from volserver */
     tv = VAttachVolumeByName_retry(&error, pname, volname, V_PEEK);
     if (error) {
-       Log("1 Volser: GetVolInfo: Could not attach volume %u (%s:%s) error=%d\n", 
+       Log("1 Volser: GetVolInfo: Could not attach volume %u (%s:%s) error=%d\n",
            volumeId, pname, volname, error);
        goto drop;
     }
@@ -2248,7 +2248,7 @@ GetVolInfo(afs_uint32 partId,
            goto drop;
 
        case VOL_INFO_LIST_SINGLE:
-           Log("1 Volser: GetVolInfo: Volume %u (%s:%s) will be destroyed on next salvage\n", 
+           Log("1 Volser: GetVolInfo: Volume %u (%s:%s) will be destroyed on next salvage\n",
                volumeId, pname, volname);
 
        default:
@@ -2258,7 +2258,7 @@ GetVolInfo(afs_uint32 partId,
 
     if (tv->header->diskstuff.needsSalvaged) {
        /*this volume will be salvaged */
-       Log("1 Volser: GetVolInfo: Volume %u (%s:%s) needs to be salvaged\n", 
+       Log("1 Volser: GetVolInfo: Volume %u (%s:%s) needs to be salvaged\n",
            volumeId, pname, volname);
     }
 
@@ -2270,7 +2270,7 @@ GetVolInfo(afs_uint32 partId,
     }
 
     /* fs_tv is a shallow copy, must populate certain structures before passing along */
-    if (FSYNC_VolOp(volumeId, pname, FSYNC_VOL_QUERY_VOP, 0, &fs_res) == SYNC_OK) { 
+    if (FSYNC_VolOp(volumeId, pname, FSYNC_VOL_QUERY_VOP, 0, &fs_res) == SYNC_OK) {
        /* If we if the pending vol op */
        memcpy(&pending_vol_op_res, fs_res.payload.buf, sizeof(FSSYNC_VolOp_info));
        fs_tv->pending_vol_op=&pending_vol_op_res;
@@ -2283,7 +2283,7 @@ GetVolInfo(afs_uint32 partId,
 
     /* When using DAFS, use the fs volume info, populated with required structures */
     fill_tv = fs_tv;
-#else 
+#else
     /* When not using DAFS, just use the local volume info */
     fill_tv = tv;
 #endif
@@ -2317,7 +2317,7 @@ GetVolInfo(afs_uint32 partId,
 
 /*return the header information about the <volid> */
 afs_int32
-SAFSVolListOneVolume(struct rx_call *acid, afs_int32 partid,  
+SAFSVolListOneVolume(struct rx_call *acid, afs_int32 partid,
                      afs_uint32 volumeId, volEntries *volumeInfo)
 {
     afs_int32 code;
@@ -2328,7 +2328,7 @@ SAFSVolListOneVolume(struct rx_call *acid, afs_int32 partid,
 }
 
 static afs_int32
-VolListOneVolume(struct rx_call *acid, afs_int32 partid, 
+VolListOneVolume(struct rx_call *acid, afs_int32 partid,
                  afs_uint32 volumeId, volEntries *volumeInfo)
 {
     volintInfo *pntr;
@@ -2379,10 +2379,10 @@ VolListOneVolume(struct rx_call *acid, afs_int32 partid,
 
        handle.volinfo_type = VOLINT_INFO_TYPE_BASE;
        handle.volinfo_ptr.base = volumeInfo->volEntries_val;
-       
-       code = GetVolInfo(partid, 
-                         volid, 
-                         pname, 
+
+       code = GetVolInfo(partid,
+                         volid,
+                         pname,
                          volname,
                          &handle,
                          VOL_INFO_LIST_SINGLE);
@@ -2416,7 +2416,7 @@ VolListOneVolume(struct rx_call *acid, afs_int32 partid,
  *------------------------------------------------------------------------*/
 
 afs_int32
-SAFSVolXListOneVolume(struct rx_call *a_rxCidP, afs_int32 a_partID, 
+SAFSVolXListOneVolume(struct rx_call *a_rxCidP, afs_int32 a_partID,
                      afs_uint32 a_volID, volXEntries *a_volumeXInfoP)
 {
     afs_int32 code;
@@ -2427,7 +2427,7 @@ SAFSVolXListOneVolume(struct rx_call *a_rxCidP, afs_int32 a_partID,
 }
 
 static afs_int32
-VolXListOneVolume(struct rx_call *a_rxCidP, afs_int32 a_partID, 
+VolXListOneVolume(struct rx_call *a_rxCidP, afs_int32 a_partID,
                   afs_uint32 a_volID, volXEntries *a_volumeXInfoP)
 {                              /*SAFSVolXListOneVolume */
 
@@ -2525,10 +2525,10 @@ VolXListOneVolume(struct rx_call *a_rxCidP, afs_int32 a_partID,
     return (found) ? 0 : ENODEV;
 }                              /*SAFSVolXListOneVolume */
 
-/*returns all the volumes on partition partid. If flags = 1 then all the 
+/*returns all the volumes on partition partid. If flags = 1 then all the
 * relevant info about the volumes  is also returned */
 afs_int32
-SAFSVolListVolumes(struct rx_call *acid, afs_int32 partid, afs_int32 flags, 
+SAFSVolListVolumes(struct rx_call *acid, afs_int32 partid, afs_int32 flags,
                   volEntries *volumeInfo)
 {
     afs_int32 code;
@@ -2539,7 +2539,7 @@ SAFSVolListVolumes(struct rx_call *acid, afs_int32 partid, afs_int32 flags,
 }
 
 static afs_int32
-VolListVolumes(struct rx_call *acid, afs_int32 partid, afs_int32 flags, 
+VolListVolumes(struct rx_call *acid, afs_int32 partid, afs_int32 flags,
                   volEntries *volumeInfo)
 {
     volintInfo *pntr;
@@ -2607,7 +2607,7 @@ VolListVolumes(struct rx_call *acid, afs_int32 partid, afs_int32 flags,
                (volintInfo *) realloc((char *)volumeInfo->volEntries_val,
                                       allocSize * sizeof(volintInfo));
            if (pntr == NULL) {
-               closedir(dirp); 
+               closedir(dirp);
                return VOLSERNO_MEMORY;
            }
            volumeInfo->volEntries_val = pntr;  /* point to new block */
@@ -3018,7 +3018,7 @@ SAFSVolConvertROtoRWvolume(struct rx_call *acid, afs_int32 partId,
             GetNextVol(dirp, volname, &volid);
             continue;           /*back to while loop */
         }
-       
+
        if (volid == volumeId) {        /*copy other things too */
 #ifndef AFS_PTHREAD_ENV
             IOMGR_Poll();       /*make sure that the client doesnot time out */
@@ -3036,12 +3036,12 @@ SAFSVolConvertROtoRWvolume(struct rx_call *acid, afs_int32 partId,
        }
        GetNextVol(dirp, volname, &volid);
     }
-    
+
     if (ttc) {
         DeleteTrans(ttc, 1);
         ttc = (struct volser_trans *)0;
     }
-    
+
     closedir(dirp);
     return ret;
 #endif
@@ -3085,7 +3085,7 @@ SAFSVolSplitVolume(struct rx_call *acall, afs_uint32 vid, afs_uint32 new,
     char caller[MAXKTCNAMELEN];
     char line[128];
 
-    if (!afsconf_SuperUser(tdir, acall, caller)) 
+    if (!afsconf_SuperUser(tdir, acall, caller))
         return EPERM;
 
     vol = VAttachVolume(&code, vid, V_VOLUPD);
@@ -3101,7 +3101,7 @@ SAFSVolSplitVolume(struct rx_call *acall, afs_uint32 vid, afs_uint32 new,
             code = ENOENT;
         return code;
     }
-    if (V_device(vol) != V_device(newvol) 
+    if (V_device(vol) != V_device(newvol)
        || V_uniquifier(newvol) != 2) {
         if (V_device(vol) != V_device(newvol)) {
             sprintf(line, "Volumes %u and %u are not in the same partition, aborted.\n",
@@ -3127,7 +3127,7 @@ SAFSVolSplitVolume(struct rx_call *acall, afs_uint32 vid, afs_uint32 new,
         VDetachVolume(&code2, vol);
         VDetachVolume(&code2, newvol);
         return VOLSERVOLBUSY;
-    } 
+    }
     VTRANS_OBJ_LOCK(tt);
     tt->iflags = ITBusy;
     tt->vflags = 0;
@@ -3144,7 +3144,7 @@ SAFSVolSplitVolume(struct rx_call *acall, afs_uint32 vid, afs_uint32 new,
         VDetachVolume(&code2, vol);
         VDetachVolume(&code2, newvol);
         return VOLSERVOLBUSY;
-    } 
+    }
     VTRANS_OBJ_LOCK(tt2);
     tt2->iflags = ITBusy;
     tt2->vflags = 0;
index d73350457f7e20bfc232341e5b436ff3528936d4..eb974b77c524568f047d5182990ee65ce605d152 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -64,7 +64,7 @@ struct volser_trans {
 
 };
 
-/* This is how often the garbage collection thread wakes up and 
+/* This is how often the garbage collection thread wakes up and
  * checks for transactions that have timed out: BKGLoop()
  */
 #define GCWAKEUP            30
@@ -100,7 +100,7 @@ extern struct volser_trans *QI_GlobalWriteTrans;
 
 #define VSALVAGE       101     /* Volume needs salvage */
 #define VNOVNODE       102     /* Bad vnode number quoted */
-#define VNOVOL         103     /* Volume not attached, doesn't exist, 
+#define VNOVOL         103     /* Volume not attached, doesn't exist,
                                 * not created or not online */
 #define VVOLEXISTS     104     /* Volume already exists */
 #define VNOSERVICE     105     /* Volume is not in service (i.e. it's
index 1624bf80a764b4dbe3f6dc9a7976c1f8f5d7a78b..e3e30358ef2a14e5d13128f02cf8f3aa2116d3cf 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -121,7 +121,7 @@ extern int UV_SetVolumeInfo(afs_uint32 server, afs_int32 partition,
                            afs_uint32 volid, volintInfo * infop);
 extern void MapNetworkToHost(struct nvldbentry *old, struct nvldbentry *new);
 extern int UV_CopyVolume2(afs_uint32 afromvol, afs_uint32 afromserver,
-                          afs_int32 afrompart, char *atovolname, 
+                          afs_int32 afrompart, char *atovolname,
                           afs_uint32 atoserver, afs_int32 atopart,
                           afs_uint32 atovolid, int flags);
 extern int UV_CloneVolume(afs_uint32 aserver, afs_int32 apart, afs_uint32 avolid,
@@ -132,7 +132,7 @@ extern int UV_DumpClonedVolume(afs_uint32 afromvol, afs_uint32 afromserver,
                                          (struct rx_call *, void *),
                               void *rock, afs_int32 flags);
 extern int UV_GetSize(afs_uint32 afromvol, afs_uint32 afromserver,
-                      afs_int32 afrompart, afs_int32 fromdate, 
+                      afs_int32 afrompart, afs_int32 fromdate,
                       struct volintSize *vol_size);
 
 extern int verbose;
index 6431f78f9d7f6b671b4f9a1d87956be97cbfaf1e..e41f37cd1b4317f2a52b0ccedc8806731c8969ec 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index b12ae71bde22c3fdfcd5cd601a23723c9c6c2e4b..eb0c2a58d33b670c35af4e40e97336fb2b0a2295 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -123,7 +123,7 @@ FindTrans(afs_int32 atrans)
 }
 
 /* delete transaction if refcount == 1, otherwise queue delete for later.  Does implicit TRELE */
-afs_int32 
+afs_int32
 DeleteTrans(struct volser_trans *atrans, afs_int32 lock)
 {
     struct volser_trans *tt, **lt;
@@ -161,7 +161,7 @@ DeleteTrans(struct volser_trans *atrans, afs_int32 lock)
 /* THOLD is a macro defined in volser.h */
 
 /* put a transaction back */
-afs_int32 
+afs_int32
 TRELE(struct volser_trans *at)
 {
     VTRANS_LOCK;
index e3c78fbc04879b0e10dd736ae6b567508840186c..fbd66c05ba8c9867e3b54454ef2d953c26d5e932 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -285,9 +285,9 @@ IsPartValid(afs_int32 partId, afs_uint32 server, afs_int32 *code)
 
 
 
- /*sends the contents of file associated with <fd> and <blksize>  to Rx Stream 
+ /*sends the contents of file associated with <fd> and <blksize>  to Rx Stream
   * associated  with <call> */
-int 
+int
 SendFile(usd_handle_t ufd, struct rx_call *call, long blksize)
 {
     char *buffer = (char *)0;
@@ -343,9 +343,9 @@ WriteData(struct rx_call *call, void *rock)
     long blksize;
     afs_int32 error, code;
     int ufdIsOpen = 0;
-    afs_hyper_t filesize, currOffset; 
-    afs_uint32 buffer;         
-    afs_uint32 got;            
+    afs_hyper_t filesize, currOffset;
+    afs_uint32 buffer;
+    afs_uint32 got;
 
     error = 0;
 
@@ -917,11 +917,11 @@ XDisplayFormat2(volintXInfo *a_xInfoP, afs_uint32 a_servID, afs_int32 a_partID,
                fprintf(STDOUT, "serv\t\t%s\t%s\n", address, hostname);
                fprintf(STDOUT, "part\t\t%s\n", pname);
                 fprintf(STDOUT, "status\t\tOK\n");
-               fprintf(STDOUT, "backupID\t%lu\n", 
+               fprintf(STDOUT, "backupID\t%lu\n",
                        afs_printable_uint32_lu(a_xInfoP->backupID));
-               fprintf(STDOUT, "parentID\t%lu\n", 
+               fprintf(STDOUT, "parentID\t%lu\n",
                        afs_printable_uint32_lu(a_xInfoP->parentID));
-               fprintf(STDOUT, "cloneID\t\t%lu\n", 
+               fprintf(STDOUT, "cloneID\t\t%lu\n",
                        afs_printable_uint32_lu(a_xInfoP->cloneID));
                fprintf(STDOUT, "inUse\t\t%s\n", a_xInfoP->inUse ? "Y" : "N");
                switch (a_xInfoP->type) {
@@ -939,30 +939,30 @@ XDisplayFormat2(volintXInfo *a_xInfoP, afs_uint32 a_servID, afs_int32 a_partID,
                        break;
                }
                t = a_xInfoP->creationDate;
-               fprintf(STDOUT, "creationDate\t%-9lu\t%s", 
+               fprintf(STDOUT, "creationDate\t%-9lu\t%s",
                        afs_printable_uint32_lu(a_xInfoP->creationDate),
                        ctime(&t));
 
                t = a_xInfoP->accessDate;
-               fprintf(STDOUT, "accessDate\t%-9lu\t%s", 
+               fprintf(STDOUT, "accessDate\t%-9lu\t%s",
                        afs_printable_uint32_lu(a_xInfoP->accessDate),
                        ctime(&t));
 
                t = a_xInfoP->updateDate;
-               fprintf(STDOUT, "updateDate\t%-9lu\t%s", 
+               fprintf(STDOUT, "updateDate\t%-9lu\t%s",
                        afs_printable_uint32_lu(a_xInfoP->updateDate),
                        ctime(&t));
 
                t = a_xInfoP->backupDate;
-               fprintf(STDOUT, "backupDate\t%-9lu\t%s", 
+               fprintf(STDOUT, "backupDate\t%-9lu\t%s",
                        afs_printable_uint32_lu(a_xInfoP->backupDate),
                        ctime(&t));
 
                t = a_xInfoP->copyDate;
-               fprintf(STDOUT, "copyDate\t%-9lu\t%s", 
+               fprintf(STDOUT, "copyDate\t%-9lu\t%s",
                        afs_printable_uint32_lu(a_xInfoP->copyDate),
                        ctime(&t));
-               
+
                fprintf(STDOUT, "diskused\t%u\n", a_xInfoP->size);
                fprintf(STDOUT, "maxquota\t%u\n", a_xInfoP->maxquota);
 
@@ -1067,7 +1067,7 @@ DisplayFormat2(long server, long partition, volintInfo *pntr)
     if (pntr->status == VOK)
         fprintf(STDOUT, "name\t\t%s\n", pntr->name);
 
-    fprintf(STDOUT, "id\t\t%lu\n", 
+    fprintf(STDOUT, "id\t\t%lu\n",
            afs_printable_uint32_lu(pntr->volid));
     fprintf(STDOUT, "serv\t\t%s\t%s\n", address, hostname);
     fprintf(STDOUT, "part\t\t%s\n", pname);
@@ -1082,11 +1082,11 @@ DisplayFormat2(long server, long partition, volintInfo *pntr)
        fprintf(STDOUT, "status\t\tUNATTACHABLE\n");
        return;
     }
-    fprintf(STDOUT, "backupID\t%lu\n", 
+    fprintf(STDOUT, "backupID\t%lu\n",
            afs_printable_uint32_lu(pntr->backupID));
-    fprintf(STDOUT, "parentID\t%lu\n", 
+    fprintf(STDOUT, "parentID\t%lu\n",
            afs_printable_uint32_lu(pntr->parentID));
-    fprintf(STDOUT, "cloneID\t\t%lu\n", 
+    fprintf(STDOUT, "cloneID\t\t%lu\n",
            afs_printable_uint32_lu(pntr->cloneID));
     fprintf(STDOUT, "inUse\t\t%s\n", pntr->inUse ? "Y" : "N");
     fprintf(STDOUT, "needsSalvaged\t%s\n", pntr->needsSalvaged ? "Y" : "N");
@@ -1107,43 +1107,43 @@ DisplayFormat2(long server, long partition, volintInfo *pntr)
        break;
     }
     t = pntr->creationDate;
-    fprintf(STDOUT, "creationDate\t%-9lu\t%s", 
+    fprintf(STDOUT, "creationDate\t%-9lu\t%s",
            afs_printable_uint32_lu(pntr->creationDate),
            ctime(&t));
 
     t = pntr->accessDate;
-    fprintf(STDOUT, "accessDate\t%-9lu\t%s", 
+    fprintf(STDOUT, "accessDate\t%-9lu\t%s",
            afs_printable_uint32_lu(pntr->accessDate),
            ctime(&t));
 
     t = pntr->updateDate;
-    fprintf(STDOUT, "updateDate\t%-9lu\t%s", 
+    fprintf(STDOUT, "updateDate\t%-9lu\t%s",
            afs_printable_uint32_lu(pntr->updateDate),
            ctime(&t));
 
     t = pntr->backupDate;
-    fprintf(STDOUT, "backupDate\t%-9lu\t%s", 
+    fprintf(STDOUT, "backupDate\t%-9lu\t%s",
            afs_printable_uint32_lu(pntr->backupDate),
            ctime(&t));
 
     t = pntr->copyDate;
-    fprintf(STDOUT, "copyDate\t%-9lu\t%s", 
+    fprintf(STDOUT, "copyDate\t%-9lu\t%s",
            afs_printable_uint32_lu(pntr->copyDate),
            ctime(&t));
 
-    fprintf(STDOUT, "flags\t\t%#lx\t(Optional)\n", 
+    fprintf(STDOUT, "flags\t\t%#lx\t(Optional)\n",
            afs_printable_uint32_lu(pntr->flags));
     fprintf(STDOUT, "diskused\t%u\n", pntr->size);
     fprintf(STDOUT, "maxquota\t%u\n", pntr->maxquota);
-    fprintf(STDOUT, "minquota\t%lu\t(Optional)\n", 
+    fprintf(STDOUT, "minquota\t%lu\t(Optional)\n",
            afs_printable_uint32_lu(pntr->spare0));
     fprintf(STDOUT, "filecount\t%u\n", pntr->filecount);
     fprintf(STDOUT, "dayUse\t\t%u\n", pntr->dayUse);
     fprintf(STDOUT, "weekUse\t\t%lu\t(Optional)\n",
            afs_printable_uint32_lu(pntr->spare1));
-    fprintf(STDOUT, "spare2\t\t%lu\t(Optional)\n", 
+    fprintf(STDOUT, "spare2\t\t%lu\t(Optional)\n",
            afs_printable_uint32_lu(pntr->spare2));
-    fprintf(STDOUT, "spare3\t\t%lu\t(Optional)\n", 
+    fprintf(STDOUT, "spare3\t\t%lu\t(Optional)\n",
            afs_printable_uint32_lu(pntr->spare3));
     return;
 }
@@ -1374,7 +1374,7 @@ XDisplayVolumes2(afs_uint32 a_servID, afs_int32 a_partID, volintXInfo *a_xInfoP,
 }                              /*XDisplayVolumes2 */
 
 
-/* set <server> and <part> to the correct values depending on 
+/* set <server> and <part> to the correct values depending on
  * <voltype> and <entry> */
 static void
 GetServerAndPart(struct nvldbentry *entry, int voltype, afs_uint32 *server,
@@ -2715,7 +2715,7 @@ CloneVolume(struct cmd_syndesc *as, void *arock)
            return E2BIG;
        }
 #if 0
-       /* 
+       /*
         * In order that you be able to make clones of RO or BK, this
         * check must be omitted.
         */
@@ -2752,7 +2752,7 @@ CloneVolume(struct cmd_syndesc *as, void *arock)
     if (as->parms[6].items) flags |= RV_RDONLY;
 
 
-    code = 
+    code =
        UV_CloneVolume(server, part, volid, cloneid, volname, flags);
 
     if (code) {
@@ -3266,7 +3266,7 @@ RestoreVolumeCmd(struct cmd_syndesc *as, void *arock)
     if (as->parms[10].items) {
        restoreflags |= RV_NODEL;
     }
-    
+
 
     code =
        UV_RestoreVolume2(aserver, apart, avolid, aparentid,
@@ -5046,7 +5046,7 @@ UnlockVLDB(struct cmd_syndesc *as, void *arock)
        volid = vllist->volumeId[RWVOL];
        vcode =
            ubik_VL_ReleaseLock(cstruct, 0, volid, -1,
-                               LOCKREL_OPCODE | LOCKREL_AFSID | 
+                               LOCKREL_OPCODE | LOCKREL_AFSID |
                                LOCKREL_TIMESTAMP);
        if (vcode) {
            fprintf(STDERR, "Could not unlock entry for volume %s\n",
@@ -5190,7 +5190,7 @@ PartitionInfo(struct cmd_syndesc *as, void *arock)
                PrintInt64Size(sumFree));
         fprintf(STDOUT,
                 "%s on %d partitions\n",
-                PrintInt64Size(sumStorage), 
+                PrintInt64Size(sumStorage),
                 sumPartitions);
     }
     return 0;
@@ -5229,7 +5229,7 @@ ChangeAddr(struct cmd_syndesc *as, void *arock)
        }
     } else {
        /* Play a trick here. If we are removing an address, ip1 will be -1
-        * and ip2 will be the original address. This switch prevents an 
+        * and ip2 will be the original address. This switch prevents an
         * older revision vlserver from removing the IP address.
         */
        remove = 1;
@@ -5290,7 +5290,7 @@ print_addrs(const bulkaddrs * addrs, afsUUID * m_uuid, int nentries,
     /* print out the list of all the server */
     addrp = (afs_uint32 *) addrs->bulkaddrs_val;
     for (i = 0; i < nentries; i++, addrp++) {
-       /* If it is a multihomed address, then we will need to 
+       /* If it is a multihomed address, then we will need to
         * get the addresses for this multihomed server from
         * the vlserver and print them.
         */
@@ -5375,7 +5375,7 @@ ListAddrs(struct cmd_syndesc *as, void *arock)
     if (as->parms[0].items) {
        /* -uuid */
         if (afsUUID_from_string(as->parms[0].items->data, &askuuid) < 0) {
-           fprintf(STDERR, "vos: invalid UUID '%s'\n", 
+           fprintf(STDERR, "vos: invalid UUID '%s'\n",
                    as->parms[0].items->data);
            exit(-1);
        }
@@ -5936,8 +5936,8 @@ main(int argc, char **argv)
 
 #ifdef AFS_AIX32_ENV
     /*
-     * The following signal action for AIX is necessary so that in case of a 
-     * crash (i.e. core is generated) we can include the user's data section 
+     * The following signal action for AIX is necessary so that in case of a
+     * crash (i.e. core is generated) we can include the user's data section
      * in the core dump. Unfortunately, by default, only a partial core is
      * generated which, in many cases, isn't too useful.
      */
index 1ce5b64978a08340301726cb22670ae58740ef21..006eafb3daeb5d62a0aba252d3e2bad2fd253dab 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -454,7 +454,7 @@ UV_Bind(afs_uint32 aserver, afs_int32 port)
     return tc;
 }
 
-static int 
+static int
 AFSVolCreateVolume_retry(struct rx_connection *z_conn,
                       afs_int32 partition, char *name, afs_int32 type,
                       afs_int32 parent, afs_uint32 *volid, afs_int32 *trans)
@@ -476,10 +476,10 @@ AFSVolCreateVolume_retry(struct rx_connection *z_conn,
     return code;
 }
 
-static int 
+static int
 AFSVolTransCreate_retry(struct rx_connection *z_conn,
-                       afs_int32 volume, afs_int32 partition, 
-                       afs_int32 flags, afs_int32 * trans) 
+                       afs_int32 volume, afs_int32 partition,
+                       afs_int32 flags, afs_int32 * trans)
 {
     afs_int32 code;
     int retries = 3;
@@ -595,7 +595,7 @@ SubEnumerateEntry(struct nvldbentry *entry)
     for (i = 0; i < entry->nServers; i++) {
        MapPartIdIntoName(entry->serverPartition[i], pname);
        fprintf(STDOUT, "       server %s partition %s ",
-               noresolve ? afs_inet_ntoa_r(entry->serverNumber[i], hoststr) : 
+               noresolve ? afs_inet_ntoa_r(entry->serverNumber[i], hoststr) :
                 hostutil_GetNameByINet(entry->serverNumber[i]), pname);
        if (entry->serverFlags[i] & ITSRWVOL)
            fprintf(STDOUT, "RW Site ");
@@ -657,7 +657,7 @@ UV_PartitionInfo64(afs_uint32 server, char *pname,
     aconn = UV_Bind(server, AFSCONF_VOLUMEPORT);
     code = AFSVolPartitionInfo64(aconn, pname, partition);
     if (code == RXGEN_OPCODE) {
-       struct diskPartition *dpp = 
+       struct diskPartition *dpp =
            (struct diskPartition *)malloc(sizeof(struct diskPartition));
        code = AFSVolPartitionInfo(aconn, pname, dpp);
        if (!code) {
@@ -668,7 +668,7 @@ UV_PartitionInfo64(afs_uint32 server, char *pname,
            partition->minFree = dpp->minFree;
        }
        free(dpp);
-    } 
+    }
     if (code) {
        fprintf(STDERR, "Could not get information on partition %s\n", pname);
        PrintError("", code);
@@ -798,9 +798,9 @@ UV_CreateVolume3(afs_uint32 aserver, afs_int32 apart, char *aname,
     /* set up the vldb entry for this volume */
     strncpy(entry.name, aname, VOLSER_OLDMAXVOLNAME);
     entry.nServers = 1;
-    entry.serverNumber[0] = aserver;   /* this should have another 
+    entry.serverNumber[0] = aserver;   /* this should have another
                                         * level of indirection later */
-    entry.serverPartition[0] = apart;  /* this should also have 
+    entry.serverPartition[0] = apart;  /* this should also have
                                         * another indirection level */
     entry.flags = RW_EXISTS;   /* this records that rw volume exists */
     entry.serverFlags[0] = ITSRWVOL;   /*this rep site has rw  vol */
@@ -866,9 +866,9 @@ UV_AddVLDBEntry(afs_uint32 aserver, afs_int32 apart, char *aname,
     /* set up the vldb entry for this volume */
     strncpy(entry.name, aname, VOLSER_OLDMAXVOLNAME);
     entry.nServers = 1;
-    entry.serverNumber[0] = aserver;   /* this should have another 
+    entry.serverNumber[0] = aserver;   /* this should have another
                                         * level of indirection later */
-    entry.serverPartition[0] = apart;  /* this should also have 
+    entry.serverPartition[0] = apart;  /* this should also have
                                         * another indirection level */
     entry.flags = RW_EXISTS;   /* this records that rw volume exists */
     entry.serverFlags[0] = ITSRWVOL;   /*this rep site has rw  vol */
@@ -903,7 +903,7 @@ UV_AddVLDBEntry(afs_uint32 aserver, afs_int32 apart, char *aname,
 }
 
 /* Delete the volume <volid>on <aserver> <apart>
- * the physical entry gets removed from the vldb only if the ref count 
+ * the physical entry gets removed from the vldb only if the ref count
  * becomes zero
  */
 int
@@ -987,7 +987,7 @@ UV_DeleteVolume(afs_uint32 aserver, afs_int32 apart, afs_uint32 avolid)
     else if (avolid == entry.volumeId[ROVOL]) {
        /* Its a read-only volume, modify the VLDB entry. Check that the
         * readonly volume is on the server/partition we asked to delete.
-        * If flags does not have RO_EIXSTS set, then this may mean the RO 
+        * If flags does not have RO_EIXSTS set, then this may mean the RO
         * hasn't been released (and could exist in VLDB).
         */
        if (!Lp_ROMatch(aserver, apart, &entry)) {
@@ -1120,7 +1120,7 @@ UV_DeleteVolume(afs_uint32 aserver, afs_int32 apart, afs_uint32 avolid)
     if (islocked) {
        code =
            ubik_VL_ReleaseLock(cstruct, 0, avolid, -1,
-                               (LOCKREL_OPCODE | LOCKREL_AFSID | 
+                               (LOCKREL_OPCODE | LOCKREL_AFSID |
                                 LOCKREL_TIMESTAMP));
        if (code) {
            EPRINT1(code,
@@ -1181,7 +1181,7 @@ sigint_handler(int x)
 /* Move volume <afromvol> on <afromserver> <afrompart> to <atoserver>
  * <atopart>.  The operation is almost idempotent.  The following
  * flags are recognized:
- * 
+ *
  *     RV_NOCLONE - don't use a copy clone
  */
 
@@ -1399,8 +1399,8 @@ UV_MoveVolume2(afs_uint32 afromvol, afs_uint32 afromserver, afs_int32 afrompart,
     }
 
     /* From-info matches the vldb info about volid,
-     * its ok start the move operation, the backup volume 
-     * on the old site is deleted in the process 
+     * its ok start the move operation, the backup volume
+     * on the old site is deleted in the process
      */
     if (afrompart == atopart) {
        same = VLDB_IsSameAddrs(afromserver, atoserver, &error);
@@ -1987,9 +1987,9 @@ UV_MoveVolume2(afs_uint32 afromvol, afs_uint32 afromserver, afs_int32 afrompart,
     }
     MapHostToNetwork(&entry);
 
-    /* Delete either the volume on the source location or the target location. 
+    /* Delete either the volume on the source location or the target location.
      * If the vldb entry still points to the source location, then we know the
-     * volume move didn't finish so we remove the volume from the target 
+     * volume move didn't finish so we remove the volume from the target
      * location. Otherwise, we remove the volume from the source location.
      */
     if (Lp_Match(afromserver, afrompart, &entry)) {    /* didn't move - delete target volume */
@@ -2212,7 +2212,7 @@ UV_MoveVolume(afs_uint32 afromvol, afs_uint32 afromserver, afs_int32 afrompart,
  * <atopart>.  The new volume is named by <atovolname>.  The new volume
  * has ID <atovolid> if that is nonzero; otherwise a new ID is allocated
  * from the VLDB.  the following flags are supported:
- * 
+ *
  *     RV_RDONLY  - target volume is RO
  *     RV_OFFLINE - leave target volume offline
  *     RV_CPINCR  - do incremental dump if target exists
@@ -2751,8 +2751,8 @@ UV_CopyVolume(afs_uint32 afromvol, afs_uint32 afromserver, afs_int32 afrompart,
 
 
 
-/* Make a new backup of volume <avolid> on <aserver> and <apart> 
- * if one already exists, update it 
+/* Make a new backup of volume <avolid> on <aserver> and <apart>
+ * if one already exists, update it
  */
 
 int
@@ -2820,7 +2820,7 @@ UV_BackupVolume(afs_uint32 aserver, afs_int32 apart, afs_uint32 avolid)
     backupID = entry.volumeId[BACKVOL];
     if (backupID == INVALID_BID) {
        /* Get a backup volume id from the VLDB and update the vldb
-        * entry with it. 
+        * entry with it.
         */
        code = ubik_VL_GetNewVolumeId(cstruct, 0, 1, &backupID);
        if (code) {
@@ -2860,7 +2860,7 @@ UV_BackupVolume(afs_uint32 aserver, afs_int32 apart, afs_uint32 avolid)
     }
 
     /* Now go ahead and try to clone the RW volume.
-     * First start a transaction on the RW volume 
+     * First start a transaction on the RW volume
      */
     code = AFSVolTransCreate_retry(aconn, avolid, apart, ITBusy, &ttid);
     if (code) {
@@ -2870,7 +2870,7 @@ UV_BackupVolume(afs_uint32 aserver, afs_int32 apart, afs_uint32 avolid)
        goto bfail;
     }
 
-    /* Clone or reclone the volume, depending on whether the backup 
+    /* Clone or reclone the volume, depending on whether the backup
      * volume exists or not
      */
     if (backexists) {
@@ -3006,12 +3006,12 @@ UV_BackupVolume(afs_uint32 aserver, afs_int32 apart, afs_uint32 avolid)
     return error;
 }
 
-/* Make a new clone of volume <avolid> on <aserver> and <apart> 
+/* Make a new clone of volume <avolid> on <aserver> and <apart>
  * using volume ID <acloneid>, or a new ID allocated from the VLDB.
  * The new volume is named by <aname>, or by appending ".clone" to
  * the existing name if <aname> is NULL.  The following flags are
  * supported:
- * 
+ *
  *     RV_RDONLY  - target volume is RO
  *     RV_OFFLINE - leave target volume offline
  */
@@ -3087,7 +3087,7 @@ UV_CloneVolume(afs_uint32 aserver, afs_int32 apart, afs_uint32 avolid,
     }
 
     /* Now go ahead and try to clone the RW volume.
-     * First start a transaction on the RW volume 
+     * First start a transaction on the RW volume
      */
     code = AFSVolTransCreate_retry(aconn, avolid, apart, ITBusy, &ttid);
     if (code) {
@@ -3097,7 +3097,7 @@ UV_CloneVolume(afs_uint32 aserver, afs_int32 apart, afs_uint32 avolid,
        goto bfail;
     }
 
-    /* Clone or reclone the volume, depending on whether the backup 
+    /* Clone or reclone the volume, depending on whether the backup
      * volume exists or not
      */
     if (backexists) {
@@ -3228,7 +3228,7 @@ DelVol(struct rx_connection *conn, afs_uint32 vid, afs_int32 part,
 #define ONERROR0(ec, es) if (ec) { fprintf(STDERR, (es)); error = (ec); goto rfail; }
 #define ERROREXIT(ec) { error = (ec); goto rfail; }
 
-/* Get a "transaction" on this replica.  Create the volume 
+/* Get a "transaction" on this replica.  Create the volume
  * if necessary.  Return the time from which a dump should
  * be made (0 if it's a new volume)
  */
@@ -3309,12 +3309,12 @@ GetTrans(struct nvldbentry *vldbEntryPtr, afs_int32 index,
     }
 
     /* Otherwise, the transaction did succeed, so get the creation date of the
-     * latest RO volume on the replication site 
+     * latest RO volume on the replication site
      */
     else {
        VPRINT2("Updating existing ro volume %u on %s ...\n", volid,
                 noresolve ? afs_inet_ntoa_r(vldbEntryPtr->
-                                            serverNumber[index], hoststr) : 
+                                            serverNumber[index], hoststr) :
                 hostutil_GetNameByINet(vldbEntryPtr->serverNumber[index]));
 
        code = AFSVolGetStatus(*connPtr, *transPtr, &tstatus);
@@ -3367,7 +3367,7 @@ SimulateForwardMultiple(struct rx_connection *fromconn, afs_int32 fromtid,
  *    successfully.
  *    forceflag: Performs a full release.
  *
- *    Will create a clone from the RW, then dump the clone out to 
+ *    Will create a clone from the RW, then dump the clone out to
  *    the remaining replicas. If there is more than 1 RO sites,
  *    ensure that the VLDB says at least one RO is available all
  *    the time: Influences when we write back the VLDB entry.
@@ -3648,7 +3648,7 @@ UV_ReleaseVolume(afs_uint32 afromvol, afs_uint32 afromserver,
            ONERROR(tcode, cloneVolId, "Could not bring volume %u on line\n");
 
            /* Sleep so that a client searching for an online volume won't
-            * find the clone offline and then the next RO offline while the 
+            * find the clone offline and then the next RO offline while the
             * release brings the clone online and the next RO offline (race).
             * There is a fix in the 3.4 client that does not need this sleep
             * anymore, but we don't know what clients we have.
@@ -3748,7 +3748,7 @@ UV_ReleaseVolume(afs_uint32 afromvol, afs_uint32 afromserver,
            /* Get a Transaction on this replica. Get a new connection if
             * necessary.  Create the volume if necessary.  Return the
             * time from which the dump should be made (0 if it's a new
-            * volume).  Each volume might have a different time. 
+            * volume).  Each volume might have a different time.
             */
            replicas[volcount].server.destHost =
                ntohl(entry.serverNumber[vldbindex]);
@@ -3881,7 +3881,7 @@ UV_ReleaseVolume(afs_uint32 afromvol, afs_uint32 afromserver,
 
                /* have to clear dest. flags to ensure new vol goes online:
                 * because the restore (forwarded) operation copied
-                * the V_inService(=0) flag over to the destination. 
+                * the V_inService(=0) flag over to the destination.
                 */
                code = AFSVolSetFlags(toconns[m], replicas[m].trans, 0);
                if (code) {
@@ -4076,7 +4076,7 @@ dump_sig_handler(int x)
 /* Dump the volume <afromvol> on <afromserver> and
  * <afrompart> to <afilename> starting from <fromdate>.
  * DumpFunction does the real work behind the scenes after
- * extracting parameters from the rock 
+ * extracting parameters from the rock
  */
 int
 UV_DumpVolume(afs_uint32 afromvol, afs_uint32 afromserver, afs_int32 afrompart,
@@ -4124,7 +4124,7 @@ UV_DumpVolume(afs_uint32 afromvol, afs_uint32 afromserver, afs_int32 afrompart,
     fromcall = rx_NewCall(fromconn);
 
     VEPRINT1("Starting volume dump on volume %u...", afromvol);
-    if (flags & VOLDUMPV2_OMITDIRS) 
+    if (flags & VOLDUMPV2_OMITDIRS)
        code = StartAFSVolDumpV2(fromcall, fromtid, fromdate, flags);
     else
        code = StartAFSVolDump(fromcall, fromtid, fromdate);
@@ -4133,7 +4133,7 @@ UV_DumpVolume(afs_uint32 afromvol, afs_uint32 afromserver, afs_int32 afrompart,
 
     VEPRINT1("Dumping volume %u...", afromvol);
     code = DumpFunction(fromcall, rock);
-    if (code == RXGEN_OPCODE) 
+    if (code == RXGEN_OPCODE)
        goto error_exit;
     EGOTO(error_exit, code, "Error while dumping volume \n");
     VEDONE;
@@ -4141,7 +4141,7 @@ UV_DumpVolume(afs_uint32 afromvol, afs_uint32 afromserver, afs_int32 afrompart,
   error_exit:
     if (fromcall) {
        code = rx_EndCall(fromcall, rxError);
-       if (code && code != RXGEN_OPCODE) 
+       if (code && code != RXGEN_OPCODE)
            fprintf(STDERR, "Error in rx_EndCall\n");
        if (code && !error)
            error = code;
@@ -4166,10 +4166,10 @@ UV_DumpVolume(afs_uint32 afromvol, afs_uint32 afromserver, afs_int32 afrompart,
 }
 
 /* Clone the volume <afromvol> on <afromserver> and
- * <afrompart>, and then dump the clone volume to 
+ * <afrompart>, and then dump the clone volume to
  * <afilename> starting from <fromdate>.
  * DumpFunction does the real work behind the scenes after
- * extracting parameters from the rock 
+ * extracting parameters from the rock
  */
 int
 UV_DumpClonedVolume(afs_uint32 afromvol, afs_uint32 afromserver,
@@ -4269,7 +4269,7 @@ UV_DumpClonedVolume(afs_uint32 afromvol, afs_uint32 afromserver,
     fromcall = rx_NewCall(fromconn);
 
     VEPRINT1("Starting volume dump from cloned volume %u...", clonevol);
-    if (flags & VOLDUMPV2_OMITDIRS) 
+    if (flags & VOLDUMPV2_OMITDIRS)
        code = StartAFSVolDumpV2(fromcall, clonetid, fromdate, flags);
     else
        code = StartAFSVolDump(fromcall, clonetid, fromdate);
@@ -4324,7 +4324,7 @@ UV_DumpClonedVolume(afs_uint32 afromvol, afs_uint32 afromserver,
 /*
  * Restore a volume <tovolid> <tovolname> on <toserver> <topart> from
  * the dump file <afilename>. WriteData does all the real work
- * after extracting params from the rock 
+ * after extracting params from the rock
  */
 int
 UV_RestoreVolume2(afs_uint32 toserver, afs_int32 topart, afs_uint32 tovolid,
@@ -4340,7 +4340,7 @@ UV_RestoreVolume2(afs_uint32 toserver, afs_int32 topart, afs_uint32 tovolid,
     struct volintInfo vinfo;
     char partName[10];
     char tovolreal[VOLSER_OLDMAXVOLNAME];
-    afs_uint32 pvolid; 
+    afs_uint32 pvolid;
     afs_int32 temptid, pparentid;
     int success;
     struct nvldbentry entry, storeEntry;
@@ -4412,7 +4412,7 @@ UV_RestoreVolume2(afs_uint32 toserver, afs_int32 topart, afs_uint32 tovolid,
     if (!pparentid) pparentid = pvolid;
     /* at this point we have a volume id to use/reuse for the volume to be restored */
     strncpy(tovolreal, tovolname, VOLSER_OLDMAXVOLNAME);
-           
+
     if (strlen(tovolname) > (VOLSER_OLDMAXVOLNAME - 1)) {
        EGOTO1(refail, VOLSERBADOP,
               "The volume name %s exceeds the maximum limit of (VOLSER_OLDMAXVOLNAME -1 ) bytes\n",
@@ -4585,7 +4585,7 @@ UV_RestoreVolume2(afs_uint32 toserver, afs_int32 topart, afs_uint32 tovolid,
     fprintf(STDOUT, " done\n");
     fflush(STDOUT);
     if (success && (!reuseID || (flags & RV_FULLRST))) {
-       /* Volume was restored on the file server, update the 
+       /* Volume was restored on the file server, update the
         * VLDB to reflect the change.
         */
        vcode = VLDB_GetEntryByID(pvolid, voltype, &entry);
@@ -4687,7 +4687,7 @@ UV_RestoreVolume2(afs_uint32 toserver, afs_int32 topart, afs_uint32 tovolid,
                        tempconn =
                            UV_Bind(entry.serverNumber[index],
                                    AFSCONF_VOLUMEPORT);
-                       
+
                        MapPartIdIntoName(entry.serverPartition[index],
                                          apartName);
                        VPRINT3
@@ -5231,7 +5231,7 @@ UV_ZapVolumeClones(afs_uint32 aserver, afs_int32 apart,
     return 0;
 }
 
-/*return a list of clones of the volumes specified by volPtrArray. Used by the 
+/*return a list of clones of the volumes specified by volPtrArray. Used by the
  backup system */
 int
 UV_GenerateVolumeClones(afs_uint32 aserver, afs_int32 apart,
@@ -5536,17 +5536,17 @@ UV_XListOneVolume(afs_uint32 a_serverID, afs_int32 a_partID, afs_uint32 a_volID,
 }
 
 /* CheckVolume()
- *    Given a volume we read from a partition, check if it is 
+ *    Given a volume we read from a partition, check if it is
  *    represented in the VLDB correctly.
- * 
+ *
  *    The VLDB is looked up by the RW volume id (not its name).
  *    The RW contains the true name of the volume (BK and RO set
  *       the name in the VLDB only on creation of the VLDB entry).
  *    We want rules strict enough that when we check all volumes
  *       on one partition, it does not need to be done again. IE:
- *       two volumes on different partitions won't constantly 
+ *       two volumes on different partitions won't constantly
  *       change a VLDB entry away from what the other set.
- *    For RW and BK volumes, we will always check the VLDB to see 
+ *    For RW and BK volumes, we will always check the VLDB to see
  *       if the two exist on the server/partition. May seem redundant,
  *       but this is an easy check of the VLDB. IE: if the VLDB entry
  *       says the BK exists but no BK volume is there, we will detect
@@ -5565,7 +5565,7 @@ CheckVolume(volintInfo * volumeinfo, afs_uint32 aserver, afs_int32 apart,
     char pname[10];
     int pass = 0, islocked = 0, createentry, addvolume, modified, mod, doit = 1;
     afs_uint32 rwvolid;
-    char hoststr[16]; 
+    char hoststr[16];
 
     if (modentry) {
        if (*modentry == 1)
@@ -5662,7 +5662,7 @@ CheckVolume(volintInfo * volumeinfo, afs_uint32 aserver, afs_int32 apart,
                            fprintf(STDERR,
                                    "    VLDB reports RW volume %lu exists on %s %s\n",
                                    (unsigned long)rwvolid,
-                                    noresolve ? 
+                                    noresolve ?
                                     afs_inet_ntoa_r(entry.serverNumber[idx], hoststr) :
                                    hostutil_GetNameByINet(entry.
                                                           serverNumber[idx]),
@@ -5689,7 +5689,7 @@ CheckVolume(volintInfo * volumeinfo, afs_uint32 aserver, afs_int32 apart,
                                fprintf(STDERR,
                                        "    VLDB reports its RW volume %lu exists on %s %s\n",
                                        (unsigned long)rwvolid,
-                                        noresolve ? 
+                                        noresolve ?
                                         afs_inet_ntoa_r(aserver, hoststr) :
                                        hostutil_GetNameByINet(aserver),
                                        pname);
@@ -5833,7 +5833,7 @@ CheckVolume(volintInfo * volumeinfo, afs_uint32 aserver, afs_int32 apart,
 
     else if (volumeinfo->type == ROVOL) {      /* A RO volume */
        if (volumeinfo->volid == entry.volumeId[ROVOL]) {
-           /* This is a quick check to see if the RO entry exists in the 
+           /* This is a quick check to see if the RO entry exists in the
             * VLDB so we avoid the CheckVldbRO() call (which checks if each
             * RO volume listed in the VLDB exists).
             */
@@ -6052,9 +6052,9 @@ UV_SyncVolume(afs_uint32 aserver, afs_int32 apart, char *avolname, int flags)
 
     /* Turn verbose logging off and do our own verbose logging */
     /* tverbose must be set before we call ERROR_EXIT() */
-    
+
     tverbose = verbose;
-    if (flags & 2) 
+    if (flags & 2)
        tverbose = 1;
     verbose = 0;
 
@@ -6087,7 +6087,7 @@ UV_SyncVolume(afs_uint32 aserver, afs_int32 apart, char *avolname, int flags)
        fprintf(STDOUT, "\n");
     }
 
-    /* Verify that all of the VLDB entries exist on the repective servers 
+    /* Verify that all of the VLDB entries exist on the repective servers
      * and partitions (this does not require that avolname be a volume ID).
      * Equivalent to a syncserv.
      */
@@ -6386,10 +6386,10 @@ UV_SyncVldb(afs_uint32 aserver, afs_int32 apart, int flags, int force)
     }                          /* thru all partitions */
 
     if (flags & 2) {
-       VPRINT3("Total entries: %u, Failed to process %d, Would change %d\n", 
+       VPRINT3("Total entries: %u, Failed to process %d, Would change %d\n",
                tentries, failures, modifications);
     } else {
-       VPRINT3("Total entries: %u, Failed to process %d, Changed %d\n", 
+       VPRINT3("Total entries: %u, Failed to process %d, Changed %d\n",
                tentries, failures, modifications);
     }
 
@@ -6575,7 +6575,7 @@ CheckVldbRO(struct nvldbentry *entry, afs_int32 * modified)
        *modified = 0;
 
     /* Check to see if the RO volumes exist and set the RO_EXISTS
-     * flag accordingly. 
+     * flag accordingly.
      */
     for (idx = 0; idx < entry->nServers; idx++) {
        if (!(entry->serverFlags[idx] & ITSROVOL)) {
@@ -6635,7 +6635,7 @@ CheckVldb(struct nvldbentry * entry, afs_int32 * modified)
     int pass = 0, doit=1;
 
     if (modified) {
-       if (*modified == 1) 
+       if (*modified == 1)
            doit = 0;
        *modified = 0;
     }
@@ -6699,7 +6699,7 @@ CheckVldb(struct nvldbentry * entry, afs_int32 * modified)
     if (mod)
        modentry++;
 
-    /* The VLDB entry has been updated. If it as been modified, then 
+    /* The VLDB entry has been updated. If it as been modified, then
      * write the entry back out the the VLDB.
      */
     if (modentry && doit) {
@@ -6781,7 +6781,7 @@ UV_SyncServer(afs_uint32 aserver, afs_int32 apart, int flags, int force)
     struct nvldbentry *vlentry;
     afs_int32 si, nsi, j;
 
-    if (flags & 2) 
+    if (flags & 2)
        verbose = 1;
 
     aconn = UV_Bind(aserver, AFSCONF_VOLUMEPORT);
@@ -6855,7 +6855,7 @@ UV_SyncServer(afs_uint32 aserver, afs_int32 apart, int flags, int force)
        VPRINT3("Total entries: %u, Failed to process %d, Would change %d\n",
                tentries, failures, modifications);
     } else {
-       VPRINT3("Total entries: %u, Failed to process %d, Changed %d\n", 
+       VPRINT3("Total entries: %u, Failed to process %d, Changed %d\n",
                tentries, failures, modifications);
     }
 
@@ -6870,7 +6870,7 @@ UV_SyncServer(afs_uint32 aserver, afs_int32 apart, int flags, int force)
     return error;
 }
 
-/*rename volume <oldname> to <newname>, changing the names of the related 
+/*rename volume <oldname> to <newname>, changing the names of the related
  *readonly and backup volumes. This operation is also idempotent.
  *salvager is capable of recovering from rename operation stopping halfway.
  *to recover run syncserver on the affected machines,it will force renaming to completion. name clashes should have been detected before calling this proc */
@@ -6910,7 +6910,7 @@ UV_RenameVolume(struct nvldbentry *entry, char oldname[], char newname[])
        goto rvfail;
     }
     VPRINT1("Recorded the new name %s in VLDB\n", newname);
-    /*at this stage the intent to rename is recorded in the vldb, as far as the vldb 
+    /*at this stage the intent to rename is recorded in the vldb, as far as the vldb
      * is concerned, oldname is lost */
     if (entry->flags & RW_EXISTS) {
        index = Lp_GetRwIndex(entry);
index f28d265f2f299a0a12e61e95e2220a9cb06d2e53..8861a5144811f7c90f185822a916f4c0686f7722 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -177,7 +177,7 @@ VLDB_GetEntryByName(char *namep, struct nvldbentry *entryp)
     return code;
 }
 
-int 
+int
 VLDB_ReplaceEntry(afs_uint32 volid, afs_int32 voltype, struct nvldbentry *entryp, afs_int32 releasetype)
 {
     struct vldbentry oentry;
@@ -389,7 +389,7 @@ vsu_ClientInit(int noAuthFlag, const char *confDir, char *cellName, afs_int32 sa
                struct ubik_client **uclientp,
               int (*secproc)(struct rx_securityClass *, afs_int32))
 {
-    return ugen_ClientInit(noAuthFlag, confDir, cellName, sauth, uclientp, 
+    return ugen_ClientInit(noAuthFlag, confDir, cellName, sauth, uclientp,
                           secproc, "vsu_ClientInit", vsu_rxkad_level,
                           VLDB_MAXSERVERS, AFSCONF_VLDBSERVICE, 90,
                           0, 0, USER_SERVICE_ID);
index 015678a925b95089f58291476c10972d62983bbe..ba67a4be0ce7843e2f39547380fe4afec8baf3e1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 661e269f76347aefdf0dea696e3430091428a71f..efbba531c5716ed724d3f68bc39544ab20df284e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index f2c8aeafd5e1559f1aeb0867a3e1fb469e74f8e2..38b4a46543232f514f9814a2be1fee1e529d02d3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -1208,7 +1208,7 @@ CountListItems(struct cmd_item *a_firstItem)
  *     meat of the program.  We count the number of Cache Managers
  *     to watch, allocate enough space to remember all the connection
  *     info for them, then go for it.
- *     
+ *
  *
  * Arguments:
  *     a_s : Ptr to the command line syntax descriptor.
index 94e3753c712cb76083a6162f0308325fc157e593..7fa7b34151016e0a02779b1cf8c7a8ef50e824ef 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 8fdb059d20999baced5e0dfeaecde3434a9e219a..fd45b3b7facbe98958b9d5207e82cc0003fcc78e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
index 71778a7eff7a93039e584637f0251af85efc268f..7e5fd5d82777aa5e725f15a1d750f657ff0ddc70 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -429,7 +429,7 @@ SRXAFSCB_GetXStats(struct rx_call * rxcall, afs_int32 clientVersionNumber,
  *      rxcall : Ptr to Rx call on which this request came in.
  *
  * Returns:
- *      RXGEN_OPCODE (always). 
+ *      RXGEN_OPCODE (always).
  *
  * Environment:
  *      Nothing interesting.
index 21db784db5d5d239b66418e7f777cd31a3b58475..3765cee43360446c5e2c04e4575e47f1551ae7c7 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -634,7 +634,7 @@ CountListItems(struct cmd_item *a_firstItem)
  *     meat of the program.  We count the number of File Servers
  *     to watch, allocate enough space to remember all the connection
  *     info for them, then go for it.
- *     
+ *
  *
  * Arguments:
  *     a_s : Ptr to the command line syntax descriptor.