close packs files when they are not needed
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | sha1_file: close all pack files after runningcache.h git.c sha1_file.c | +32 | 8 replies | |
| 2/2 | sha1_file: set packfile to O_CLOEXEC at openbuiltin/ cache.h pack-bitmap.c +1 more | +31 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH/RFC 0/2] close packs files when they are not needed
Quoted 4 lines
The right approach may to have a helper in
sha1_file.cthat closes and cleans up _all_ packs, and call it from here, instead of havingbuiltin/clone.ceven know about implementation details such aspacked_gitis a linked list, etc.
Like this?
Note I did not test it to actually work for the current code. Trying now what I could do with lsof, just to be sure myself, but probably its use not appropriate for the project.
Max Kirillov (2):
sha1_file: close all pack files after running
sha1_file: set packfile to O_CLOEXEC at open
builtin/pack-objects.c | 2 +- cache.h | 3 +- git.c | 2 ++ pack-bitmap.c | 2 +- sha1_file.c | 80 +++++++++++++++++++++++++++++++++++--------------- 5 files changed, 63 insertions(+), 26 deletions(-)
Signature · 1 line
2.3.4.2801.g3d0809b