Feature #549
Provide a way to flush each measurement line
| Status: | Closed | Start date: | 20/05/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | Olivier Mehani | % Done: | 100% |
|
| Category: | - | |||
| Target version: | 2.7.0 | Estimated time: | 1.00 hour |
Description
I want to interactively plot some of the measurements, but when writing a measurement stream into a file or socket, Linux usually buffers them into (4k) chunks. A simple way to get around that is to issue a 'fflush' after each row.
The attached patch is a real hack, but it works for what I need to do early next week. The file_writer checks the supplied file name for a 'flush:' suffix and if found will issue the fflush.
I assume there is a cleaner way of doing it.
Associated revisions
Test case for fflush(3)ed file stream.
refs: #549
Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Add logic to change buffering strategy for file streams
refs: #549
Implement the flush:// scheme for the file URI
fixes: #549
Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
History
Updated by Thierry Rakotoarivelo 7 months ago
- Tracker changed from Support to Feature
- Target version set to 2.7.0
Updated by Olivier Mehani about 1 month ago
- Estimated time set to 1.00
Updated by Olivier Mehani about 1 month ago
- File 0001-Add-unchecked-function-to-write-mbuf-to-a-FILE.patch added
- File 0002-Test-case-for-fflush-3-ed-file-stream.patch added
- File 0003-Add-logic-to-change-buffering-strategy-for-file-stre.patch added
- % Done changed from 0 to 70
Some preliminary patches. The live code is at [0].
[0] http://git.mytestbed.net/?p=oml-staging.git;a=shortlog;h=refs/heads/issue549
Updated by Olivier Mehani about 1 month ago
- File 0001-Add-unchecked-function-to-write-mbuf-to-a-FILE.patch added
- File 0002-Test-case-for-fflush-3-ed-file-stream.patch added
- File 0003-Add-logic-to-change-buffering-strategy-for-file-stre.patch added
- File 0004-Introduce-oml_uri_type-and-test-suite.patch added
- File 0005-Implement-the-flush-scheme-for-the-file-URI.patch added
- Assignee set to Olivier Mehani
- % Done changed from 70 to 100
This patchset should implement the feature.