commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] Hurd branch, master, updated. v0.9-95-g86ecc3f


From: Justus Winter
Subject: [SCM] Hurd branch, master, updated. v0.9-95-g86ecc3f
Date: Tue, 12 Sep 2017 05:36:38 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Hurd".

The branch, master has been updated
       via  86ecc3fc9aa88091ac77ec35688d08634567d169 (commit)
       via  e08859424e01697fe556e277283e8e1905327ce7 (commit)
       via  04aaffbd6353e7cec04073783cc8cbd22ac2f675 (commit)
       via  47715139bb7bc8e2c94536a34207e0028a7f65b4 (commit)
       via  074f0ea9799b2fa5297eb120d68e0a97cf1b40ac (commit)
       via  5fef1b7f22ec0ee3730b80bbf972dbf9a8995091 (commit)
       via  116552c075abf1d22057a608fee9d27684bcbbe5 (commit)
       via  978a819485e1e301c49b41fb629656d157d61ec6 (commit)
       via  8d5a124be53200c775b818e933603c1c8eeefbe5 (commit)
       via  1a75f7795e8d5e2b7cbc27e39eade1ee04668c19 (commit)
       via  e9849c9bf993eae14f900a95819186e09cfd98fe (commit)
      from  796f8789f80568861b747265998f31fa83091915 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 86ecc3fc9aa88091ac77ec35688d08634567d169
Author: Justus Winter <address@hidden>
Date:   Tue Aug 29 23:35:55 2017 +0200

    Traverse translator hierarchies using the fsys protocol.
    
    Previously, we used the fs protocol to traverse the translator
    hierarchies.  This, however, is conceptually flawed, because
    translators are bound to nodes, and a node can have zero or more links
    in the file system.  Therefore, the previous method of returning a
    list of paths to the client and expecting them to be able to follow
    these to reach the child translators was always unreliable.
    
    Fix this by using the fsys protocol to traverse the hierarchy, and
    returning the control ports of all children.  This is more robust, and
    also conceptually cleaner, because the fsys protocol is about
    translator linkage, hence this is the point to implement traversal.
    
    Also move the get source routine over.  A per-node source really
    does not fit the reality of most translators, while a per-translator
    source makes sense in many cases.
    
    * hurd/fs.defs (file_get_children): Drop routine.
    (file_get_source): Likewise.
    * hurd/fsys.defs (fsys_get_children): New routine.
    (fsys_get_source): Likewise.
    * libdiskfs/Makefile (FSYSSRCS): Remove files, add files.
    * libdiskfs/file-get-children.c: Remove file.
    * libdiskfs/fsys-get-children.c: New file.
    * libdiskfs/file-get-source.c: Remove file.
    * libdiskfs/fsys-get-source.c: New file.
    * libfshelp/fshelp.h (fshelp_filter): Remove type.
    (fshelp_get_active_translators): Remove filter and prefix argument,
    return list of control ports.
    * libfshelp/translator-list.c (fshelp_get_active_translators):
    Likewise.
    * libnetfs/Makefile (FSSRCS): Move 'get-source.c' too OTHERSRCS.
    (FSYSSRCS): Remove files, add files.
    * libnetfs/file-get-children.c: Remove file.
    * libnetfs/fsys-get-children.c: New file.
    * libnetfs/file-get-source.c: Remove file.
    * libnetfs/fsys-get-source.c: New file.
    * libtrivfs/Makefile: Move 'get-source.c' too OTHERSRCS.
    (FSYSSRCS): Remove files, add files.
    * libtrivfs/file-get-children.c: Remove file.
    * libtrivfs/fsys-get-children.c: New file.
    * libtrivfs/file-get-source.c: Remove file.
    * libtrivfs/fsys-get-source.c: Add file.
    * trans/Makefile (mtab): Build client stubs until the libc has caught
    on.
    * trans/mtab.c (target_control): New variable.
    (insecure): Drop variable.
    (all_translators): Likewise.
    (MAX_DEPTH): New macro.
    (max_depth): New variable.
    (options): Remove '--insecure' and '--all-translators', add '--depth'.
    (parse_opt): Adapt accordingly.
    (trivsfs_append_args): Likewise.
    (main): Get the control port of the target translator, then drop
    privileges.
    (is_filesystem_translator): Remove function.
    (mtab_mark_as_seen): Simplify.  Just check if the control port is
    known.
    (mtab_populate): Limit depth of recursion, adapt to traversing over
    the control ports, simplify.
    (open_hook): Remove scary comment, it is not applicable anymore
    because we no longer dir_lookup child translators.

commit e08859424e01697fe556e277283e8e1905327ce7
Author: Justus Winter <address@hidden>
Date:   Tue Aug 22 13:07:54 2017 +0200

    libfshelp: Use node instead of name as key.
    
    Previously, libfshelp used the name of an translator as key in the
    hash table.  This however is flawed, because a translator is bound to
    a node, and a node can have zero or more links in the file system.
    Use the nodes address (or rather, the address of the transbox embedded
    in the node) as key instead.
    
    * libfshelp/fshelp.h (fshelp_set_active_translator): Instead of the
    control port, hand the whole transbox to the function.
    * libfshelp/translator-list.c (struct translator): New field 'locp'.
    (hash): Hash pointer.
    (compare): Compare pointer.
    (translator_ihash): Use an location pointer.
    (fshelp_set_active_translator): Use the address of the transbox as key.
    (fshelp_remove_active_translator): Remove using the location pointer.
    * libdiskfs/dir-lookup.c (diskfs_S_dir_lookup): Fix callsite.
    * libdiskfs/file-set-trans.c (diskfs_S_file_set_translator): Likewise.
    * libnetfs/dir-lookup.c (netfs_S_dir_lookup): Likewise.
    * libnetfs/file-set-translator.c (netfs_S_file_set_translator):
    Likewise.

commit 04aaffbd6353e7cec04073783cc8cbd22ac2f675
Author: Justus Winter <address@hidden>
Date:   Sun Aug 20 12:03:33 2017 +0200

    libfshelp: Avoid some right diddling.
    
    * libfshelp/translator-list.c (fshelp_set_active_translator): Avoid
    updating the entry if the control port is still the same.

commit 47715139bb7bc8e2c94536a34207e0028a7f65b4
Author: Justus Winter <address@hidden>
Date:   Sun Oct 9 23:38:50 2016 +0200

    libfshelp: Improve error handling.
    
    * libfshelp/translator-list.c (fshelp_set_active_translator): Free
    resources.  Assert that an entry is removed.
    (fshelp_remove_active_translator): Assert that an entry is removed.

commit 074f0ea9799b2fa5297eb120d68e0a97cf1b40ac
Author: Justus Winter <address@hidden>
Date:   Sun Oct 9 00:13:46 2016 +0200

    Normalize path of translators.
    
    * libdiskfs/dir-lookup.c (diskfs_S_dir_lookup): Strip trailing
    slashes.
    * libnetfs/dir-lookup.c (netfs_S_dir_lookup): Likewise.

commit 5fef1b7f22ec0ee3730b80bbf972dbf9a8995091
Author: Justus Winter <address@hidden>
Date:   Wed Oct 5 15:38:58 2016 +0200

    libfshelp: Add function to map over all active translators.
    
    * libdiskfs/file-syncfs.c (diskfs_S_file_syncfs): Use the new function.
    * libdiskfs/fsys-options.c (diskfs_S_fsys_set_options): Likewise.
    * libdiskfs/fsys-syncfs.c (diskfs_S_fsys_syncfs): Likewise.
    * libdiskfs/shutdown.c (diskfs_shutdown): Likewise.
    * libfshelp/fshelp.h (fshelp_map_active_translators): New declaration.
    * libfshelp/translator-list.c (fshelp_map_active_translators): New
    function.
    * libnetfs/file-syncfs.c (netfs_S_file_syncfs): Use the new function.
    * libnetfs/fsys-set-options.c (netfs_S_fsys_set_options): Likewise.
    * libnetfs/fsys-syncfs.c (netfs_S_fsys_syncfs): Likewise.
    * libnetfs/shutdown.c (netfs_shutdown): Likewise.

commit 116552c075abf1d22057a608fee9d27684bcbbe5
Author: Justus Winter <address@hidden>
Date:   Wed Oct 5 15:09:11 2016 +0200

    libfshelp: Always register dead-name notifications.
    
    * libfshelp/translator-list.c (fshelp_set_active_translator): Always
    register dead-name notifications.

commit 978a819485e1e301c49b41fb629656d157d61ec6
Author: Justus Winter <address@hidden>
Date:   Wed Oct 5 15:07:37 2016 +0200

    libfshelp: Avoid useless allocations.
    
    * libfshelp/translator-list.c (fshelp_set_active_translator): Avoid
    allocating an entry unless a valid control port is given.

commit 8d5a124be53200c775b818e933603c1c8eeefbe5
Author: Justus Winter <address@hidden>
Date:   Wed Oct 5 13:34:26 2016 +0200

    Fix active translator registration.
    
    * libdiskfs/dir-lookup.c (diskfs_S_dir_lookup): Unconditionally
    register translators.  Previously, we missed translators because
    'transbox.active' is not in fact reset if the translator dies.
    * libnetfs/dir-lookup.c (netfs_S_dir_lookup): Likewise.

commit 1a75f7795e8d5e2b7cbc27e39eade1ee04668c19
Author: Justus Winter <address@hidden>
Date:   Tue Nov 24 01:20:57 2015 +0100

    libfshelp: improve translator list
    
    Use the path names of active translators as keys in the hash table.
    
    * libfshelp/translator-list.c (hash, compare): New functions.
    (translator_ihash): Use generalized key interface.
    (fshelp_set_active_translator): Update accordingly.
    (fshelp_remove_active_translator): Likewise.

commit e9849c9bf993eae14f900a95819186e09cfd98fe
Author: Justus Winter <address@hidden>
Date:   Fri Sep 1 11:40:52 2017 +0200

    pflocal: Use default stub implementations.
    
    * pflocal/Makefile (fsServer-CFLAGS): Make use of default
    implementations.
    (ioServer-CFLAGS): Likewise.
    * pflocal/fs.c: Remove all stub functions.
    * pflocal/io.c: Likewise.

-----------------------------------------------------------------------

Summary of changes:
 hurd/fs.defs                                       |  20 +-
 hurd/fsys.defs                                     |  25 +-
 libdiskfs/Makefile                                 |   2 +-
 libdiskfs/dir-lookup.c                             |  72 +++---
 libdiskfs/file-get-children.c                      |  96 --------
 libdiskfs/file-set-trans.c                         |   2 +-
 libdiskfs/file-syncfs.c                            |  35 ++-
 libdiskfs/fsys-get-children.c                      |  74 ++++++
 libdiskfs/{file-get-source.c => fsys-get-source.c} |  26 +-
 libdiskfs/fsys-options.c                           |  44 ++--
 libdiskfs/fsys-syncfs.c                            |  33 ++-
 libdiskfs/shutdown.c                               |  45 ++--
 libfshelp/fshelp.h                                 |  30 ++-
 libfshelp/translator-list.c                        | 200 +++++++++------
 libnetfs/Makefile                                  |   8 +-
 libnetfs/dir-lookup.c                              |  80 +++---
 libnetfs/file-get-children.c                       | 108 ---------
 libnetfs/file-set-translator.c                     |   2 +-
 libnetfs/file-syncfs.c                             |  23 +-
 libnetfs/fsys-get-children.c                       |  74 ++++++
 libnetfs/{file-get-source.c => fsys-get-source.c}  |  24 +-
 libnetfs/fsys-set-options.c                        |  53 ++--
 libnetfs/fsys-syncfs.c                             |  22 ++
 libnetfs/shutdown.c                                |  45 ++--
 libtrivfs/Makefile                                 |   5 +-
 libtrivfs/file-get-children.c                      |  36 ---
 libtrivfs/fsys-get-children.c                      |  41 ++++
 libtrivfs/{file-get-source.c => fsys-get-source.c} |  22 +-
 pflocal/Makefile                                   |   2 +
 pflocal/fs.c                                       | 267 ---------------------
 pflocal/io.c                                       | 109 ---------
 trans/Makefile                                     |   2 +-
 trans/mtab.c                                       | 225 +++++++----------
 33 files changed, 727 insertions(+), 1125 deletions(-)
 delete mode 100644 libdiskfs/file-get-children.c
 create mode 100644 libdiskfs/fsys-get-children.c
 rename libdiskfs/{file-get-source.c => fsys-get-source.c} (54%)
 delete mode 100644 libnetfs/file-get-children.c
 create mode 100644 libnetfs/fsys-get-children.c
 rename libnetfs/{file-get-source.c => fsys-get-source.c} (54%)
 delete mode 100644 libtrivfs/file-get-children.c
 create mode 100644 libtrivfs/fsys-get-children.c
 rename libtrivfs/{file-get-source.c => fsys-get-source.c} (56%)


hooks/post-receive
-- 
Hurd



reply via email to

[Prev in Thread] Current Thread [Next in Thread]