linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* deleting files and qgroups
@ 2014-01-27  7:59 Russell Coker
  2014-01-27  8:50 ` Duncan
  0 siblings, 1 reply; 2+ messages in thread
From: Russell Coker @ 2014-01-27  7:59 UTC (permalink / raw)
  To: linux-btrfs

(sysadm_t:s0-s0:c0.c1023)root@play:/tmp# btrfs qgroup limit 20m /tmp
(sysadm_t:s0-s0:c0.c1023)root@play:/tmp# du -h test
931M    test
(sysadm_t:s0-s0:c0.c1023)root@play:/tmp# rm test
rm: cannot remove 'test': Disk quota exceeded
(sysadm_t:s0-s0:c0.c1023)root@play:/tmp# echo -n > test
-bash: test: Disk quota exceeded

Is the above expected?  If there's excess disk space usage I'd like to set a 
qgroup first then delete or truncate files.

As an aside, is it expected that a SE Linux Play Machine (with hostile "root" 
user) should survive with BTRFS?  I'm preparing a new Play Machine which will 
run BTRFS and use qgroups, are there any bugs or missing features I should be 
aware of?

I realise that qgroups are an area of BTRFS that hasn't been tested a lot and 
that using them to restrict actively hostile users is probably more 
experimental than most BTRFS stuff.  But I'm happy to get a broken system if we 
learn something useful.

-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-27  8:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-27  7:59 deleting files and qgroups Russell Coker
2014-01-27  8:50 ` Duncan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).