Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
struct lo_inode *next; /* protected by lo->mutex */
struct lo_inode *prev; /* protected by lo->mutex */
int fd;
+ bool is_symlink;
ino_t ino;
dev_t dev;
uint64_t refcount; /* protected by lo->mutex */
if (!inode)
goto out_err;
+ inode->is_symlink = S_ISLNK(e->attr.st_mode);
inode->refcount = 1;
inode->fd = newfd;
inode->ino = e->attr.st_ino;
lo.debug = opts.debug;
lo.root.refcount = 2;
+ lo.root.is_symlink = false;
lo.root.fd = open("/", O_PATH);
if (lo.root.fd == -1)
err(1, "open(\"/\", O_PATH)");