public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Problems with default ACLs over NFS
@ 2009-03-23 21:24 J.A. Magallón
  2009-03-27  0:05 ` Andrew Morton
  0 siblings, 1 reply; 9+ messages in thread
From: J.A. Magallón @ 2009-03-23 21:24 UTC (permalink / raw)
  To: LKML

Hi all...

I have a strange problem with 2.6.29-rc8-git3.
It looks like a kernel bug... ?

I have a box with NFS autofs-mounted home directories. Server is a
Solaris 10 system. This worked in previous kernel versions, so I
don't blame Solaris, at this moment.

With this acls set in my home:


prometeo:~> getfacl .  

# file: .
# owner: magallon
# group: giga
user::rwx
user:webservd:r-x       #effective:r-x
group::--x      #effective:--x
mask:r-x
other:--x
default:user::rwx
default:group::--x
default:other:--x

I get this strange message in the linux client:

cicely:~> mkdir kk  
mkdir: cannot create directory `kk': Invalid argument

But the directory is created, and its ACLs are correct:

prometeo:~> getfacl kk  

# file: kk
# owner: magallon
# group: giga
user::rwx
group::--x      #effective:--x
other:--x
default:user::rwx
default:group::--x
default:other:--x

If I remove the 'default' entries, the error message goes away.

With strace, I get this:

mkdir("kk", 0777)                       = -1 EINVAL (Invalid argument)

Mount info from /proc/mounts:

ldap:danae-nfs:automountMapName=auto_home,o=diis /home autofs rw,fd=7,pgrp=3165,timeout=600,minproto=5,maxproto=5,indirect 0 0

danae-nfs:/export/home/usuarios/giga/magallon /home/magallon nfs rw,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,nointr,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=155.210.152.202,mountvers=3,mountproto=tcp,addr=155.210.152.202 0 0

It happens the same If I try to create a file with "> kk", or try to cp -r one
other dir, but "touch kk" works.

Any idea ?

TIA

-- 
J.A. Magallon <jamagallon()ono!com>     \               Software is like sex:
                                         \         It's better when it's free
Mandriva Linux release 2009.1 (Cooker) for x86_64
Linux 2.6.28.2-desktop-1mnb (gcc 4.3.2 (GCC) #1 Wed Jan

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Problems with default ACLs over NFS
@ 2009-04-19 15:03 Sven Geggus
  0 siblings, 0 replies; 9+ messages in thread
From: Sven Geggus @ 2009-04-19 15:03 UTC (permalink / raw)
  To: linux-kernel

J.A. Magallón <jamagallon@ono.com> wrote:

> With strace, I get this:
>
> mkdir("kk", 0777)                       = -1 EINVAL (Invalid
> argument)

I've got the exact same Problem but with 2.6.19.1 and a Linux (2.6.27something)
NFS Server. Any patch which addresses this issue?

Sven

-- 
The main thing to note is that when you choose open source you don't
get a Windows operating system.
                                  (from http://www.dell.com/ubuntu)
/me is giggls@ircnet, http://sven.gegg.us/ on the Web

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

end of thread, other threads:[~2009-04-21  5:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-23 21:24 Problems with default ACLs over NFS J.A. Magallón
2009-03-27  0:05 ` Andrew Morton
2009-03-27 22:50   ` hooanon05
2009-04-20  4:42     ` Suresh Jayaraman
2009-04-20  5:17       ` hooanon05
2009-04-20  5:35         ` Suresh Jayaraman
2009-04-20 14:18           ` Sven Geggus
2009-04-21  5:00             ` Suresh Jayaraman
  -- strict thread matches above, loose matches on Subject: below --
2009-04-19 15:03 Sven Geggus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox