9p-synth.c (f74425e267f81f0f94adf47ecbd66224e0461936) | 9p-synth.c (6ce7177ae2e547999ef9e6f467415963991e28da) |
---|---|
1/* 2 * 9p synthetic file system support 3 * 4 * Copyright IBM, Corp. 2011 5 * 6 * Authors: 7 * Malahal Naineni <malahal@us.ibm.com> 8 * Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> --- 481 unchanged lines hidden (view full) --- 490 rcu_read_unlock(); 491 492 if (!node) { 493 errno = ENOENT; 494 return -1; 495 } 496out: 497 /* Copy the node pointer to fid */ | 1/* 2 * 9p synthetic file system support 3 * 4 * Copyright IBM, Corp. 2011 5 * 6 * Authors: 7 * Malahal Naineni <malahal@us.ibm.com> 8 * Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> --- 481 unchanged lines hidden (view full) --- 490 rcu_read_unlock(); 491 492 if (!node) { 493 errno = ENOENT; 494 return -1; 495 } 496out: 497 /* Copy the node pointer to fid */ |
498 g_free(target->data); |
|
498 target->data = g_memdup(&node, sizeof(void *)); 499 target->size = sizeof(void *); 500 return 0; 501} 502 503static int synth_renameat(FsContext *ctx, V9fsPath *olddir, 504 const char *old_name, V9fsPath *newdir, 505 const char *new_name) --- 115 unchanged lines hidden --- | 499 target->data = g_memdup(&node, sizeof(void *)); 500 target->size = sizeof(void *); 501 return 0; 502} 503 504static int synth_renameat(FsContext *ctx, V9fsPath *olddir, 505 const char *old_name, V9fsPath *newdir, 506 const char *new_name) --- 115 unchanged lines hidden --- |