[rhinstaller/blivet/pulls/99 master] Do not update size information on LVM snapshots

dwlehman installerbot-noreply at redhat.com
Thu May 7 16:51:43 UTC 2015


Is this for old-style snapshots or thin snapshots or both?

For the old-style snapshots there is always a <snapshot_name>-cow lv that will give the correct size, eg:

```
[root at localhost blivet]# lvs blivet
  LV            VG     Attr       LSize   Pool Origin  Data%  Meta%  Move Log Cpy%Sync Convert
  private       blivet owi-a-s--- 256.00m                                                     
  private-snap1 blivet swi-a-s--- 200.00m      private 0.00                                   
[root at localhost blivet]# ls -l /dev/mapper/blivet-*
lrwxrwxrwx. 1 root root 7 May  7 11:39 /dev/mapper/blivet-private -> ../dm-3
lrwxrwxrwx. 1 root root 7 May  7 11:39 /dev/mapper/blivet-private-real -> ../dm-2
lrwxrwxrwx. 1 root root 7 May  7 11:39 /dev/mapper/blivet-private--snap1 -> ../dm-5
lrwxrwxrwx. 1 root root 7 May  7 11:39 /dev/mapper/blivet-private--snap1-cow -> ../dm-4
[root at localhost blivet]# cat /sys/block/dm-3/size
524288
[root at localhost blivet]# cat /sys/block/dm-4/size
409600
[root at localhost blivet]# cat /sys/block/dm-5/size
524288
```

I think the size is reported correctly for thin snapshots using the normal methods (not the trick above) .
-- 
To view this pull request on github, visit https://github.com/rhinstaller/blivet/pull/99


More information about the anaconda-patches mailing list