Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for FileId (0.09 sec)

  1. src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java

         * @param guid the handle GUID
         * @param fileId the 16-byte file ID
         */
        public void updateHandleFileId(HandleGuid guid, byte[] fileId) {
            lock.writeLock().lock();
            try {
                HandleInfo info = guidToHandle.get(guid);
                if (info != null) {
                    info.updateFileId(fileId);
                    if (info.getType() == HandleType.PERSISTENT) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java

                assertTrue(result.contains("fileId=" + Hexdump.toHexString(fileId)));
                assertTrue(result.endsWith("]"));
            }
    
            @Test
            @DisplayName("Should handle null fileId in toString")
            void testToStringWithNullFileId() throws Exception {
                // Set oplockLevel but leave fileId as null
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/create/Smb2CreateResponse.java

        @Override
        public final int getAttributes() {
            return getFileAttributes();
        }
    
        /**
         * Get the unique file identifier
         * @return the fileId
         */
        public final byte[] getFileId() {
            return this.fileId;
        }
    
        /**
         * Get the file name
         * @return the fileName
         */
        public final String getFileName() {
            return this.fileName;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  4. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java

            byte[] fileId = new byte[16];
            for (int i = 0; i < fileId.length; i++)
                fileId[i] = (byte) (i + 1);
    
            byte[] header = buildSmb2Header();
            byte[] body = buildCreateBodyNoContexts((byte) 0x7, (byte) 0x2, 0x11223344, 1111L, 2222L, 3333L, 4444L, 123456789L, 987654321L,
                    0xA5A5A5A5, fileId);
            byte[] packet = buildPacket(header, body, null, null);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java

            testFileIdWriting(fileId3);
        }
    
        private void testFileIdWriting(byte[] fileId) {
            Configuration config = mock(Configuration.class);
            when(config.getNotifyBufferSize()).thenReturn(8192);
            Smb2ChangeNotifyRequest req = new Smb2ChangeNotifyRequest(config, fileId);
            byte[] buffer = new byte[512];
            req.writeBytesWireFormat(buffer, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java

        }
    
        @Test
        @DisplayName("Test constructor with configuration and fileId")
        void testConstructorWithConfigAndFileId() {
            byte[] fileId = new byte[16];
            for (int i = 0; i < 16; i++) {
                fileId[i] = (byte) i;
            }
    
            request = new Smb2QueryDirectoryRequest(mockConfig, fileId);
    
            assertNotNull(request);
            assertEquals(14, request.getCommand());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  8. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java

        }
    
        @Test
        @DisplayName("Constructor with fileId only should use empty fileName")
        void testConstructorWithFileIdOnly() throws Exception {
            Smb2CloseRequest requestWithFileIdOnly = new Smb2CloseRequest(mockConfig, testFileId);
    
            // Verify file ID is set
            Field fileIdField = Smb2CloseRequest.class.getDeclaredField("fileId");
            fileIdField.setAccessible(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  10. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
Back to top