Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwsetup-ng.git;a=commitdiff;h=1f8adf8c3874858e55294c477192106f0f44ff89
commit 1f8adf8c3874858e55294c477192106f0f44ff89 Author: James Buren <[email protected]> Date: Sun Aug 19 15:40:29 2012 -0500 provide function for converting size to Device dependent sectors diff --git a/Device.hh b/Device.hh index 790f2cc..36fa6ac 100644 --- a/Device.hh +++ b/Device.hh @@ -11,6 +11,7 @@ public: Device(); ~Device(); bool read(const string &path); + unsigned long long sizeToSectors(unsigned long long size) { return size / _lsectorsize; } private: string _path; _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
