lkml.org 
[lkml]   [2011]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 12/12] drbd: Rename DISK_SIZE_SECT -> DISK_SIZE
    Date
    From: Andreas Gruenbacher <agruen@linbit.com>

    We don't have the units in constant names in other places, either.

    Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
    Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
    ---
    include/linux/drbd_limits.h | 7 ++++---
    1 files changed, 4 insertions(+), 3 deletions(-)

    diff --git a/include/linux/drbd_limits.h b/include/linux/drbd_limits.h
    index 62e93b2..07d5df9 100644
    --- a/include/linux/drbd_limits.h
    +++ b/include/linux/drbd_limits.h
    @@ -123,9 +123,10 @@
    * the upper limit with 64bit kernel, enough ram and flexible meta data
    * is 1 PiB, currently. */
    /* DRBD_MAX_SECTORS */
    -#define DRBD_DISK_SIZE_SECT_MIN 0
    -#define DRBD_DISK_SIZE_SECT_MAX (1 * (2LLU << 40))
    -#define DRBD_DISK_SIZE_SECT_DEF 0 /* = disabled = no user size... */
    +#define DRBD_DISK_SIZE_MIN 0
    +#define DRBD_DISK_SIZE_MAX (16 * (2LLU << 30))
    +#define DRBD_DISK_SIZE_DEF 0 /* = disabled = no user size... */
    +#define DRBD_DISK_SIZE_SCALE 's' /* sectors */

    #define DRBD_ON_IO_ERROR_DEF EP_DETACH
    #define DRBD_FENCING_DEF FP_DONT_CARE
    --
    1.7.4.1


    \
     
     \ /
      Last update: 2011-10-07 13:31    [W:0.018 / U:89.500 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site