From owner-freebsd-arch@FreeBSD.ORG Tue Apr 19 17:08:28 2011 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 45BB11065679 for ; Tue, 19 Apr 2011 17:08:28 +0000 (UTC) (envelope-from mdf356@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7EF898FC14 for ; Tue, 19 Apr 2011 17:08:27 +0000 (UTC) Received: by wyf23 with SMTP id 23so6111211wyf.13 for ; Tue, 19 Apr 2011 10:08:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:date:x-google-sender-auth :message-id:subject:from:to:content-type; bh=12fTYUKZtYHVYuWMxQ2HuVqgMBwL9vrBxQsRVtTbFww=; b=dOish2xL/B+iPU/Tx9LLKkyhA5Mnk27ZTU1VLyR7Yqp/fI18ZmWs/FcFku6oexEhda zZsgYHAzcCFpZKSZKPUXk/2je6Y9T3thzy5BK5WXtFAi6o3ZLx55nVGYzoCERw/erktg orbLdjIUz9EH8dcivpKEotmeY8mdVgMTZB6N8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=AbwP2yp+Nx7tzCTQv7Rl9ENkEEVcZAiO9me7PggU/bqj49t5vHRmJxAbAkFdeaT7Xw 7TYbozMPGaksJee9lwaJpzFLsOMq5wsQIsMbOFZpOEcXVuctXN/cTzD5/iDbFs1oqCbo ohEdbaSCw0B8l00gp63siG0ivqPb73HzjoEu0= MIME-Version: 1.0 Received: by 10.216.59.81 with SMTP id r59mr2595302wec.40.1303232906215; Tue, 19 Apr 2011 10:08:26 -0700 (PDT) Sender: mdf356@gmail.com Received: by 10.216.9.67 with HTTP; Tue, 19 Apr 2011 10:08:26 -0700 (PDT) Date: Tue, 19 Apr 2011 10:08:26 -0700 X-Google-Sender-Auth: sh-gNt94RI4w2Vbyc9xzIvMxMb4 Message-ID: From: mdf@FreeBSD.org To: FreeBSD Arch Content-Type: multipart/mixed; boundary=000e0cdff8226f427704a1488eba X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: posix_fallocate(2) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2011 17:08:28 -0000 --000e0cdff8226f427704a1488eba Content-Type: text/plain; charset=ISO-8859-1 The syscall and default VOP are in CURRENT now. I'm attaching the testcase I was using to make sure it was correct, so that work doesn't need to be re-done if anyone wants to work on an implementation of VOP_ALLOCATE for ufs or zfs. I'd like to integrate this into tools/test/posix_fallocate/ but honestly I'm not likely to have the time soon. I intend to try and take care of this at BSDCan when my job responsibilities for the week are to hack on FreeBSD. :-) FYI, the odd format to the code is mostly due to using a few #defines to get this test code that was originally written for $WORK's hack of libcheck to compile and run as a stand-alone. For FreeBSD I've been testing as: cc -o falloc check_posix_fallocate.c -lsbuf ./falloc At $WORK we have a test.mk make addendum, and a few variables set in a make file, and the test is run as: make check Cheers, matthew --000e0cdff8226f427704a1488eba--