From 3f6da75e9c5c095591accbc9146e755c053a06fc Mon Sep 17 00:00:00 2001 From: Vreixo Formoso Date: Mon, 18 Aug 2008 17:54:03 +0200 Subject: [PATCH] Only stored SUSP/RR entries in the directory entry for last extent. --- libisofs/ecma119.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libisofs/ecma119.c b/libisofs/ecma119.c index 1dd2a58..6107cd0 100644 --- a/libisofs/ecma119.c +++ b/libisofs/ecma119.c @@ -296,8 +296,11 @@ void write_one_dir_record(Ecma119Image *t, Ecma119Node *node, int file_id, iso_bb(rec->vol_seq_number, 1, 2); rec->len_fi[0] = len_fi; - /* and finally write the SUSP fields */ - if (info != NULL) { + /* + * and finally write the SUSP fields. On a multi-extent file, they are only + * needed in the last extent. + */ + if (info != NULL && multi_extend == 0) { rrip_write_susp_fields(t, info, buf + len_dr); } }