9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] What's a mounted channel?
@ 2021-05-29 20:36 Anonymous AWK fan via 9fans
  2021-05-30  5:11 ` [9fans] " Anthony Martin
  0 siblings, 1 reply; 2+ messages in thread
From: Anonymous AWK fan via 9fans @ 2021-05-29 20:36 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 511 bytes --]

The comments on the #define lines and a commented out section of
stat(2) say (DM|QT)MOUNT indicates a mounted channel, what is this?

Also, why does exportfs fork and the kernel not send write on closed
pipe notes for mounted channels?

-- Mailfence.comPrivate and secure email
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T07cb7686febe72c8-M9638af67f5d779dab7d470aa
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 1033 bytes --]

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

* [9fans] Re: What's a mounted channel?
  2021-05-29 20:36 [9fans] What's a mounted channel? Anonymous AWK fan via 9fans
@ 2021-05-30  5:11 ` Anthony Martin
  0 siblings, 0 replies; 2+ messages in thread
From: Anthony Martin @ 2021-05-30  5:11 UTC (permalink / raw)
  To: 9fans

Anonymous AWK fan via 9fans <9fans@9fans.net> once said:
> The comments on the #define lines and a commented out section of
> stat(2) say (DM|QT)MOUNT indicates a mounted channel, what is this?
>
> Also, why does exportfs fork and the kernel not send write on closed
> pipe notes for mounted channels?

When you call mount(2), the mnt(3) driver attempts to
negotiate a conversation with the 9p server on the other
end of the supplied file descriptor. If the negotiation
is successful, the kernel sets a flag on the underlying
channel to restrict the set of operations available to
user space until the file descriptor is closed. If this
wasn't done, any reads, writes, or seeks would interfere
with the mount driver's ongoing 9p conversation.

Cheers,
  Anthony

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T07cb7686febe72c8-M1734aaea903ed27f61612f56
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

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

end of thread, other threads:[~2021-05-30  5:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-29 20:36 [9fans] What's a mounted channel? Anonymous AWK fan via 9fans
2021-05-30  5:11 ` [9fans] " Anthony Martin

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).