lkml.org 
[lkml]   [2014]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V2 1/1] Drivers: hv: Implement the file copy service
On Tue, Jan 14, K. Y. Srinivasan wrote:

> +static int hv_start_fcopy(struct hv_start_fcopy *smsg)

> + if (access((char *)smsg->path_name, F_OK)) {
> + if (smsg->copy_flags & CREATE_PATH) {
> + if (mkdir((char *)smsg->path_name, 0755)) {

KY,

I guess this needs a loop over every path compoment to implement
'mkdir -p', if the "-CreateFullPath" option is used?

Hopefully "-DestinationPath" is an arbitrary string and does not require
some sort of C: prefix. ;-)


Olaf


\
 
 \ /
  Last update: 2014-01-15 18:01    [W:0.291 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site