Re: [RFC Aufs2 #2 21/28] aufs sysfs entries

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

 



Thank you very much for reviewing.

Greg KH:
> > +/* todo: file size may exceed PAGE_SIZE */
> > +ssize_t sysaufs_si_show(struct kobject *kobj, struct attribute *attr,
> > +			 char *buf)
> 
> NO IT CAN NOT!!!!
> 
> You are using sysfs wrong if you even think you are getting close to
> PAGE_SIZE.

The main reason I left a comment about PAGE_SIZE is that some of aufs
entry under sysfs contain the file path. And I don't think it is a good
idea to create a symlink since the path may be changed as a result of
users operation.
I left it as "todo" because such long path is rare.

If you have an idea to show users any file path which may be changed
dynamically, please let me know. At the beginning I have tried procfs,
but I was told that newer module should use sysfs instead of procfs. If
sysfs doesn't suit a path, what should I use? Debugfs?


> Please, use debugfs for this.  sysfs is a "one value per file" type
> filesystem.  You should never be using the seqfile interface for a sysfs
> file, that's a sure sign something is wrong in your design.
> 
> I think I'll stop reading now :(

I will change some entries which doesn't contain a file path (or make
them not to have have) and post again. So please don't stop reading.


J. R. Okajima
--
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