Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 09083C61DA4 for ; Thu, 16 Feb 2023 18:24:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229863AbjBPSYP (ORCPT ); Thu, 16 Feb 2023 13:24:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230403AbjBPSXj (ORCPT ); Thu, 16 Feb 2023 13:23:39 -0500 Received: from mail.thelounge.net (mail.thelounge.net [91.118.73.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB96E1BCD for ; Thu, 16 Feb 2023 10:22:48 -0800 (PST) Received: from [10.10.10.2] (rh.vpn.thelounge.net [10.10.10.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) (Authenticated sender: h.reindl@thelounge.net) by mail.thelounge.net (THELOUNGE MTA) with ESMTPSA id 4PHjvg1L92zXPW; Thu, 16 Feb 2023 19:21:51 +0100 (CET) Message-ID: <95b1df7e-3eb9-484c-d655-c42501ce7429@thelounge.net> Date: Thu, 16 Feb 2023 19:21:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Subject: Re: e4defrag don't work really well Content-Language: en-US To: Eric Sandeen , linux-ext4@vger.kernel.org References: <1620c46d-efcf-aca6-341b-083ef593c612@thelounge.net> From: Reindl Harald Organization: the lounge interactive design In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Am 16.02.23 um 17:50 schrieb Eric Sandeen: > On 2/12/23 12:14 PM, Reindl Harald wrote: >> >> what's wrong with e4defrag that it pretends it reduced th efragments of a file to 1 while in the next "e4defrag -c" (why does that only list 5 files at all) the same file is listed again with the same old frag count? > > You might want to examine the actual allocation before and after with "filefrag -v" > which could offer some clues to whether anything was modified by e4defrag. > > (I would also suggest that there is no need to defragment a 3-extent 2 megabyte > file, in general.) it's not a question if it's needed the point is it pretends "Success: [1/1]" but a following "e4defrag -c" still says "now/best 3/1" >> ---------------------------- >> >> [root@srv-rhsoft:~]$ e4defrag -c /mnt/data/audio/ >> e4defrag 1.46.5 (30-Dec-2021) >>                              now/best       size/ext >> 1. /mnt/data/audio/Smokie/Solid Ground/Smokie - Little Town Flirt.mp3 >>                                                  3/1           2389 KB >> 2. /mnt/data/audio/Ace Frehley/Second Sighting/Ace Frehley - Fallen Angel.mp3 >>                                                  3/1           2389 KB >> 3. /mnt/data/audio/Mr. Big/Defying Gravity/Mr. Big - Mean To Me.mp3 >>                                                  3/1           2389 KB >> 4. /mnt/data/audio/Juice Newton/Quiet Lies/Juice Newton - Im Gonna Be Strong.mp3 >>                                                  3/1           2389 KB >> 5. /mnt/data/audio/Vicious Rumors/Something Burning/Vicious Rumors - Ballhog.mp3 >>                                                  3/1           2389 KB >> >> ---------------------------- >> >> [root@srv-rhsoft:~]$ e4defrag "/mnt/data/audio/Smokie/Solid Ground/Smokie - Little Town Flirt.mp3" >> e4defrag 1.46.5 (30-Dec-2021) >> ext4 defragmentation for /mnt/data/audio/Smokie/Solid Ground/Smokie - Little Town Flirt.mp3 >> [1/1]/mnt/data/audio/Smokie/Solid Ground/Smokie - Little Town Flirt.mp3:        100%    [ OK ] >>  Success:                       [1/1] >> >> ---------------------------- >> >> [root@srv-rhsoft:~]$ e4defrag -c /mnt/data/audio/ >> e4defrag 1.46.5 (30-Dec-2021) >>                              now/best       size/ext >> 1. /mnt/data/audio/Smokie/Solid Ground/Smokie - Little Town Flirt.mp3 >>                                                  3/1           2389 KB >> 2. /mnt/data/audio/Ace Frehley/Second Sighting/Ace Frehley - Fallen Angel.mp3 >>                                                  3/1           2389 KB >> 3. /mnt/data/audio/Mr. Big/Defying Gravity/Mr. Big - Mean To Me.mp3 >>                                                  3/1           2389 KB >> 4. /mnt/data/audio/Juice Newton/Quiet Lies/Juice Newton - Im Gonna Be Strong.mp3 >>                                                  3/1           2389 KB >> 5. /mnt/data/audio/Vicious Rumors/Something Burning/Vicious Rumors - Ballhog.mp3 >>                                                  3/1           2389 KB