All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frank Rowand <frowand.list@gmail.com>
To: "Bird, Timothy" <Tim.Bird@sony.com>,
	"monstr@monstr.eu" <monstr@monstr.eu>,
	"fuego@lists.linuxfoundation.org"
	<fuego@lists.linuxfoundation.org>
Subject: Re: [Fuego] [PATCH] Add support for full device paths (with slashes and colons) to sercp
Date: Thu, 13 Apr 2017 14:06:59 -0700	[thread overview]
Message-ID: <58EFE873.7090009@gmail.com> (raw)
In-Reply-To: <ECADFF3FD767C149AD96A924E7EA6EAF1FA6D3FD@USCULXMSG03.am.sony.com>

On 04/13/17 11:48, Bird, Timothy wrote:
>> -----Original Message-----
>> From: Bird, Timothy on Thursday, April 13, 2017 11:36 AM
> 
> Just some commentary on the patch...
> 
> This patch solves the problem we were discussing earlier.
> With the feature, I can do any of the following, which are all equivalent:
> $ sercp foo ttyACM1:/tmp
> $ sercp -d /dev/ttyACM1 foo serial:/tmp
> $ sercp -d /dev/serial/by-path/pci-0000:08:00.0-usb-0:3:1.4 foo serial:/tmp
> All of these copy file 'foo' to the host at the other end of the serial port.
> 
> You can use 'serial' as the placeholder for the device path in either the source
> or destination file arguments.  So this works also:
> $ sercp -d /dev/serial/by-path/pci-0000:08:00.0-usb-0:3:1.4  serial:/tmp/foo bar
> (copy the file 'foo' from the remove host back to the local filesystem, as 'bar').
> 
> Let me know what you think.

I like it.


> BTW - what's up with the unused "user@" parameters?  Why are those supported?
> Fuego does not need them or use them.  Was there some plan to use them in the future?

The intent was to allow a drop in replacement for scp and ssh, with the only change
to the command being that a serial device name replaces the host name.  So having
a "user@" would not result in an error.

At the moment the user name is just ignored.  The user name could possibly be used
in the future:

  sercp
     -- If user specified for the target, try to 'chown user' after copying
     -- If user specified for the source, try to 'su user' before reading
        the file.  This is likely to fail due to passwords.

  sersh
     -- If user specified, try to 'su user' to execute the command as user.
        This is likely to fail due to passwords.

It seems like the 'chown user' might be a good idea, but the other changes
look like feature creep to me.


> 
>  -- Tim
> 


  reply	other threads:[~2017-04-13 21:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-13 18:48 [Fuego] [PATCH] Add support for full device paths (with slashes and colons) to sercp Bird, Timothy
2017-04-13 21:06 ` Frank Rowand [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-04-13 18:35 Bird, Timothy
2017-04-13 20:50 ` Frank Rowand
2017-04-13 21:21   ` Bird, Timothy
2017-04-13 21:52     ` Frank Rowand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58EFE873.7090009@gmail.com \
    --to=frowand.list@gmail.com \
    --cc=Tim.Bird@sony.com \
    --cc=fuego@lists.linuxfoundation.org \
    --cc=monstr@monstr.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.