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

* Re: deleting files and qgroups
  2014-01-27  7:59 deleting files and qgroups Russell Coker
@ 2014-01-27  8:50 ` Duncan
  0 siblings, 0 replies; 2+ messages in thread
From: Duncan @ 2014-01-27  8:50 UTC (permalink / raw)
  To: linux-btrfs

Russell Coker posted on Mon, 27 Jan 2014 18:59:16 +1100 as excerpted:

> 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.

While (as a btrfs user not dev) I don't use qgroups here, AFAIK, they 
have known bugs ATM and are not considered ready for primetime.  Among 
other infamous current bugs, deleting subvolumes with qgroups enabled can 
lead to negative quotas as that bit simply isn't managed properly at all!

At this point, therefore, I'd not only not recommend depending on qgroups 
at all, I'd recommend not even trying to test them unless you're actively 
working on the currently known bugs, as there's simply too much /known/ 
wrong with them ATM to sanely test, unless you're close enough to 
development to know what's a known bug that they're already working on 
fixing and what's not.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman


^ 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).