[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [Linux-cachefs] mount -o remount?
- From: Daire Byrne <Daire Byrne framestore com>
- To: Linux filesystem caching discussion list <linux-cachefs redhat com>
- Subject: Re: [Linux-cachefs] mount -o remount?
- Date: Wed, 6 May 2009 15:36:09 +0100 (BST)
David,
----- "David Howells" <dhowells redhat com> wrote:
>
> Did you get it to pass the option to the kernel?
>
Unfortunately my programming skills are just not good enough to figure out the structure of busybox's mount:
http://sources.busybox.net/index.py/trunk/busybox/util-linux/mount.c?diff_format=h&revision=26173&view=markup
However, I have just managed to find a workaround that I can use whereby I mount the root NFS filesystem, chroot into it and then use the "proper" mount command to mount the NFS root filesystem again. Something like:
mount -t nfs -o nolock,ro,tcp ${NFS_SERVER}:${NFS_ROOT} /mnt/nfsroot
chroot /mnt/nfsroot mount -o fsc,nolock,ro ${NFS_SERVER}:${NFS_ROOT} /mnt/nfsroot
mount --move /mnt/nfsroot/mnt/nfsroot /mnt/sysroot
umount /mnt/nfsroot
mount --move /mnt/sysroot /mnt/nfsroot
Slightly convoluted but it works. Starting cachefilesd not long after this seems to be doing what I want too.
Thanks,
Daire
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]