9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: wb.kloke@gmail.com
To: 9fans <9fans@9fans.net>
Subject: Re: [9fans] Plan 9 from User Space still mantained?
Date: Fri, 21 Jun 2024 04:06:34 -0400	[thread overview]
Message-ID: <17189571940.d09ba981.49490@composer.9fans.topicbox.com> (raw)
In-Reply-To: <CAJUT6o4+rYmVfE763=HL1CQMonaG_hk5Pxax4N8wt7E5fnfSuw@mail.gmail.com>

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

*** 9pserve.c   Fri Mar  1 15:46:35 2024
--- /home/wb/plan9port/src/cmd/9pserve.c        Fri Jun 21 09:43:38 2024
***************
*** 86,92 ****
  Queue *inq;
  int verbose = 0;
  int logging = 0;
! int msize = 8192+24;
  u32int xafid = NOFID;
  int attached;
  int versioned;
--- 86,92 ----
  Queue *inq;
  int verbose = 0;
  int logging = 0;
! int msize = 8192;
  u32int xafid = NOFID;
  int attached;
  int versioned;

*** fuse.c      Wed Nov 29 22:09:33 2023
--- /home/wb/plan9port/src/cmd/9pfuse/fuse.c    Fri Jun 21 09:43:38 2024
***************
*** 432,441 ****
                        case FUSE_OPEN: {
                                struct fuse_open_in *tx = a;
                                /* Should one or both of flags and mode be octal? */
!                               fmtprint(fmt, "Open nodeid %#llux flags %#ux",
!                                       hdr->nodeid, tx->flags);
! //                            fmtprint(fmt, "Open nodeid %#llux flags %#ux mode %#ux",
! //                                    hdr->nodeid, tx->flags, tx->mode);
                                break;
                        }
                        case FUSE_READ: {
--- 432,439 ----
                        case FUSE_OPEN: {
                                struct fuse_open_in *tx = a;
                                /* Should one or both of flags and mode be octal? */
!                               fmtprint(fmt, "Open nodeid %#llux flags %#ux mode %#ux",
!                                       hdr->nodeid, tx->flags, tx->mode);
                                break;
                        }
                        case FUSE_READ: {
***************
*** 493,502 ****
                        }
                        case FUSE_FLUSH: {
                                struct fuse_flush_in *tx = a;
!                               fmtprint(fmt, "Flush nodeid %#llux fh %#llux",
!                                       hdr->nodeid, tx->fh);
! //                            fmtprint(fmt, "Flush nodeid %#llux fh %#llux flags %#ux",
! //                                    hdr->nodeid, tx->fh, tx->flush_flags);
                                break;
                        }
                        case FUSE_INIT: {
--- 491,498 ----
                        }
                        case FUSE_FLUSH: {
                                struct fuse_flush_in *tx = a;
!                               fmtprint(fmt, "Flush nodeid %#llux fh %#llux flags %#ux",
!                                       hdr->nodeid, tx->fh, tx->flush_flags);
                                break;
                        }
                        case FUSE_INIT: {
***************
*** 507,516 ****
                        }
                        case FUSE_OPENDIR: {
                                struct fuse_open_in *tx = a;
!                               fmtprint(fmt, "Opendir nodeid %#llux flags %#ux",
!                                       hdr->nodeid, tx->flags);
! //                            fmtprint(fmt, "Opendir nodeid %#llux flags %#ux mode %#ux",
! //                                    hdr->nodeid, tx->flags, tx->mode);
                                break;
                        }
                        case FUSE_READDIR: {
--- 503,510 ----
                        }
                        case FUSE_OPENDIR: {
                                struct fuse_open_in *tx = a;
!                               fmtprint(fmt, "Opendir nodeid %#llux flags %#ux mode %#ux",
!                                       hdr->nodeid, tx->flags, tx->mode);
                                break;
                        }
                        case FUSE_READDIR: {
***************
*** 539,548 ****
                        }
                        case FUSE_CREATE: {
                                struct fuse_open_in *tx = a;
!                               fmtprint(fmt, "Create nodeid %#llx flags %#ux name %#q",
!                                       hdr->nodeid, tx->flags, tx+1);
! //                            fmtprint(fmt, "Create nodeid %#llx flags %#ux mode %#ux name %#q",
! //                                    hdr->nodeid, tx->flags, tx->mode, tx+1);
                                break;
                        }
                }
--- 533,540 ----
                        }
                        case FUSE_CREATE: {
                                struct fuse_open_in *tx = a;
!                               fmtprint(fmt, "Create nodeid %#llx flags %#ux mode %#ux name %#q",
!                                       hdr->nodeid, tx->flags, tx->mode, tx+1);
                                break;
                        }
                }


2 patches for plan9port on FreeBSD. For the 2nd the correct fuse_kernel.h from /usr/local/include must replace the plan9port version.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td33e0e0d414a8bb7-M705e8cdb9619bf69a4d6cf0a
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

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

  reply	other threads:[~2024-06-21  8:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-20 12:51 Roderick
2024-06-20 13:30 ` [9fans] " wb.kloke
2024-06-20 14:59 ` [9fans] " dexen deVries
2024-06-21  8:06   ` wb.kloke [this message]
2024-06-21  9:47     ` hruodr
2024-06-21 11:36       ` wb.kloke
2024-06-23 13:22         ` wb.kloke
2024-06-21  9:39 ` David Arnold

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=17189571940.d09ba981.49490@composer.9fans.topicbox.com \
    --to=wb.kloke@gmail.com \
    --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).