9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] A few questions about 9p
Date: Thu, 29 Jan 2015 06:36:33 -0800	[thread overview]
Message-ID: <7f6d0c6854415a715816e0fe020868c4@brasstown.quanstro.net> (raw)
In-Reply-To: <CAOw7k5gTK2U2-FBbgHnEmZAG29Aa-OXBtzFZcgKREX8x0YUgMA@mail.gmail.com>

> > What's the proper message sequence to delete a file? And to delete a non
> > empty directly?
> >
>     You point a fid at the file, then remove it:    Twalk* ... Tremove
>     A non-empty directory can't be removed.
>     Tremove implies Tclunk

the current on-disk file servers do follow this rule, but i don't see it
mentioned in remove(5) and at least nupas, if not the original, will
allow a rm of a message directory, with the expected sematics of
removing the message.  aoe(3) allows target directories to be
removed with rm.

if a sentence were added to remove(5), it might be "removing non-empty
directories may be disallowed by the file server."  i'm not sure that clarifies
things, though.

- erik



  reply	other threads:[~2015-01-29 14:36 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAHL7psHNZrbQuFRz5grmXgR686o2e+-SX=tW6yxnfNaduec5NQ@mail.gmail.com>
     [not found] ` <CAHL7psGPf3z56wjZGJsSVCeEzHBJgtbt17nL-UNA8kXKM-mkuw@mail.gmail.com>
     [not found]   ` <CAHL7psFTR7G1N069XoqYkuxJ_P0TYzmXAZ752wVa=9BAOX0CQg@mail.gmail.com>
     [not found]     ` <CAHL7psEUjdaV9LABzRrHn1TLftF+moxWV563-tvK+7VLviKhRg@mail.gmail.com>
2015-01-29  9:04       ` Giacomo Tesio
2015-01-29 10:07         ` Charles Forsyth
2015-01-29 14:36           ` erik quanstrom [this message]
2015-01-29 14:41           ` Giacomo Tesio
2015-01-29 14:52             ` erik quanstrom
2015-01-29 14:54             ` cinap_lenrek
2015-01-29 15:46               ` Giacomo Tesio
2022-10-31 23:14 ibrahim via 9fans
2022-11-04 23:41 ` ron minnich
2022-11-05  1:32   ` ibrahim via 9fans
2022-11-05  4:10   ` ibrahim via 9fans
2022-11-05  4:30     ` ori
2022-11-05  6:30       ` ibrahim via 9fans
2022-11-05 14:09         ` ori
2022-11-05 15:50           ` ibrahim via 9fans

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=7f6d0c6854415a715816e0fe020868c4@brasstown.quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    /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).