[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7d05d0da979343979b7bcdd7896b2c95@BY2PR03MB299.namprd03.prod.outlook.com>
Date: Wed, 15 Jan 2014 19:11:05 +0000
From: KY Srinivasan <kys@...rosoft.com>
To: Olaf Hering <olaf@...fle.de>
CC: "gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"devel@...uxdriverproject.org" <devel@...uxdriverproject.org>,
"apw@...onical.com" <apw@...onical.com>,
"jasowang@...hat.com" <jasowang@...hat.com>
Subject: RE: [PATCH V2 1/1] Drivers: hv: Implement the file copy service
> -----Original Message-----
> From: Olaf Hering [mailto:olaf@...fle.de]
> Sent: Wednesday, January 15, 2014 8:33 AM
> To: KY Srinivasan
> Cc: gregkh@...uxfoundation.org; linux-kernel@...r.kernel.org;
> devel@...uxdriverproject.org; apw@...onical.com; jasowang@...hat.com
> Subject: Re: [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?
Yes; I will make the change. The good news is that for the destination path and file name,
the host does not interpret the path components.
Regards,
K. Y
>
> Hopefully "-DestinationPath" is an arbitrary string and does not require
> some sort of C: prefix. ;-)
>
>
> Olaf
Powered by blists - more mailing lists