Linux NFS development
 help / color / mirror / Atom feed
From: "Lluís Batlle i Rossell" <viriketo@gmail.com>
To: nfs@lists.sourceforge.net
Subject: Exporting fs from a looped squashfs in linux
Date: Sat, 04 Nov 2006 23:14:56 +0100	[thread overview]
Message-ID: <454D10E0.5020301@gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1490 bytes --]

Hi,

I'm trying to serve a mounted loop-filesystem (squashfs) from a linux
box to other unixes. And it doesn't work due to (I think) something
related to /proc/fs/nfs/filehandle.

The server, on mount, says only (mountd with -d all)
Nov  4 23:05:11 llimona rpc.mountd: MNT3(/nfs/sparc/netbsd/usr/) called
Nov  4 23:05:11 llimona rpc.mountd: authenticated mount request from
mandarina:872 for /nfs/sparc/netbsd/usr (/nfs/sparc/netbsd/usr)

The client, on mount says only:
mount: llimona:/nfs/sparc/netbsd/usr/ failed, reason given by server:
S'ha denegat el permís
(That is, Permission Denied)

I've straced a foreground rpc.mountd, and I've seen the next:
open("/proc/fs/nfs/filehandle", O_RDWR) = 9
fstat64(9, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7efd000
write(9, "* /nfs/sparc/netbsd/usr 64 \n", 28) = -1 EPERM (Operation not
permitted)
read(9, "", 4096)                       = 0
close(9)                                = 0
munmap(0xb7efd000, 4096)                = 0
sendmsg(6, {msg_name(16)={sa_family=AF_INET, sin_port=htons(872),
sin_addr=inet_addr("192.168.1.33")},
msg_iov(1)=[{"\36\201\"\21\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
28}], msg_controllen=24, msg_control=0x805ce38, , msg_flags=0}, 0) = 28

So you can see the "EPERM" related to the 'filehandle' proc file. What's
happening here? Am I unable to export a loop squashfs?

Thanks in advance!

[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3311 bytes --]

[-- Attachment #2: Type: text/plain, Size: 373 bytes --]

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

[-- Attachment #3: Type: text/plain, Size: 140 bytes --]

_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

             reply	other threads:[~2006-11-04 22:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-04 22:14 Lluís Batlle i Rossell [this message]
2006-11-06  3:32 ` Exporting fs from a looped squashfs in linux Phillip Lougher

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=454D10E0.5020301@gmail.com \
    --to=viriketo@gmail.com \
    --cc=nfs@lists.sourceforge.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