public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [test] btrfs quotas testing
@ 2013-02-15  6:39 Hemanth Kumar
  0 siblings, 0 replies; only message in thread
From: Hemanth Kumar @ 2013-02-15  6:39 UTC (permalink / raw)
  To: linux-btrfs, xfs
  Cc: chethan.casey, sandeen, sensille, ganeshkumar14, praneethu.u,
	bo.li.liu, skjmca51, Hemanth Kumar, kirantpatil


Signed-off-by: Hemanth Kumar <hemanthkumar51@gmail.com>
---
 quota.sh | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 quota.sh

diff --git a/quota.sh b/quota.sh
new file mode 100644
index 0000000..8b82bf9
--- /dev/null
+++ b/quota.sh
@@ -0,0 +1,23 @@
+#! /bin/bash
+# btrfs quotas test case
+#tmp=/sample
+status=1
+
+cleanup()
+{
+    btrfs subvolume delete $TEST_DIR/vol1
+}
+
+#trap "_cleanup ; exit \$status" 0 1 2 3 15
+
+btrfs quota enable $TEST_DIR
+echo "quota enabled on $TEST_DEV"
+btrfs subvolume create $TEST_DIR/vol1
+echo "vol1 created"
+btrfs qgroup show $TEST_DIR
+btrfs qgroup limit 2m $TEST_DIR/vol1
+echo "qgroup limited to 2mb"
+dd if=$TEST_DEV of=$TEST_DIR/vol1/file1 bs=3M count=1
+echo "tried to write 3m worth data"
+cleanup
+exit
-- 
1.8.1.2

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-15  6:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-15  6:39 [test] btrfs quotas testing Hemanth Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox