From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <1317757198.32730.YahooMailClassic@web83904.mail.sp1.yahoo.com> From: Jens Staal Date: Tue, 4 Oct 2011 21:51:18 +0200 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] copying over 9P using plan9port Topicbox-Message-UUID: 32b2bdfa-ead7-11e9-9d60-3106f5b1d025 2011/10/4 Russ Cox : > To answer my question: the error message comes from 9pfuse. > The extra bits are O_NOFOLLOW and O_LARGEFILE, both of > which seem harmless in this context. =C2=A0Try this: > > > diff -r 6db8fc2588f6 src/cmd/9pfuse/main.c > --- a/src/cmd/9pfuse/main.c =C2=A0 =C2=A0 Mon Oct 03 18:16:09 2011 -0400 > +++ b/src/cmd/9pfuse/main.c =C2=A0 =C2=A0 Tue Oct 04 15:43:16 2011 -0400 > @@ -577,6 +577,13 @@ > =C2=A0 =C2=A0 =C2=A0 =C2=A0openmode =3D flags&3; > =C2=A0 =C2=A0 =C2=A0 =C2=A0flags &=3D ~3; > =C2=A0 =C2=A0 =C2=A0 =C2=A0flags &=3D ~(O_DIRECTORY|O_NONBLOCK|O_LARGEFIL= E|O_CLOEXEC); > +#ifdef O_NOFOLLOW > + =C2=A0 =C2=A0 =C2=A0 flags &=3D ~O_NOFOLLOW > +#endif > +#ifdef O_LARGEFILE > + =C2=A0 =C2=A0 =C2=A0 flags &=3D ~O_LARGEFILE > +#endif > + > =C2=A0 =C2=A0 =C2=A0 =C2=A0/* > =C2=A0 =C2=A0 =C2=A0 =C2=A0 * Discarding O_APPEND here is not completely = wrong, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 * because the host kernel will rewrite the of= fsets > @@ -594,7 +601,7 @@ > =C2=A0 =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A0 =C2=A0O_NONBLOCK -> ONONBLOCK > =C2=A0 =C2=A0 =C2=A0 =C2=A0 */ > =C2=A0 =C2=A0 =C2=A0 =C2=A0if(flags){ > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 fprint(2, "unexpected = open flags %#uo", (uint)in->flags); > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 fprint(2, "unexpected = open flags %#uo\n", (uint)in->flags); > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0replyfuseerrno(m, = EACCES); > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0return; > =C2=A0 =C2=A0 =C2=A0 =C2=A0} > > Thanks I will try the patch as soon as I got time. @ brian: doing "cp -r" instead of "cp -ar" did not make a difference