[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC] redoxfs.pk: Pickle for RedoxFS file system
From: |
Mohammad-Reza Nabipoor |
Subject: |
Re: [RFC] redoxfs.pk: Pickle for RedoxFS file system |
Date: |
Sat, 19 Dec 2020 21:11:20 +0330 |
Hi.
On Sat, Dec 19, 2020 at 07:30:25AM +0100, Jose E. Marchesi wrote:
>
> >> I assume you can have symlinks to both files and directories in that
> >> filesystem...
> >
> > Symlink is a file that contains the path to the destination. Kind of a
> > simple text file.
>
> Oh, so FS_MODE_SYMLINK is also exclusive?
> Then the optimization above applies too!
Most significant nibble of `mode` field defines the type of node:
0b1000 -> FILE
0b0100 -> DIR
0b1010 -> SYMLINK
We need two methods `is_dir_p` and `is_symlink_p`.
Re: [RFC] redoxfs.pk: Pickle for RedoxFS file system, Jose E. Marchesi, 2020/12/18