Ticket #10040: 0001-Don-t-use-B_FS_IS_PERSISTENT-with-packagefs.patch

File 0001-Don-t-use-B_FS_IS_PERSISTENT-with-packagefs.patch, 1.3 KB (added by jessicah, 11 years ago)
  • src/add-ons/kernel/file_systems/packagefs/kernel_interface.cpp

    From 699698e77af9cd96f2984a6c3b9f56388e76b408 Mon Sep 17 00:00:00 2001
    From: Jessica Hamilton <jessica.l.hamilton@gmail.com>
    Date: Mon, 30 Sep 2013 22:14:28 +1300
    Subject: [PATCH] Don't use B_FS_IS_PERSISTENT with packagefs.
    
    Tracker shows volumes with B_FS_IS_PERSISTENT in the Desktop's
    right-click menu, so you end up with entries for config, common
    and system. Removing the B_FS_IS_PERSISTENT flag hides these
    volumes from Tracker's Desktop menu.
    ---
     src/add-ons/kernel/file_systems/packagefs/kernel_interface.cpp | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/add-ons/kernel/file_systems/packagefs/kernel_interface.cpp b/src/add-ons/kernel/file_systems/packagefs/kernel_interface.cpp
    index 260ea19..b30dae8 100644
    a b packagefs_read_fs_info(fs_volume* fsVolume, struct fs_info* info)  
    140140
    141141    FUNCTION("volume: %p, info: %p\n", volume, info);
    142142
    143     info->flags = B_FS_IS_PERSISTENT | B_FS_IS_READONLY | B_FS_HAS_MIME
     143    info->flags = B_FS_IS_READONLY | B_FS_HAS_MIME
    144144        | B_FS_HAS_ATTR | B_FS_HAS_QUERY | B_FS_SUPPORTS_NODE_MONITORING;
    145145    info->block_size = 4096;
    146146    info->io_size = kOptimalIOSize;