Re: [Samba] Rename to open file doesn't work, why?

2008-07-30 Thread Wilhelm Meier
Am Montag, 28. Juli 2008 schrieb Jeremy Allison:
> On Mon, Jul 28, 2008 at 07:02:52AM +0200, Wilhelm Meier wrote:
> > Am Montag, 28. Juli 2008 schrieb Michael Heydon:
> > > Wilhelm Meier wrote:
> > > > 
> > > > On a local linux filesystem like ext2/3 one can rename a file
> > > > to an existing, already open file.
> > > >
> > > > But this doesn't  work on a cifs-mounted samba-share
> > > > 
> > >
> > > The reason this works with ext2 is that as long as you hold an
> > > open file descriptor a deleted file is still accessible (rename
> > > is essentially a delete and then a move).
> > >
> > > While it might be theoretically possible for this to work unix
> > > to unix, Windows doesn't deal with deleted files the same way
> > > (it prevents you from deleting files as long as they are open),
> > > and so it's quite possible that SMB/CIFS doesn't understand the
> > > concept of having a deleted file open.
> >
> > Yes, with a windows file server this is impossible.
> >
> > But I thought the samba unix extensions should make that
> > possible.
> >
> > Otherwise samba/cifs is unusable as e.g. user-homes, since KDE
> > tends to use this pattern.
> >
> > Is there any workaround at the moment?
>
> Can you log a bug with bugzilla.samba.org so I can
> track this. Include everything I need to reproduce
> (test code preferably) so I can ensure the UNIX
> extensions allow this.

I tried some other versions of samba (triggered to the fact, that 
debian lenny now has feature freeze ...). I found that the problem 
vanished from Samba 3.0.28 on for the testprogram I posted earlier.

I had not enough time to test the newer samba versions as user-homes 
with KDE, but I'll do that soon.

>
> Thanks !
>
> Jeremy.



-- 
Wilhelm
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Rename to open file doesn't work, why?

2008-07-28 Thread Jeremy Allison
On Mon, Jul 28, 2008 at 07:02:52AM +0200, Wilhelm Meier wrote:
> Am Montag, 28. Juli 2008 schrieb Michael Heydon:
> > Wilhelm Meier wrote:
> > > 
> > > On a local linux filesystem like ext2/3 one can rename a file to
> > > an existing, already open file.
> > >
> > > But this doesn't  work on a cifs-mounted samba-share
> > > 
> >
> > The reason this works with ext2 is that as long as you hold an open
> > file descriptor a deleted file is still accessible (rename is
> > essentially a delete and then a move).
> >
> > While it might be theoretically possible for this to work unix to
> > unix, Windows doesn't deal with deleted files the same way (it
> > prevents you from deleting files as long as they are open), and so
> > it's quite possible that SMB/CIFS doesn't understand the concept of
> > having a deleted file open.
> 
> Yes, with a windows file server this is impossible. 
> 
> But I thought the samba unix extensions should make that possible.
> 
> Otherwise samba/cifs is unusable as e.g. user-homes, since KDE tends 
> to use this pattern.
> 
> Is there any workaround at the moment?

Can you log a bug with bugzilla.samba.org so I can
track this. Include everything I need to reproduce
(test code preferably) so I can ensure the UNIX
extensions allow this.

Thanks !

Jeremy.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Rename to open file doesn't work, why?

2008-07-27 Thread Wilhelm Meier
Am Montag, 28. Juli 2008 schrieb Michael Heydon:
> Wilhelm Meier wrote:
> > 
> > On a local linux filesystem like ext2/3 one can rename a file to
> > an existing, already open file.
> >
> > But this doesn't  work on a cifs-mounted samba-share
> > 
>
> The reason this works with ext2 is that as long as you hold an open
> file descriptor a deleted file is still accessible (rename is
> essentially a delete and then a move).
>
> While it might be theoretically possible for this to work unix to
> unix, Windows doesn't deal with deleted files the same way (it
> prevents you from deleting files as long as they are open), and so
> it's quite possible that SMB/CIFS doesn't understand the concept of
> having a deleted file open.

Yes, with a windows file server this is impossible. 

But I thought the samba unix extensions should make that possible.

Otherwise samba/cifs is unusable as e.g. user-homes, since KDE tends 
to use this pattern.

Is there any workaround at the moment?

-- 
Wilhelm
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Rename to open file doesn't work, why?

2008-07-27 Thread Michael Heydon

Wilhelm Meier wrote:


On a local linux filesystem like ext2/3 one can rename a file to an 
existing, already open file. 


But this doesn't  work on a cifs-mounted samba-share

  
The reason this works with ext2 is that as long as you hold an open file 
descriptor a deleted file is still accessible (rename is essentially a 
delete and then a move).


While it might be theoretically possible for this to work unix to unix, 
Windows doesn't deal with deleted files the same way (it prevents you 
from deleting files as long as they are open), and so it's quite 
possible that SMB/CIFS doesn't understand the concept of having a 
deleted file open.



*Michael Heydon - IT Administrator *
[EMAIL PROTECTED] 

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Rename to open file doesn't work, why?

2008-07-25 Thread Wilhelm Meier
Hello,

this may be a question a thousand times answered but I did not find 
it ...

On a local linux filesystem like ext2/3 one can rename a file to an 
existing, already open file. 

But this doesn't  work on a cifs-mounted samba-share - or do I miss 
something in the samba configuration. Attached ist a small 
test-program that does essentially the same as kmail does when it 
creates a mail-index file (and crashes ...)

Here you can see the versions (from the clients /proc/fs/cifs/):

Display Internal CIFS Data Structures for Debugging
---
CIFS Version 1.52
Active VFS Requests: 0
Servers:
1) Name: 192.168.32.12  Domain: KMUX Mounts: 1 OS: Unix
        NOS: Samba 3.0.24       Capability: 0x80f3fd
        SMB session status: 1   TCP status: 1
        Local Users To Server: 1 SecMode: 0x3 Req On Wire: 0
MIDs:

Shares:
1) \\192.168.32.12\hugo.tester Uses: 1 Type: NTFS DevInfo: 0x0 
Attributes: 0x2b
PathComponentMax: 255 Status: 1 type: 0

TIA
-- 
Wilhelm
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba