[linux-cifs-client] Re: Re: Re: Timestamps not preserved on CIFS
mount
Günter Kukkukk
samba at kukkukk.com
Sat Mar 8 23:37:12 GMT 2008
Am Samstag, 8. März 2008 schrieb Eric B.:
> >Am Samstag, 8. März 2008 schrieb Günter Kukkukk:
>
> >just some additional thoughts on your problem i forgot
> >to mention.
> >When the samba server on your storage device is not running
> >the cifs "unix extensions", the windows like smb functions
> >are used - so you can probably been hit by the currently
> >failing implementation, too.
> >
> >Btw - many NAS devices (even still sold today) are running
> >samba-2.x.x. I've been told in many places, that users had problems
> >when using cifs vfs - but smbfs was working (for their limited needs).
>
> Thanks for the info. I'm actually trying cifs b/c of problems I am
> encountering with smbfs; the timestamps work properly, but I keep getting
> error/warning msgs regarding inability to set permissions and/or ownership
> of the files. For example:
> # cp -a /home/eric/deploy /mount/smbfs
> cp: failed to preserve ownership for `./deploy/checksum.sh~': Permission
> denied
> cp: failed to preserve ownership for `./deploy/checksum.sh': Operation not
> permitted
> cp: failed to preserve ownership for `./deploy/deploy-dev': Operation not
> permitted
>
>
> I also get the same error msgs if I try rsync instead:
> # rsync -a /home/eric/deploy
> rsync: chown "/mount/bashful/cifs/deploy" failed: Operation not permitted
> (1)
> rsync: chown "/mount/bashful/cifs/deploy/.checksum.sh.TDQedW" failed:
> Operation not permitted (1)
> rsync: chown "/mount/bashful/cifs/deploy/.checksum.sh~.KZ1wck" failed:
> Permission denied (13)
> rsync: chown "/mount/bashful/cifs/deploy/.deploy-dev.KweNfI" failed:
> Operation not permitted (1)
>
>
> I figured that those probs might be avoided with cifs, and indeed they are,
> but am running into the timestamp issue. If I could resolve the ownership /
> chown problem in smbfs, I'd be happy to stick with that as well.
>
> Any ideas where I might be able to find help about that? Maybe a newsgroup
> or mailing list that would be good for smb issues like this? I was hoping
> to find a resolution for the cifs problem here, but that proves to be too
> difficult, I'll revert to looking for a smbfs soln instead.
>
> Thanks!
>
> Eric
Was thinking about "getting more info" from your
NAS device.
Cifs is writing it's debug output to the syslog, often located
at /var/log/messages.
Please do the following:
1.) umount that device
2.) do 'modprobe cifs' (just to make sure that module is loaded)
3.) do 'echo 3 > /proc/fs/cifs/cifsFYI'
4.) in a separate console use 'tail -f /var/log/messages' (or similar for your distro)
5.) use 'mount -t cifs ....' to connect to the device
6.) use 'cp -p <src> <dest> to just copy 1 file
7.) lots of stuff should be send to syslog
8.) email me the new cifs related syslog entries (samba at kukkukk dot com)
I'll then have a look at that stuff.
Btw - are you familiar with network sniffers like wireshark (former ethereal) ?
Network sniffs could also help to track that down.
Cheers, Günter
Btw - using smbfs will only be a temporary solution, cause it will be dropped
from the linux kernel very soon.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
Url : http://lists.samba.org/archive/linux-cifs-client/attachments/20080309/9bce5dd2/attachment.bin
More information about the linux-cifs-client
mailing list