|
@@ -128,13 +128,14 @@ class ArchiverTestCase(ArchiverTestCaseBase):
|
|
os.mknod('input/bdev', 0o600 | stat.S_IFBLK, os.makedev(10, 20))
|
|
os.mknod('input/bdev', 0o600 | stat.S_IFBLK, os.makedev(10, 20))
|
|
# Char device
|
|
# Char device
|
|
os.mknod('input/cdev', 0o600 | stat.S_IFCHR, os.makedev(30, 40))
|
|
os.mknod('input/cdev', 0o600 | stat.S_IFCHR, os.makedev(30, 40))
|
|
- if xattr.is_enabled():
|
|
|
|
- xattr.setxattr(os.path.join(self.input_path, 'file1'), 'user.foo', b'bar')
|
|
|
|
# Hard link
|
|
# Hard link
|
|
os.link(os.path.join(self.input_path, 'file1'),
|
|
os.link(os.path.join(self.input_path, 'file1'),
|
|
os.path.join(self.input_path, 'hardlink'))
|
|
os.path.join(self.input_path, 'hardlink'))
|
|
# Symlink
|
|
# Symlink
|
|
os.symlink('somewhere', os.path.join(self.input_path, 'link1'))
|
|
os.symlink('somewhere', os.path.join(self.input_path, 'link1'))
|
|
|
|
+ if xattr.is_enabled():
|
|
|
|
+ xattr.setxattr(os.path.join(self.input_path, 'file1'), 'user.foo', b'bar')
|
|
|
|
+ xattr.setxattr(os.path.join(self.input_path, 'link1'), 'user.foo_symlink', b'bar_symlink', follow_symlinks=False)
|
|
# FIFO node
|
|
# FIFO node
|
|
os.mkfifo(os.path.join(self.input_path, 'fifo1'))
|
|
os.mkfifo(os.path.join(self.input_path, 'fifo1'))
|
|
|
|
|