Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Get linux user quota as base of local storage calculation #10860

Closed
benhartwich opened this issue Aug 26, 2018 · 4 comments
Closed
Labels

Comments

@benhartwich
Copy link

Hi,

I´m using linux user quota (edquota -u xy) to limit some nextcloud hostings. At nextcloud itself the user can see the full available disk quota instead of the linux user quota I´ve set.

Is there any possibility to get the set user quota for local storages in order to display this value as base of all quota calculations at nextcloud?

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #4730 (Storage), #2017 (quota), #3277 ([feature] Allow admin users to monitor quota usage of every users), #1443 (Enhancement request on quota), and #4348 (External storage quota).

@kesselb
Copy link
Contributor

kesselb commented Aug 26, 2018

I also stumbled across this a few weeks ago. disk_free_space and disk_total_space does not return this information.

A possible way would be:

  1. Get filesystem for data directory / storage
$ df /srv/www/web5/private/data/
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/sda3      317947484 23421628 278352104   8% /
  1. Use this information to obtain quota for current user and filesystem
$ quota --filesystem-list /dev/sda3
Disk quotas for user web5 (uid 6005): 
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
      /dev/sda3 13807256  26214400 26214400           84068       0       0        

Maybe there are easier ways to get this information.

@benhartwich
Copy link
Author

Thanks for your answer. I get a weekly report already by repquota -a, but this is no info, which I can automatically insert to a nextcloud, which should be the main goal.

@skjnldsv skjnldsv added the 0. Needs triage Pending check for reproducibility or if it fits our roadmap label Aug 20, 2020
@szaimen
Copy link
Contributor

szaimen commented Jun 9, 2021

As this sounds like a nice feature, the requests for this are quite low. Currently there are no plans to implement such a feature. Thus I will close this ticket for now. This does not mean we don't want this feature, but it is simply not on our roadmap for the near future. If somebody wants to implement this feature nevertheless we are happy to assist and help out.If you wish to have this feature implemented by the Nextcloud GmbH there is the option for consulting work on top of your Nextcloud Enterprise subscription to get your features implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants