cache-server-inlinebulk-support-and-enable-inlinebulk-20011019
[openafs.git] / src / afs / VNOPS / afs_vnop_lookup.c
index 88bd4c1..d2bd090 100644 (file)
@@ -608,20 +608,22 @@ tagain:
 #ifdef RX_ENABLE_LOCKS
            AFS_GUNLOCK();
 #endif /* RX_ENABLE_LOCKS */
-#ifdef notdef
-           code = RXAFS_InlineBulkStatus(tcp->id, &fidParm, &statParm,
-                                         &cbParm, &volSync);
-           if (code == RXGEN_OPCODE) {
-#endif
+
+           if (!(tcp->srvr->server->flags & SNO_INLINEBULK)) {
+               code = RXAFS_InlineBulkStatus(tcp->id, &fidParm, &statParm,
+                                             &cbParm, &volSync);
+               if (code == RXGEN_OPCODE) {
+                   tcp->srvr->server->flags |= SNO_INLINEBULK;
+                   inlinebulk = 0;
+                   code = RXAFS_BulkStatus(tcp->id, &fidParm, &statParm, 
+                                           &cbParm, &volSync);
+               } else
+                   inlinebulk=1;
+           } else {
+               inlinebulk=0;
                code = RXAFS_BulkStatus(tcp->id, &fidParm, &statParm, &cbParm,
                                        &volSync);
-               inlinebulk=0;
-#ifdef notdef
-           } else {
-               inlinebulk=1;
            }
-#endif
-
 #ifdef RX_ENABLE_LOCKS
            AFS_GLOCK();
 #endif /* RX_ENABLE_LOCKS */