Displaying 19 results from an estimated 19 matches for "fs_uuid".
Did you mean:
fs_guid
2013 Nov 19
2
[PATCH] Add filesystem UUID to SYSAPPEND for FAT
....c
+++ b/core/fs/btrfs/btrfs.c
@@ -674,5 +674,6 @@ const struct fs_ops btrfs_fs_ops = {
.next_extent = btrfs_next_extent,
.readdir = btrfs_readdir,
.chdir_start = generic_chdir_start,
- .open_config = generic_open_config
+ .open_config = generic_open_config,
+ .fs_uuid = NULL,
};
diff --git a/core/fs/ext2/ext2.c b/core/fs/ext2/ext2.c
index 957c60b..df0856f 100644
--- a/core/fs/ext2/ext2.c
+++ b/core/fs/ext2/ext2.c
@@ -336,4 +336,5 @@ const struct fs_ops ext2_fs_ops = {
.readlink = ext2_readlink,
.readdir = ext2_readdir,
.next_exte...
2013 Nov 21
0
[PATCH] FSUUID for ext2 filesystem
...ro */
cache_init(fs->fs_dev, fs->block_shift);
cs = _get_cache_block(fs->fs_dev, 0);
@@ -321,6 +324,41 @@ static int ext2_fs_init(struct fs_info *fs)
return fs->block_shift;
}
+#define EXT2_UUID_LEN (4 + 4 + 1 + 4 + 1 + 4 + 1 + 4 + 1 + 4 + 4 + 4 + 1)
+static char *ext2_fs_uuid(struct fs_info *fs)
+{
+ char *uuid = NULL;
+
+ uuid = malloc(EXT2_UUID_LEN);
+ if (!uuid)
+ return NULL;
+
+ if (snprintf(uuid, EXT2_UUID_LEN,
+ "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",
+ EXT2_SB(fs)->s_uuid[0],
+...
2009 Nov 14
2
[PATCH] btrfs-progs: Check mount status of multidevice filesystems
...RDWR, check_mount);
else
- ret = btrfs_open_devices(fs_devices, O_RDONLY);
+ ret = btrfs_open_devices(fs_devices, O_RDONLY, check_mount);
BUG_ON(ret);
fs_info->super_bytenr = sb_bytenr;
@@ -725,7 +725,7 @@ struct btrfs_root *open_ctree_fd(int fp, const char *path, u64 sb_bytenr,
BTRFS_UUID_SIZE);
if (!(btrfs_super_flags(disk_super) & BTRFS_SUPER_FLAG_METADUMP)) {
- ret = btrfs_read_chunk_tree(chunk_root);
+ ret = btrfs_read_chunk_tree(chunk_root, check_mount);
BUG_ON(ret);
}
diff --git a/disk-io.h b/disk-io.h
index 49e5692..1d6519e 100644
--- a/disk-io.h
+++ b/disk-i...
2009 Jan 16
4
[PATCH] Btrfs: simplify iteration codes
...u64 devid, u8 *uuid)
{
struct btrfs_device *dev;
- struct list_head *cur;
- list_for_each(cur, head) {
- dev = list_entry(cur, struct btrfs_device, dev_list);
+ list_for_each_entry(dev, head, dev_list) {
if (dev->devid == devid &&
(!uuid || !memcmp(dev->uuid, uuid, BTRFS_UUID_SIZE))) {
return dev;
@@ -118,11 +116,9 @@ static noinline struct btrfs_device *__find_device(struct list_head *head,
static noinline struct btrfs_fs_devices *find_fsid(u8 *fsid)
{
- struct list_head *cur;
struct btrfs_fs_devices *fs_devices;
- list_for_each(cur, &fs_uuids) {
- fs_...
2013 Oct 25
8
[PATCH] btrfs: add framework to read fs info from btrfs-control
...on count exceed the num of fs list
+ * in the kernel
+ */
+int btrfs_get_fslist(struct btrfs_ioctl_fslist_args *fslist_arg,
+ struct btrfs_ioctl_fslist *fslist)
+{
+ u64 cnt = 0, ucnt;
+ struct btrfs_fs_devices *fs_devices;
+
+ ucnt = fslist_arg->count;
+
+ list_for_each_entry(fs_devices, &fs_uuids, list) {
+ if (cnt < ucnt) {
+ memcpy(fslist->fsid, fs_devices->fsid,
+ BTRFS_FSID_SIZE);
+ fslist->num_devices = fs_devices->num_devices;
+ fslist->missing_devices = fs_devices->missing_devices;
+ fslist->total_devices = fs_devices->total_devices;
+
+ if...
2013 Sep 05
6
[PATCH 1/5] sysprep: remove /var/log/audit/audit.log
audit.log is already included in /var/log/audit/*.
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
---
sysprep/sysprep_operation_logfiles.ml | 1 -
1 file changed, 1 deletion(-)
diff --git a/sysprep/sysprep_operation_logfiles.ml b/sysprep/sysprep_operation_logfiles.ml
index 842b855..cdfe8fc 100644
--- a/sysprep/sysprep_operation_logfiles.ml
+++
2020 May 07
0
[PATCH v2 2/2] sysprep: add Kerberos keytab file removal
...2 files changed, 39 insertions(+)
create mode 100644 sysprep/sysprep_operation_kerberos_hostkeytab.ml
diff --git a/sysprep/Makefile.am b/sysprep/Makefile.am
index 43137ce65..95cc7e358 100644
--- a/sysprep/Makefile.am
+++ b/sysprep/Makefile.am
@@ -44,6 +44,7 @@ operations = \
firewall_rules \
fs_uuids \
kerberos_data \
+ kerberos_hostkeytab \
lvm_uuids \
logfiles \
machine_id \
diff --git a/sysprep/sysprep_operation_kerberos_hostkeytab.ml b/sysprep/sysprep_operation_kerberos_hostkeytab.ml
new file mode 100644
index 000000000..cb3023353
--- /dev/null
+++ b/sysprep/sysprep_operation_kerbe...
2013 Sep 05
0
[PATCH 5/5] sysprep: remove iptables rules
...+++++++++++++++++++
2 files changed, 46 insertions(+)
create mode 100644 sysprep/sysprep_operation_iptables.ml
diff --git a/sysprep/Makefile.am b/sysprep/Makefile.am
index ec6c2bc..3da99c1 100644
--- a/sysprep/Makefile.am
+++ b/sysprep/Makefile.am
@@ -43,6 +43,7 @@ operations = \
firstboot \
fs_uuids \
hostname \
+ iptables \
kerberos_data \
lvm_uuids \
logfiles \
diff --git a/sysprep/sysprep_operation_iptables.ml b/sysprep/sysprep_operation_iptables.ml
new file mode 100644
index 0000000..e36a005
--- /dev/null
+++ b/sysprep/sysprep_operation_iptables.ml
@@ -0,0 +1,45 @@
+(* virt-syspre...
2013 Sep 06
0
[PATCH 3/5] sysprep: remove the custom kdump configurations
...+++++++++++++++
2 files changed, 45 insertions(+)
create mode 100644 sysprep/sysprep_operation_kdump_config.ml
diff --git a/sysprep/Makefile.am b/sysprep/Makefile.am
index 9894baf..eb372aa 100644
--- a/sysprep/Makefile.am
+++ b/sysprep/Makefile.am
@@ -44,6 +44,7 @@ operations = \
firstboot \
fs_uuids \
hostname \
+ kdump_config \
kerberos_data \
lvm_uuids \
logfiles \
diff --git a/sysprep/sysprep_operation_kdump_config.ml b/sysprep/sysprep_operation_kdump_config.ml
new file mode 100644
index 0000000..358f97d
--- /dev/null
+++ b/sysprep/sysprep_operation_kdump_config.ml
@@ -0,0 +1,44 @@...
2013 Sep 05
1
[PATCH V2] sysprep: remove firewall rules
...p_operation_firewall_rules.ml
diff --git a/sysprep/Makefile.am b/sysprep/Makefile.am
index ec6c2bc..fcd17fc 100644
--- a/sysprep/Makefile.am
+++ b/sysprep/Makefile.am
@@ -40,6 +40,7 @@ operations = \
dhcp_server_state \
dovecot_data \
flag_reconfiguration \
+ firewall_rules \
firstboot \
fs_uuids \
hostname \
diff --git a/sysprep/sysprep_operation_firewall_rules.ml b/sysprep/sysprep_operation_firewall_rules.ml
new file mode 100644
index 0000000..598b2e1
--- /dev/null
+++ b/sysprep/sysprep_operation_firewall_rules.ml
@@ -0,0 +1,54 @@
+(* virt-sysprep
+ * Copyright (C) 2013 Fujitsu Limited...
2013 Sep 05
2
Re: [PATCH 5/5] sysprep: remove iptables rules
...rtions(+)
> create mode 100644 sysprep/sysprep_operation_iptables.ml
>
> diff --git a/sysprep/Makefile.am b/sysprep/Makefile.am
> index ec6c2bc..3da99c1 100644
> --- a/sysprep/Makefile.am
> +++ b/sysprep/Makefile.am
> @@ -43,6 +43,7 @@ operations = \
> firstboot \
> fs_uuids \
> hostname \
> + iptables \
> kerberos_data \
> lvm_uuids \
> logfiles \
> diff --git a/sysprep/sysprep_operation_iptables.ml b/sysprep/sysprep_operation_iptables.ml
> new file mode 100644
> index 0000000..e36a005
> --- /dev/null
> +++ b/sysprep/sysprep_oper...
2020 May 07
3
[PATCH v2 0/2] add FreeIPA offline unenrollment (RHBZ#1789592)
This patch series adds a new virt-sysprep operation to offline unenroll
a guest from FreeIPA. It does so by removing some configuration files
and certificates.
Changes from v1:
- the other patches were pushed, as unrelated and approved
- created a new kerberos-hostkeytab operation
Pino Toscano (2):
sysprep: add IPA offline unenrollment (RHBZ#1789592)
sysprep: add Kerberos keytab file removal
2023 Jan 06
2
Looking for a RAID1 box
Once upon a time, Simon Matter <simon.matter at invoca.ch> said:
> Are you sure that's still true? I've done it that way in the past but it
> seems at least with EL8 you can put /boot/efi on md raid1 with metadata
> format 1.0. That way the EFI firmware will see it as two independent FAT
> filesystems. Only thing you have to be sure is that nothing ever writes to
>
2013 Sep 06
7
[PATCH 1/5] sysprep: remove tmp files
This removes tmp files under /tmp and /var/tmp.
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
---
sysprep/Makefile.am | 1 +
sysprep/sysprep_operation_tmp_files.ml | 52 ++++++++++++++++++++++++++++++++++
2 files changed, 53 insertions(+)
create mode 100644 sysprep/sysprep_operation_tmp_files.ml
diff --git a/sysprep/Makefile.am b/sysprep/Makefile.am
index
2011 Mar 06
10
grub commands problem with Ubuntu 10.04
Following is one grub entry
menuentry "Ubuntu, Linux 2.6.32.27" {
insmod ntfs
set root=''(hd0,2)''
search --no-floppy --fs-uuid --set 96f65c80f65c6313
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.32.27 root=/dev/sda2
loop=/ubuntu/disks/root.disk ro quiet splash
initrd
2011 Dec 09
10
[PATCH 0/3] Btrfs: add IO error device stats
The goal is to detect when drives start to get an increased error rate,
when drives should be replaced soon. Therefore statistic counters are
added that count IO errors (read, write and flush). Additionally, the
software detected errors like checksum errors and corrupted blocks are
counted.
An ioctl interface is added to get the device statistic counters.
A second ioctl is added to atomically get
2013 Dec 12
10
[PATCH 0/4] Turn-key PV-GRUB2 installation
This patch set should make it easier to maintain PV-GRUB2 installations.
The general idea is based on discussions I had with Xen developers
(mainly Ian Jackson) at the Ubuntu Developer Summit in May 2011; though
I never did manage to get the core port done and Vladimir beat me to
that, I think the configuration approach we discussed there is still
valid and useful.
The idea here is that people
2012 May 25
6
[PATCH v5 0/3] Btrfs: add IO error device stats
Changes v1-v2:
- Remove restriction that BTRFS_IOC_GET_DEVICE_STATS is a privileged
operation
- Cast u64 to unsigned long long for printf()
Changes v2-v3:
- Rebased on Chris'' current master
Changes v3-v4:
- Add padding at end of ioctl structure
Changes v4-v5:
- The statistic members in the ioctl are now organized as an array of
64 bit values. Symbolic names for the array indexes
2011 Mar 08
6
[PATCH v1 0/6] btrfs: scrub
This series adds an initial implementation for scrub. It works quite
straightforward. The usermode issues an ioctl for each device in the
fs. For each device, it enumerates the allocated device chunks. For
each chunk, the contained extents are enumerated and the data checksums
fetched. The extents are read sequentially and the checksums verified.
If an error occurs (checksum or EIO), a good copy