Hi Martin,
On Mon, Jul 11, 2005 at 10:28:07AM +0300, martin f krafft wrote:
> also sprach Nathan Scott <nathans@xxxxxxx> [2005.07.11.0448 +0300]:
> > Ah, OK thats more interesting then - can you describe the way in
> > which the Grub menu file is changed? e.g. ... is a new inode
> > created or is an existing one overwritten? is it written via
> > write(2) or mmap? Is it using buffered or direct IO? etc.
>
> I am using sed to edit inplace and from what I know about sed, it
> actually creates a new inode.
I don't seem to be able to reproduce this - does the following
recipe fail for you on your machine? Maybe your kernels a bit
out of date? (what version was that again?)
> mount | tail -1
/dev/sdb5 on /mnt/xfs0 type xfs (rw,rtdev=/dev/sdc1,logdev=/dev/sda11,uquota)
> su
[root@bruce xfstests]#
[root@bruce xfstests]# xfs_freeze
Usage: xfs_freeze -f | -u <mountpoint>
[root@bruce xfstests]# echo writeme > /mnt/xfs0/foo
[root@bruce xfstests]# xfs_freeze -f /mnt/xfs0
[root@bruce xfstests]# xfs_freeze -u /mnt/xfs0
[root@bruce xfstests]# reboot -f
Read from remote host bruce: Connection reset by peer
Connection to bruce closed.
$ ssh bruce -l fsgqa
fsgqa has logged on pts/0 from sheila.
> su
[root@bruce fsgqa]# mount -o rw,rtdev=/dev/sdc1,logdev=/dev/sda11,uquota
/dev/sdb5 /mnt/xfs0
[root@bruce fsgqa]# cat /mnt/xfs0/foo
writeme
[root@bruce fsgqa]#
cheers.
--
Nathan
|