From: Goffredo Baroncelli <kreijack@gmail.com>
To: Ilya Dryomov <idryomov@gmail.com>
Cc: Chris Mason <chris.mason@fusionio.com>,
"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>,
Goffredo Baroncelli <kreijack@inwind.it>
Subject: Re: [PATCH 1/2] Update btrfs filesystem df command
Date: Wed, 03 Oct 2012 19:38:57 +0200 [thread overview]
Message-ID: <506C7831.6050701@gmail.com> (raw)
In-Reply-To: <20121003172007.GA2890@zambezi.lan>
Hi,
On 10/03/2012 07:20 PM, Ilya Dryomov wrote:
>>>> filesystem_cmd_group_usage, NULL, {
>>>> > >>- { "df", cmd_df, cmd_df_usage, NULL, 0 },
>>>> > >>+ { "df", cmd_disk_free, cmd_disk_free_usage, NULL, 0 },
>>> > >
>>> > >If this command is going to replace df, you should change the function
>>> > >name back to cmd_df.
>> >
>> > I was never convinced to use 'df'. At the beginning when I wrote the
>> > first parser of btrfs, was suggested (not by me) to use "long"
>> > command and allow the parser to match a contracted command until
>> > there was any ambiguity. I suggested to use disk-free, but everybody
>> > were confortable with df.. so I leaved it as "official name". But I
>> > prefer for the internal code a more verbose name.
> Well, all your patch is doing is extending the functionality of an
> existing command. The "official name" for that command is "df", and you
> are not changing its name.
I would like change the name of the command from df to disk-free.
Unfortunately (for me) Chris ask to leaved the old name...
> Why change the name of an existing function?
Strictly speaking, I never changed the name of the function. At the
beginning I added another command (who was named disk-usage), then Chris
asked to replace df with the new one. So I removed the old one.
Seeing the patch it seems that I changed the name, but the truth is that
I added a new one then removed the old one. Due to how the patch is
generated it seems another thing.
But this doesn't change too much.
The point is that the function name doesn't match the command name. It
is not the single case: look at the function cmd_send_start()
(associated to the send command), cmd_defrag() )associated to the
command defragment....)
BR
G.Baroncelli
>
> Thanks,
>
> Ilya
>
next prev parent reply other threads:[~2012-10-03 17:38 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-03 11:43 [PATCH][BTRFS-PROGS][V1] btrfs filesystem df Goffredo Baroncelli
2012-10-03 11:43 ` [PATCH 1/2] Update btrfs filesystem df command Goffredo Baroncelli
2012-10-03 15:02 ` Ilya Dryomov
2012-10-03 16:34 ` Goffredo Baroncelli
2012-10-03 17:20 ` Ilya Dryomov
2012-10-03 17:38 ` Goffredo Baroncelli [this message]
2012-10-03 17:09 ` Goffredo Baroncelli
2012-10-03 11:43 ` [PATCH 2/2] Update help page Goffredo Baroncelli
2012-10-03 11:56 ` [PATCH][BTRFS-PROGS][V1] btrfs filesystem df Hugo Mills
2012-10-03 16:17 ` Goffredo Baroncelli
2012-10-03 16:34 ` Hugo Mills
2012-10-09 9:43 ` Bart Noordervliet
2012-10-09 11:38 ` Goffredo Baroncelli
2012-10-09 12:51 ` Bart Noordervliet
2012-10-09 18:22 ` Goffredo Baroncelli
2012-10-12 9:42 ` Martin Steigerwald
2012-10-03 15:01 ` Ilya Dryomov
2012-10-03 16:46 ` Goffredo Baroncelli
2012-10-03 17:46 ` Ilya Dryomov
2012-10-03 20:01 ` Goffredo Baroncelli
2012-10-03 20:24 ` Ilya Dryomov
2012-10-12 10:01 ` Martin Steigerwald
2012-10-12 9:55 ` Martin Steigerwald
-- strict thread matches above, loose matches on Subject: below --
2012-10-03 17:22 [PATCH][BTRFS-PROGS][V2] " Goffredo Baroncelli
2012-10-03 17:22 ` [PATCH 1/2] Update btrfs filesystem df command Goffredo Baroncelli
2012-10-03 20:34 ` Ilya Dryomov
2012-10-03 20:38 ` Hugo Mills
2012-10-03 20:43 ` Ilya Dryomov
2012-10-03 20:53 ` Goffredo Baroncelli
2012-10-04 17:27 [PATCH][BTRFS-PROGS][V3] btrfs filesystem df Goffredo Baroncelli
2012-10-04 17:27 ` [PATCH 1/2] Update btrfs filesystem df command Goffredo Baroncelli
2012-10-13 17:47 [PATCH][BTRFS-PROGS][V4] btrfs filesystem df Goffredo Baroncelli
2012-10-13 17:47 ` [PATCH 1/2] Update btrfs filesystem df command Goffredo Baroncelli
2012-10-13 19:14 [PATCH][BTRFS-PROGS][V6] btrfs filesystem df Goffredo Baroncelli
2012-10-13 19:14 ` [PATCH 1/2] Update btrfs filesystem df command Goffredo Baroncelli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=506C7831.6050701@gmail.com \
--to=kreijack@gmail.com \
--cc=chris.mason@fusionio.com \
--cc=idryomov@gmail.com \
--cc=kreijack@inwind.it \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).