Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for onValidate (0.35 sec)

  1. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java

                if ((newState & Smb2LeaseState.SMB2_LEASE_READ_CACHING) == 0) {
                    // Lost read cache - invalidate directory cache
                    entry.invalidate();
                }
            } else {
                // Lease completely broken - invalidate cache
                entry.invalidate();
            }
    
            if ((newState & Smb2LeaseState.SMB2_LEASE_HANDLE_CACHING) == 0) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/PreauthIntegrityService.java

                        this.currentHash = newHash.clone();
                    }
                }
            }
    
            public boolean isValid() {
                return isValid;
            }
    
            public void invalidate() {
                this.isValid = false;
                // Clear sensitive data
                synchronized (hashLock) {
                    Arrays.fill(currentHash, (byte) 0);
                }
            }
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/rdma/RdmaMemoryRegion.java

         */
        public boolean isValid() {
            return valid;
        }
    
        /**
         * Invalidate this memory region
         *
         * After invalidation, the region cannot be used for RDMA operations.
         */
        public abstract void invalidate();
    
        /**
         * Generate local key for this memory region
         *
         * @return local key
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  4. docs/smb3-features/04-directory-leasing-design.md

            
            // Invalidate affected cache entries
            DirectoryCacheEntry entry = leaseManager.getCacheEntry(directoryPath);
            if (entry != null) {
                entry.removeChild(fileName);
                
                // If too many inconsistencies, invalidate entire cache
                if (entry.getInconsistencyCount() > 5) {
                    entry.invalidate();
                }
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java

            entry.updateChild("file1.txt", 1024L, 1000L, false, 0x20, 500L, 800L);
            entry.updateChild("file2.txt", 2048L, 2000L, false, 0x20, 600L, 900L);
            entry.markComplete();
    
            // Invalidate the cache
            entry.invalidate();
    
            assertFalse(entry.isComplete());
            assertTrue(entry.hasChanges());
            assertTrue(entry.getChildren().isEmpty());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java

                this.lastUpdateTime = System.currentTimeMillis();
            } finally {
                lock.writeLock().unlock();
            }
        }
    
        /**
         * Invalidate the cache
         */
        public void invalidate() {
            lock.writeLock().lock();
            try {
                children.clear();
                isComplete = false;
                hasChanges = true;
            } finally {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/rdma/tcp/TcpMemoryRegion.java

         * @param access access permissions (ignored for TCP)
         */
        public TcpMemoryRegion(ByteBuffer buffer, EnumSet<RdmaAccess> access) {
            super(buffer, access);
        }
    
        @Override
        public void invalidate() {
            // No real invalidation needed for TCP
            valid = false;
        }
    
        @Override
        protected int generateLocalKey() {
            return keyGenerator.getAndIncrement();
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

                if (Smb2LeaseState.hasWriteCaching(oldState) && !Smb2LeaseState.hasWriteCaching(newState)) {
                    flushCachedWrites(entry.getPath());
                }
    
                // Invalidate cached data if losing read cache
                if (Smb2LeaseState.hasReadCaching(oldState) && !Smb2LeaseState.hasReadCaching(newState)) {
                    invalidateReadCache(entry.getPath());
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java

            entry.updateChild("file1.txt", 1024L, 1000L, false, 0x20, 500L, 800L);
            entry.updateChild("file2.txt", 2048L, 2000L, false, 0x20, 600L, 900L);
            entry.markComplete();
    
            // Test FILE_ADDED - should invalidate cache
            directoryLeaseManager.handleDirectoryChange(directoryPath, "file3.txt", DirectoryChangeNotifier.DirectoryChangeType.FILE_ADDED);
            assertFalse(entry.isComplete());
    
            // Re-setup for next test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/Smb2Constants.java

         * Used in SMB2 READ and WRITE requests to indicate RDMA channel
         */
        public static final int SMB2_CHANNEL_RDMA_V1 = 0x00000001;
    
        /**
         * SMB2 Channel constant for RDMA V1 invalidate
         * Used to indicate RDMA with invalidation
         */
        public static final int SMB2_CHANNEL_RDMA_V1_INVALIDATE = 0x00000002;
    
        /**
         * SMB2 RDMA Transform Capabilities negotiate context ID
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 4.5K bytes
    - Viewed (0)
Back to top