]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
* Always generate a UUID on client startup even if for some reason we
authorRuss Allbery <rra@debian.org>
Wed, 16 May 2007 23:55:36 +0000 (23:55 +0000)
committerRuss Allbery <rra@debian.org>
Wed, 16 May 2007 23:55:36 +0000 (23:55 +0000)
  don't think we have any network interfaces.  Otherwise, the client
  will use an all-zeroes UUID, which will collide with every other
  client with the same problem.

debian/changelog
src/afs/afs_call.c

index e7046077b29ad5c6797a3b99de2868f584bf9676..918f6b3990807d984e718dbd28317e3eaee0e040 100644 (file)
@@ -1,12 +1,16 @@
 openafs (1.4.4.dfsg1-3) unstable; urgency=low
 
+  * Always generate a UUID on client startup even if for some reason we
+    don't think we have any network interfaces.  Otherwise, the client
+    will use an all-zeroes UUID, which will collide with every other
+    client with the same problem.
   * Don't use krb5-config to get a library list.  It runs the risk of
     encoding unnecessary library dependencies.  Instead, hard-code the
     flags and libraries we actually need.  (Closes: #424448)
   * When loading a module using the upstream naming convention, don't
     append the .mp to the module name for modprobe.  (Closes: #420597)
 
- -- Russ Allbery <rra@debian.org>  Wed, 16 May 2007 16:54:57 -0700
+ -- Russ Allbery <rra@debian.org>  Wed, 16 May 2007 16:56:46 -0700
 
 openafs (1.4.4.dfsg1-2) unstable; urgency=low
 
index f2fd255477631099171879b5628d1eed1e5de9cb..5522e1696f039344f1e9c3a2da309a34a184e5ee 100644 (file)
@@ -858,6 +858,8 @@ afs_syscall_call(parm, parm2, parm3, parm4, parm5, parm6)
 #if    (!defined(AFS_NONFSTRANS)) || defined(AFS_AIX_IAUTH_ENV)
        afs_nfsclient_init();
 #endif
+       if (afs_cb_interface.numberOfInterfaces < 1)
+           afs_uuid_create(&afs_cb_interface.uuid);
        printf("found %d non-empty cache files (%d%%).\n",
               afs_stats_cmperf.cacheFilesReused,
               (100 * afs_stats_cmperf.cacheFilesReused) /