Re: [PATCH 28/31] dir: make untracked cache extension hash size independent

2019-02-12 Thread brian m. carlson
On Tue, Feb 12, 2019 at 12:08:01PM +0100, Ævar Arnfjörð Bjarmason wrote: > Both this & the follow-up 29/31 look scary since this is an on-disk > structure and this patch & the next one rather than implementing some > transition, just changes the structs & code we use to read & write to > use the cu

Re: [PATCH 28/31] dir: make untracked cache extension hash size independent

2019-02-12 Thread Ævar Arnfjörð Bjarmason
On Tue, Feb 12 2019, brian m. carlson wrote: > Instead of using a struct with a flex array member to read and write the > untracked cache extension, use a shorter, fixed-length struct and add > the name and hash data explicitly. > [...] > struct stat_data info_exclude_stat; > struct

[PATCH 28/31] dir: make untracked cache extension hash size independent

2019-02-11 Thread brian m. carlson
Instead of using a struct with a flex array member to read and write the untracked cache extension, use a shorter, fixed-length struct and add the name and hash data explicitly. Signed-off-by: brian m. carlson --- dir.c | 28 ++-- 1 file changed, 14 insertions(+), 14 dele