Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for getFileId (0.05 sec)

  1. src/test/java/jcifs/tests/persistent/HandleInfoTest.java

            HandleInfo info = new HandleInfo("/test/file.txt", testGuid, new byte[16], HandleType.DURABLE_V2, 120000, null);
    
            assertArrayEquals(new byte[16], info.getFileId());
    
            info.updateFileId(testFileId);
            assertArrayEquals(testFileId, info.getFileId());
    
            // Test invalid file ID length
            assertThrows(IllegalArgumentException.class, () -> {
                info.updateFileId(new byte[8]);
            });
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/persistent/HandleInfo.java

         */
        public HandleGuid getCreateGuid() {
            return createGuid;
        }
    
        /**
         * Get the file ID
         * @return copy of the 16-byte file ID
         */
        public byte[] getFileId() {
            return Arrays.copyOf(fileId, 16);
        }
    
        /**
         * Get the handle type
         * @return the handle type
         */
        public HandleType getType() {
            return type;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  3. 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 needed
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 8.5K bytes
    - Viewed (1)
  4. 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
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/persistent/DurableHandleReconnect.java

        }
    
        @Override
        public byte[] getName() {
            return CONTEXT_NAME_BYTES;
        }
    
        /**
         * Get the file ID
         * @return the 16-byte file ID
         */
        public byte[] getFileId() {
            return Arrays.copyOf(fileId, 16);
        }
    
        @Override
        public int size() {
            // Context header (16) + name length (4) + padding to 8-byte alignment + data (16)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 3K bytes
    - Viewed (0)
  6. 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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  7. 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);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  8. 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);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  9. 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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbFileHandleImpl.java

        public int getFid() throws SmbException {
            if (!isValid()) {
                throw new SmbException("Descriptor is no longer valid");
            }
            return this.fid;
        }
    
        public byte[] getFileId() throws SmbException {
            if (!isValid()) {
                throw new SmbException("Descriptor is no longer valid");
            }
            return this.fileId;
        }
    
        /**
         * @return the initialSize
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.4K bytes
    - Viewed (1)
Back to top