X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Message-ID: <4B50EE93.7010005@cygwin.com> Date: Fri, 15 Jan 2010 17:39:15 -0500 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Windows call SetFileValidData() fails on cygwin 1.5.25-15 usign gcc 3.4.4 References: <20100115134754 DOT ox7ihzmg68cc0o0c AT webmail DOT riemens DOT org> In-Reply-To: <20100115134754.ox7ihzmg68cc0o0c@webmail.riemens.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 01/15/2010 07:47 AM, cygwin AT riemens DOT 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