Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 907 for fileId (3.93 sec)

  1. docs/smb3-features/02-persistent-handles-design.md

        
        private byte[] fileId;  // 16-byte file ID from previous open
        
        public DurableHandleReconnect(byte[] fileId) {
            super(NAME);
            if (fileId.length != 16) {
                throw new IllegalArgumentException("File ID must be 16 bytes");
            }
            this.fileId = Arrays.copyOf(fileId, 16);
        }
        
        @Override
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java

            RequestWithFileId anonymousImpl = new RequestWithFileId() {
                private byte[] fileId;
    
                @Override
                public void setFileId(byte[] fileId) {
                    this.fileId = fileId;
                    if (fileId != null) {
                        capturedFileId[0] = fileId[0];
                    }
                }
            };
    
            // When
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotification.java

            }
    
            this.oplockLevel = buffer[bufferIndex + 2];
            bufferIndex += 4;
            bufferIndex += 4; // Reserved2
    
            this.fileId = new byte[16];
            System.arraycopy(buffer, bufferIndex, this.fileId, 0, 16);
            bufferIndex += 16;
    
            return bufferIndex - start;
        }
    
        /**
         * {@inheritDoc}
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequest.java

            super(config, SMB2_CHANGE_NOTIFY);
            this.outputBufferLength = config.getNotifyBufferSize();
            this.fileId = fileId;
        }
    
        /**
         * Set the notification flags
         *
         * @param notifyFlags
         *            the notifyFlags to set
         */
        public void setNotifyFlags(final int notifyFlags) {
            this.notifyFlags = notifyFlags;
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java

            Field commandField = ServerMessageBlock2.class.getDeclaredField("command");
            commandField.setAccessible(true);
            int command = (int) commandField.get(request);
            assertEquals(0x0006, command); // SMB2_CLOSE value
    
            // Verify file ID is set
            Field fileIdField = Smb2CloseRequest.class.getDeclaredField("fileId");
            fileIdField.setAccessible(true);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/persistent/DurableHandleContextTest.java

        @Test
        public void testDurableHandleReconnect() {
            byte[] fileId = new byte[16];
            for (int i = 0; i < 16; i++) {
                fileId[i] = (byte) (i + 1);
            }
    
            DurableHandleReconnect reconnect = new DurableHandleReconnect(fileId);
    
            assertEquals("DHnC", new String(reconnect.getName()));
            assertArrayEquals(fileId, reconnect.getFileId());
            assertTrue(reconnect.size() > 0);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/Smb2ConstantsTest.java

        class SpecialValueConstants {
    
            @Test
            @DisplayName("Unspecified FileId should be 16 bytes of 0xFF")
            void testUnspecifiedFileId() {
                assertNotNull(Smb2Constants.UNSPECIFIED_FILEID, "Unspecified FileId should not be null");
                assertEquals(16, Smb2Constants.UNSPECIFIED_FILEID.length, "Unspecified FileId must be exactly 16 bytes");
    
                // Verify all bytes are 0xFF
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/tests/persistent/PersistentHandleManagerTest.java

            HandleGuid guid = manager.requestDurableHandle("/test/file.txt", HandleType.DURABLE_V2, 120000, null);
    
            byte[] fileId = new byte[16];
            for (int i = 0; i < 16; i++) {
                fileId[i] = (byte) (i + 1);
            }
    
            manager.updateHandleFileId(guid, fileId);
    
            HandleInfo info = manager.getHandleByGuid(guid);
            assertArrayEquals(fileId, info.getFileId());
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponse.java

         * @return the ioctlFlags
         */
        public int getIoctlFlags() {
            return this.ioctlFlags;
        }
    
        /**
         * Gets the file identifier from the response.
         *
         * @return the fileId
         */
        public byte[] getFileId() {
            return this.fileId;
        }
    
        /**
         * Gets the decoded output data from the response.
         *
         * @return the outputData
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/RequestWithFileId.java

    /**
     * Interface for SMB2 requests that require a file ID.
     *
     * This interface is implemented by SMB2 request classes that need
     * to reference a specific file using its file ID.
     *
     * @author mbechler
     */
    public interface RequestWithFileId {
    
        /**
         * Sets the file ID for this request.
         *
         * @param fileId the file ID to set
         */
        void setFileId(byte[] fileId);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.2K bytes
    - Viewed (0)
Back to top