commit | 1c38a13827c3f9e974a0f28d3c2c62db1f372554 | [log] [tgz] |
---|---|---|
author | Anatol Pomazau <anatol@google.com> | Wed Jan 11 15:12:27 2012 -0800 |
committer | Mike J. Chen <mjchen@google.com> | Fri Feb 03 10:27:22 2012 -0800 |
tree | cdd2c64e94b760f92b8952f3de777b68e0f2c04e | |
parent | 0193f560e32de4224574a5f0d6413f934fa0ff32 [diff] |
Pass file descriptor instead of file name Passing a file descriptor to make_ext4fs_internal() is more flexible. We can use tmpfile() to create a temporary file. tmpfile() is better than other solutions because it unlinks the file right after creating it, so closing fd effectively removes temp file. Thus we don't have to worry about large temp files accidently left on the filesystem in case of the program crash. Change-Id: I44109e98854c314e1d6cfca7ce918efa7fb92a7a