X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fsplit.c;h=2688e7f63c2a3496e9e1cbfbdfc6990ad849bc2e;hb=a1d2684c03d066f103ae50485f48512613b84575;hp=167105eb47a68ec982741158624deb5956c92480;hpb=f24f8409b041727329e980fdc81e84a7c9b00e5b;p=wimlib diff --git a/src/split.c b/src/split.c index 167105eb..2688e7f6 100644 --- a/src/split.c +++ b/src/split.c @@ -148,8 +148,15 @@ add_stream_to_swm(struct wim_lookup_table_entry *lte, void *_swm_info) struct swm_info *swm_info = _swm_info; u64 stream_size; - /* TODO */ - stream_size = lte->rspec->size_in_wim; + if (lte_is_partial(lte)) { + ERROR("Splitting of WIM containing packed streams is not supported.\n" + " Export it in the default format first."); + return WIMLIB_ERR_UNSUPPORTED; + } + if (lte->resource_location == RESOURCE_IN_WIM) + stream_size = lte->rspec->size_in_wim; + else + stream_size = lte->size; /* - Start first part if no parts have been started so far; * - Start next part if adding this stream exceeds maximum part size,