[haiku-bugs] Re: [Haiku] #13219: package_daemon inspects copied hpkg files too early

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Wed, 18 Jan 2017 09:24:11 -0000

#13219: package_daemon inspects copied hpkg files too early
--------------------------------------+----------------------------
   Reporter:  jua                     |      Owner:  bonefish
       Type:  bug                     |     Status:  new
   Priority:  normal                  |  Milestone:  Unscheduled
  Component:  Servers/package_daemon  |    Version:  R1/Development
 Resolution:                          |   Keywords:
 Blocked By:                          |   Blocking:
Has a Patch:  0                       |   Platform:  All
--------------------------------------+----------------------------

Comment (by pulkomandy):

 I wonder if it is possible to detect that the package is incomplete, and
 wait for more node monitor notifications (for stat changes?) until the
 copy is complete. It should be possible to know the package size from the
 header (at least the package tool knows and complains about truncated
 files).

 However, it is possible that Tracker (or other copy tools: rsync, cp, scp,
 wget, ...) uses fallocate or similar to pre-set the size of the file, and
 in that case, this wouldn't work. More validation would then be needed,
 and another way to know when to retry.

--
Ticket URL: <https://dev.haiku-os.org/ticket/13219#comment:4>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: