| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
And order the patches a bit.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The last change to unfs3 repaired some things for symlinks but in return
broke stuff for regular files.
With this change the previous attempt is replaced by something better
tested now.
Instead of letting unfs open the file to adapt, use fchmodat() et al,
which are racy if the underlaying filesystem changes, but on the nfs
side it is fine.
Fixes: 4e21b490eb28 ("unfs3: fix attribute setting for symlinks")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
[mol: simplify patch]
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
unfs makes use of utime() which is unsuitable to set last access and
modification times for symlinks. So make use of the O_PATH flag to
open() and use the futimens() function.
As a side effect this is less racy and improves resolution from seconds
to nanoseconds.
Note this will break builds of unfs on Windows. The futimens() function
is specified in POSIX.1-2008, so this shouldn't be a problem for other
platforms.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Message-Id: <20200218145720.4992-1-u.kleine-koenig@pengutronix.de>
[mol: fix path author as requested]
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
There seems to be a slightly different behaviour to Sun RPC.
Without this listen() is never called and unfsd runs in a busy loop.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
This is needed to build unfs3 on distributions with a glibc with disabled
sunrpc, such as Arch Linux.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
| |
This should fix "unable to send RPC reply" errors.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
| |
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
| |
call realpath() with the correct path.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|