The Samba-Bugzilla – Attachment 8467 Details for
Bug 9584
SMBC_fstatvfs_ctx fails with NT_STATUS_INVALID_LEVEL
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to libsmb_stat.c using cli_dskattr as a fallback
libsmb_stat.c.patch (text/plain), 710 bytes, created by
rv1971
on 2013-01-22 16:05:45 UTC
(
hide
)
Description:
Patch to libsmb_stat.c using cli_dskattr as a fallback
Filename:
MIME Type:
Creator:
rv1971
Created:
2013-01-22 16:05:45 UTC
Size:
710 bytes
patch
obsolete
>*** libsmb_stat.c.orig Tue Jan 22 11:05:07 2013 >--- libsmb_stat.c Tue Jan 22 17:04:01 2013 >*************** >*** 389,394 **** >--- 389,408 ---- > &actual_allocation_units, > §ors_per_allocation_unit, > &bytes_per_sector); >+ >+ /* use cli_dskattr as a fallback */ >+ if(status == NT_STATUS_INVALID_LEVEL) >+ { >+ int total, bsize, avail; >+ >+ status = cli_dskattr(cli, &bsize, &total, &avail); >+ >+ bytes_per_sector = bsize; >+ sectors_per_allocation_unit = bsize; >+ total_allocation_units = total; >+ actual_allocation_units = avail; >+ } >+ > if (NT_STATUS_IS_OK(status)) { > > /* ... then provide it */
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 9584
:
8467
|
8468