bugfindutils - Bugs: bug #24748, updatedb

 
 

bug #24748: updatedb

Submitted by:  None
Submitted on:  Tue 04 Nov 2008 08:00:39 PM UTC  
 
Category: updatedbSeverity: 1 - Wish
Item Group: NoneStatus: Wont Fix
Privacy: PublicAssigned to: None
Originator Name: Lukasz SzybalskiOriginator Email: -unavailable-
Open/Closed: ClosedRelease: None
Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 17 Jan 2009 07:27:31 PM UTCjayStatusNone=>Wont Fix
      Open/ClosedOpen=>Closed
    Sat 08 Nov 2008 03:11:26 PM UTCjaySeverity3 - Normal=>1 - Wish

    Back to the top


    Powered by Savane 3.1-cleanup1