Re: [PATCH 3/3] Add timeout feature



On Wed, 9 Jul 2008, Dave Chinner wrote:
On Wed, Jul 09, 2008 at 09:13:34AM +0200, Miklos Szeredi wrote:
On Wed, 9 Jul 2008, Dave Chinner wrote:
The argument against Miklos' version is that there may be multiple
commands to execute while the fs is frozen.

Which is what a shell is for ;)

Yeah, weĺl, with your method I ca't tell a user to:

# xfs_freeze -f /mntpt
# xfs_db -r -c 'sb 0' -c 'p rootino' /dev/foo
128
# xfs_db -r -c 'ino 128' -c 'p core.format' /dev/foo
core.format = 2 (extents)
# xfs_db .....
.....
# xfs_freeze -u /mntpt

i.e. using the freeze to force all metadata to disk and
prevent it from changing while doing interactive debugging
of some problem.

# run_freeze /mntpt /bin/bash
# ...
# ^D

It's the same, no?

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



Relevant Pages

  • Re: Redirection issue
    ... 1- execute input commands from standard input, ... the phrase "it does not work anymore" carries very little meaning. ... after compilation and execution of the shell with a simple command like ...
    (comp.lang.c)
  • Re: Redirection issue
    ... 1- execute input commands from standard input, ... code to implement the redirection it does not work anymore. ... And it's not good shell behavior to echo commands anyway. ...
    (comp.lang.c)
  • Re: Redirection issue
    ... 1- execute input commands from standard input, ... "does not work" could be anything from not compiling, not executing, ... after compilation and execution of the shell with a simple command like ...
    (comp.lang.c)
  • vulnerabilities in scponly
    ... without allowing shell access. ... scponly makes no effort to verify the path to the scp or sftp-server ... arbitrary commands by simply uploading a file. ... However, if this is *NOT* the case, the user could execute arbitrary ...
    (Bugtraq)
  • Re: how to make function known to subshell
    ... In my .profile I source a file with a my shell functions, ... When I open a new ksh shell or execute a shell script, ... > must resort to aliases and functions. ... builtin commands have a higher ...
    (comp.unix.shell)