add NFSv4 support
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
util-linux (Debian) |
Fix Released
|
Unknown
|
|||
util-linux (Ubuntu) |
Fix Released
|
Medium
|
LaMont Jones |
Bug Description
mount lacks NFSv4 support, patches for it are here:
http://
NFSv4 is becoming actually useful, so having it in dapper would be very
important. Rest of the tools that are needed support it already.
In Debian Bug tracker #302420, Adrian Bunk (bunk) wrote : this is the same issue | #1 |
Timo Aaltonen (tjaalton) wrote : | #2 |
mount lacks NFSv4 support, patches for it are here:
http://
NFSv4 is becoming actually useful, so having it in dapper would be very
important. Rest of the tools that are needed support it already.
Timo Aaltonen (tjaalton) wrote : | #3 |
duh, so there is was already this bug from debian:
http://
but didn't notice that the maintainer is the same ;) Still, how about applying
this now, still plenty of time before dapper?
Debian Bug Importer (debzilla) wrote : | #4 |
Message-ID: <email address hidden>
Date: Fri, 5 Aug 2005 15:42:16 +0200
From: Adrian Bunk <email address hidden>
To: <email address hidden>
Subject: this is the same issue
severity 302420 wishlist
merge 302420 236435
thanks
Timo Aaltonen (tjaalton) wrote : | #5 |
does this mean that NFSv4-support is not coming before upstream? That would be
very bad because debian/ubuntu is/are the only major distros not supporting
NFSv4 on userland. I'll attach patches that were synced for util-linux_2.12r-2.
Timo Aaltonen (tjaalton) wrote : | #6 |
- first patch Edit (40.8 KiB, text/plain)
Created an attachment (id=5542)
first patch
first patch of the CITI_NFS4_ALL-3 -patch-set, synced for 2.12p-6ubuntu5 by
Gerald Hochegger <email address hidden>, applies and compiles with 2.12r-2 as
well.
Timo Aaltonen (tjaalton) wrote : | #7 |
Timo Aaltonen (tjaalton) wrote : | #8 |
Timo Aaltonen (tjaalton) wrote : | #9 |
Timo Aaltonen (tjaalton) wrote : | #10 |
Timo Aaltonen (tjaalton) wrote : | #11 |
Timo Aaltonen (tjaalton) wrote : | #12 |
- seventh and last patch Edit (2.4 KiB, text/plain)
Created an attachment (id=5548)
seventh and last patch
In Debian Bug tracker #302420, LaMont Jones (lamont) wrote : Fixed in upload of util-linux 2.12r-5.1nfs4 to experimental | #13 |
tag 302420 + fixed-in-
quit
This message was generated automatically in response to an
upload to the experimental distribution. The .changes file follows.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Wed, 18 Jan 2006 12:53:49 -0700
Source: util-linux
Binary: util-linux cfdisk-udeb fdisk-udeb util-linux-locales bsdutils mount
Architecture: all i386 source
Version: 2.12r-5.1nfs4
Distribution: experimental
Urgency: low
Maintainer: LaMont Jones <email address hidden>
Changed-By: LaMont Jones <email address hidden>
Description:
bsdutils - Basic utilities from 4.4BSD-Lite
cfdisk-udeb - Partition a hard drive (cfdisk)
fdisk-udeb - Partition a hard drive (manual)
mount - Tools for mounting and manipulating filesystems
util-linux - Miscellaneous system utilities
util-linux-locales - Locales files for util-linux
Closes: 302420
Changes:
util-linux (2.12r-5.1nfs4) experimental; urgency=low
.
* Add nfsv4 patch. Closes: #302420
Files:
09acf63bcef645
27edfd834b4066
477b5790358e9e
652b0ef07888bc
aec7209e362ae4
ce213a6f2bc5ab
e9df545dd3cf3f
f2f3146cfd6198
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDzqh5zN/
YfRXZCjKb7JD/
=2DDQ
-----END PGP SIGNATURE-----
LaMont Jones (lamont) wrote : | #14 |
util-linux_2.12r-7 was uploaded to sid with this fix. Once it's there, I'll request the sync to dapper.
Changed in util-linux: | |
assignee: | nobody → lamont |
status: | Unconfirmed → Fix Committed |
LaMont Jones (lamont) wrote : | #15 |
Fixed in 2.12r-7
Changed in util-linux: | |
assignee: | debzilla → lamont |
status: | Unconfirmed → Fix Committed |
In Debian Bug tracker #302420, LaMont Jones (lamont) wrote : Bug#302420: fixed in util-linux 2.12r-7 | #16 |
Source: util-linux
Source-Version: 2.12r-7
We believe that the bug you reported is fixed in the latest version of
util-linux, which is due to be installed in the Debian FTP archive:
bsdutils_
to pool/main/
cfdisk-
to pool/main/
fdisk-udeb_
to pool/main/
mount_2.
to pool/main/
util-linux-
to pool/main/
util-linux_
to pool/main/
util-linux_
to pool/main/
util-linux_
to pool/main/
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
LaMont Jones <email address hidden> (supplier of updated util-linux package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Tue, 21 Feb 2006 11:01:21 -0700
Source: util-linux
Binary: util-linux cfdisk-udeb fdisk-udeb util-linux-locales bsdutils mount
Architecture: all i386 source
Version: 2.12r-7
Distribution: unstable
Urgency: low
Maintainer: LaMont Jones <email address hidden>
Changed-By: LaMont Jones <email address hidden>
Description:
bsdutils - Basic utilities from 4.4BSD-Lite
cfdisk-udeb - Partition a hard drive (cfdisk)
fdisk-udeb - Partition a hard drive (manual)
mount - Tools for mounting and manipulating filesystems
util-linux - Miscellaneous system utilities
util-linux-locales - Locales files for util-linux
Closes: 239031 302420
Changes:
util-linux (2.12r-7) unstable; urgency=low
.
* Add nfsv4 patch. Closes: #302420, #239031
Files:
06249d1e721c12
2af72c920b24a5
7f2a4ce6b04a06
93aa314c1d1f4b
9cf03eeef01a8a
023411b11ba83a
b92001f092652b
baa601f90f4a82
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFD+
X329/2J2Q9Au8HW
=lDDW
-----END PGP SIGNATURE-----
In Debian Bug tracker #302420, Sam Morris (yrro) wrote : reopening 302420 | #17 |
# Automatically generated email from bts, devscripts version 2.9.16
reopen 302420
In Debian Bug tracker #302420, LaMont Jones (lamont) wrote : Fixed in upload of util-linux 2.12r-8.2nfs4 to experimental | #18 |
tag 239031 + fixed-in-
tag 302420 + fixed-in-
quit
This message was generated automatically in response to an
upload to the experimental distribution. The .changes file follows.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Fri, 28 Apr 2006 11:04:39 -0600
Source: util-linux
Binary: util-linux cfdisk-udeb fdisk-udeb util-linux-locales bsdutils mount
Architecture: all i386 source
Version: 2.12r-8.2nfs4
Distribution: experimental
Urgency: low
Maintainer: LaMont Jones <email address hidden>
Changed-By: LaMont Jones <email address hidden>
Description:
bsdutils - Basic utilities from 4.4BSD-Lite
cfdisk-udeb - Partition a hard drive (cfdisk)
fdisk-udeb - Partition a hard drive (manual)
mount - Tools for mounting and manipulating filesystems
util-linux - Miscellaneous system utilities
util-linux-locales - Locales files for util-linux
Closes: 239031 302420
Changes:
util-linux (2.12r-8.2nfs4) experimental; urgency=low
.
* Turn on fixed nfsv4 patch. Closes: #302420, #239031
Thanks to Steinar H. Gunderson <email address hidden>
Files:
3c1332fe187ca4
5775da9cf453a1
5f63326c5f6662
7b75934a2bb44e
989d0c30499f57
ddbf376197bd39
dfc96c34390d86
fc4a91e5fde773
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFEUkyEzN/
EVPptCIndDd5xLg
=cQCJ
-----END PGP SIGNATURE-----
Laurent Bigonville (bigon) wrote : | #19 |
What the status of this bug? I still get "wrong fs type" when I try to mount an nfs4 export...
Timo Aaltonen (tjaalton) wrote : | #20 |
there was a problem with those patches, they broke nfs-user-server, but now there is version -8.2 in debian experimental which has a fix for the breakage. Hopefully that is good enough so this can get in for dapper.
In Debian Bug tracker #302420, LaMont Jones (lamont) wrote : Bug#302420: fixed in util-linux 2.12r-9 | #21 |
Source: util-linux
Source-Version: 2.12r-9
We believe that the bug you reported is fixed in the latest version of
util-linux, which is due to be installed in the Debian FTP archive:
bsdutils_
to pool/main/
cfdisk-
to pool/main/
fdisk-udeb_
to pool/main/
mount_2.
to pool/main/
util-linux-
to pool/main/
util-linux_
to pool/main/
util-linux_
to pool/main/
util-linux_
to pool/main/
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
LaMont Jones <email address hidden> (supplier of updated util-linux package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Sat, 6 May 2006 21:53:12 -0600
Source: util-linux
Binary: util-linux cfdisk-udeb fdisk-udeb util-linux-locales bsdutils mount
Architecture: all i386 source
Version: 2.12r-9
Distribution: unstable
Urgency: low
Maintainer: LaMont Jones <email address hidden>
Changed-By: LaMont Jones <email address hidden>
Description:
bsdutils - Basic utilities from 4.4BSD-Lite
cfdisk-udeb - Partition a hard drive (cfdisk)
fdisk-udeb - Partition a hard drive (manual)
mount - Tools for mounting and manipulating filesystems
util-linux - Miscellaneous system utilities
util-linux-locales - Locales files for util-linux
Closes: 239031 290873 302420 354960 360352
Changes:
util-linux (2.12r-9) unstable; urgency=low
.
* Release NFSv4 support. Closes: #302420, #239031, #290873
* Deliver isosize. Closes: #354960
* Fix udeb dependencies. Closes: #360352
Files:
31185befe0ffed
572cc93f3bd216
a0edfc22d879c1
d153142fd9d8ec
d803597c9fe813
e377ac45f1479c
ea173ae14c93e0
f7e5424c56ffcc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFEXXFJzN/
d/11L82AEA2Z/
LaMont Jones (lamont) wrote : | #22 |
Fixed in 2.12r-4ubuntu5
Changed in util-linux: | |
status: | Fix Committed → Fix Released |
Léa GRIS (lea-gris) wrote : | #23 |
Sorry, Not fixed in utill-linux_
mount -t nfs4 still fail looking for /sbin/mount.nfs4
Laurent Bigonville (bigon) wrote : | #24 |
it's working for me with the last version
Frank Fischer (fischer01) wrote : | #25 |
Laurent, can you be so kind and state your version of util-linux and mount. It's not working for me either.
Laurent Bigonville (bigon) wrote : | #26 |
client: ubuntu dapper (nfs-common: 1.0.7-3ubuntu2, util-linux: 2.12r-4ubuntu6)
server: debian etch (nfs-common: 1.0.7-17)
AleksanderAdamowski (aadamowski) wrote : | #27 |
That's strange, I have the very same versions, yet mount still tries to find mount.nfs4 and fails:
olo@laptopola:~$ dpkg -l nfs-common
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Description
+++-===
ii nfs-common 1.0.7-3ubuntu2 NFS support files common to client and serve
olo@laptopola:~$ dpkg -l util-linux
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Description
+++-===
ii util-linux 2.12r-4ubuntu6 Miscellaneous system utilities
root@laptopola:~# strace mount -t nfs4 -o sec=krb5,
.....
lstat64(
stat64(
rt_sigprocmask(
mount("
rt_sigprocmask(
AleksanderAdamowski (aadamowski) wrote : | #28 |
Oh, and the error I get from mount isn't very helpful:
-----------------
mount: wrong fs type, bad option, bad superblock on stacja.
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
-----------------
No syslog messages are generated in fact.
AleksanderAdamowski (aadamowski) wrote : | #29 |
OK, I had an old version of mount because of the package loop-aes-utils that I've installed some time ago to mount an old filesystem encrypted with loop-AES and migrate it to LUKS.
Now I've removed that package and restored the original mount.
It shows the following version:
# mount -V
mount: mount-2.12r
However, it still fails. Additionally, it tells me that gssd is not running (although it is, but mount looks for the pidfile in the wrong file):
-------------
# mount -t nfs4 -o sec=krb5,
Warning: rpc.gssd appears not to be running.
mount: wrong fs type, bad option, bad superblock on servername:
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
-------------
-------------
# strace mount -t nfs4 -o sec=krb5,
......
access(
access(
open("/
open("/
open("/
open("/
open("/
open("/
open("/
fstat64(3, {st_mode=
mmap2(NULL, 193919, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7c6e000
close(3) = 0
open("/
fstat64(1, {st_mode=
mmap2(NULL, 4096, PROT_READ|
write(1, "Warning: rpc.gssd appears not to"..., 45Warning: rpc.gssd appears not to be running.
) = 45
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
bind(3, {sa_family=AF_INET, sin_port=
connect(3, {sa_family=AF_INET, sin_port=
gettimeofday(
write(3, "\200\0\
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 20000) = 1
read(3, "\200\0\
close(3) = 0
close(3) = -1 EBADF (Bad file descriptor)
mount("
rt_sigprocmask(
-------------
AleksanderAdamowski (aadamowski) wrote : | #30 |
Mount looks for /var/run/rpc.gssd, while the real pidfile is /var/run/
AleksanderAdamowski (aadamowski) wrote : | #31 |
Regarding the search for mount.nfs4 - mount does this, but it appears earlier in the strace, so it's not visible above.
Here's the relevant strace fragment:
....
lstat64(
stat64(
gettimeofday(
getpid() = 6800
open("/
fstat64(3, {st_mode=
....
AleksanderAdamowski (aadamowski) wrote : | #32 |
The most suspicious behaviour of mount is the double attempt at closing the TCP socket it has opened to the NFS server. Notice this fragment in the strace:
---
connect(3, {sa_family=AF_INET, sin_port=
gettimeofday(
write(3, "\200\0\
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 20000) = 1
read(3, "\200\0\
close(3) = 0
close(3) = -1 EBADF (Bad file descriptor)
---
This is clearly wrong.
AleksanderAdamowski (aadamowski) wrote : | #33 |
OK, sorry for the spam, I forgot to modprobe rpcsec_gss_krb5 kernel module on the client.
All the described problems were harmless.
The incorrect warning about rpc.gssd not running was fixed in Edgy, but it doesn't cause any problems.
severity 302420 wishlist
merge 302420 236435
thanks