hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Isaacson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-8761) Help for FsShell's Stat incorrectly mentions "file size in blocks" (should be bytes)
Date Tue, 04 Sep 2012 17:43:07 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-8761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13447840#comment-13447840

Andy Isaacson commented on HADOOP-8761:

bq. I think the correct behavior should be to match the usage. The unix stat uses %b for blocks,
and %s for size in bytes.

I agree that adding %s for size in bytes is a good idea, but changing the semantics of %b
is an incompatible change, which seems risky.  OTOH, I think it would be potentially very
useful to expose "number of blocks in this file".

Tangentially, the documentation also fails to describe %F.
> Help for FsShell's Stat incorrectly mentions "file size in blocks" (should be bytes)
> ------------------------------------------------------------------------------------
>                 Key: HADOOP-8761
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8761
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>            Reporter: Philip Zeyliger
>            Assignee: Philip Zeyliger
>            Priority: Minor
>         Attachments: HADOOP-8761.patch.txt
> Trivial patch attached corrects the usage information.  Stat.java calls FileStatus.getLen(),
which is most definitely the file size in bytes.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message