DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-03-11 15:27:04

anandrajan
New member
Registered: 2009-02-24
Posts: 2

OS X client preserves times but linux client does not in cifs mounts

I have a DNS 323 NAS at home and two clients talk to it: a linux (opensuse 11.1 x86_64) box and an OS X leopard box.

linux client cifs: I mount the NAS volume using

root@linux:~# mount -t cifs -o username=anand,password=xxxxxxx  //192.168.0.6/anand /mnt/nasraid/anand/

When I try to copy files onto the device using

anand@linux:~> cp -pRv <dirname> /mnt/nasraid/anand/

the files copy over but the date/timestamps are lost. I get errors/warnings such as "cp: preserving times for `/mnt/nasraid/anand/<filename>': Invalid argument"

Additional info:

anand@linux:~> rpm -qf /sbin/mount.cifs
cifs-mount-3.2.6-0.3.1

anand@linux:~> rpm -qa | grep samba
samba-doc-3.2.4-5.2
samba-client-32bit-3.2.6-0.3.1
kdebase3-samba-3.5.10-17.4
samba-winbind-3.2.6-0.3.1
samba-32bit-3.2.6-0.3.1
samba-krb-printing-3.2.6-0.3.1
yast2-samba-client-2.17.11-1.30
yast2-samba-server-2.17.6-1.2
samba-winbind-32bit-3.2.6-0.3.1
samba-client-3.2.6-0.3.1
samba-3.2.6-0.3.1

OS X client cifs: I mount the NAS volume using Finder in leopard's gui. (It explicitly says cifs and not smbfs or somesuch.)

When I try to copy files onto the device using

Macintosh-2: cp -pRv <dirname> /Volumes/anand     :this is the mount point that OS X assigns

the files copy over AND the date/timestamps are preserved. I don't get any errors/warnings.

Question: How do I get the linux client to behave more like OS X? I'd like to get date/timestamps working. Is there an option in mount.cifs that needs to be explicitly turned on? (I tried sfu but it didn't work)

I apologize if this is well known and resolved. I couldn't easily find the answer by digging around the forum archives.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB