Windows call SetFileValidData() fails on cygwin 1.5.25-15 usign gcc 3.4.4

Larry Hall (Cygwin) reply-to-list-only-lh@cygwin.com
Fri Jan 15 23:00:00 GMT 2010


On 01/15/2010 07:47 AM, cygwin@riemens.org wrote:
> Hi all,
>
> My aim is to allocate a (large) file on disk and write somewhere at the end
> without being hit by the performance penalty of zero-filling that NTFS
> executes by default.
>
> Therefore, I try to use SetFileValidData() but this consistently reports
> windows error 1314 "A required privilege is not held by the client".
> (I am aware of the risks, thanks for your concern).
> The error occurs on an executable that is compiled under cygwin 1.5.25-15
> using gcc version 3.4.4. No error on an exec that is built with
> MS visual studio .NET 2003.
>
> Function SetFileValidData() requires a special privilege SE_MANAGE_VOLUME_NAME
> that is set in the program. Program lists current priviledges to check that it
> is actually set; this confirms that the permission is granted.

Works just fine with gcc-3 or gcc-4 with Cygwin 1.7.  Perhaps you want to
upgrade.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list