- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 373 for lease (0.02 sec)
-
docs/smb3-features/01-smb3-lease-design.md
} ``` ## 12. Future Enhancements 1. **Directory Leases**: Extend lease support for directories 2. **Lease Key Persistence**: Save lease keys for reconnection 3. **Parent-Child Relationships**: Implement hierarchical leases 4. **Lease Sharing**: Support lease sharing across handles
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 22K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java
scheduler.scheduleAtFixedRate(this::cleanupExpiredEntries, 60, 60, TimeUnit.SECONDS); } /** * Request a directory lease * * @param directoryPath directory path * @param requestedState requested lease state * @param scope cache scope * @return lease key */ public Smb2LeaseKey requestDirectoryLease(String directoryPath, int requestedState, DirectoryCacheScope scope) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java
SMBUtil.writeInt4(32, buffer, 12); // DataLength (standard lease only) // Write name System.arraycopy("DLse".getBytes(), 0, buffer, 16, 4); // Write lease key Smb2LeaseKey key = new Smb2LeaseKey(); key.encode(buffer, 24); // Write lease state SMBUtil.writeInt4(DirectoryLeaseState.DIRECTORY_READ_HANDLE, buffer, 40);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 10.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java
Smb2LeaseKey key2 = leaseManager.requestLease(path2, Smb2LeaseState.SMB2_LEASE_WRITE_CACHING); // Clean up leases older than 5ms int cleaned = leaseManager.cleanupExpiredLeases(5); // At least the first lease should be cleaned assertTrue(cleaned >= 1); // Check if old lease was removed LeaseEntry entry1 = leaseManager.getLease(key1); if (cleaned == 2) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 13.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/LeaseManager.java
LeaseEntry lease = entry.getValue(); log.info("Evicting lease for path: {} due to max lease limit", lease.getPath()); // Flush any cached data before eviction if (lease.hasWriteCache()) { flushCachedWrites(lease.getPath()); } if (lease.hasReadCache()) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/create/Smb2CreateResponse.java
*/ public boolean isDurableHandleGranted() { return hasDurableHandleResponse(); } /** * Get the lease key from the response * @return the lease key or null if no lease was granted */ public jcifs.internal.smb2.lease.Smb2LeaseKey getLeaseKey() { LeaseV2CreateContextResponse v2 = getLeaseV2Context(); if (v2 != null) { return v2.getLeaseKey();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:49:49 UTC 2025 - 15.4K bytes - Viewed (0) -
docs/SMB3_IMPLEMENTATION_PLAN.md
├── Smb2LeaseState.java - Lease state flags (R, H, W) └── LeaseManager.java - Central lease management ``` #### 1.2 Implementation Tasks - [ ] Define lease state constants (SMB2_LEASE_READ, SMB2_LEASE_HANDLE, SMB2_LEASE_WRITE) - [ ] Implement lease key generation and management - [ ] Add lease context to Create request/response - [ ] Implement lease break notification handling
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 10.7K bytes - Viewed (0) -
docs/smb3-features/04-directory-leasing-design.md
- **MS-SMB2 Section 2.2.36**: SMB2 Change Notify Response - **MS-SMB2 Section 3.3.5.9.11**: Directory Leasing and Caching ## 3. Directory Lease Types ### 3.1 Directory-Specific Lease States ```java public class DirectoryLeaseState extends Smb2LeaseState { // Standard lease states apply, plus directory-specific semantics: // READ_CACHING for directories means: // - Can cache directory enumeration results
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 36.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java
setRequestedOplockLevel(SMB2_OPLOCK_LEVEL_LEASE); } /** * Add a lease V2 context to this request * @param leaseKey the lease key * @param requestedState the requested lease state * @param parentLeaseKey the parent lease key (can be null) * @param epoch the lease epoch */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 22.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java
entry.markComplete(); // Break lease with loss of read cache int newState = Smb2LeaseState.SMB2_LEASE_HANDLE_CACHING; // Lost read cache directoryLeaseManager.handleDirectoryLeaseBreak(leaseKey, newState); // Cache should be invalidated assertFalse(entry.isComplete()); // Verify base lease manager was called
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 15.9K bytes - Viewed (0)