[MDEV-9158] file_key_management should support reading from a named pipe Created: 2015-11-20  Updated: 2023-05-21

Status: Open
Project: MariaDB Server
Component/s: None
Fix Version/s: None

Type: Task Priority: Major
Reporter: Kolbe Kegel (Inactive) Assignee: Andrew Hutchings
Resolution: Unresolved Votes: 2
Labels: beginner-friendly, contribution, foundation, patch

Attachments: File MDEV-9158.patch    

 Description   

It would be nice if file_key_management supported reading from a named pipe. Currently, it seeks through the file to determine its size before reading it; that's impossible with a named pipe.

Perhaps the plugin could instead read the file in chunks and exit if it has read more than MAX_KEY_FILE_SIZE?



 Comments   
Comment by Daniel Black [ 2018-02-11 ]

Patch looks good. Needs a file_size < 0 test for read errors which means file_size should be ssize_t.

Unrelated note: Apologises for quoting the wrong this MDEV for travis IPv6 things which are obviously unrelated.

Comment by Andrew Hutchings [ 2022-09-07 ]

Unassigned this one for now. The patch will need updating against the latest version and test cases added. Marked as "beginner-friendly".

Comment by kurt.ding [ 2022-09-08 ]

Let me try to fix it

Comment by kurt.ding [ 2022-09-15 ]

Haha , PR is avalilable https://github.com/MariaDB/server/pull/2267 .
I just follow the code patch above and add two test case .

Comment by kurt.ding [ 2023-03-30 ]

Would someone take a look for PR ?

Generated at Thu Feb 08 07:32:34 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.