All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hostfs: fix mismatch between link_file definition and declaration
@ 2019-03-17 23:09 ` Colin King
  0 siblings, 0 replies; 13+ messages in thread
From: Colin King @ 2019-03-17 23:09 UTC (permalink / raw)
  To: Jeff Dike, Richard Weinberger, Anton Ivanov, linux-um
  Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

The function link_file declaration in the header file has the order
of the two arguments (from, to) swapped when compared to the definition
arguments of (to, from).  Fix this by swapping them around to match
the definition.

This error predates the git history, so no idea when this error
was introduced.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 fs/hostfs/hostfs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/hostfs/hostfs.h b/fs/hostfs/hostfs.h
index 33b8423ef0c9..f4295aa19350 100644
--- a/fs/hostfs/hostfs.h
+++ b/fs/hostfs/hostfs.h
@@ -87,7 +87,7 @@ extern int do_mkdir(const char *file, int mode);
 extern int hostfs_do_rmdir(const char *file);
 extern int do_mknod(const char *file, int mode, unsigned int major,
 		    unsigned int minor);
-extern int link_file(const char *from, const char *to);
+extern int link_file(const char *to, const char *from);
 extern int hostfs_do_readlink(char *file, char *buf, int size);
 extern int rename_file(char *from, char *to);
 extern int rename2_file(char *from, char *to, unsigned int flags);
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH] hostfs: fix mismatch between link_file definition and declaration
@ 2019-03-17 23:09 ` Colin King
  0 siblings, 0 replies; 13+ messages in thread
From: Colin King @ 2019-03-17 23:09 UTC (permalink / raw)
  To: Jeff Dike, Richard Weinberger, Anton Ivanov, linux-um
  Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

The function link_file declaration in the header file has the order
of the two arguments (from, to) swapped when compared to the definition
arguments of (to, from).  Fix this by swapping them around to match
the definition.

This error predates the git history, so no idea when this error
was introduced.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 fs/hostfs/hostfs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/hostfs/hostfs.h b/fs/hostfs/hostfs.h
index 33b8423ef0c9..f4295aa19350 100644
--- a/fs/hostfs/hostfs.h
+++ b/fs/hostfs/hostfs.h
@@ -87,7 +87,7 @@ extern int do_mkdir(const char *file, int mode);
 extern int hostfs_do_rmdir(const char *file);
 extern int do_mknod(const char *file, int mode, unsigned int major,
 		    unsigned int minor);
-extern int link_file(const char *from, const char *to);
+extern int link_file(const char *to, const char *from);
 extern int hostfs_do_readlink(char *file, char *buf, int size);
 extern int rename_file(char *from, char *to);
 extern int rename2_file(char *from, char *to, unsigned int flags);
-- 
2.20.1


_______________________________________________
linux-um mailing list
linux-um@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-um


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [PATCH] hostfs: fix mismatch between link_file definition and declaration
  2019-03-17 23:09 ` Colin King
  (?)
@ 2019-03-17 23:49   ` Richard Weinberger
  -1 siblings, 0 replies; 13+ messages in thread
From: Richard Weinberger @ 2019-03-17 23:49 UTC (permalink / raw)
  To: Colin King
  Cc: Jeff Dike, Anton Ivanov, linux-um, kernel-janitors, linux-kernel

Am Montag, 18. März 2019, 00:09:09 CET schrieb Colin King:
> From: Colin Ian King <colin.king@canonical.com>
> 
> The function link_file declaration in the header file has the order
> of the two arguments (from, to) swapped when compared to the definition
> arguments of (to, from).  Fix this by swapping them around to match
> the definition.
> 
> This error predates the git history, so no idea when this error
> was introduced.

commit bf4f804738544a95b8bc8d6a7e2629c3fc0240dd
Author: jdike <jdike>
Date:   Sat Dec 9 22:52:44 2000 +0000

    hostfs now mostly works.  Almost all of the common operations are now
    implemented, the main exceptions being mknod and executing files from
    a hostfs filesystem.

Enough archaeology for today. :-)

Thanks,
//richard



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] hostfs: fix mismatch between link_file definition and declaration
@ 2019-03-17 23:49   ` Richard Weinberger
  0 siblings, 0 replies; 13+ messages in thread
From: Richard Weinberger @ 2019-03-17 23:49 UTC (permalink / raw)
  To: Colin King
  Cc: Jeff Dike, Anton Ivanov, linux-um, kernel-janitors, linux-kernel

Am Montag, 18. März 2019, 00:09:09 CET schrieb Colin King:
> From: Colin Ian King <colin.king@canonical.com>
> 
> The function link_file declaration in the header file has the order
> of the two arguments (from, to) swapped when compared to the definition
> arguments of (to, from).  Fix this by swapping them around to match
> the definition.
> 
> This error predates the git history, so no idea when this error
> was introduced.

commit bf4f804738544a95b8bc8d6a7e2629c3fc0240dd
Author: jdike <jdike>
Date:   Sat Dec 9 22:52:44 2000 +0000

    hostfs now mostly works.  Almost all of the common operations are now
    implemented, the main exceptions being mknod and executing files from
    a hostfs filesystem.

Enough archaeology for today. :-)

Thanks,
//richard

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] hostfs: fix mismatch between link_file definition and declaration
@ 2019-03-17 23:49   ` Richard Weinberger
  0 siblings, 0 replies; 13+ messages in thread
From: Richard Weinberger @ 2019-03-17 23:49 UTC (permalink / raw)
  To: Colin King
  Cc: kernel-janitors, Jeff Dike, linux-um, linux-kernel, Anton Ivanov

Am Montag, 18. März 2019, 00:09:09 CET schrieb Colin King:
> From: Colin Ian King <colin.king@canonical.com>
> 
> The function link_file declaration in the header file has the order
> of the two arguments (from, to) swapped when compared to the definition
> arguments of (to, from).  Fix this by swapping them around to match
> the definition.
> 
> This error predates the git history, so no idea when this error
> was introduced.

commit bf4f804738544a95b8bc8d6a7e2629c3fc0240dd
Author: jdike <jdike>
Date:   Sat Dec 9 22:52:44 2000 +0000

    hostfs now mostly works.  Almost all of the common operations are now
    implemented, the main exceptions being mknod and executing files from
    a hostfs filesystem.

Enough archaeology for today. :-)

Thanks,
//richard



_______________________________________________
linux-um mailing list
linux-um@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-um


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] hostfs: fix mismatch between link_file definition and declaration
  2019-03-17 23:49   ` Richard Weinberger
  (?)
@ 2019-03-18  8:41     ` Colin Ian King
  -1 siblings, 0 replies; 13+ messages in thread
From: Colin Ian King @ 2019-03-18  8:41 UTC (permalink / raw)
  To: Richard Weinberger
  Cc: Jeff Dike, Anton Ivanov, linux-um, kernel-janitors, linux-kernel

On 17/03/2019 23:49, Richard Weinberger wrote:
> Am Montag, 18. März 2019, 00:09:09 CET schrieb Colin King:
>> From: Colin Ian King <colin.king@canonical.com>
>>
>> The function link_file declaration in the header file has the order
>> of the two arguments (from, to) swapped when compared to the definition
>> arguments of (to, from).  Fix this by swapping them around to match
>> the definition.
>>
>> This error predates the git history, so no idea when this error
>> was introduced.
> 
> commit bf4f804738544a95b8bc8d6a7e2629c3fc0240dd
> Author: jdike <jdike>
> Date:   Sat Dec 9 22:52:44 2000 +0000
> 
>     hostfs now mostly works.  Almost all of the common operations are now
>     implemented, the main exceptions being mknod and executing files from
>     a hostfs filesystem.
> 
> Enough archaeology for today. :-)

Nice. How do you find these ancient git commits?

> 
> Thanks,
> //richard
> 
> 


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] hostfs: fix mismatch between link_file definition and declaration
@ 2019-03-18  8:41     ` Colin Ian King
  0 siblings, 0 replies; 13+ messages in thread
From: Colin Ian King @ 2019-03-18  8:41 UTC (permalink / raw)
  To: Richard Weinberger
  Cc: Jeff Dike, Anton Ivanov, linux-um, kernel-janitors, linux-kernel

On 17/03/2019 23:49, Richard Weinberger wrote:
> Am Montag, 18. März 2019, 00:09:09 CET schrieb Colin King:
>> From: Colin Ian King <colin.king@canonical.com>
>>
>> The function link_file declaration in the header file has the order
>> of the two arguments (from, to) swapped when compared to the definition
>> arguments of (to, from).  Fix this by swapping them around to match
>> the definition.
>>
>> This error predates the git history, so no idea when this error
>> was introduced.
> 
> commit bf4f804738544a95b8bc8d6a7e2629c3fc0240dd
> Author: jdike <jdike>
> Date:   Sat Dec 9 22:52:44 2000 +0000
> 
>     hostfs now mostly works.  Almost all of the common operations are now
>     implemented, the main exceptions being mknod and executing files from
>     a hostfs filesystem.
> 
> Enough archaeology for today. :-)

Nice. How do you find these ancient git commits?

> 
> Thanks,
> //richard
> 
> 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] hostfs: fix mismatch between link_file definition and declaration
@ 2019-03-18  8:41     ` Colin Ian King
  0 siblings, 0 replies; 13+ messages in thread
From: Colin Ian King @ 2019-03-18  8:41 UTC (permalink / raw)
  To: Richard Weinberger
  Cc: kernel-janitors, Jeff Dike, linux-um, linux-kernel, Anton Ivanov

On 17/03/2019 23:49, Richard Weinberger wrote:
> Am Montag, 18. März 2019, 00:09:09 CET schrieb Colin King:
>> From: Colin Ian King <colin.king@canonical.com>
>>
>> The function link_file declaration in the header file has the order
>> of the two arguments (from, to) swapped when compared to the definition
>> arguments of (to, from).  Fix this by swapping them around to match
>> the definition.
>>
>> This error predates the git history, so no idea when this error
>> was introduced.
> 
> commit bf4f804738544a95b8bc8d6a7e2629c3fc0240dd
> Author: jdike <jdike>
> Date:   Sat Dec 9 22:52:44 2000 +0000
> 
>     hostfs now mostly works.  Almost all of the common operations are now
>     implemented, the main exceptions being mknod and executing files from
>     a hostfs filesystem.
> 
> Enough archaeology for today. :-)

Nice. How do you find these ancient git commits?

> 
> Thanks,
> //richard
> 
> 


_______________________________________________
linux-um mailing list
linux-um@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-um

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] hostfs: fix mismatch between link_file definition and declaration
  2019-03-17 23:09 ` Colin King
@ 2019-03-18  8:46 ` Walter Harms
  -1 siblings, 0 replies; 13+ messages in thread
From: Walter Harms @ 2019-03-18  8:46 UTC (permalink / raw)
  To: kernel-janitors
  Cc: Jeff Dike, Richard Weinberger, Anton Ivanov, linux-um, linux-kernel

Hi,
Colin is obvously right with that.
But my guess is that the error occured because the
pattern (from, to) is brocken here. Also 

Maybe the maintainer can fix that.

just my 2 cents,

re,
 wh


Am 18.03.2019 00:09, schrieb Colin King:
> From: Colin Ian King <colin.king@canonical.com>
> 
> The function link_file declaration in the header file has the order
> of the two arguments (from, to) swapped when compared to the definition
> arguments of (to, from).  Fix this by swapping them around to match
> the definition.
> 
> This error predates the git history, so no idea when this error
> was introduced.
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>  fs/hostfs/hostfs.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/hostfs/hostfs.h b/fs/hostfs/hostfs.h
> index 33b8423ef0c9..f4295aa19350 100644
> --- a/fs/hostfs/hostfs.h
> +++ b/fs/hostfs/hostfs.h
> @@ -87,7 +87,7 @@ extern int do_mkdir(const char *file, int mode);
>  extern int hostfs_do_rmdir(const char *file);
>  extern int do_mknod(const char *file, int mode, unsigned int major,
>  		    unsigned int minor);
> -extern int link_file(const char *from, const char *to);
> +extern int link_file(const char *to, const char *from);
>  extern int hostfs_do_readlink(char *file, char *buf, int size);
>  extern int rename_file(char *from, char *to);
>  extern int rename2_file(char *from, char *to, unsigned int flags);

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] hostfs: fix mismatch between link_file definition and declaration
@ 2019-03-18  8:46 ` Walter Harms
  0 siblings, 0 replies; 13+ messages in thread
From: Walter Harms @ 2019-03-18  8:46 UTC (permalink / raw)
  To: kernel-janitors
  Cc: Jeff Dike, Richard Weinberger, Anton Ivanov, linux-um, linux-kernel

Hi,
Colin is obvously right with that.
But my guess is that the error occured because the
pattern (from, to) is brocken here. Also 

Maybe the maintainer can fix that.

just my 2 cents,

re,
 wh


Am 18.03.2019 00:09, schrieb Colin King:
> From: Colin Ian King <colin.king@canonical.com>
> 
> The function link_file declaration in the header file has the order
> of the two arguments (from, to) swapped when compared to the definition
> arguments of (to, from).  Fix this by swapping them around to match
> the definition.
> 
> This error predates the git history, so no idea when this error
> was introduced.
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>  fs/hostfs/hostfs.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/hostfs/hostfs.h b/fs/hostfs/hostfs.h
> index 33b8423ef0c9..f4295aa19350 100644
> --- a/fs/hostfs/hostfs.h
> +++ b/fs/hostfs/hostfs.h
> @@ -87,7 +87,7 @@ extern int do_mkdir(const char *file, int mode);
>  extern int hostfs_do_rmdir(const char *file);
>  extern int do_mknod(const char *file, int mode, unsigned int major,
>  		    unsigned int minor);
> -extern int link_file(const char *from, const char *to);
> +extern int link_file(const char *to, const char *from);
>  extern int hostfs_do_readlink(char *file, char *buf, int size);
>  extern int rename_file(char *from, char *to);
>  extern int rename2_file(char *from, char *to, unsigned int flags);

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] hostfs: fix mismatch between link_file definition and declaration
  2019-03-18  8:41     ` Colin Ian King
  (?)
@ 2019-03-18  9:30       ` Richard Weinberger
  -1 siblings, 0 replies; 13+ messages in thread
From: Richard Weinberger @ 2019-03-18  9:30 UTC (permalink / raw)
  To: Colin Ian King
  Cc: Jeff Dike, Anton Ivanov, linux-um, kernel-janitors, linux-kernel

Am Montag, 18. März 2019, 09:41:28 CET schrieb Colin Ian King:
> On 17/03/2019 23:49, Richard Weinberger wrote:
> > Am Montag, 18. März 2019, 00:09:09 CET schrieb Colin King:
> >> From: Colin Ian King <colin.king@canonical.com>
> >>
> >> The function link_file declaration in the header file has the order
> >> of the two arguments (from, to) swapped when compared to the definition
> >> arguments of (to, from).  Fix this by swapping them around to match
> >> the definition.
> >>
> >> This error predates the git history, so no idea when this error
> >> was introduced.
> > 
> > commit bf4f804738544a95b8bc8d6a7e2629c3fc0240dd
> > Author: jdike <jdike>
> > Date:   Sat Dec 9 22:52:44 2000 +0000
> > 
> >     hostfs now mostly works.  Almost all of the common operations are now
> >     implemented, the main exceptions being mknod and executing files from
> >     a hostfs filesystem.
> > 
> > Enough archaeology for today. :-)
> 
> Nice. How do you find these ancient git commits?

This commit is from the old UML cvs tree.
I did a import to git some time ago and pushed it to:
https://git.kernel.org/pub/scm/linux/kernel/git/rw/uml-history.git/

For classic pre-git stuff, check:
https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git/

Thanks,
//richard



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] hostfs: fix mismatch between link_file definition and declaration
@ 2019-03-18  9:30       ` Richard Weinberger
  0 siblings, 0 replies; 13+ messages in thread
From: Richard Weinberger @ 2019-03-18  9:30 UTC (permalink / raw)
  To: Colin Ian King
  Cc: Jeff Dike, Anton Ivanov, linux-um, kernel-janitors, linux-kernel

Am Montag, 18. März 2019, 09:41:28 CET schrieb Colin Ian King:
> On 17/03/2019 23:49, Richard Weinberger wrote:
> > Am Montag, 18. März 2019, 00:09:09 CET schrieb Colin King:
> >> From: Colin Ian King <colin.king@canonical.com>
> >>
> >> The function link_file declaration in the header file has the order
> >> of the two arguments (from, to) swapped when compared to the definition
> >> arguments of (to, from).  Fix this by swapping them around to match
> >> the definition.
> >>
> >> This error predates the git history, so no idea when this error
> >> was introduced.
> > 
> > commit bf4f804738544a95b8bc8d6a7e2629c3fc0240dd
> > Author: jdike <jdike>
> > Date:   Sat Dec 9 22:52:44 2000 +0000
> > 
> >     hostfs now mostly works.  Almost all of the common operations are now
> >     implemented, the main exceptions being mknod and executing files from
> >     a hostfs filesystem.
> > 
> > Enough archaeology for today. :-)
> 
> Nice. How do you find these ancient git commits?

This commit is from the old UML cvs tree.
I did a import to git some time ago and pushed it to:
https://git.kernel.org/pub/scm/linux/kernel/git/rw/uml-history.git/

For classic pre-git stuff, check:
https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git/

Thanks,
//richard

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] hostfs: fix mismatch between link_file definition and declaration
@ 2019-03-18  9:30       ` Richard Weinberger
  0 siblings, 0 replies; 13+ messages in thread
From: Richard Weinberger @ 2019-03-18  9:30 UTC (permalink / raw)
  To: Colin Ian King
  Cc: kernel-janitors, Jeff Dike, linux-um, linux-kernel, Anton Ivanov

Am Montag, 18. März 2019, 09:41:28 CET schrieb Colin Ian King:
> On 17/03/2019 23:49, Richard Weinberger wrote:
> > Am Montag, 18. März 2019, 00:09:09 CET schrieb Colin King:
> >> From: Colin Ian King <colin.king@canonical.com>
> >>
> >> The function link_file declaration in the header file has the order
> >> of the two arguments (from, to) swapped when compared to the definition
> >> arguments of (to, from).  Fix this by swapping them around to match
> >> the definition.
> >>
> >> This error predates the git history, so no idea when this error
> >> was introduced.
> > 
> > commit bf4f804738544a95b8bc8d6a7e2629c3fc0240dd
> > Author: jdike <jdike>
> > Date:   Sat Dec 9 22:52:44 2000 +0000
> > 
> >     hostfs now mostly works.  Almost all of the common operations are now
> >     implemented, the main exceptions being mknod and executing files from
> >     a hostfs filesystem.
> > 
> > Enough archaeology for today. :-)
> 
> Nice. How do you find these ancient git commits?

This commit is from the old UML cvs tree.
I did a import to git some time ago and pushed it to:
https://git.kernel.org/pub/scm/linux/kernel/git/rw/uml-history.git/

For classic pre-git stuff, check:
https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git/

Thanks,
//richard



_______________________________________________
linux-um mailing list
linux-um@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-um


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2019-03-18  9:45 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-18  8:46 [PATCH] hostfs: fix mismatch between link_file definition and declaration Walter Harms
2019-03-18  8:46 ` Walter Harms
  -- strict thread matches above, loose matches on Subject: below --
2019-03-17 23:09 Colin King
2019-03-17 23:09 ` Colin King
2019-03-17 23:49 ` Richard Weinberger
2019-03-17 23:49   ` Richard Weinberger
2019-03-17 23:49   ` Richard Weinberger
2019-03-18  8:41   ` Colin Ian King
2019-03-18  8:41     ` Colin Ian King
2019-03-18  8:41     ` Colin Ian King
2019-03-18  9:30     ` Richard Weinberger
2019-03-18  9:30       ` Richard Weinberger
2019-03-18  9:30       ` Richard Weinberger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.