[linux-cifs-client] CIFS client leaving cifs???? files
Mark Buechler
mark.buechler at gmail.com
Mon Dec 18 20:24:28 GMT 2006
I'm running samba v3.0.23c and the latest cifs kernel module on my cifs
client. I'm mounting my samba share on my client with "-o direct". I'm
seeing something odd with regard to unlinking open files. I run MythTV. When
Myth deletes a recording, rather than doing a straight unlink it does the
following:
1. Open file
2. Gradually truncate the file
3. When the file gets below a certain file size, unlink it
4. Close file
This behavior has a side effect of leaving the truncated files hanging
around but renamed as cifs??? files. Ie:
-rw-rw-rw- 1 mythtv daemon 121 Dec 15 19:00
9014_20061215185315.mpg.png
-rw-r--r-- 1 mythtv daemon 257848016 Dec 15 20:00 9014_20061215190000.mpg
-rw-rw-rw- 1 mythtv daemon 121 Dec 15 20:00
9014_20061215190000.mpg.png
-rw-r--r-- 1 mythtv daemon 13433164 Dec 15 20:07 9016_20061215200405.mpg
-rw-rw-rw- 1 mythtv daemon 121 Dec 15 20:07
9016_20061215200405.mpg.png
-rw-r--r-- 1 mythtv daemon 502833260 Dec 15 22:04 9016_20061215200733.mpg
-rwxr--r-- 1 mythtv daemon 2976861 Dec 17 13:05 cifs11f3
-rwxr--r-- 1 mythtv daemon 6908659 Dec 17 13:06 cifs1279
-rw-r--r-- 1 mythtv daemon 0 Dec 17 10:57 cifs128e
-rwxr--r-- 1 mythtv daemon 4411804 Dec 17 12:06 cifs15e9
-rw-r--r-- 1 mythtv daemon 0 Dec 17 13:08 cifs20e1
-rwxr--r-- 1 mythtv daemon 3712297 Dec 17 22:03 cifs21f1
-rw-r--r-- 1 mythtv daemon 0 Dec 17 22:50 cifs2b79
Is there a setting on either the cifs client or the Samba server which will
prevent these truncated files from being renamed when unlinked?
My smb.conf file is:
------------------------------------------------------------------
Thanks, Mark.
# Samba config file created using SWAT
# from 192.168.1.101 (192.168.1.101)
# Date: 2005/05/16 20:57:04
# Global parameters
[global]
workgroup = MAGIC
realm = MAGIC.RAISTLIN.MENTASM.COM
server string = %h server (Samba %v)
# security = ADS
auth methods = guest, sam, winbind
obey pam restrictions = Yes
password server = raistlin.mentasm.com
passdb backend = tdbsam
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n .
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
printcap name = cups
preferred master = No
domain master = No
dns proxy = No
wins server = raistlin.mentasm.com
ldap ssl = no
panic action = /usr/share/samba/panic-action %d
idmap uid = 10000-20000
idmap gid = 10000-20000
template homedir = /home/%U
template shell = /bin/bash
winbind separator = +
invalid users = root
printing = cups
print command =
lpq command = %p
lprm command =
unix extensions = yes
case sensitive = yes
delete readonly = yes
ea support = yes
[homes]
comment = Home Directories
create mask = 0700
directory mask = 0700
browseable = No
[Store]
comment = MythTV Store
path = /store
[shares]
comment = Corbin2 Shares
path = /shares/
read only = No
[recordings]
comment = Corbin2 Recordings
path = /shares/recordings
read only = No
[freelancer]
comment = Freelancer Game
path = /mnt/freelancer
[castle]
comment = Return To Castle Wolfenstein
path = /mnt/castle
[printers]
comment = All Printers
path = /tmp
create mask = 0700
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
------------------------------------------------------------------
Thanks, Mark.
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the linux-cifs-client
mailing list