public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: Li Wang <liwang@redhat.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v2 2/2] include/old: rename legacy headers to tso_* namespace
Date: Wed, 28 Jan 2026 22:22:07 +0100	[thread overview]
Message-ID: <20260128212207.GA60105@pevik> (raw)
In-Reply-To: <20260116022507.204549-2-liwang@redhat.com>

Hi Li, all,

> To clearly distinguish legacy header files from the core (tst_*) and
> extension (tse_*) LTP APIs, legacy header files have been grouped
> into the otst_* namespace.

> Some legacy header files do not begin with old_, they still belong
> to the legacy header file set. For clarity, all legacy header files
> are now uniformly grouped into the tso_* namespace.

>  include/old/{old_checkpoint.h => tso_checkpoint.h}
>  include/old/{ltp_cpuid.h => tso_cpuid.h}
>  include/old/{old_device.h => tso_device.h}
>  include/old/{tlibio.h => tso_lio.h}
>  include/old/{old_module.h => tso_module.h}
>  include/old/{ltp_priv.h => tso_priv.h}
>  include/old/{random_range.h => tso_random_range.h}
>  include/old/{old_resource.h => tso_resource.h}
>  include/old/{old_safe_file_ops.h => tso_safe_file_ops.h}
>  include/old/{safe_macros.h => tso_safe_macros.h}
>  include/old/{old_safe_net.h => tso_safe_net.h}
>  include/old/{old_safe_stdio.h => tso_safe_stdio.h}
>  include/old/{ltp_signal.h => tso_signal.h}
>  include/old/{old_tmpdir.h => tso_tmpdir.h}
>  include/old/{usctest.h => tso_usctest.h}

As I wrote, I don't like the whole rename but I will not block it.
I guess it will be merged after the release, just not to break anything.

But is it worth to rename whole old API sources and headers? Isn't it enough
just to know that 'tst_' or 'tse_' are new API, the rest is the old API or no
API? Each rename means that 'git log' requires '--' because the rename.

Anyway, IMHO it would help (as a separate effort after the release) to describe
the prefixes in doc.

Kind regards,
Petr

> No functional changes intended.

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  parent reply	other threads:[~2026-01-28 21:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-16  2:25 [LTP] [PATCH v2 1/2] libs: adopt tse_ prefix for extended (non-core) library Li Wang via ltp
2026-01-16  2:25 ` [LTP] [PATCH v2 2/2] include/old: rename legacy headers to tso_* namespace Li Wang via ltp
2026-01-16  9:04   ` Li Wang via ltp
2026-01-28 21:22   ` Petr Vorel [this message]
2026-01-28 23:20     ` Li Wang via ltp
2026-01-28 23:26       ` Petr Vorel
2026-02-01 23:52         ` Li Wang via ltp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260128212207.GA60105@pevik \
    --to=pvorel@suse.cz \
    --cc=liwang@redhat.com \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox