Re: [PATCH 15/35] Unionfs: Common file operations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Dec 4 2006 07:30, Josef 'Jeff' Sipek wrote:

>+long unionfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
>+{
>+	long err;
>+
>+	if ((err = unionfs_file_revalidate(file, 1)))
>+		goto out;
>+
>+	/* check if asked for local commands */
>+	switch (cmd) {
>+		case UNIONFS_IOCTL_INCGEN:
>+			/* Increment the superblock generation count */
>+			err = -EACCES;
>+			if (!capable(CAP_SYS_ADMIN))
>+				goto out;
>+			err = unionfs_ioctl_incgen(file, cmd, arg);
>+			break;
>+
>+		case UNIONFS_IOCTL_QUERYFILE:
>+			/* Return list of branches containing the given file */
>+			err = unionfs_ioctl_queryfile(file, cmd, arg);
>+			break;
>+
>+		default:
>+			/* pass the ioctl down */
>+			err = do_ioctl(file, cmd, arg);
>+			break;
>+	}
>+
>+out:
>+	return err;
>+}


I think there was an ioctl for files to find out where a particular
file lives on disk. Do you think unionfs should handle it and return
something more or less meaningful?


	-`J'
-- 
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux