[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH unionfs 1/3] Implement MiG intran payload support
From: |
Samuel Thibault |
Subject: |
Re: [PATCH unionfs 1/3] Implement MiG intran payload support |
Date: |
Mon, 26 Apr 2021 20:15:58 +0200 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Sergey Bugaev, le lun. 26 avril 2021 20:08:18 +0300, a ecrit:
> This fixes a build error.
Applied, thanks!
> ---
> stow-mutations.h | 1 +
> stow-priv.h | 4 ++++
> stow.c | 9 +++++++++
> 3 files changed, 14 insertions(+)
>
> diff --git a/stow-mutations.h b/stow-mutations.h
> index d36280d..95c1e7f 100644
> --- a/stow-mutations.h
> +++ b/stow-mutations.h
> @@ -21,6 +21,7 @@
> /* Only CPP macro definitions should go in this file. */
>
> #define FS_NOTIFY_INTRAN stow_notify_t begin_using_notify_port (fs_notify_t)
> +#define FS_NOTIFY_INTRAN_PAYLOAD stow_notify_t
> begin_using_notify_port_payload
> #define FS_NOTIFY_DESTRUCTOR end_using_notify_port (stow_notify_t)
>
> #define FS_NOTIFY_IMPORTS import "stow-priv.h";
> diff --git a/stow-priv.h b/stow-priv.h
> index 2212ac9..eeae7b3 100644
> --- a/stow-priv.h
> +++ b/stow-priv.h
> @@ -36,6 +36,10 @@ typedef struct stow_notify *stow_notify_t;
> arranges for this to happen for the fs_notify interfaces. */
> stow_notify_t begin_using_notify_port (fs_notify_t port);
>
> +/* Called by MiG to translate ports into stow_notify_t when using the
> + protected payload feature. mutations.h arranges for this to happen
> + for the fs_notify interfaces. */
> +stow_notify_t begin_using_notify_port_payload (unsigned long payload);
>
> /* Called by MiG after server routines have been run; this balances
> begin_using_notify_port, and is arranged for the fs_notify
> diff --git a/stow.c b/stow.c
> index cf6366e..a04ffdf 100644
> --- a/stow.c
> +++ b/stow.c
> @@ -167,6 +167,15 @@ begin_using_notify_port (fs_notify_t port)
> return ports_lookup_port (stow_port_bucket, port, stow_port_class);
> }
>
> +/* Called by MiG to translate ports into stow_notify_t when using the
> + protected payload feature. mutations.h arranges for this to happen
> + for the fs_notify interfaces. */
> +stow_notify_t
> +begin_using_notify_port_payload (unsigned long payload)
> +{
> + return ports_lookup_payload (stow_port_bucket, payload, stow_port_class);
> +}
> +
> /* Called by MiG after server routines have been run; this balances
> begin_using_notify_port, and is arranged for the fs_notify
> interfaces by mutations.h. */
> --
> 2.31.1
>
>
--
Samuel
War doesn't prove who's right, just who's left.
- [PATCH unionfs 0/3] Fix unionfs build errors, Sergey Bugaev, 2021/04/26
- [PATCH unionfs 3/3] Don't use strncat() with length derived from source string, Sergey Bugaev, 2021/04/26
- Re: [PATCH unionfs 3/3] Don't use strncat() with length derived from source string, Jessica Clarke, 2021/04/26
- Re: [PATCH unionfs 3/3] Don't use strncat() with length derived from source string, Samuel Thibault, 2021/04/26
- Re: [PATCH unionfs 3/3] Don't use strncat() with length derived from source string, Sergey Bugaev, 2021/04/26
- Re: [PATCH unionfs 3/3] Don't use strncat() with length derived from source string, Samuel Thibault, 2021/04/26
- Re: [PATCH unionfs 3/3] Don't use strncat() with length derived from source string, Sergey Bugaev, 2021/04/27
- Re: [PATCH unionfs 3/3] Don’t use strncat() with length derived from source string, Ivan Shmakov, 2021/04/27
- Re: [PATCH unionfs 3/3] Don't use strncat() with length derived from source string, Samuel Thibault, 2021/04/27
[PATCH unionfs 1/3] Implement MiG intran payload support, Sergey Bugaev, 2021/04/26
- Re: [PATCH unionfs 1/3] Implement MiG intran payload support,
Samuel Thibault <=
[PATCH unionfs 2/3] Add some missing includes, Sergey Bugaev, 2021/04/26