From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F208C433DF for ; Fri, 14 Aug 2020 20:18:50 +0000 (UTC) Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EEF3520768; Fri, 14 Aug 2020 20:18:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sourceforge.net header.i=@sourceforge.net header.b="my1W15vY"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sf.net header.i=@sf.net header.b="NRGKzINb"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="AyVsOxXr" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EEF3520768 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-f2fs-devel-bounces@lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1k6gA4-0001pN-Gu; Fri, 14 Aug 2020 20:18:48 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k6gA2-0001p0-P4 for linux-f2fs-devel@lists.sourceforge.net; Fri, 14 Aug 2020 20:18:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=p8VZbZS8tsi00YeLYmeD5ocaepl6hm3WlPz+DfKME74=; b=my1W15vY3o9poaJgXGszTPAa2a UynjkBo4SfhwHILAkbpgL3u1rALr5B9B2w+yGJunb2DWS2912cM0pUvYcGUn7IY1aNYJVYp/1KfN4 UtwkHWy8jm0KwYVPtwH43Ag8yfFNcaoEfB8OADVx+pQOBTglSwesdvRvBLVnIdkqw9Ao=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:Cc:To:From :Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=p8VZbZS8tsi00YeLYmeD5ocaepl6hm3WlPz+DfKME74=; b=N RGKzINbAFHc9bX15DWTb22R6JqeEex0TTk9xRMWSnbskezVM8AJe+Ukd5AaUV8Gr2IPJmhjKGxXad go/cfJo/wUGY2gpFIUpSf0jy7yIf/SY3fZ4P85yCM7oUfyKxx0jjwwGDR9SobChe4kRAdbb9AkQr5 uECbURHxoRSjDIOU=; Received: from mail.kernel.org ([198.145.29.99]) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1k6gA0-00Eb3P-FM for linux-f2fs-devel@lists.sourceforge.net; Fri, 14 Aug 2020 20:18:46 +0000 Received: from localhost (unknown [104.132.1.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 040CB20768; Fri, 14 Aug 2020 20:18:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597436319; bh=+soq6aV/lmdoPXjl4JUTFrG7kceykgdlEzogFdQ1PbY=; h=From:To:Cc:Subject:Date:From; b=AyVsOxXr/WNZywWSF0GM+MzvvR//HgkPi2DvkcolHll51CHjAcw8A9+Zbc1fOr7BU t3LEl4hnr83O2fUMEiHe7Ye+jMn89IF19iwNdI+rkc+NqG5ata3XDw8BrR0EnEFpyz casYnqPQyxTyZfGhHRRueKivypKvnFLBQP95Jpbk= From: Jaegeuk Kim To: linux-f2fs-devel@lists.sourceforge.net Date: Fri, 14 Aug 2020 13:18:38 -0700 Message-Id: <20200814201838.729542-1-jaegeuk@kernel.org> X-Mailer: git-send-email 2.28.0.220.ged08abb693-goog MIME-Version: 1.0 X-Headers-End: 1k6gA0-00Eb3P-FM Subject: [f2fs-dev] [PATCH] f2fs_io: add OSYNC option X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jaegeuk Kim Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net Signed-off-by: Jaegeuk Kim --- tools/f2fs_io/f2fs_io.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/f2fs_io/f2fs_io.c b/tools/f2fs_io/f2fs_io.c index abb655a..70a077a 100644 --- a/tools/f2fs_io/f2fs_io.c +++ b/tools/f2fs_io/f2fs_io.c @@ -424,6 +424,7 @@ static void do_fallocate(int argc, char **argv, const struct cmd_desc *cmd) "IO can be\n" \ " buffered : buffered IO\n" \ " dio : direct IO\n" \ +" osync : O_SYNC\n" \ static void do_write(int argc, char **argv, const struct cmd_desc *cmd) { @@ -460,6 +461,8 @@ static void do_write(int argc, char **argv, const struct cmd_desc *cmd) if (!strcmp(argv[5], "dio")) flags |= O_DIRECT; + else if (!strcmp(argv[5], "osync")) + flags |= O_SYNC; else if (strcmp(argv[5], "buffered")) die("Wrong IO type"); -- 2.28.0.220.ged08abb693-goog _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel