From cb25d4d4e5da9985e5001dbd471573355a133ef7 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 26 Sep 2011 18:23:24 +0200 Subject: [PATCH] Clarified a remark about maximum length of RR name parts in CA. --- libisofs/rockridge.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libisofs/rockridge.c b/libisofs/rockridge.c index dd18e69..659e5ce 100644 --- a/libisofs/rockridge.c +++ b/libisofs/rockridge.c @@ -988,7 +988,10 @@ int susp_calc_nm_sl_al(Ecma119Image *t, Ecma119Node *n, size_t space, goto unannounced_ca; namelen = namelen - (space - *su_size - 5); - /* >>> Need to handle lengths > 250 */; + /* >>> SUPER_LONG_RR: Need to handle CA part lengths > 250 + (This cannot happen with name lengths <= 256, as a part + of the name will always fit into the directory entry.) + */; *ce = 5 + namelen; *su_size = space; @@ -1671,7 +1674,10 @@ int rrip_get_susp_fields(Ecma119Image *t, Ecma119Node *n, int type, * ..and the part that goes to continuation area. */ - /* >>> Need a loop to handle lengths > 250 */; + /* >>> SUPER_LONG_RR : Need a loop to handle CA lengths > 250 + (This cannot happen with name lengths <= 256, as a part + of the name will always fit into the directory entry.) + */; ret = rrip_add_NM(t, info, name + namelen, strlen(name + namelen), 0, 1);