The Samba-Bugzilla – Attachment 1555 Details for
Bug 3192
dfree command called too frequently
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Additional patch
look (text/plain), 2.17 KB, created by
Jeremy Allison
on 2005-10-31 15:28:41 UTC
(
hide
)
Description:
Additional patch
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2005-10-31 15:28:41 UTC
Size:
2.17 KB
patch
obsolete
>Index: smbd/reply.c >=================================================================== >--- smbd/reply.c (revision 11425) >+++ smbd/reply.c (working copy) >@@ -1004,7 +1004,7 @@ > SMB_BIG_UINT dfree,dsize,bsize; > START_PROFILE(SMBdskattr); > >- if (SMB_VFS_DISK_FREE(conn,".",True,&bsize,&dfree,&dsize) == (SMB_BIG_UINT)-1) { >+ if (get_dfree_info(conn,".",True,&bsize,&dfree,&dsize) == (SMB_BIG_UINT)-1) { > END_PROFILE(SMBdskattr); > return(UNIXERROR(ERRHRD,ERRgeneral)); > } >Index: smbd/vfs.c >=================================================================== >--- smbd/vfs.c (revision 11425) >+++ smbd/vfs.c (working copy) >@@ -563,7 +563,7 @@ > > len -= st.st_size; > len /= 1024; /* Len is now number of 1k blocks needed. */ >- space_avail = SMB_VFS_DISK_FREE(conn,fsp->fsp_name,False,&bsize,&dfree,&dsize); >+ space_avail = get_dfree_info(conn,fsp->fsp_name,False,&bsize,&dfree,&dsize); > if (space_avail == (SMB_BIG_UINT)-1) { > return -1; > } >Index: smbd/trans2.c >=================================================================== >--- smbd/trans2.c (revision 11425) >+++ smbd/trans2.c (working copy) >@@ -2151,7 +2151,7 @@ > { > SMB_BIG_UINT dfree,dsize,bsize,block_size,sectors_per_unit,bytes_per_sector; > data_len = 18; >- if (SMB_VFS_DISK_FREE(conn,".",False,&bsize,&dfree,&dsize) == (SMB_BIG_UINT)-1) { >+ if (get_dfree_info(conn,".",False,&bsize,&dfree,&dsize) == (SMB_BIG_UINT)-1) { > return(UNIXERROR(ERRHRD,ERRgeneral)); > } > >@@ -2252,7 +2252,7 @@ > { > SMB_BIG_UINT dfree,dsize,bsize,block_size,sectors_per_unit,bytes_per_sector; > data_len = 24; >- if (SMB_VFS_DISK_FREE(conn,".",False,&bsize,&dfree,&dsize) == (SMB_BIG_UINT)-1) { >+ if (get_dfree_info(conn,".",False,&bsize,&dfree,&dsize) == (SMB_BIG_UINT)-1) { > return(UNIXERROR(ERRHRD,ERRgeneral)); > } > block_size = lp_block_size(snum); >@@ -2284,7 +2284,7 @@ > { > SMB_BIG_UINT dfree,dsize,bsize,block_size,sectors_per_unit,bytes_per_sector; > data_len = 32; >- if (SMB_VFS_DISK_FREE(conn,".",False,&bsize,&dfree,&dsize) == (SMB_BIG_UINT)-1) { >+ if (get_dfree_info(conn,".",False,&bsize,&dfree,&dsize) == (SMB_BIG_UINT)-1) { > return(UNIXERROR(ERRHRD,ERRgeneral)); > } > block_size = lp_block_size(snum);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 3192
:
1529
| 1555 |
1564