Merge lp:~colin-king/ubuntu/wily/mountall/zfs-support into lp:ubuntu/wily/mountall
Status: | Rejected |
---|---|
Rejected by: | Martin Pitt |
Proposed branch: | lp:~colin-king/ubuntu/wily/mountall/zfs-support |
Merge into: | lp:ubuntu/wily/mountall |
Diff against target: |
151 lines (+102/-4) 1 file modified
src/mountall.c (+102/-4) |
To merge this branch: | bzr merge lp:~colin-king/ubuntu/wily/mountall/zfs-support |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Pitt | Needs Information | ||
Review via email:
|
Description of the change
I am proposing the following ZFS related patches to be merged into mountall. These patches are directly from Ubuntu ZFS on Linux (https:/
Unmerged revisions
- 467. By Colin Ian King
-
* Handle duplicate mountpoints.
When mountall is iterating in try_mounts() on new mount point, change
is_parent() to return false when a record is tested against itself
because a mount point cannot be a root of itself.Mountall does not preserve the behavior of `mount -a` if more than
one device shares a mountpoint in the /etc/fstab file. Suppose:/var/tmp/ alfa /mnt/charlie ext2 loop 0 0
/var/tmp/ bravo /mnt/charlie ext2 loop 0 0 Both filesystems are mounted on /mnt/charlie by `mount -a`, but
bravo is ignored by `mountall`. This seems to be an artifact of the fix for
LP: #443035 in zfsonlinux/mountall@ eca315d06ae4a29 13f9b2ec994c68c 45fead912f. Furthermore, mountall hangs if such mounts are ZFS datasets or A
Closes: zfsonlinux/
mountall# 5
Darik Horn <email address hidden>, Fri, 27 Mar 2013 22:29:47 -0600 - 466. By Colin Ian King
-
* no filesystem should depend on mounting swap first
mk01 <email address hidden>, Fri, 1 Feb 2013 02:06:57 +0100 - 465. By Colin Ian King
-
* readonly and atime options reflected during mount
Matus Kral <email address hidden>, Wed, 30 Jan 2013 08:09:00 +0100 - 464. By Colin Ian King
-
* Disregard the 'mounted' dataset property.
If `/etc/mtab` is not a symlink to `/proc/mounts`, and if it contains stale
records, then `zfs list` returns incorrect 'mounted' values that cause
corresponding datasets to be ignored.The mounted check is unnecessary (and the problem), since mountall checks if
the mountpoints are already mounted before it spawns a mount job - but zfs list
checks mtab before it's been written by mountall (and any stale mountpoints get
misrepresented). Removing that check, everything seems to work fine (mounts
correctly on startup, doesn't overmount things when run from the command line
in a running session).
Will Rouesnel <email address hidden>, Thu, 27 Dec 2012 05:59:37 -0600 - 463. By Colin Ian King
-
* Add ZFS support.
Pretend that the output of `zfs list` is appended to the `/etc/fstab` file
Darik Horn <email address hidden>, Sun, 6 Nov 2011 00:00:00 -0500
Does that actually still make sense as we now have systemd? I doubt zfs is going to be used on phones (where we still use mountall and upstart). Does systemd's fstab generator need changes to generate .mount units for ZFS?