On 14.02.24 18:48, Andrew Cooper wrote:
On 08/02/2024 4:55 pm, Juergen Gross wrote:
+static struct p9_fid *alloc_fid(device *device, unsigned int fid,
+const char *path)
+{
+struct p9_fid *fidp = NULL;
+
+pthread_mutex_lock(&device->fid_mutex);
+
+if (
On 14.02.24 18:40, Andrew Cooper wrote:
On 08/02/2024 4:55 pm, Juergen Gross wrote:
+static struct p9_fid *alloc_fid_mem(device *device, unsigned int fid,
+const char *path)
+{
+struct p9_fid *fidp;
+size_t pathlen;
+
+pathlen = strlen(path);
+
On 08/02/2024 4:55 pm, Juergen Gross wrote:
> +static struct p9_fid *alloc_fid(device *device, unsigned int fid,
> +const char *path)
> +{
> +struct p9_fid *fidp = NULL;
> +
> +pthread_mutex_lock(&device->fid_mutex);
> +
> +if ( find_fid(device, fid) )
>
On 08/02/2024 4:55 pm, Juergen Gross wrote:
> +static struct p9_fid *alloc_fid_mem(device *device, unsigned int fid,
> +const char *path)
> +{
> +struct p9_fid *fidp;
> +size_t pathlen;
> +
> +pathlen = strlen(path);
> +fidp = calloc(sizeof(*fidp)