Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mke2fs: factor out 'write_all()' functionality
When writing data to an inode (with mke2fs -d) we need to do the typical loop to handle partial writes to make sure all of the data gets written. Move that code to its own function. This function also takes an offset parameter, which makes it feel a bit like pwrite() (except that it does modify the file offset). Signed-off-by: Allison Karlitskaya <allison.karlitskaya@redhat.com>
- Loading branch information