Re: [PATCH 00/13] overlay filesystem: request for inclusion (v16)

From: Miklos Szeredi
Date: Mon Mar 18 2013 - 07:27:26 EST


On Thu, Mar 14, 2013 at 11:59 PM, Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
> Huh?
> * from st_mode point of view, it's not going to conflict with
> anything; FFS "entry type" matches bits 12..15 of mode_t, and the value
> picked by whoever had first implemented whiteouts had been chosen so
> that it would not clash with any existing values. We have
> #define S_IFMT 00170000
> #define S_IFSOCK 0140000
> #define S_IFLNK 0120000
> #define S_IFREG 0100000
> #define S_IFBLK 0060000
> #define S_IFDIR 0040000
> #define S_IFCHR 0020000
> #define S_IFIFO 0010000
> and this sucker would've been 0160000; new filesystem object types are not
> frequently introduced, to put it mildly, so I wouldn't expect clashes.

I'm worried exactly because new filetypes are introduced so
infrequently. No such thing happened during the lifetime of Linux,
AFAICT. Backup/restore tools are not going to handle it. File
managers are not going to show anything sane (and quite possibly some
will simply crash).

Yes, all that can be fixed, but it will be a slow and painful process,
since union/overlay type filesystems are themselves quite specialized
and problems are not going to be shaken out quickly with userspace
interaction. On the other hand if a whiteout is exported to userspace
as a symlink with xattrs, there will be much less of those problems.

BTW I'm not against adding whiteout support to the VFS and possibly to
filesystems to clean up the security uglilness and optimize storage.

But I think the most important aspect is the userspace interface and
I'm far from sure that a new filetype is the best solution here.

Thanks,
Miklos
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/