summaryrefslogtreecommitdiff
path: root/libdiskfs/node-update.c
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2013-11-06 11:22:50 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-01-12 19:17:00 +0100
commit4de65c4af42894f57b8b8c3a050260725a96b109 (patch)
tree9cc603cea3f25cf83888dd17e1c02893d5ab66ec /libdiskfs/node-update.c
parent0033d20449b3bb558f2ea470983018db39b572aa (diff)
libfshelp: fix the api of fshelp_set_active_translator
To detect if an active translator goes away, we need to register for dead name notifications. Those notifications have to be sent to a port known to the ports library, as the ports library handles the dead name notifications. The most straight forward way is to use the port to the underlying node for that. To that end, a reference to the port_info struct is handed in and kept in the list of active translators. This commit also moves the registration of dead name notifications to libfshelp. * libfshelp/fshelp.h (fshelp_set_active_translator): Add port_info argument. * libfshelp/translator-list.c (struct translator): Add port_info pointer. (translator_ihash_cleanup): Dereference port_info object. (fshelp_set_active_translator): Register dead name notifications. * libdiskfs/file-set-trans.c (diskfs_S_file_set_translator): Update accordingly. * libnetfs/file-set-translator.c (netfs_S_file_set_translator): Likewise.
Diffstat (limited to 'libdiskfs/node-update.c')
0 files changed, 0 insertions, 0 deletions