[vhffs-dev] [2075] added missing add_history

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 2075
Author:   gradator
Date:     2012-02-27 01:02:17 +0100 (Mon, 27 Feb 2012)
Log Message:
-----------
added missing add_history

Modified Paths:
--------------
    trunk/vhffs-api/src/Vhffs/Robots/Group.pm

Modified: trunk/vhffs-api/src/Vhffs/Robots/Group.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/Group.pm	2012-02-27 00:00:44 UTC (rev 2074)
+++ trunk/vhffs-api/src/Vhffs/Robots/Group.pm	2012-02-27 00:02:17 UTC (rev 2075)
@@ -162,6 +162,7 @@
 
 		unless( Quota::setqlim($dev, $group->get_gid, $setblocks, $setblocks, $setinodes, $setinodes, 0, 1) ) {
 			Vhffs::Robots::vhffs_log( $vhffs, 'Set quota for group '.$group->get_groupname.' (gid '.$group->get_gid.') to '.$group->get_quota.' MB');
+			$group->add_history( 'Disk quota set to '.$group->get_quota.' MB' );
 		} else {
 			Vhffs::Robots::vhffs_log( $vhffs, 'Cannot set quota for group '.$group->get_groupname.' (gid '.$group->get_gid.'), reason: '.Quota::strerr() );
 		}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/