| Summary: | cifs: file append loss of data | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | email200202 |
| Component: | [OLD] Core system | Assignee: | Gentoo's SAMBA Team <samba> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
email200202
2010-01-15 01:58:13 UTC
the server use flags: # equery u samba [ Searching for packages matching samba... ] [ Colour Code : set unset ] [ Legend : Left column (U) - USE flags from make.conf ] [ : Right column (I) - USE flags packages was installed with ] [ Found these USE variables for net-fs/samba-3.0.37 ] U I + + acl : Adds support for Access Control Lists + + ads : Enable Active Directory support + + async : Enables asynchronous input/output - - automount : Enables automount support - - caps : Use Linux capabilities library to control privilege + + cups : Add support for CUPS (Common Unix Printing System) - - debug : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see http://www.gentoo.org/proj/en/qa/backtraces.xml - - doc : Adds extra documentation (API, Javadoc, etc) - - examples : Install examples, usually source code - - fam : Enable FAM (File Alteration Monitor) support - - ipv6 : Adds support for IP version 6 + + kernel_linux : KERNEL setting for system using the Linux kernel + + ldap : Adds LDAP support (Lightweight Directory Access Protocol) + + oav : Enables support for the OpenAntiVirus plugins + + pam : Adds support PAM (Pluggable Authentication Modules) - DANGEROUS to arbitrarily flip + + python : Adds support/bindings for the Python language - - quotas : Enables support for user quotas + + readline : Enables support for libreadline, a GNU line-editing library that almost everyone wants - - selinux : !!internal use only!! Security Enhanced Linux support, this must be set by the selinux profile or breakage will occur - - swat : Enables support for swat configuration gui - - syslog : Enables support for syslog + + winbind : Enables support for the winbind auth daemon Although 'directio' can be used as workaround for the first problem, I found that it can cause problems if you try to run a jar file from Linux server but not from Windows server! mount -t cifs //linux_server/some_share /mnt/cifs_drive -o username=xxx,password=xxx,uid=xxx,gid=xxx,users,directio java -jar /mnt/cifs_drive/same_application.jar mmap failed for CEN and END part of zip file Exception in thread "main" java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:114) at java.util.jar.JarFile.<init>(JarFile.java:133) at java.util.jar.JarFile.<init>(JarFile.java:70) umount /mnt/cifs_drive mount -t cifs //win_server/other_share /mnt/cifs_drive -o username=xxx,password=xxx,uid=xxx,gid=xxx,users,directio java -jar /mnt/cifs_drive/same_application.jar it works umount /mnt/cifs_drive Please reopen if you can reproduce this with net-fs/cifs-utils |