Re: [Samba] VFAT filesystem and large files
On 9/22/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello I have used samba for many years, and it worked great (thanks!). Anyway, I recently decided to add a USB drive to the server. Currently running 2.6.29.2 linux kernel, debian etch. samba version 3.0.24 The USB drive is VFAT I am able to write small files remotely to the USB drive (a few Kb, 10's of Kb) without a problem. However, whenever I try to write something larger (like 1 Mb), the client machine freezes for a while (about 1 minute or so), then returns an error saying the file could not be written. However, if I look at the share under which the USB drive is mounted, a file exist, however, it is all 0's. If I log onto the server with ssh, i can cp large files from ext3 drive to the VFAT USB drive without problems. I found a post about this somewhere (I can't seem to find it again), which said this was a problem with the VFAT code, not samba. I was wondering, is this is the case? is the is a work-around? Basically, is there a way to write large files via samba to a VFAT USB drive? Well, since it works via SSH, it would seem like a weird conclusion the problem lies with the file system. Samba is only a userspace program like cp. That said: vfat means Pain! PAIN!! *PAIN!!!* The design of the FAT files ystem is maybe 20 or 25 years old. It was simple and perfect in the days when the average computer had 20 MB hard drives with 50 files on them. It is not scalable. It is not suitable for large file systems (and nowadays every new computer comes with them). It is not suitable for large files. Besides, it's unreliable and slow. If you're hooking the drive to a Samba server anyway, just reformat it with a real file system, like ext3. -- Frank Van Damme A: Because it destroys the flow of the conversation Q: Why is it bad? A: No, it's bad. Q: Should I top post in replies to mails or on usenet? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] installing Samba as non-root user at work - please help.
Hi, Speaking of ports, I specify ports of 1445 and 1139 for smdb, since I cannot use a port below 1024 without having root access. Similarly, I attempt to use higher port when I start nmdb. Even if this would work, you would be stuck with the problem of convincing your windows system to talk to these ports. Given the information I've provided, and knowing that I do not have root access, can anyone provide any information to at least steer me in the right direction? I greatly appreciate your help. Without root access you can pretty much give up on installing samba. If your linux box allows ssh access, you might want to try something like winscp to transfer your files from and to windows. Regards, Wolfgang Ratzka -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba Domain and Vista Profiles
Hello. I've googled around, but I couldn't find anything really like my problem. I've got a newtwork with a Samba PDC and BDC (both running 3.0.25 on FreeBSD with ldapsam_compat backend). Everything works fine with Windows 2000/XP with roaming profiles in //PDC/user/profile (it even worked with 98 back when there was a few), but now I had to add a Vista Business laptop. This joined the domain with no real troubles, but it won't upload the user profile. It creates //PDC/user/profile.V2 belonging to user and with 700 permissions, but never writes anything into this folder. I tried playing with the registry, changing folder permissions, deleting this folder (and let Windows recreate it or doing that manually), adding a symlink to //PDC/user/profile and following a couple of other suggestions I stumbled upon while googling, but came up to nothing. Can anyone help? Is there something specific I can lookup in the logs? bye Thanks av. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] VFAT filesystem and large files
Hello I was trying to keep the USB drive as FAT so that I could easily move it a Windows machine if necessary. anyway, i found the reference (i don't know why i was having trouble last night) - -- Gerald (Jerry) Carter jerry at samba.org Thu Aug 24 16:00:45 GMT 2006 Mattias Rönnblom wrote: When copying large files from my Windows XP machine to this share, smbd seem to reserve (by using ftruncate()) the space needed on the USB disk before actually doing any copying. This ftruncate() operation takes quite a while when the file is large. It may even cause the client to time out. ... Would you consider this a problem in Samba or in the VFAT filesystem driver? IIRC our stance is that it's a problem with the VFAT driver. This issue has some up before. -- so, that is more than a year old - is there more information about this at this point. i tried specifying strict allocate = no - but that did not change anything. thanks bye - ted -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] VFAT filesystem and large files
On Sun, 23 Sep 2007, [EMAIL PROTECTED] wrote: I was trying to keep the USB drive as FAT so that I could easily move it a Windows machine if necessary. anyway, i found the reference (i don't know why i was having trouble last night) - You could put ext2/3 on it and use this in Windows - http://www.fs-driver.org/ I've never tested it though. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au The nice thing about standards is that there are so many of them to choose from. -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C signature.asc Description: This is a digitally signed message part. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] VFAT filesystem and large files
==Original message text=== On Sat, 22 Sep 2007 11:49:06 pm +0100 Daniel O'Connor wrote: You could put ext2/3 on it and use this in Windows - http://www.fs-driver.org/ I've never tested it though. ===End of original message text=== At one point a year or so ago, i mounted a ext2 filesystem on a win2K machine. It did work. However, the reason I asked about VFAT is I wanted to have a USB drive that could be removed from the samba server and used on (pretty much) any windows/linux computer (without installing/modify the recipient computer). VFAT gives me that (unfortunately). thanks bye - ted -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] VFAT filesystem and large files
On Sun, 23 Sep 2007, [EMAIL PROTECTED] wrote: At one point a year or so ago, i mounted a ext2 filesystem on a win2K machine. It did work. However, the reason I asked about VFAT is I wanted to have a USB drive that could be removed from the samba server and used on (pretty much) any windows/linux computer (without installing/modify the recipient computer). VFAT gives me that (unfortunately). Partition it in 2, put the driver on a small FAT partition and make the rest ext2 :) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au The nice thing about standards is that there are so many of them to choose from. -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C signature.asc Description: This is a digitally signed message part. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
svn commit: samba r25296 - in branches/SAMBA_4_0/source/torture/raw: .
Author: vlendec Date: 2007-09-22 09:22:58 + (Sat, 22 Sep 2007) New Revision: 25296 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25296 Log: Apply patch by Elrond [EMAIL PROTECTED]: Put __location__ into a few printfs. Thanks, Volker Modified: branches/SAMBA_4_0/source/torture/raw/composite.c Changeset: Modified: branches/SAMBA_4_0/source/torture/raw/composite.c === --- branches/SAMBA_4_0/source/torture/raw/composite.c 2007-09-21 16:15:47 UTC (rev 25295) +++ branches/SAMBA_4_0/source/torture/raw/composite.c 2007-09-22 09:22:58 UTC (rev 25296) @@ -68,7 +68,7 @@ status = smb_composite_savefile(cli-tree, io1); if (!NT_STATUS_IS_OK(status)) { - printf(savefile failed: %s\n, nt_errstr(status)); + printf((%s) savefile failed: %s\n, __location__,nt_errstr(status)); return False; } @@ -88,7 +88,7 @@ while (*count != num_ops) { event_loop_once(cli-transport-socket-event.ctx); if (lp_parm_bool(NULL, torture, progress, true)) { - printf(count=%d\r, *count); + printf((%s) count=%d\r, __location__, *count); fflush(stdout); } } @@ -97,18 +97,18 @@ for (i=0;inum_ops;i++) { status = smb_composite_loadfile_recv(c[i], mem_ctx); if (!NT_STATUS_IS_OK(status)) { - printf(loadfile[%d] failed - %s\n, i, nt_errstr(status)); + printf((%s) loadfile[%d] failed - %s\n, __location__, i, nt_errstr(status)); return False; } if (io2.out.size != len) { - printf(wrong length in returned data - %d should be %d\n, + printf((%s) wrong length in returned data - %d should be %d\n,__location__, io2.out.size, (int)len); return False; } if (memcmp(io2.out.data, data, len) != 0) { - printf(wrong data in loadfile!\n); + printf((%s) wrong data in loadfile!\n,__location__); return False; } } @@ -148,7 +148,7 @@ status = smb_composite_savefile(cli-tree, io1); if (!NT_STATUS_IS_OK(status)) { - printf(savefile failed: %s\n, nt_errstr(status)); + printf((%s) savefile failed: %s\n,__location__, nt_errstr(status)); return False; } @@ -178,7 +178,7 @@ while (*count != torture_numops) { event_loop_once(event_ctx); if (lp_parm_bool(NULL, torture, progress, true)) { - printf(count=%d\r, *count); + printf((%s) count=%d\r, __location__, *count); fflush(stdout); } } @@ -187,22 +187,22 @@ for (i=0;itorture_numops;i++) { status = smb_composite_fetchfile_recv(c[i], mem_ctx); if (!NT_STATUS_IS_OK(status)) { - printf(loadfile[%d] failed - %s\n, i, + printf((%s) loadfile[%d] failed - %s\n, __location__, i, nt_errstr(status)); ret = False; continue; } if (io2.out.size != len) { - printf(wrong length in returned data - %d - should be %d\n, + printf((%s) wrong length in returned data - %d + should be %d\n, __location__, io2.out.size, (int)len); ret = False; continue; } if (memcmp(io2.out.data, data, len) != 0) { - printf(wrong data in loadfile!\n); + printf((%s) wrong data in loadfile!\n, __location__); ret = False; continue; } @@ -243,7 +243,7 @@ status = smb_composite_savefile(cli-tree, io1); if (!NT_STATUS_IS_OK(status)) { - printf(savefile failed: %s\n, nt_errstr(status)); + printf((%s) savefile failed: %s\n, __location__, nt_errstr(status)); return False; } @@ -252,7 +252,7 @@ io_orig[i]-in.sd = security_descriptor_initialise(io_orig[i]); status = smb_composite_appendacl(cli-tree, io_orig[i], io_orig[i]); if (!NT_STATUS_IS_OK(status)) { - printf(appendacl failed: %s\n, nt_errstr(status)); + printf((%s) appendacl failed: %s\n,
svn commit: samba r25297 - in branches/SAMBA_4_0/source/script: .
Author: metze Date: 2007-09-22 09:42:38 + (Sat, 22 Sep 2007) New Revision: 25297 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25297 Log: - fix sed arguments to make the replacement work - always add #include config.h in the first line metze Modified: branches/SAMBA_4_0/source/script/lex_compile.sh Changeset: Modified: branches/SAMBA_4_0/source/script/lex_compile.sh === --- branches/SAMBA_4_0/source/script/lex_compile.sh 2007-09-22 09:22:58 UTC (rev 25296) +++ branches/SAMBA_4_0/source/script/lex_compile.sh 2007-09-22 09:42:38 UTC (rev 25297) @@ -35,8 +35,14 @@ if [ -r $base.yy.c ];then # we must guarantee that config.h comes first echo #include \config.h\ $base.c - sed '/^#/ s|$base.yy\.c|$DEST|' $base.yy.c $base.c + sed -e s|$base\.yy\.c|$DEST| $base.yy.c $base.c rm -f $base.yy.c + elif [ -r $base.c ];then + # we must guarantee that config.h comes first + mv $base.c $base.c.tmp + echo #include \config.h\ $base.c + sed -e s|$base\.yy\.c|$DEST| $base.c.tmp $base.c + rm -f $base.c.tmp elif [ ! -r base.c ]; then echo $base.c nor $base.yy.c generated. exit 1
svn commit: samba r25298 - in branches/SAMBA_4_0/source/heimdal/lib: asn1 com_err
Author: metze Date: 2007-09-22 09:44:29 + (Sat, 22 Sep 2007) New Revision: 25298 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25298 Log: regenerate lex.c files with config.h as first include this should help on aix 5.3. metze Modified: branches/SAMBA_4_0/source/heimdal/lib/asn1/lex.c branches/SAMBA_4_0/source/heimdal/lib/com_err/lex.c Changeset: Modified: branches/SAMBA_4_0/source/heimdal/lib/asn1/lex.c === --- branches/SAMBA_4_0/source/heimdal/lib/asn1/lex.c2007-09-22 09:42:38 UTC (rev 25297) +++ branches/SAMBA_4_0/source/heimdal/lib/asn1/lex.c2007-09-22 09:44:29 UTC (rev 25298) @@ -1,5 +1,6 @@ +#include config.h -#line 3 lex.c +#line 3 heimdal/lib/asn1/lex.c #define YY_INT_ALIGNED short int @@ -342,9 +343,6 @@ typedef int yy_state_type; extern int yylineno; - -int yylineno = 1; - extern char *yytext; #define yytext_ptr yytext @@ -826,7 +824,7 @@ * SUCH DAMAGE. */ -/* $Id: lex.l 18738 2006-10-21 11:57:22Z lha $ */ +/* $Id: lex.l,v 1.31 2006/10/21 11:57:22 lha Exp $ */ #ifdef HAVE_CONFIG_H #include config.h @@ -851,7 +849,7 @@ static void unterminated(const char *, unsigned); /* This is for broken old lexes (solaris 10 and hpux) */ -#line 855 lex.c +#line 852 heimdal/lib/asn1/lex.c #define INITIAL 0 @@ -1006,7 +1004,7 @@ #line 68 lex.l -#line 1010 lex.c +#line 1007 heimdal/lib/asn1/lex.c if ( !(yy_init) ) { @@ -1675,7 +1673,7 @@ #line 274 lex.l ECHO; YY_BREAK -#line 1679 lex.c +#line 1676 heimdal/lib/asn1/lex.c case YY_STATE_EOF(INITIAL): yyterminate(); @@ -2485,15 +2483,6 @@ /* Accessor methods (get/set functions) to struct members. */ -/** Get the current line number. - * - */ -int yyget_lineno (void) -{ - -return yylineno; -} - /** Get the input stream. * */ @@ -2527,16 +2516,6 @@ return yytext; } -/** Set the current line number. - * @param line_number - * - */ -void yyset_lineno (int line_number ) -{ - -yylineno = line_number; -} - /** Set the input stream. This does not discard the current * input buffer. * @param in_str A readable stream. Modified: branches/SAMBA_4_0/source/heimdal/lib/com_err/lex.c === --- branches/SAMBA_4_0/source/heimdal/lib/com_err/lex.c 2007-09-22 09:42:38 UTC (rev 25297) +++ branches/SAMBA_4_0/source/heimdal/lib/com_err/lex.c 2007-09-22 09:44:29 UTC (rev 25298) @@ -1,5 +1,6 @@ +#include config.h -#line 3 lex.c +#line 3 heimdal/lib/com_err/lex.c #define YY_INT_ALIGNED short int @@ -342,9 +343,6 @@ typedef int yy_state_type; extern int yylineno; - -int yylineno = 1; - extern char *yytext; #define yytext_ptr yytext @@ -523,7 +521,7 @@ #include parse.h #include lex.h -RCSID($Id: lex.l 15143 2005-05-16 08:52:54Z lha $); +RCSID($Id: lex.l,v 1.8 2005/05/16 08:52:54 lha Exp $); static unsigned lineno = 1; static int getstring(void); @@ -532,7 +530,7 @@ #undef ECHO -#line 536 lex.c +#line 533 heimdal/lib/com_err/lex.c #define INITIAL 0 @@ -687,7 +685,7 @@ #line 59 lex.l -#line 691 lex.c +#line 688 heimdal/lib/com_err/lex.c if ( !(yy_init) ) { @@ -851,7 +849,7 @@ #line 75 lex.l ECHO; YY_BREAK -#line 855 lex.c +#line 852 heimdal/lib/com_err/lex.c case YY_STATE_EOF(INITIAL): yyterminate(); @@ -1661,15 +1659,6 @@ /* Accessor methods (get/set functions) to struct members. */ -/** Get the current line number. - * - */ -int yyget_lineno (void) -{ - -return yylineno; -} - /** Get the input stream. * */ @@ -1703,16 +1692,6 @@ return yytext; } -/** Set the current line number. - * @param line_number - * - */ -void yyset_lineno (int line_number ) -{ - -yylineno = line_number; -} - /** Set the input stream. This does not discard the current * input buffer. * @param in_str A readable stream.
svn commit: samba r25299 - in branches/SAMBA_4_0/source: ldap_server scripting/libjs selftest/env setup
Author: abartlet Date: 2007-09-22 12:57:17 + (Sat, 22 Sep 2007) New Revision: 25299 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25299 Log: Modify the provision script to take an additional argument: --server-role This must be set to either 'domain controller', 'domain member' or 'standalone'. The default for the provision now changes to 'standalone'. This is not because Samba4 is particularlly useful in that mode, but because we still want a positive sign from the administrator that we should advertise as a DC. We now do more to ensure the 'standalone' and 'member server' provision output is reasonable, and try not to set odd things into the database that only belong for the DC. Andrew Bartlett Added: branches/SAMBA_4_0/source/setup/provision.smb.conf.dc branches/SAMBA_4_0/source/setup/provision.smb.conf.member branches/SAMBA_4_0/source/setup/provision.smb.conf.standlone branches/SAMBA_4_0/source/setup/secrets_dc.ldif Removed: branches/SAMBA_4_0/source/setup/provision.smb.conf Modified: branches/SAMBA_4_0/source/ldap_server/ldap_server.c branches/SAMBA_4_0/source/scripting/libjs/provision.js branches/SAMBA_4_0/source/selftest/env/Samba4.pm branches/SAMBA_4_0/source/setup/named.conf branches/SAMBA_4_0/source/setup/provision branches/SAMBA_4_0/source/setup/provision_self_join.ldif branches/SAMBA_4_0/source/setup/provision_users.ldif branches/SAMBA_4_0/source/setup/secrets.ldif Changeset: Modified: branches/SAMBA_4_0/source/ldap_server/ldap_server.c === --- branches/SAMBA_4_0/source/ldap_server/ldap_server.c 2007-09-22 09:44:29 UTC (rev 25298) +++ branches/SAMBA_4_0/source/ldap_server/ldap_server.c 2007-09-22 12:57:17 UTC (rev 25299) @@ -513,6 +513,18 @@ NTSTATUS status; const struct model_ops *model_ops; + switch (lp_server_role()) { + case ROLE_STANDALONE: + task_server_terminate(task, ldap_server: no LDAP server required in standalone configuration); + return; + case ROLE_DOMAIN_MEMBER: + task_server_terminate(task, ldap_server: no LDAP server required in member server configuration); + return; + case ROLE_DOMAIN_CONTROLLER: + /* Yes, we want an LDAP server */ + break; + } + task_server_set_title(task, task[ldapsrv]); /* run the ldap server as a single process */ Modified: branches/SAMBA_4_0/source/scripting/libjs/provision.js === --- branches/SAMBA_4_0/source/scripting/libjs/provision.js 2007-09-22 09:44:29 UTC (rev 25298) +++ branches/SAMBA_4_0/source/scripting/libjs/provision.js 2007-09-22 12:57:17 UTC (rev 25299) @@ -489,6 +489,17 @@ subobj.NETLOGONPATH = paths.netlogon; subobj.SYSVOLPATH = paths.sysvol; + if (subobj.DOMAIN_CONF == undefined) { + subobj.DOMAIN_CONF = subobj.DOMAIN; + } + if (subobj.REALM_CONF == undefined) { + subobj.REALM_CONF = subobj.REALM; + } + if (subobj.SERVERROLE != domain controller) { + subobj.REALM = subobj.HOSTNAME; + subobj.DOMAIN = subobj.HOSTNAME; + } + return true; } @@ -536,6 +547,8 @@ setup_ldb(secrets.ldif, info, paths.secrets, false); + setup_ldb(secrets_dc.ldif, info, paths.secrets, false); + return true; } @@ -571,8 +584,16 @@ /* only install a new smb.conf if there isn't one there already */ var st = sys.stat(paths.smbconf); if (st == undefined) { + var smbconfsuffix; + if (subobj.ROLE == domain controller) { + smbconfsuffix = dc; + } else if (subobj.ROLE == member server) { + smbconfsuffix = member; + } else { + smbconfsuffix = subobj.ROLE; + } message(Setting up + paths.smbconf +\n); - setup_file(provision.smb.conf, info.message, paths.smbconf, subobj); + setup_file(provision.smb.conf. + smbconfsuffix, info.message, paths.smbconf, subobj); lp.reload(); } /* only install a new shares config db if there is none */ @@ -724,7 +745,7 @@ message(Setting up sam.ldb users and groups\n); setup_add_ldif(provision_users.ldif, info, samdb, false); - if (lp.get(server role) == domain controller) { + if (subobj.SERVERROLE == domain controller) { message(Setting up self join\n); setup_add_ldif(provision_self_join.ldif, info, samdb, false); setup_add_ldif(provision_group_policy.ldif, info, samdb, false); @@ -737,6 +758,9 @@ sys.mkdir(paths.sysvol + /+ subobj.DNSDOMAIN + /Policies/{ + subobj.POLICYGUID + }/User, 0755);
svn commit: samba r25300 - in branches/SAMBA_4_0: .
Author: abartlet Date: 2007-09-22 12:57:50 + (Sat, 22 Sep 2007) New Revision: 25300 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=25300 Log: Update howto.txt with modified provision syntax. Andrew Bartlett Modified: branches/SAMBA_4_0/howto.txt Changeset: Modified: branches/SAMBA_4_0/howto.txt === --- branches/SAMBA_4_0/howto.txt2007-09-22 12:57:17 UTC (rev 25299) +++ branches/SAMBA_4_0/howto.txt2007-09-22 12:57:50 UTC (rev 25300) @@ -74,7 +74,8 @@ Must be run as a user with permission to write to the install directory. # cd source - # ./setup/provision --realm=YOUR.REALM --domain=YOURDOM --adminpass=SOMEPASSWORD + # ./setup/provision --realm=YOUR.REALM --domain=YOURDOM \ + # --adminpass=SOMEPASSWORD --server-role='domain controller' REMINDER: Add the bin directory of the path you installed to (e.g. /usr/local/samba/bin) to your path, or the provision command
Build status as of Sun Sep 23 00:00:03 2007
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2007-09-22 00:01:52.0 + +++ /home/build/master/cache/broken_results.txt 2007-09-23 00:01:47.0 + @@ -1,4 +1,4 @@ -Build status as of Sat Sep 22 00:00:03 2007 +Build status as of Sun Sep 23 00:00:03 2007 Build counts: Tree Total Broken Panic @@ -13,11 +13,11 @@ pidl 18 4 0 ppp 11 8 0 python 0 0 0 -rsync32 16 0 +rsync32 13 0 samba-docs 0 0 0 samba-gtk3 3 0 -samba4 29 18 2 -samba_3_232 17 0 +samba4 29 17 2 +samba_3_232 16 0 smb-build29 30 0 talloc 32 1 0 tdb 32 3 0