[Samba] hosting library (ie. PVCS) on Samba

webster at lexmark.com webster at lexmark.com
Wed Jul 14 20:43:40 GMT 2004


Thanks for the reply.

Indeed, the smbd process is unkillable via kill -9 .
Also, all Samba clients are out-to-lunch at this point.

Here are the last few lines from strace(the file is named 'afile'):
stat64("afile", {st_mode=S_IFREG|0664, st_size=320, ...}) = 0
getxattr("afile", "user.DOSATTRIB", 0xbfffb220, 256) = 4
getxattr("afile", "user.DOSATTRIB", 0xbfffb220, 256) = 4
stat64("afile", {st_mode=S_IFREG|0664, st_size=320, ...}) = 0
getxattr("afile", "system.posix_acl_access", 0xbfffaff0, 132) = -1 ENODATA 
(No data available)
stat64("afile", {st_mode=S_IFREG|0664, st_size=320, ...}) = 0
getxattr("afile", "user.DOSATTRIB", 0xbfffb070, 256) = 4
setxattr("afile", "user.DOSATTRIB", 0xbfffb1c0, 4,

The owner of the file can flip the 'read-only' bit on & off all day.
But, when another user tries it(on or off), I get the aforementioned 
'hang.'

SuSE 9.1 uses reiserfs by default, with EAs & ACLs enabled.
That is what I'm using.


Gx




Jeremy Allison <jra at samba.org>
07/14/04 02:32 PM
Please respond to Jeremy Allison

 
        To:     webster at lexmark.com
        cc:     samba at lists.samba.org
        Subject:        Re: [Samba] hosting library (ie. PVCS) on Samba

On Wed, Jul 14, 2004 at 02:07:35PM -0400, webster at lexmark.com wrote:
>
> 1)  use 'store dos attributes' in smb.conf , so that the 'read-only' bit
> is kept in EAs, rather than removing the 'w' Unix permission bit for UGO 
.
>  User2 has 'rwx' access to the file through their primary group.  When
> User2 tries to remove the 'read-only' bit from the file, smbd hangs 
hard.
> I can't even kill the process, nor do an 'ls' in the local directory 
where
> the archive file lives.  I receive this in log.smbd:
> smbd/nttrans.c:call_nt_transact_ioctl(2076)  \
> call_nt_transact_ioctl(0x90028): Currently not implemented.
> I've tried this with 'dos filemode' set to both yes & no, with no
> difference in the result.

This is the correct fix. When you say it "hangs hard" what exactly do
you mean ? Is it unkillable via kill -9 ? What does strace say ? Sounds
like a kernel EA bug. What filesystem are you using ?

Jeremy.



More information about the samba mailing list