[prev in list] [next in list] [prev in thread] [next in thread] 

List:       systemd-devel
Subject:    [systemd-devel] Question about mount unit generators
From:       zbyszek () in ! waw ! pl (=?UTF-8?B?WmJpZ25pZXcgSsSZZHJ6ZWpld3NraS1Tem1law==?=)
Date:       2012-07-25 20:24:39
Message-ID: 50105607.3060901 () in ! waw ! pl
[Download RAW message or body]

On 07/25/2012 08:28 PM, Manuel Amador (Rudd-O) wrote:
> As you can tell from my code:
> 
> https://github.com/Rudd-O/zfs/blob/master/systemd/systemd-zfs-generator.in
> 
> I carefully calculate dependencies so the file systems are mounted in
> the correct order.
> 
> Now that fstab unit generation is moving to a generator, I read the code
> in systemd.git.  I discovered it does not calculate dependencies (what
> file systems to mount first) at all.  It just sets very simple befores=
> and afters=.
> 
> However, the proper dependencies DO show when I do systemctl show (resp.
> mount unit).
> 
> Thus my question:
> 
> Would it be correct to say that the generator I wrote absolutely does
> not need to calculate parent file system dependencies, because some
> black magic inside systemd / systemctl knows to figure out the parent
> file system dependencies thus guarantees mounting in the right order??

You mean that "If an mount point is beneath another mount point in the file
system hierarchy, a dependency between both units is created
automatically."?
So it says in systemd.mount(5).

Zbyszek

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic