cvs commit: src/sbin/geom/misc subr.c subr.h

Pawel Jakub Dawidek pjd at FreeBSD.org
Wed Jun 16 03:45:03 PDT 2004


pjd         2004-06-16 10:44:26 UTC

  FreeBSD src repository

  Modified files:
    sbin/geom/misc       subr.c subr.h 
  Log:
  Implement 3 new functions:
          - g_lcm() - calculates Least Common Multiple of two given values,
                  it is helpful when we need to find sector size for provider
                  which is based on disks with different sector size;
          - g_get_mediasize() - returns media size of given provider;
          - g_get_sectorsize() - returns sector size of given provider;
  Those function aren't used now, but are used by geom_mirror which will be
  committed soon.
  
  Revision  Changes    Path
  1.2       +72 -4     src/sbin/geom/misc/subr.c
  1.2       +5 -0      src/sbin/geom/misc/subr.h


More information about the cvs-src mailing list