Ticket #2338: off_t-for-size-calculation.patch

File off_t-for-size-calculation.patch, 855 bytes (added by swegener, 14 years ago)

This is needed to show correct free space information for todays large filesystems on 32bit systems.

  • src/mountlist.h

    From 81846d943c6f69bbea40b63df5d7f266bdc70b01 Mon Sep 17 00:00:00 2001
    From: Sven Wegener <sven.wegener@stealer.net>
    Date: Thu, 13 May 2010 00:43:17 +0200
    Subject: [PATCH] Use off_t for free space calculation
    
    This is needed to show correct free space information for todays large
    filesystems on 32bit systems.
    
    Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
    ---
     src/mountlist.h |    8 ++++----
     1 files changed, 4 insertions(+), 4 deletions(-)
    
    diff --git a/src/mountlist.h b/src/mountlist.h
    index cf878f8..a71dbf5 100644
    a b struct my_statfs 
    2929    char *typename; 
    3030    const char *mpoint; 
    3131    const char *device; 
    32     int avail; 
    33     int total; 
    34     int nfree; 
    35     int nodes; 
     32    off_t avail; 
     33    off_t total; 
     34    off_t nfree; 
     35    off_t nodes; 
    3636}; 
    3737 
    3838void init_my_statfs (void);