- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 68 for Oplock (0.5 sec)
-
src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java
System.arraycopy(fileId, 0, buffer, 8, 16); return buffer; } } @Nested @DisplayName("Oplock Level Constants Tests") class OplockLevelTests { @ParameterizedTest @DisplayName("Should handle standard oplock levels") @MethodSource("provideOplockLevels") void testStandardOplockLevels(byte oplockLevel, String description) throws Exception {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java
/** * No oplock */ public static final byte SMB2_OPLOCK_LEVEL_NONE = 0x0; /** * Level II oplock */ public static final byte SMB2_OPLOCK_LEVEL_II = 0x1; /** * Exclusive oplock */ public static final byte SMB2_OPLOCK_LEVEL_EXCLUSIVE = 0x8; /** * Batch oplock */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 22.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java
byte[] buffer = new byte[1024]; request.writeBytesWireFormat(buffer, 0); assertEquals((byte) 0x01, buffer[2]); } @Test @DisplayName("Test oplock level setter") void testSetRequestedOplockLevel() { request = new Smb2CreateRequest(mockConfig, "test.txt"); request.setRequestedOplockLevel(Smb2CreateRequest.SMB2_OPLOCK_LEVEL_BATCH);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 18.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java
private static byte[] buildCreateBodyNoContexts(byte oplock, byte openFlags, int createAction, long ctime, long atime, long mtime, long chtime, long allocSize, long eof, int attrs, byte[] fileId) { byte[] body = new byte[2 + 2 + 4 + 8 + 8 + 8 + 8 + 8 + 8 + 4 + 4 + 16 + 4 + 4]; int i = 0; SMBUtil.writeInt2(89, body, i); // StructureSize body[i + 2] = oplock; body[i + 3] = openFlags; i += 4;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
docs/smb3-features/01-smb3-lease-design.md
} } public void releaseLease(Smb2LeaseKey key) { lock.writeLock().lock(); try { LeaseEntry entry = leases.remove(key); if (entry != null) { pathToLease.remove(entry.path); } } finally { lock.writeLock().unlock(); } } private void flushCachedWrites(String path) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 22K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/create/Smb2CreateResponse.java
if (isReceived() && next instanceof RequestWithFileId) { ((RequestWithFileId) next).setFileId(this.fileId); } super.prepare(next); } /** * Get the oplock level granted by the server * @return the oplockLevel */ public final byte getOplockLevel() { return this.oplockLevel; } /** * Get the open flags returned by the server
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 24 00:49:49 UTC 2025 - 15.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbConstants.java
int FLAGS_NONE = 0x00; /** Lock and read write and unlock flag */ int FLAGS_LOCK_AND_READ_WRITE_AND_UNLOCK = 0x01; /** Receive buffer posted flag */ int FLAGS_RECEIVE_BUFFER_POSTED = 0x02; /** Path names are caseless flag */ int FLAGS_PATH_NAMES_CASELESS = 0x08; /** Path names canonicalized flag */ int FLAGS_PATH_NAMES_CANONICALIZED = 0x10; /** Oplock requested or granted flag */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 10.3K bytes - Viewed (0) -
docs/SMB3_IMPLEMENTATION_PLAN.md
## Implementation Phases ### Phase 1: SMB3 Lease Implementation (Foundation) **Priority: HIGH** | **Estimated Effort: 3-4 weeks** SMB3 leases replace the traditional oplock mechanism and are foundational for other features. #### 1.1 Core Lease Infrastructure ``` Package: jcifs.internal.smb2.lease ├── Smb2LeaseBreak.java - Lease break notification handling
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/util/AuthenticationRateLimiterTest.java
} catch (SmbException e) { // Expected } // Manually unlock assertTrue(rateLimiter.unlockAccount(username), "Manual unlock should succeed"); // Should be allowed again assertTrue(rateLimiter.checkAttempt(username, ip), "Should be allowed after manual unlock"); } @Test public void testManualUnblockIp() throws Exception {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java
} } finally { lock.writeLock().unlock(); } } /** * Remove a child entry * * @param childName child file name */ public void removeChild(String childName) { lock.writeLock().lock(); try { if (children.remove(childName) != null) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 11.4K bytes - Viewed (0)