bugfindutils - Bugs: bug #24748, updatedb

 
 

bug #24748: updatedb

Submitter:  None
Submitted:  Tue 04 Nov 2008 08:00:39 PM UTC
   
 
Category:  updatedb Severity:  1 - Wish
Item Group:  None Status:  Wont Fix
Privacy:  Public Assigned to:  None
Originator Name:  Lukasz Szybalski Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  None
Fixed Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 17 Jan 2009 07:27:31 PM UTC, comment #2: 

I guess I'm really closing this because it's not feasible.

James Youngman <jay>
Group administrator
Sat 08 Nov 2008 03:11:26 PM UTC, comment #1: 

If you look at the menu bar at the top of this page, one of the items is "Source Code".   The information there points to the findutils source code.

Your idea is certainly interesting and could be made to work with a few scripts on top of updatedb (more likely frcode though) and locate.  However, there are a number of problems with this strategy.   One example is that the user will clearly wish that when she renames a file, the file's attributes will follow the new name:

updatetag personal thisfile.txt
mv thisfile.txt thatfile.txt

Here, "locatetag personal" should return thatfile.txt, not the nonexistent thisfile.txt.

There is a way of dong this, I think.  It owuld involve the use of extended attributes.   See http://www.kernel.org/doc/man-pages/online/pages/man2/setxattr.2.html for some information (the equivalent command-line program is called setfattr, apparently).

Finding of files by extended attribute values has been implemented by Leslie Polzer as part of the Google Summer of Code.  Sadly, I have still not merged those changes into the CVS repository.

James Youngman <jay>
Group administrator
Tue 04 Nov 2008 08:00:39 PM UTC, original submission:  

Hello,
I am trying to find a source code for findutils, and maybe convice the
original author to add a tagging system to the locate/updatedb software.

I would like to add a tag to a folder
updatetag personal ./thisfile.txt
or
updatetag ./thisfile.txt personal,school,reviewlater

and be able to find the files by tags like
locatetag personal

This would somehow had to be incorporated into locate database and the format
it is stored in.
How hard would be to create these two programs. Would the original
authors be interested in something like that?

Thanks,
Lucas

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jay (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-01-17 jay StatusNone Wont Fix
        Open/ClosedOpen Closed
    2008-11-08 jay Severity3 - Normal 1 - Wish

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code