• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1debugfs edit extended attributes
2mke2fs -Fq -b 1024 test.img 512
3Exit status is 0
4ea_set / user.joe smith
5Exit status is 0
6ea_set / user.moo FEE_FIE_FOE_FUMMMMMM
7Exit status is 0
8ea_list /
9Extended attributes:
10  user.joe (5) = "smith"
11  user.moo (20) = "FEE_FIE_FOE_FUMMMMMM"
12Exit status is 0
13ea_get / user.moo
14user.moo (20) = "FEE_FIE_FOE_FUMMMMMM"
15
16Exit status is 0
17ea_get / nosuchea
18ea_get: Extended attribute key not found while getting extended attribute
19Exit status is 0
20ea_rm / user.moo
21Exit status is 0
22ea_rm / nosuchea
23Exit status is 0
24ea_list /
25Extended attributes:
26  user.joe (5) = "smith"
27Exit status is 0
28ea_get / user.moo
29ea_get: Extended attribute key not found while getting extended attribute
30Exit status is 0
31ea_rm / user.joe
32Exit status is 0
33ea_list /
34Exit status is 0
35ea_set -f d_xattr_edits.tmp / user.file_based_xattr
36Exit status is 0
37ea_list /
38Extended attributes:
39  user.file_based_xattr (108)
40Exit status is 0
41ea_get / user.file_based_xattr
42user.file_based_xattr (108) = "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567\n"
43
44Exit status is 0
45ea_get -f d_xattr_edits.ver.tmp / user.file_based_xattr
46Exit status is 0
47Compare big attribute
48e2fsck -yf -N test_filesys
49Pass 1: Checking inodes, blocks, and sizes
50Pass 2: Checking directory structure
51Pass 3: Checking directory connectivity
52Pass 4: Checking reference counts
53Pass 5: Checking group summary information
54test_filesys: 11/64 files (0.0% non-contiguous), 29/512 blocks
55Exit status is 0
56