LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-13-2005, 10:48 AM   #1
qQsh
LQ Newbie
 
Registered: Jan 2005
Posts: 5

Rep: Reputation: 0
Syncing real hdd space with proftpd mod_quotatab_sql data


All users of proftpd`s mod_quotatab_sql knows about that "small" problem - it counts uploaded ammount of data and if you delete file from via FTP, this ammount of uploaded data increases. Ideal and logical, but... What happens if i delete file from user`s directory from terminal? Mod_quotatab_sql thinks it still have same ammount of uploaded data but really that ammount are smallest becouse some files was deleted from terminal or web-application.

For example:
* User have FTP Quota - 100MB
* User uploaded some files and got 70MB of 100MB
* User deleted some files - 30MB - in other way than FTP, for example, php script
* mod_quotatab still thinks about quota 70MB of 100MB (becouse it reads info from mysql) but really user was used only 40MB of 100MB

Currently i am thinking about writing small script or application which sometime will check real ammount of data in user`s directory and updates info to mysql table of mod_quotatab_sql.

Maybe someone knows any other solution for this problem...


P.S. Sorry for my bad English... I hope i was explained enought understandable.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HDD Space ColdArmor Mandriva 2 03-13-2005 04:46 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM
System doesn't show a real available space mcaisapanta Red Hat 1 07-19-2004 09:58 PM
System doesn´t show real available space mcaisapanta Linux - Newbie 2 07-19-2004 08:26 PM
Where does all that hdd space really go? durden2.0 Linux - General 4 07-02-2003 02:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration