On Sun, 29 Feb 2004, Anton Altaparmakov wrote:
> On Sun, 29 Feb 2004, Szakacsits Szabolcs wrote:
> > now: a->data_size = cpu_to_le32(le32_to_cpu(a->data_size) + 2);
> > you want: a->n.data_size = cpu_to_le32(le32_to_cpu(a->n.data_size + 2);
> > could be: ntfs_attr_datasize_set(a, ntfs_attr_datasize_get(a) + 2);
> >
> > The last one might be even more simple if it made sense in the future,
> >
> > ntfs_attr_datasize_add(a, 2);
>
> And another problem with this is that all functions beginninf with
> ntfs_attr_()
The above naming was just one _example_, personally I wouldn't call it
that way, I just tried to guess your taste and failed again :)
Hiding the details was the point, not the naming.
I don't really care how you want to call them because I think any name
would be better than the current way. We could call them NTFS_ATTR_,
NTFS_SET_ATTR_, NTFS_SETATTR_, NTFS_ATTREC_, NTFS_ATTR_REC_,
ntfs_set_attr_, ntfs_setattr_, ntfs_attrec_, ntfs_attr_rec_,
ntfs_attribute_record_, ntfs_arecord_, ntfs_arec, ntfs_ar_, etc.
> operate on ntfs_attr structures and not on ATTR_RECORD structures.
So perhaps something like NTFS_ATTR, NTFS_ATTREC_, ntfs_attrec would make
more sense. But I thought it's pointless to discuss naming until
1) there is an agreement to go ahead with anything
2) john (or somebody) undertakes to do them
Szaka
|