[Samba] CreateHardLink problem
david at overtons.id.au
Tue Mar 3 12:16:05 GMT 2009
2009/3/3 Volker Lendecke <Volker.Lendecke at sernet.de>:
> On Tue, Mar 03, 2009 at 06:13:42PM +1100, David Overton wrote:
>> I'm developing a Windows backup application that needs to be able to
>> create possibly hundreds of thousands of hard links on an SMB share.
>> I'm running into a strange problem when that share happens to be on a
>> Samba server. When the application tries to create the 10000th hard
>> link, the win32 CreateHardLink() function returns error code 5 "Access
>> is denied". The Samba log shows:
>> [2009/03/03 01:29:08, 0] smbd/files.c:file_new(79)
>> ERROR! Out of file structures
> Can you send a sniff of what your application is doing? We
> *might* have a fd leak somewhere. But apart from that -- you
> do close your files after you've used them?
The sniff is rather large so I'll send it separately to you. The code
in question does not explicitly open any files, it merely calls
CreateHardLink() on pre-existing files.
More information about the samba