9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: andrey mirtchovski <andrey@lanl.gov>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] ftpfs: cosmetic bug
Date: Wed, 23 Oct 2002 08:58:48 -0600	[thread overview]
Message-ID: <20021023083800.A37298-100000@fbsd.acl.lanl.gov> (raw)
In-Reply-To: <20021023140631.GA219@next.gli.cas.cz>

The lines 'transfer complete' give out the answer -- ftpfs tries to walk
all subdirectories when given a glob pattern like the one you have...

a little experimenting, together with the ftpfs source, will show you that
ftpfs 'caches' directory entries, instead of going to the server to fetch
them each time. that's also the case with, for example, freebsd's default
ftp client (especially when one attempts to do 'tab' completion)...

cpu% mv /n/ftp/www/blahblah/blah* .
mv: can't stat /n/ftp/www/blahblah/blah*: '/n/ftp/www' not a directory
cpu% mv /n/ftp/www/blabla* .
226-Transfer complete.
226-Transfer complete.
mv: can't stat /n/ftp/www/blabla*: '/n/ftp/www' file does not exist
cpu%

cpu% ls /n/ftp/blah
226-Transfer complete.
ls: /n/ftp/blah: file does not exist
cpu% ls /n/ftp/blahblahlbalh
ls: /n/ftp/blahblahlbalh: '/n/ftp/blahblahlbalh' file does not exist
cpu% ls /n/ftp/ftpblah
ls: /n/ftp/ftpblah: '/n/ftp/ftpblah' file does not exist
cpu% ls /n/ftp/www/blah
226-Transfer complete.
ls: /n/ftp/www/blah: file does not exist


andrey

side note: sending email from a root account can be
considered an insult on this list :) i've renamed 'root' to
'glenda' on my freebsd machine anyway -- much more aesthetically
pleasing :)

On Wed, 23 Oct 2002, root wrote:

> Hi,
> writing to a non-existent directory gives a strange error message:
>
> term% mv /n/ftp/neXt/biology/rel* /n/ftp/neXt/text
> mv: /n/ftp/neXt not a directory
> ========================
>
> term% ls /n/ftp/neXt/text
> ls: /n/ftp/neXt/text: '/n/ftp/neXt' file does not exist
> term% ls /n/ftp/neXt
> /n/ftp/neXt/3D_reconstruction
> /n/ftp/neXt/biology
> /n/ftp/neXt/imaging
> /n/ftp/neXt/libs
> /n/ftp/neXt/rc
>
> Regards,
> ++pac.
> <pac7@post.cz>, for now
>




      reply	other threads:[~2002-10-23 14:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-23 14:06 root
2002-10-23 14:58 ` andrey mirtchovski [this message]

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=20021023083800.A37298-100000@fbsd.acl.lanl.gov \
    --to=andrey@lanl.gov \
    --cc=9fans@cse.psu.edu \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).