From b948c942539d47fb91a28dd085a028f3116b70c4 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Thu, 5 Aug 2021 18:51:16 +0300 Subject: diskfs: Use libports notifications Namely, ports_request_dead_name_notification () where we can, and the libports notify port when we have to pass it to libfshelp. --- libdiskfs/dir-lookup.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libdiskfs/dir-lookup.c') diff --git a/libdiskfs/dir-lookup.c b/libdiskfs/dir-lookup.c index b39868ae..eb939c09 100644 --- a/libdiskfs/dir-lookup.c +++ b/libdiskfs/dir-lookup.c @@ -276,6 +276,7 @@ diskfs_S_dir_lookup (struct protid *dircred, char *end = strchr (retry_name, '\0'); char *translator_path = strdupa (relpath); char *complete_path; + struct port_info *notify_port; if (mustbedir) *end++ = '/'; /* Trailing slash. */ @@ -310,7 +311,8 @@ diskfs_S_dir_lookup (struct protid *dircred, asprintf (&complete_path, "%s/%s", dircred->po->path, translator_path); - err = fshelp_set_active_translator (&newpi->pi, + notify_port = newpi->pi.bucket->notify_port; + err = fshelp_set_active_translator (notify_port, complete_path, &np->transbox); if (complete_path != translator_path) -- cgit v1.2.3