All Questions
Tagged with buffer block-device
5 questions
0
votes
0
answers
233
views
Are direct writes to block devices buffered? How do I ensure it's written to disk before removing it?
Say I do something like dd if=file of=/dev/sdc (simplified for illustration), is this buffered? Can I sync it like I would any other filesystem write, or do I need to do something else to make sure ...
5
votes
2
answers
3k
views
Block device cache v.s. a filesystem
Block devices provide buffering. This means that write() on a block device can return success, before the kernel has written the data to the device. A program can wait for all the buffered writes by ...
2
votes
0
answers
271
views
linux: Discard dirty pages for block device (on usb disconnect)
When forcefully removing a USB device on linux while there are outstanding writes to the device the kernel log fills up with
blk_update_request: I/O error, dev sdg, sector 50618368
Buffer I/O error ...
5
votes
0
answers
268
views
xdelta3 fails to decode on block device
I'm trying to use xdelta3 to bring a remote block device into sync with a local one. I'm able to easily generate a xdelta3 patch file using the command:
xdelta3 -e -B 33554432 -v -9 -I 0 -s /dev/...
18
votes
6
answers
8k
views
Is there a way to sync only one partition?
Is there a way to sync only one partition instead of all partitions?
Something like "sync /dev/sdc1".