9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Oleg <lego12239@yandex.ru>
To: 9fans@9fans.net
Subject: [9fans] linux 9p: uid & gid
Date: Thu, 20 Jun 2019 18:04:36 +0300	[thread overview]
Message-ID: <20190620150435.GA31903@legohost> (raw)

Hi, all.

I wrote a 9p fs with help of libixp and after mounting i see strange uid and
gid numbers for files:

~# mount -t 9p -o trans=unix,noextend q t
~# ls -l t
-rw-rw-rw- 1 4294967294 4294967294 1 Jan  1  1970 conf
-rw-rw-rw- 1 4294967294 4294967294 1 Jan  1  1970 data
-rw-rw-rw- 1 4294967294 4294967294 1 Jan  1  1970 stat

If i do mount with dfltuid and dfltgid, i get normal values:

~# mount -t 9p -o trans=unix,noextend,trans=unix,noextend,dfltuid=0,dfltgid=0 q t
~# ls -l t
-rw-rw-rw- 1 root root 1 Jan  1  1970 conf
-rw-rw-rw- 1 root root 1 Jan  1  1970 data
-rw-rw-rw- 1 root root 1 Jan  1  1970 stat

But in any case chown call to these files sends empty uid and gid strings in
wstat T-message.

Is there any way to make uid & gid works as expected?

Thanks.

-- 
Олег Неманов (Oleg Nemanov)



             reply	other threads:[~2019-06-20 15:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-20 15:04 Oleg [this message]
2019-06-20 16:34 ` Charles Forsyth
2019-06-21  8:34   ` Oleg
2019-06-21  9:28     ` [9fans] [OBORONA-SPAM] " lego12239

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=20190620150435.GA31903@legohost \
    --to=lego12239@yandex.ru \
    --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).