Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1717232rwi; Mon, 31 Oct 2022 21:47:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM70w/IYWmoLLn9QcKmMBoat+1RUFo8S9+yKja8MQcoZZKGlViqTGubKP7dhhyJKqjSWSMqc X-Received: by 2002:a17:907:94d1:b0:790:65a:3a18 with SMTP id dn17-20020a17090794d100b00790065a3a18mr16174290ejc.428.1667278032388; Mon, 31 Oct 2022 21:47:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667278032; cv=none; d=google.com; s=arc-20160816; b=O/z57U8KSuJCWTl+ZFuNie0mzXppOyGMlSrd/VDZnJdfoGp9BuxdCnXbfbrE7lKrKB y6iVgk1jRskHgW2KbsTAu9iPKzpt6yC701ci5zU1Dep/aZkxP8mqUkfdn497DIgyqMHM kgfDWgQQrdxMymnsyuQklF2+YaF8rwB8Ynr+UihgrbFhNBndkicCwqibREzfmSoUSskh WLpHElhdXNhRi5O/3J+S8UdemiD1iBXpAnugktiOfGr8aT949u/lFd0HwWFOV3CS4UfZ SyR9SMyxmY6mhb4MBK8X5FhvC1U2bIh/ZSN4XCFcldjbJCsc9McTZb2K3CRA2rBJCzHe 6d5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=cF8Xdl9bnZMP6PM/jkktbmXgdydLrtVZtbsNWEfml5U=; b=ByPm1Sq66FQf7oR+vy+YjVAiK0mrd4GBHfIUF7XFsoxxEeFj7rvO8mN5z3VhLLJbRS dESRTznUcs4qOSPqoRqRS7oikVcqb6vclmQ3FOWxeV+peZ6EtowNpKinLYLCzv43xvFw 3LI9Url1CjiDkDTPYRV0VPGa+Wnjl0h/HH7wpkgt4ElZMptExUjFMmbw3KleWXyLB1zg ceIOA7Cct0w7X1bfTVXY7Y3gU5ZkxZ2KxkVhipHmC83rtRGJikkst0Uyvq1AeSMjAHpc JUQ7ecPRtcY1wzsRyN1wmz++eMxko014BgfNnnLwMpWcs4a6qJEYp9K3HSazLv9nhZ9f GDmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=FcYPBsVG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg41-20020a170907a42900b0077f4fcfe49csi11599042ejc.905.2022.10.31.21.46.47; Mon, 31 Oct 2022 21:47:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=FcYPBsVG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229534AbiKAEJe (ORCPT + 97 others); Tue, 1 Nov 2022 00:09:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbiKAEJc (ORCPT ); Tue, 1 Nov 2022 00:09:32 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD4F81581A for ; Mon, 31 Oct 2022 21:09:31 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id j14so19235948ljh.12 for ; Mon, 31 Oct 2022 21:09:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=cF8Xdl9bnZMP6PM/jkktbmXgdydLrtVZtbsNWEfml5U=; b=FcYPBsVGNwpLUaVZpBQpN2jDmWuSOvdtv3EXZzTUOoN03N+zmje8U7oXs61ElaPtPc dBR1CYPcPTURxarJfA7S56CUEQ/2MP4Tux6zXOszbp4ve9bgY8/mZdAdhP2eNrvpVl9C dGPMuLTkIMQfhsddoP3qJeaRx5X7OfqNoMo0EXrQyltiVmFmom7y/iCvztaUJLQsUXcl HaLw05/mY4FyYMDGibztfm9W+6OnvIipOLkiiUTO8b/d1eHs1I993fUuJmD/SC8wCXlP NSEIZfIfxYVhtLhBdaDB6IRvqZmT1fSkMiP0SbrsIdtydu5RqX+quAS202TEzQ2HcQdf fR9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=cF8Xdl9bnZMP6PM/jkktbmXgdydLrtVZtbsNWEfml5U=; b=rTyr0CxqV76wDPtXcgLScabR7j8E+fCnv/cWIXRl9pHLS18Lx7ojhln2gtsJmPnFXH ZWdZb6PpA3CwRjWHCAAwP39oT1us363j9Tz2hYSa1gyTm/KfT/5i+AMx54ACAW63DOsd Nm1aHMRa6jgbJwCQVOTKG//SnC3N2S435DP3mYvZLKsu8tkyZPjCJuhBzRnBiSggWch3 vYm4tmVlXYESkgjYwaoWoO4cSBzvFPJj/tKnDGusRygLcX2gdVm7AhYSQmoCCTZK9dVu 2t7xfq5rKllERJv/YFyiVbEtGPsyGNa6htbCfkT0dzWlGMDvn/c6R+WpQJWTtxPouHRi PR4Q== X-Gm-Message-State: ACrzQf1GshxcSUWZUKPpoa7NEmMGJhS+lANy2UU/d2zKri05I3jMyIru 8c8VyRqD1ZfRAOJwkJrRCF4iYddmBloyWNm300kaLY6Q X-Received: by 2002:a2e:7c02:0:b0:277:54ee:e8d9 with SMTP id x2-20020a2e7c02000000b0027754eee8d9mr3497137ljc.309.1667275769528; Mon, 31 Oct 2022 21:09:29 -0700 (PDT) MIME-Version: 1.0 From: Sijie Lan Date: Tue, 1 Nov 2022 00:09:18 -0400 Message-ID: Subject: Mkfs.f2fs on null_blk device To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com Cc: chao@kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When I try to make f2fs on null_blk device, it always shows "Device size is not sufficient for F2FS volume", I am I gave enough space for the file system, i.e, 20GiB. I just want to know hot to fix it. this is the output message: [sijie@fedora null_blk]$ sudo mkfs.f2fs -f -m /dev/nullb1 F2FS-tools: mkfs.f2fs Ver: 1.15.0 (2022-05-13) Info: Disable heap-based policy Info: Debug level = 0 Info: Trim is enabled Info: Host-managed zoned block device: 20 zones, 2147483648 zone size(bytes), 10 randomly writeable zones 524288 blocks per zone Info: Segments per section = 1024 Info: Sections per zone = 1 Info: sector size = 4096 Info: total sectors = 10485760 (40960 MB) Info: zone aligned segment0 blkaddr: 524288 Error: Device size is not sufficient for F2FS volume Error: Failed to prepare a super block!!! Error: Could not format the device!!!