2009-01-09 01:27:12 +01:00
|
|
|
Subject: [PATCH] attr: move ext2/3 tests into seperate test file.
|
|
|
|
|
|
|
|
Some of these tests are fs specific and don't work under newer ext3
|
|
|
|
disks. Move into a seperate directory and file.
|
|
|
|
|
|
|
|
Signed-off-by: Brandon Philips <bphilips@suse.de>
|
|
|
|
|
|
|
|
---
|
|
|
|
test/attr.test | 91 +++++++++++++++++++++++++------------------------------
|
|
|
|
test/ext/fs.test | 68 +++++++++++++++++++++++++++++++++++++++++
|
|
|
|
2 files changed, 111 insertions(+), 48 deletions(-)
|
|
|
|
|
|
|
|
Index: attr-2.4.43/test/attr.test
|
2007-10-26 20:09:10 +02:00
|
|
|
===================================================================
|
2009-01-09 01:27:12 +01:00
|
|
|
--- attr-2.4.43.orig/test/attr.test
|
|
|
|
+++ attr-2.4.43/test/attr.test
|
|
|
|
@@ -1,8 +1,4 @@
|
|
|
|
-Tests for extended attributes on ext2/ext3 file systems. The initial
|
|
|
|
-size checks and the file size checks are ext2/ext3 specific. The
|
|
|
|
-other setfattr/getfattr operations are designed to cover all special
|
|
|
|
-cases in the ext27ext3 kernel patches, but they should work on other
|
|
|
|
-filesystems as well.
|
|
|
|
+Tests for extended attributes on file systems.
|
|
|
|
|
|
|
|
Execute this test using the `run' script in this directory:
|
|
|
|
|
|
|
|
@@ -29,14 +25,6 @@ Try various valid and invalid names
|
|
|
|
$ setfattr -n user.n -v value f
|
|
|
|
$ rm f
|
2007-10-26 20:09:10 +02:00
|
|
|
|
2009-01-09 01:27:12 +01:00
|
|
|
-Size checks, for an ext2/ext3 file system with a block size of 4K
|
2007-10-26 20:09:10 +02:00
|
|
|
-
|
2009-01-09 01:27:12 +01:00
|
|
|
- $ touch f
|
|
|
|
- $ setfattr -n user.name -v 4040++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ f
|
|
|
|
- $ setfattr -n user.name -v 4041+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ f
|
|
|
|
- > setfattr: f: No space left on device
|
2007-10-26 20:09:10 +02:00
|
|
|
-
|
2009-01-09 01:27:12 +01:00
|
|
|
- $ rm f
|
2007-10-26 20:09:10 +02:00
|
|
|
|
2009-01-09 01:27:12 +01:00
|
|
|
Editing values
|
|
|
|
|
|
|
|
@@ -147,17 +135,30 @@ Test extended attribute block sharing
|
2007-10-26 20:09:10 +02:00
|
|
|
|
|
|
|
$ touch f g h
|
|
|
|
$ setfattr -n user.novalue f g h
|
2009-01-09 01:27:12 +01:00
|
|
|
- $ ls -s f g h
|
|
|
|
- > 4 f
|
|
|
|
- > 4 g
|
|
|
|
- > 4 h
|
|
|
|
-
|
|
|
|
+ $ getfattr f g h
|
|
|
|
+ > # file: f
|
|
|
|
+ > user.novalue
|
|
|
|
+ >
|
|
|
|
+ > # file: g
|
|
|
|
+ > user.novalue
|
|
|
|
+ >
|
|
|
|
+ > # file: h
|
|
|
|
+ > user.novalue
|
|
|
|
+ >
|
|
|
|
+
|
2007-10-26 20:09:10 +02:00
|
|
|
$ setfattr -n user.name -v value f
|
2009-01-09 01:27:12 +01:00
|
|
|
- $ ls -s f g h
|
|
|
|
- > 4 f
|
|
|
|
- > 4 g
|
|
|
|
- > 4 h
|
|
|
|
-
|
|
|
|
+ $ getfattr f g h
|
|
|
|
+ > # file: f
|
|
|
|
+ > user.name
|
|
|
|
+ > user.novalue
|
|
|
|
+ >
|
|
|
|
+ > # file: g
|
|
|
|
+ > user.novalue
|
|
|
|
+ >
|
|
|
|
+ > # file: h
|
|
|
|
+ > user.novalue
|
|
|
|
+ >
|
|
|
|
+
|
2007-10-26 20:09:10 +02:00
|
|
|
$ getfattr -d f g h
|
|
|
|
> # file: f
|
2009-01-09 01:27:12 +01:00
|
|
|
> user.name="value"
|
|
|
|
@@ -169,38 +170,32 @@ Test extended attribute block sharing
|
|
|
|
> # file: h
|
|
|
|
> user.novalue
|
|
|
|
>
|
|
|
|
-
|
|
|
|
+
|
2007-10-26 20:09:10 +02:00
|
|
|
$ setfattr -n user.name -v value g
|
2009-01-09 01:27:12 +01:00
|
|
|
- $ ls -s f g h
|
|
|
|
- > 4 f
|
|
|
|
- > 4 g
|
|
|
|
- > 4 h
|
|
|
|
-
|
|
|
|
- $ setfattr -x user.novalue h
|
|
|
|
- $ ls -s f g h
|
|
|
|
- > 4 f
|
|
|
|
- > 4 g
|
|
|
|
- > 0 h
|
|
|
|
-
|
|
|
|
- $ getfattr -d f g h
|
|
|
|
+ $ getfattr f g h
|
2007-10-26 20:09:10 +02:00
|
|
|
> # file: f
|
2009-01-09 01:27:12 +01:00
|
|
|
- > user.name="value"
|
|
|
|
+ > user.name
|
|
|
|
> user.novalue
|
|
|
|
>
|
|
|
|
> # file: g
|
|
|
|
- > user.name="value"
|
|
|
|
+ > user.name
|
|
|
|
> user.novalue
|
|
|
|
>
|
|
|
|
-
|
|
|
|
- $ setfattr -n user.name -v other-value g
|
|
|
|
- $ setfattr -n user.name -v value g
|
|
|
|
- $ setfattr -x user.name f g
|
|
|
|
- $ setfattr -x user.novalue f g
|
|
|
|
- $ ls -s f g h
|
|
|
|
- > 0 f
|
|
|
|
- > 0 g
|
|
|
|
- > 0 h
|
|
|
|
-
|
|
|
|
+ > # file: h
|
|
|
|
+ > user.novalue
|
|
|
|
+ >
|
2007-10-26 20:09:10 +02:00
|
|
|
+
|
2009-01-09 01:27:12 +01:00
|
|
|
+ $ setfattr -x user.novalue h
|
|
|
|
+ $ getfattr f g h
|
|
|
|
+ > # file: f
|
|
|
|
+ > user.name
|
|
|
|
+ > user.novalue
|
|
|
|
+ >
|
|
|
|
+ > # file: g
|
|
|
|
+ > user.name
|
|
|
|
+ > user.novalue
|
|
|
|
+ >
|
2007-10-26 20:09:10 +02:00
|
|
|
+
|
2009-01-09 01:27:12 +01:00
|
|
|
$ rm f g h
|
|
|
|
|
|
|
|
Attributes of symlinks vs. the files pointed to
|
|
|
|
Index: attr-2.4.43/test/ext/fs.test
|
2007-10-26 20:09:10 +02:00
|
|
|
===================================================================
|
|
|
|
--- /dev/null
|
2009-01-09 01:27:12 +01:00
|
|
|
+++ attr-2.4.43/test/ext/fs.test
|
|
|
|
@@ -0,0 +1,68 @@
|
|
|
|
+Tests for extended attributes on ext2/ext3 file systems. The initial
|
|
|
|
+size checks and the file size checks are ext2/ext3 specific. The
|
|
|
|
+other setfattr/getfattr operations are designed to cover all special
|
|
|
|
+cases in the ext27ext3 kernel patches, but they should work on other
|
|
|
|
+filesystems as well.
|
2007-10-30 01:29:16 +01:00
|
|
|
+
|
2009-01-09 01:27:12 +01:00
|
|
|
+Size checks, for an ext2/ext3 file system with a block size of 4K
|
2007-10-26 20:09:10 +02:00
|
|
|
+
|
2009-01-09 01:27:12 +01:00
|
|
|
+ $ touch f
|
|
|
|
+ $ setfattr -n user.name -v 4040++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ f
|
|
|
|
+ $ setfattr -n user.name -v 4041+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ f
|
|
|
|
+ > setfattr: f: No space left on device
|
2007-10-30 01:29:16 +01:00
|
|
|
+
|
2009-01-09 01:27:12 +01:00
|
|
|
+ $ rm f
|
2007-10-26 20:09:10 +02:00
|
|
|
+
|
2007-10-30 01:29:16 +01:00
|
|
|
+
|
2009-01-09 01:27:12 +01:00
|
|
|
+Test extended attribute block sharing
|
2007-10-30 01:29:16 +01:00
|
|
|
+
|
2009-01-09 01:27:12 +01:00
|
|
|
+ $ touch f g h
|
|
|
|
+ $ setfattr -n user.novalue f g h
|
|
|
|
+ $ ls -s f g h
|
|
|
|
+ > 4 f
|
|
|
|
+ > 4 g
|
|
|
|
+ > 4 h
|
2007-10-26 20:09:10 +02:00
|
|
|
+
|
2009-01-09 01:27:12 +01:00
|
|
|
+ $ setfattr -n user.name -v value f
|
|
|
|
+ $ ls -s f g h
|
|
|
|
+ > 4 f
|
|
|
|
+ > 4 g
|
|
|
|
+ > 4 h
|
2007-10-26 20:09:10 +02:00
|
|
|
+
|
2009-01-09 01:27:12 +01:00
|
|
|
+ $ getfattr -d f g h
|
2007-10-26 20:09:10 +02:00
|
|
|
+ > # file: f
|
2009-01-09 01:27:12 +01:00
|
|
|
+ > user.name="value"
|
|
|
|
+ > user.novalue
|
2007-10-26 20:09:10 +02:00
|
|
|
+ >
|
2009-01-09 01:27:12 +01:00
|
|
|
+ > # file: g
|
|
|
|
+ > user.novalue
|
|
|
|
+ >
|
|
|
|
+ > # file: h
|
|
|
|
+ > user.novalue
|
2007-10-26 20:09:10 +02:00
|
|
|
+ >
|
|
|
|
+
|
2009-01-09 01:27:12 +01:00
|
|
|
+ $ setfattr -n user.name -v value g
|
|
|
|
+ $ ls -s f g h
|
|
|
|
+ > 4 f
|
|
|
|
+ > 4 g
|
|
|
|
+ > 4 h
|
2007-10-26 20:09:10 +02:00
|
|
|
+
|
2009-01-09 01:27:12 +01:00
|
|
|
+ $ setfattr -x user.novalue h
|
|
|
|
+ $ ls -s f g h
|
|
|
|
+ > 4 f
|
|
|
|
+ > 4 g
|
|
|
|
+ > 0 h
|
2007-10-26 20:09:10 +02:00
|
|
|
+
|
2009-01-09 01:27:12 +01:00
|
|
|
+ $ setfattr -n user.name -v other-value g
|
|
|
|
+ $ setfattr -n user.name -v value g
|
|
|
|
+ $ setfattr -x user.name f g
|
|
|
|
+ $ setfattr -x user.novalue f g
|
|
|
|
+ $ ls -s f g h
|
|
|
|
+ > 0 f
|
|
|
|
+ > 0 g
|
|
|
|
+ > 0 h
|
|
|
|
+
|
|
|
|
+ $ rm f g h
|
2007-10-26 20:09:10 +02:00
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|