Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 34 for getFileId (0.58 seconds)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/main/java/jcifs/smb/SmbFileInputStream.java

                    }
    
                    try {
                        if (th.isSMB2()) {
                            final Smb2ReadRequest request = new Smb2ReadRequest(th.getConfig(), fd.getFileId(), b, off);
                            request.setOffset(type == SmbConstants.TYPE_NAMED_PIPE ? 0 : this.fp);
                            request.setReadLength(r);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.6K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

                if (th.isSMB2()) {
                    final Smb2IoctlRequest req =
                            new Smb2IoctlRequest(th.getConfig(), Smb2IoctlRequest.FSCTL_PIPE_TRANSCEIVE, fh.getFileId(), inB);
                    req.setFlags(Smb2IoctlRequest.SMB2_O_IOCTL_IS_FSCTL);
                    req.setInputData(new ByteEncodable(buf, off, length));
                    req.setMaxOutputResponse(maxRecvSize);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  8. docs/smb3-features/02-persistent-handles-design.md

                        file.getTree().send(createReq);
                    
                    if (response.isSuccess()) {
                        // Update file with new handle
                        file.setFileId(response.getFileId());
                        handleManager.completeReconnect(info.path, true);
                        return file;
                    } else {
                        throw new IOException("Reconnect failed: " + response.getStatus());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 31.6K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

            when(mockHandle.isValid()).thenReturn(true);
            when(mockHandle.acquire()).thenReturn(mockHandle);
            when(mockHandle.getTree()).thenReturn(mockTree);
            when(mockHandle.getFileId()).thenReturn(new byte[16]);
    
            when(mockTree.getReceiveBufferSize()).thenReturn(0x10000);
            when(mockTree.getMaximumBufferSize()).thenReturn(0x10000);
            when(mockTree.getConfig()).thenReturn(mockConfig);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb/SmbFile.java

                        setInfoReq.setFileId(createResp.getFileId());
                        setInfoReq.setFileInformation(new FileRenameInformation2(destPath, replace));
                        sh.send(setInfoReq);
                    } finally {
                        // Always close the file handle - ensure createResp is not null
                        if (createResp != null && createResp.getFileId() != null) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 103.2K bytes
    - Click Count (0)
Back to Top