- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 29 for getFileId (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/main/java/jcifs/internal/smb2/persistent/HandleReconnector.java
log.debug("Performing reconnection for handle: {} (type: {})", info.getPath(), info.getType()); // Create reconnect context DurableHandleReconnect reconnectCtx = new DurableHandleReconnect(info.getFileId()); // This would typically involve: // 1. Creating a new Smb2CreateRequest with reconnect context // 2. Adding lease context if neededCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 8.5K bytes - Click Count (1) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java
Configuration responseConfig = (Configuration) configField.get(response); assertEquals(mockConfig, responseConfig); // Verify response has correct fileId assertEquals(testFileId, response.getFileId()); // Verify response has correct fileName assertEquals(testFileName, response.getFileName()); } @Test @DisplayName("size should return correct message size")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.5K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbCopyUtil.java
} if (dh.isSMB2()) { final Smb2SetInfoRequest req = new Smb2SetInfoRequest(dh.getConfig(), dfd.getFileId()); req.setFileInformation(new FileBasicInfo(ctime, atime, mtime, 0L, attrs)); dh.send(req); } else if (dh.hasCapability(SmbConstants.CAP_NT_SMBS)) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 16.6K bytes - Click Count (0) -
src/test/java/jcifs/tests/persistent/DurableHandleContextTest.java
} DurableHandleReconnect reconnect = new DurableHandleReconnect(fileId); assertEquals("DHnC", new String(reconnect.getName())); assertArrayEquals(fileId, reconnect.getFileId()); assertTrue(reconnect.size() > 0); // Test encoding byte[] buffer = new byte[reconnect.size()]; int encoded = reconnect.encode(buffer, 0);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 4.6K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbWatchHandleImplTest.java
when(handle.getTree()).thenReturn(tree); when(tree.isSMB2()).thenReturn(true); when(tree.getConfig()).thenReturn(mock(Configuration.class)); when(handle.getFileId()).thenReturn(fileId); when(tree.send(any(CommonServerMessageBlockRequest.class), any(), any(), any())).thenReturn(resp); } // Prepare SMB1 flow with a given response
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java
resp.decode(packet, 0); assertEquals(Smb2IoctlRequest.FSCTL_SRV_COPYCHUNK, resp.getCtlCode()); assertEquals(0x1234, resp.getIoctlFlags()); assertNotNull(resp.getFileId()); assertEquals(16, resp.getFileId().length); assertEquals(12, resp.getOutputLength()); SrvCopyChunkCopyResponse od = resp.getOutputData(SrvCopyChunkCopyResponse.class); assertEquals(1, od.getChunksWritten());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.9K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java
* @return the file ID if available, null otherwise */ public byte[] getExistingHandle(String path) { HandleInfo info = getHandleForReconnect(path); return info != null ? info.getFileId() : null; } /** * Store handle information after successful create * @param path the file path * @param fileId the 16-byte file ID * @param guid the handle GUID */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 24 00:49:49 GMT 2025 - 13K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbPipeInputStream.java
if (th.isSMB2()) { final Smb2IoctlRequest req = new Smb2IoctlRequest(th.getConfig(), Smb2IoctlRequest.FSCTL_PIPE_PEEK, fd.getFileId()); req.setMaxOutputResponse(16); req.setFlags(Smb2IoctlRequest.SMB2_O_IOCTL_IS_FSCTL); final Smb2IoctlResponse resp = th.send(req, RequestParam.NO_RETRY);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.8K bytes - Click Count (0) -
src/test/java/jcifs/tests/persistent/PersistentHandleManagerTest.java
fileId[i] = (byte) (i + 1); } manager.updateHandleFileId(guid, fileId); HandleInfo info = manager.getHandleByGuid(guid); assertArrayEquals(fileId, info.getFileId()); } @Test public void testGetHandleForReconnect() { HandleGuid guid = manager.requestDurableHandle("/test/file.txt", HandleType.DURABLE_V2, 120000, null);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 6.6K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbFileOutputStream.java
if (!append && this.smb2) { // no open option for truncating, need to truncate the file final Smb2SetInfoRequest treq = new Smb2SetInfoRequest(th.getConfig(), fh.getFileId()); treq.setFileInformation(new FileEndOfFileInformation(0)); th.send(treq, RequestParam.NO_RETRY); } } } catch (final CIFSException e) {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 12.8K bytes - Click Count (0)