Filesystem and attributes

A very interesting feature described here shows that it is possible to assign custom key = value attributes to the files and folders on the filesystem level. To use this feature one have to enable it from /etc/fstab during mount time and then get a package of utilities to get/set attributes.

This article has 9 comments so far!

  1. lev says —

    I didn’t get how to use it and for what. Anyway interesting :)

  2. leonid says —

    Lev,

    as an example, you can tag images with keywords. This way, you will be able to do searches in your image directories without being dependant on the database.

  3. lev says —

    Leonid,

    so… :) I understood this. I think I feel irritation at making tags much faster than with dependant on the database.

    IMO it looks interesting but uncomfortable and useless - gadget. Probably because I do not have tasks to use this.

    Ok. Are you going (Leonid, Alex, anybody) to use that constantly for something? If you say yes I’ll take on trust and change my mind. :)

  4. Alexander Mamtchenkov says —

    I am not sure yet if I really gonna use it, but for example you can use if for let’s say picture gallery.

    one script to add an image and leave a comment for this particular image as an fs attribute
    second script to go through the directory, construct an HTML [tel it be so] index and put comments fetched from fs attributes underneath the image.

    The good point is: you do not need to have a database [let it be SQL, text file or whatever else] to keep additional information about your images what makes it easier to move things aroung [ofcourse if you need it].

    Let assume the old way - you have a directory with images and a text file with corresponding comments. Now, if you want to CRUD image - you need to adjust the txt file as well [not a big deal but still]. And what if you need to move an image from one directory of your gallery to another one? This will look like this [assuming old way]: open txt file in old dir -> remove remove image comment -> close txt file -> move image to new directory -> open txt file in that directory -> add image comment -> close file.
    Using fs attributes you can simply copy the image to new directory :)

    Anyway - this is all about choice :) It is good to have choice [and it is important to know about it's availability as well]

  5. Alexander Mamtchenkov says —

    BTW, guys - I have a nice feature of replying to the comments - you just need to press a link “Reply to this comment” and have threaded discussions :)

    [its all about choice again :) ]

  6. Alexander Mamtchenkov says —

    this can be applied not only to images, but to any files and actually I found it interesting since sometimes you forget what is where and so on, but if you leave a comment to the file while creating it - it is going to be easier to find what you need later on :)

  7. lev says —

    I’ll. I didn’t notice - strange but fact. I do not have that feature in my blog probably I’ll add will not :)

  8. Alexander Mamtchenkov says —

    Yup, there is a pluggin for WP to add this functionality :) see here

  9. lev says —

    Mostly I’m not about functionality and plug-ins. I did’t notice a bold text under comment text. That is strange. :)

Leave a Comment