[haiku-bugs] Re: [Haiku] #7344: installer skips files when installing to a usb stick
- From: "stippi" <trac@xxxxxxxxxxxx>
- Date: Sat, 19 Mar 2011 13:12:31 -0000
#7344: installer skips files when installing to a usb stick
--------------------------------------+----------------------------
Reporter: khallebal | Owner: korli
Type: bug | Status: new
Priority: normal | Milestone: R1
Component: Applications/Installer | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
--------------------------------------+----------------------------
Comment (by stippi):
Before reading this ticket and specifically which files are affected, I
have just now reviewed the Installer copy engine code. It is virtually
impossible for the engine to skip files. At first I had thought it may be
due to the multi-threaded copy process used by Installer, but the file,
folder and symlink copies are all created in the same thread, the reading
thread. Only the actual writing of file data happens in an extra thread,
so if there is a bug in that code, the worst that can happen is that
individual buffers are skipped, i.e. the target files are shorter and
corrupt due to missing chunks. Since this has never been the case, I doubt
there is any threading bug in the copy routine. Installer recursively
iterates all source volume directories. It has a mechanism to skip certain
files and folders, like the swap file (there is a separate ticket for
skipping too much in /var). So the only other possible source for this
problem could be in BDirectory's entry iteration or anywhere below that.
Another possibility is that it was somehow impossible to open these files
for reading, but Installer should have reported an error then and failed
installing.
I don't really know what to do with this ticket, I don't like closing
tickets like this without knowing what was/is going on.
--
Ticket URL: <http://dev.haiku-os.org/ticket/7344#comment:2>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.
Other related posts: