On 28 May 2001, Alexandre Oliva wrote:
> On May 28, 2001, "Bernhard R. Erdmann" <be@xxxxxxxxxxx> wrote:
>
> > /usr/sbin/xfsrestore: ERROR: Current directory not XFS: /tmp/amanda
>
> > I consider this being a bug: no actual restore is done, so CWD's
> > filesystem doesn't matter.
>
> I'd go even further: xfsrestore should be capable of restoring onto
> non-XFS filesystems. What should matter is the format of the backup
> image, not the underlying representation of data on the filesystem to
> which files are being restored.
xfsrestore _is capable_ of restoring onto non-XFS filesystems - it's just
that your cwd needs to be on an XFS filesystem. The reason for this is
not clear, but there are comments in the code about wanting to create
temporary directories. I guess it's possible that xfsrestore wants to
write extended attributes into the temporary directory, or do some other
XFS specific thing ... I don't know. Whoever gets the chance to look into
will find out.
At the moment though, while xfsrestore may complain that it can't
preallocate space, it will continue to restore files into ext2. Of
course, extended attributes wont get restored.
But your point is taken - xfsrestore should behave nicely on non-xfs
filesystems in general.
Ivan
--
Ivan Rayner
ivanr@xxxxxxxxxxxxxxxxx
|