[Ocfs2-tools-devel] [PATCH 1/3] tunefs.ocfs2: Use uint32_t instead of uint64_t for total_clusters.
Sunil Mushran
Sunil.Mushran at oracle.com
Tue Apr 1 11:01:04 PDT 2008
Tao Ma wrote:
> In ocfs2, we always use uint32_t to indicate cluster count.
> As total_clusters is always used as a uint32_t below, it must
> be defined as uint64_t by mistake. So change it as uint32_t.
>
> Signed-off-by: Tao Ma <tao.ma at oracle.com>
>
Signed-off-by: Sunil Mushran <sunil.mushran at oracle.com>
> ---
> tunefs.ocfs2/sparse_file.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/tunefs.ocfs2/sparse_file.c b/tunefs.ocfs2/sparse_file.c
> index 9b9e0d9..f0eedb3 100644
> --- a/tunefs.ocfs2/sparse_file.c
> +++ b/tunefs.ocfs2/sparse_file.c
> @@ -36,7 +36,7 @@ struct multi_link_file {
>
> struct list_ctxt {
> ocfs2_filesys *fs;
> - uint64_t total_clusters;
> + uint32_t total_clusters;
> char file_name[OCFS2_MAX_FILENAME_LEN];
> int file_name_len;
> uint64_t ino;
>
More information about the Ocfs2-tools-devel
mailing list