xfs
[Top] [All Lists]

BUG 797255 - fsr_xfs does not work when passed a file name

To: pv@xxxxxxxxxxxxx (lord@xxxxxxx)
Subject: BUG 797255 - fsr_xfs does not work when passed a file name
From: William L Jones <jones@xxxxxxxxxxxxxxxxxx>
Date: Tue, 25 Jul 2000 19:03:48 -0500 (CDT)
Cc: btg@xxxxxxx, linux-xfs@xxxxxxxxxxx
Sender: owner-linux-xfs@xxxxxxxxxxx

Linux requires that the fd in the open_by_handle ioctl be a directory.

The following patch will fix BUG 797255:


*** fsr_xfs.c.orig      Tue Jul 25 18:34:36 2000
--- fsr_xfs.c   Tue Jul 25 18:37:14 2000
***************
*** 688,694 ****
        int     error;
        char    *tname;

!       fshandlep = jdm_getfshandle( fname );
        if (! fshandlep) {
                fsrprintf(
                  "unable to construct sys handle for %s: %s\n",
--- 688,694 ----
        int     error;
        char    *tname;

!       fshandlep = jdm_getfshandle(getparent (fname) );
        if (! fshandlep) {
                fsrprintf(
                  "unable to construct sys handle for %s: %s\n",


<Prev in Thread] Current Thread [Next in Thread>