]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Merge topic branch t/ls-L into master
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 28 Oct 2023 17:20:14 +0000 (19:20 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 28 Oct 2023 19:50:40 +0000 (21:50 +0200)
A single patch which implements the new --limit option for the ls
server command. The confict in aft.c was trivial to fix.

* refs/heads/t/ls-L:
  server: Implement ls --limit.

1  2 
NEWS.md
aft.c
m4/lls/server_cmd.suite.m4

diff --cc NEWS.md
index aa515e5af091eb23f266549a0cd33e974f993972,598db71fae93734158509fa5f76853ceb09ccb7b..5430790bcc151fa90c93eabe66c009a1592c994f
+++ b/NEWS.md
@@@ -1,27 -1,6 +1,29 @@@
  NEWS
  ====
  
 +----------------------------------------------
 +0.7.3 (to be announced) "weighted correctness"
 +----------------------------------------------
 +
 +- Old style PEM keys are now deprecated. They still work but their
 +  use results in a run-time warning. The removal of PEM key support is
 +  scheduled for paraslash-0.8.0.
 +- Version 1.0 of the openssl library has been deprecated. A warning
 +  is printed at compile-time on systems which have this outdated version
 +  because it will no longer be supported once paraslash-0.8.0 comes out.
 +- A spring cleanup for the senescent code in fd.c.
 +- The --admissible option of the ls command now takes an optional
 +  argument. When invoked like --admissible=m/foo, only files which are
 +  admissible with respect to mood foo are listed.
 +- The select server command is now quiet by default, The new --verbose
 +  option can be used to show information about the newly loaded mood
 +  or playlist.
++- The ls server command gained the --limit option to force a limit
++  on the number of files listed.
 +
 +Downloads:
 +[tarball](./releases/paraslash-git.tar.xz)
 +
  -------------------------------------
  0.7.2 (2023-03-08) "optical friction"
  -------------------------------------
diff --cc aft.c
index 4ea8641b2acce666e53d7005bd755ae2099cb07a,ff75361d374b9dea3669d24d819afefaf9f50a52..f1aca7fb8ccc3e31575303a4762d6a7ea35a054f
--- 1/aft.c
--- 2/aft.c
+++ b/aft.c
@@@ -1402,9 -1365,10 +1402,10 @@@ static int com_ls_callback(struct afs_c
  {
        const struct lls_command *cmd = SERVER_CMD_CMD_PTR(LS);
        struct ls_options *opts = aca->query.data;
-       int i = 0, ret;
+       int ret;
        time_t current_time;
 -      const struct lls_opt_result *r_r;
 +      const struct lls_opt_result *r_r, *r_a;
+       uint32_t limit, k, n;
  
        ret = lls_deserialize_parse_result(
                (char *)aca->query.data + sizeof(*opts), cmd, &opts->lpr);
Simple merge