Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
size limit a folder
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
hedmo
Veteran
Veteran


Joined: 29 Aug 2009
Posts: 1305
Location: sweden

PostPosted: Mon Dec 08, 2014 6:04 pm    Post subject: size limit a folder Reply with quote

hi all

i want to create a folder and have a size limit in it.how do i do that :?:

regards hedmo
Back to top
View user's profile Send private message
SDNick484
Apprentice
Apprentice


Joined: 05 Dec 2005
Posts: 231

PostPosted: Mon Dec 08, 2014 10:32 pm    Post subject: Reply with quote

The easiest route is to use quotas however they're typically done on the file system level. You can create a volume (either a real one or even just use a file) and limit the space like that (there's a good example here). Some file systems like ZFS make this very easy, but if you're using ext3/ext4, the example I linked to should work (only update would be to use ext4 instead of ext3).
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Mon Dec 08, 2014 10:33 pm    Post subject: Re: size limit a folder Reply with quote

hedmo wrote:
i want to create a folder and have a size limit in it.how do i do that

hedmo ... Windows and MacOS has "folders", *nix has "directories". Anyhow, you would use quota's for such things, though these operate on the filesystem, rather than on directory.

best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum