quotas and small files

DICKENS,CARY (HP-Loveland,ex2) cary_dickens2 at hp.com
Sat Aug 4 19:17:10 GMT 2001


Jeremy,

I've gone through the vfs_allocate_file_space and stepped through gdb as
well as added debug statements.  According to both methods errno is 0.  

I tried setting the errno to EDQUOT and ENOSPC with no change in behavior.
When I try to copy a 60k or greater file the errno is set to EDQUOT.

Let me know what you think comes next.  Personally, I'm baffled.

Thanks,
Cary

> -----Original Message-----
> From: Jeremy Allison [mailto:jeremy at valinux.com]
> Sent: Friday, August 03, 2001 4:57 PM
> To: DICKENS,CARY (HP-Loveland,ex2); Samba technical
> Subject: Re: quotas and small files
> 
> 
> Ah ! I've noticed the following in your log....
> 
> ----------------------------------------------------------
>   vfs_allocate_file_space: file test5/Test.File 125.txt, 
> grow. Current size 0
> 
>   acldb_vfs_ftruncate: fd=27
>  
>   push_sec_ctx(506, 50014) : sec_ctx_stack_ndx = 1
>  
>   setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
>  
>   pop_sec_ctx (506, 50014) - sec_ctx_stack_ndx = 0
>  
>   acldb_vfs_ftruncate: Successful
> ----------------------------------------------------------
> 
> Hmmm. In the vfs_allocate_file_space() call once the write
> fails I am saving errno, calling the vfs ftruncate call,
> then restoring errno. This should restore the ENOSPC or
> EDQUOT value of errno....
> 
> This is the key - can you attach to the process in gdb
> and walk through what errno is when entering and exiting
> this code (after the write fail...).
> 
> Call me please !
> 
> Jeremy.
> 
> -- 
> --------------------------------------------------------
> Buying an operating system without source is like buying
> a self-assembly Space Shuttle with no instructions.
> --------------------------------------------------------
> 




More information about the samba-technical mailing list