Re: Use of directories to hold root?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jan Engelhardt wrote:
> On Aug 12 2007 21:23, Al Viro wrote:
>>> pivot_root is atomic afaict, for `mount --move` (which I think Al meant 
>>> which MS_MOVE - or some C program using mount(2) of your own), you'd 
>>> need multiple calls to mount.
>> Move itself is done by a single syscall anyway...
>>
> Yes, but you need needed 2 mounts, 1 chdir and one chroot. Plus, you 
> have not freed the data in the rootfs. (Well, neither does 
> pivot_root, but run-init from klibc will.)

Yes, which is why it is highly inappropriate for this particular case,
since they have multiple roots that they presumably don't want deleted!

	-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux