Hi Ryan, You could use the XFS_IOC_FSINUMBERS/XFS_IOC_FSBULKSTAT API to iterate over all inodes in the fs. not having to readdir and recourse the directory tree should safe you some time (much less i/o). Also, the interface can be used to make your conversion work parallel by working on different inode ranges. You can use xfsdump/xfsrestore code as reference. Also, not sure if you are using user/group quotas - if you don't, better make sure that quotas are turned off to avoid all the accounting caused by your conversion process. Amir. On Thu, Jul 28, 2016 at 6:30 AM, Ryan Lindsay <rlindsay@xxxxxxxxxxxxxx> wrote: > Hi > > I have a bit of a specific requirement. > > I have a server that currently has a 12T worth of data on it on an xfs > formatted LV. > > currently the file permissions are set via an LDAP, however we are having to > move to AD for out authentication mechanism. Which will change the value of > the existing UID's and GID's > > Since XFS has a lot of mechanisms that allow things to happen in parallel. I > was wondering if there was a way of interacting at the file system level to > facilitate a change of UID's on files rather than having to just chown > recursively down the file system. The faster I can update the permissions > the better basically > > > Ryan Lindsay | Research Infrastructure Lead > > Faculty of Science IT > Room G09, Old Geology Bld, University of Melbourne, 3010, VIC > Telephone +61 3 83446255 | Mobile +61 0407537949 | Email > rlindsay@xxxxxxxxxxxxxx > > This email and any attachments may contain personal information or > information that is otherwise confidential or the subject of copyright. Any > use, disclosure or copying of any part of it is prohibited. The University > does not warrant that this email or any attachments are free from viruses or > defects. Please check any attachments for viruses and defects before opening > them. If this email is received in error please delete it and notify us by > return email. > > > _______________________________________________ > xfs mailing list > xfs@xxxxxxxxxxx > http://oss.sgi.com/mailman/listinfo/xfs > _______________________________________________ xfs mailing list xfs@xxxxxxxxxxx http://oss.sgi.com/mailman/listinfo/xfs